Skip to content

LS-AWS-002: AWS Secret Access Key

Severity CRITICAL
Blast radius Full cloud account compromise
Rotate at https://console.aws.amazon.com/iam/home#/security_credentials

If this leaks

Combined with the access key ID, this authenticates as the IAM identity, allowing full programmatic control over every AWS service that identity can reach.

What to do

  1. Rotate or revoke the credential at https://console.aws.amazon.com/iam/home#/security_credentials.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?i)aws(?:.{0,30})?['\"\s]([0-9a-zA-Z/+]{40})(?![0-9a-zA-Z/+])

Suppress

On one line: # leakscan:ignore LS-AWS-002. For the whole project:

disable_rules: [LS-AWS-002]