Lambda Function Enumeration
Lambda functions frequently store credentials in environment variables and run with overpermissioned execution roles. Function code itself often contains hardcoded secrets or internal API endpoints.
List Functions
Get Function Configuration
Includes environment variables, execution role, timeout, memory, VPC config:
Environment variables are returned in plaintext if you have lambda:GetFunction or lambda:GetFunctionConfiguration:
Common findings: DATABASE_URL, API_KEY, SECRET_KEY, AWS_ACCESS_KEY_ID, SLACK_TOKEN.
Download Function Code
Get a pre-signed URL to download the deployment package:
Execution Role
The role ARN is in the function configuration. Enumerate what the role can do:
A Lambda execution role with iam:* or s3:* on * is a direct privilege escalation path. See IAM PassRole Lambda Escalation.
Layers
Layers can contain shared libraries and configuration — worth downloading if accessible.
Event Source Mappings
Shows what triggers each function (SQS, DynamoDB streams, Kinesis, etc.):
Function URLs
Lambda function URLs expose functions directly over HTTPS without API Gateway. List them:
Auth type NONE means the function is publicly invocable without any authentication.
Invoke a Function
If you have lambda:InvokeFunction:
Useful for testing RCE paths or triggering functions that perform privileged actions.
Was this helpful?
Your feedback helps improve this page.