Skip to content

LS-AWS-001: AWS Access Key ID

Severity CRITICAL
Blast radius Full cloud account compromise
Rotate at https://console.aws.amazon.com/iam/home#/security_credentials
Validation aws_key_id_ok
--verify none (needs the secret key pair)

If this leaks

Combined with its secret key, an attacker can call any AWS API the underlying IAM identity is permitted to use, including launching compute, reading S3 buckets, and modifying IAM policies.

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

\b(?:A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|APKA|ASIA)[A-Z0-9]{16}\b

Suppress

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

disable_rules: [LS-AWS-001]