AWS New Lambda Layer Attached
Detects when a user attached a Lambda layer to an existing Lambda function. A malicious Lambda layer could execute arbitrary code in the context of the function's IAM role. This would give an adversary access to…
Description
Detects when a user attached a Lambda layer to an existing Lambda function. A malicious Lambda layer could execute arbitrary code in the context of the function's IAM role. This would give an adversary access to resources that the function has access to.
Detection logic
Detection requirements
- Log source product
- aws
- Log source service
- cloudtrail
Known benign triggers
- Lambda Layer being attached from unfamiliar users should be investigated. If known behavior is causing false positives, it can be exempted from the rule.
- Lambda Layer being attached may be performed by a system administrator. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.
MITRE ATT&CK mappings
Not mapped to ATT&CK.
References
| Reference | Cited by |
|---|---|
| docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionConfiguration.html | Only this detection cites it |
| github.com/clearvector/lambda-spy | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 97fbabf8-8e1b-47a2-b7d5-a418d2b95e3d
- Tagged by the source as
- attack.privilege-escalation
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1