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¶
- Rotate or revoke the credential at https://console.aws.amazon.com/iam/home#/security_credentials.
- Check the provider's audit logs for use you don't recognise.
- 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]