Suspicious AWS Lambda Function Code Update via CloudTrail (via aws)

PremiumReviewedSigma · Medium · v1
Product
aws
Service
cloudtrail
Author
HuntRule
Published
2026-10-28
Updated
2026-10-28

ATT&CK techniques

Execution
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects updates to AWS Lambda function code recorded in CloudTrail. In the observed intrusion the attacker replaced the code of an EC2 initialization Lambda to gain execution inside the environment. Unexpected function code updates outside of a deployment pipeline can indicate tampering for execution or persistence.

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.