What problem does it solve?
Serverless functions process untrusted event data from S3, SQS, API Gateway, and DynamoDB Streams, creating injection paths that traditional scanners miss. This Skill gives security analysts a structured workflow to find code injection sinks, malicious Lambda layers, and privilege escalation paths before attackers exploit them.
Core Features & Use Cases
- Static Injection Analysis: Scan function code with Semgrep and Bandit to find event data flowing into eval, exec, os.system, and child_process sinks across Python and Node.js runtimes.
- CloudTrail Threat Detection: Query CloudTrail and CloudWatch Logs Insights for unauthorized UpdateFunctionCode events, malicious layer attachments, and PassRole-based privilege escalation.
- Runtime Prevention Controls: Deploy input validation decorators, least-privilege execution roles, SCPs, and EventBridge alerting rules to block injection at execution time.
- Use Case: A SOC analyst investigating a GuardDuty credential exfiltration alert uses this Skill to trace a modified Lambda function, identify the injected code, find the exfiltrated role credentials, and deploy preventive SCPs.
Quick Start
Audit my AWS Lambda functions for code injection vulnerabilities and privilege escalation paths using static analysis and CloudTrail event correlation.