About non-obvious methods of attacking and penetrating the AWS cloud
summary
Researcher demonstrates an npm package called s3-object-rename that contained obfuscated code and phoned home AWS access keys, reaching ~53 weekly then ~500 monthly downloads and capturing keys from other users; shows typosquatting research that hit ~17,000 unique hosts and community AMIs with hidden malware. Describes DNS-based exfiltration using Amazon-provided DNS (not logged by VPC flow logs) and a DNS reverse shell (loud enough for GuardDuty). Reveals an org-wide trust wildcard and role-ARN principal patterns that let low-privilege identities assume higher roles without sts:AssumeRole.
AI-written summary · about
chapters (16)
- 0:00Start
- 1:57Initial access
- 3:05But there's a change for the better
- 8:49S3 Object Rename concept
- 12:17Typosquatting
- 18:34Backdooring community AMI
- 22:4982% of companies unknowingly give 3rd parties access to all their cloud data
- 25:16Privilege escalation
- 25:31Commonly known method of escalating privileges - search for dangerous permissions
- 26:45Trust Policy: when a principal is trusted?
- 28:17Assuming IAM role over misconfigured Trust Policy - part 1
- 35:31Commonly known methods of exfiltrating data from restricted VPC
- 37:56But the devil is in the details...
- 39:01Silent data exfiltration
- 41:29Defense?
- 42:47Follow the least privilege principle
