Stealing the silver Lining from your cloud

BlackHat Webcast

06 May 2021

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

This presentation, Stealing the Silver Lining from Your Cloud, was delivered as a Black Hat WebCast in 2021. The session covered the current state of cloud adoption, the shared responsibility model and cloud security tooling, and then mapped real-world cloud attack techniques to the MITRE ATT&CK framework, covering storage service attacks, Azure blob exploitation, an AWS Elastic Beanstalk SSRF chain, IAM privilege escalation through shadow admins, and AWS Cognito misconfigurations.

Summary

The webcast set the stage with cloud adoption: 2020 made it clear that remote working is here to stay, and data centers and the concept of physical network boundaries are aging. Organizations in the cloud fall into two groups, those born in the cloud, mostly startups, SaaS providers and cloud aggregators or consumers with no self-run data center footprint, and those migrating from existing infrastructure through five strategies: rehost (lift and shift), refactor (modernize the application but stay largely on IaaS), rearchitect (monolith to microservices and container orchestration), rebuild (rewrite as cloud native) and replace (adopt SaaS alternatives). The webcast argued that cloud is a paradigm shift where conventional wisdom and controls stop working, with misconfigurations as the biggest concern, followed by access control failures through insecure APIs and interfaces, unauthorized access from credential leakage, unintended public data exposure, and data loss and sovereignty issues under GDPR and similar rules.

The middle section covered understanding the environment. A responsibility matrix across on-premises, IaaS, CaaS, PaaS, FaaS and SaaS showed the tenant always keeps client-side security, data in transit and in the cloud, and identity and access management, while provider responsibility grows from virtualization upward as models move toward SaaS. On tooling, native vendor offerings are tightly coupled with providers and give larger visibility, but their internals stay hidden and output modification is limited, while third-party tools are especially useful in multi-cloud and hybrid environments and allow more output customization but only see what is exposed to them, so the session presented both categories as needed for comprehensive coverage.

The attack half used the MITRE ATT&CK framework to structure cloud attack methodology, starting from enumeration of cloud assets and services, with storage accounts positioned as the lynchpin of cloud existence across enumeration, attack, exploit and post-exploit phases. The webcast cited statistics that 2% of Amazon S3 public buckets lack write protection, exposing them to ransom attacks. An Azure case study started from an overly privileged Storage SAS URL: loading it in Azure Storage Explorer revealed the stored assets, gave access to the source code of an Azure Function, and allowed planting and hiding a backdoor so the next invocation runs it. An AWS Elastic Beanstalk chain started from SSRF on a hosted application, harvested metadata for the account ID, region and security credentials, enumerated the bucket name from those predictable values, read the application source via the AWS S3 CLI, and then abused the CI/CD pipeline so a backdoor pushed to the S3 bucket deployed as a shell on the official website, with Summit Route credited for identifying more such naming patterns.

On identity the session described cloud shadow admins, accounts holding permissions attackers can abuse to escalate privileges and take over the environment, which get overlooked because they are not members of privileged groups like Domain Admin. The case study was the AWS managed policy AmazonElasticTranscoderFullAccess, which included the iam:PutRolePolicy permission and so allowed attaching an inline policy to any role, effectively granting root admin access; AWS fixed it by rolling out the replacement policy AmazonElasticTranscoder_FullAccess. The final case study covered AWS Cognito, which supports unauthenticated and authenticated credential types. Building on Andres Riancho’s BlackHat 2019 research into unauthenticated credentials, follow-up research around authenticated credentials found ways to leverage hidden signup features to gain elevated access.

Key Themes

Notable Points

  1. Map the organization’s cloud deployment model (IaaS through SaaS) against the shared responsibility matrix to identify exactly which security controls belong to the tenant versus the provider.
  2. Combine native vendor security tools with third-party solutions for comprehensive coverage, especially in multi-cloud or hybrid environments where native tools lack cross-platform visibility.
  3. Target cloud storage services early in engagements: they are the foundational dependency for nearly all other cloud services and frequently contain secrets, source code and sensitive data.
  4. Hunt for shadow admin accounts in AWS by auditing managed policies for dangerous permissions like iam:PutRolePolicy, which enable privilege escalation without membership in obvious admin groups.
  5. Test AWS Cognito configurations for both unauthenticated and authenticated credential abuse, including hidden signup features that may grant unexpected access levels.
  6. Chain SSRF vulnerabilities with cloud metadata services and predictable resource naming patterns (Elastic Beanstalk, S3) to achieve full application compromise through CI/CD pipeline abuse.
  7. Audit Azure SAS URLs for overly permissive access scopes and validate that leaked storage keys are not present in public repositories.

Notable Quotes

“Cloud Computing is the β€œIn” thing.”

“2020 has made it pretty clear remote working is here to stay.”

“Conventional wisdom and controls just won’t work”

“Misconfigurations are the biggest concerns”

“Lynchpin of cloud existance”

“MITRE does a good job”

“We extended the research around authenticated Credentials and found ways to leverage hidden signup features”

Social chatter