A demonstrated AWS laboratory attack chain showed that an unauthenticated API Gateway endpoint could invoke a Lambda function that passed a user-controlled query parameter to Python's eval(). The resulting code injection let an unauthenticated caller read temporary AWS credentials from the Lambda runtime environment; the credentials were associated with the vuln-lab-lambda-execution-role and could access a database-master secret in AWS Secrets Manager.
The demonstration highlights how an application-layer flaw can become a cloud credential compromise when Lambda execution roles are overprivileged. Permissions such as iam:PassRole combined with Lambda management rights could support account-level privilege escalation, while lambda:UpdateFunctionCode could permit persistence. Organizations should require API authentication, remove dynamic execution of untrusted input, restrict Lambda roles to least privilege, and monitor API Gateway and CloudWatch logs, CloudTrail, and GuardDuty for suspicious activity.

See affected versions and whether adversaries are exploiting it.
1 event from the most recent confirmed update back to the earliest known activity.
A laboratory AWS environment demonstrated that an unauthenticated API Gateway endpoint could invoke vuln-lab-get-user-data, where a user-controlled query parameter reaches Python eval(). The code-injection flaw enabled retrieval of the Lambda execution role's temporary AWS credentials and access to the vuln-lab/database/master Secrets Manager secret containing appdb database credentials.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
4 references tracked. Mallory keeps watching after this page renders.
guidepointsecurity.com
Open sourceaws.amazon.com
Open sourcedocs.aws.amazon.com
Open sourcedocs.aws.amazon.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.