You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(access-control): detect cross-account async destinations and alias traffic shadowing
Two native-feature abuse paths went unchecked. First, async-invoke
destinations: an attacker who can call lambda:PutFunctionEventInvokeConfig
points a function's OnSuccess/OnFailure destination at an SQS queue, SNS topic,
Lambda, or EventBridge bus in their own account and exfiltrates every async
invocation result or payload, and the config keeps firing after their access is
revoked. Second, alias traffic shadowing: a weighted alias
(RoutingConfig.AdditionalVersionWeights) quietly routes a fraction of
invocations to a second, attacker-published version while the primary version
still looks clean, a stealthy persistence and backdoor technique.
check_destinations reads the function event-invoke config, parses each
destination ARN, compares its account against the scanning account, and reports
has_external_destination plus external_destinations. A CRITICAL
external_account_destination finding is raised and the function score is reduced
by 20. check_aliases lists aliases and flags any with an additional-version
routing config, reporting shadowed_aliases; a MEDIUM alias_traffic_shadowing
finding is raised and the score reduced by 5. Same-account destinations and
plain (unweighted) aliases are unaffected.
Adds five tests across the two checks. Bumps the check count to 21 and the
version to 1.0.2.
A comprehensive AWS Lambda security scanner with 19 security checks across 5 categories and compliance mapping for 10 frameworks (81 controls). Features multi-threaded scanning, secret detection in environment variables, and interactive HTML dashboards.
15
+
A comprehensive AWS Lambda security scanner with 21 security checks across 5 categories and compliance mapping for 10 frameworks (81 controls). Features multi-threaded scanning, secret detection in environment variables, and interactive HTML dashboards.
16
16
17
17
<palign="center">
18
18
<imgsrc="https://raw.githubusercontent.com/TocConsulting/lambda-security-scanner/main/assets/demo.gif"alt="Lambda Security Scanner demo: secrets, public URLs, IAM, and multi-framework compliance"width="100%">
@@ -22,7 +22,7 @@ A comprehensive AWS Lambda security scanner with 19 security checks across 5 cat
22
22
23
23
### **Comprehensive Security Analysis**
24
24
-**Function Configuration**: Deprecated runtime detection, timeout tuning, environment variable secret scanning, ephemeral storage, external layers, X-Ray tracing, dead letter queues
25
-
-**Access Control**: Resource policy public access, function URL authentication, CORS wildcard origins, overly permissive execution roles, shared role detection
25
+
-**Access Control**: Resource policy public access, function URL authentication, CORS wildcard origins, overly permissive execution roles, shared role detection, cross-account async-invoke destinations, alias traffic shadowing
26
26
-**Network Security**: VPC configuration, multi-AZ deployment, unrestricted security group egress
0 commit comments