AWS Access Key

Detects AWS access key IDs and other IAM unique identifiers by prefix, including long-term keys (AKIA) and the temporary keys AWS STS issues (ASIA). Confidence rises when the identifier sits next to a labelled secret access key or, for temporary credentials, a labelled session token.

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: the identifier has a documented prefix and a fixed length, and the enforce tiers need independent AWS evidence beside it. The session-token and secret-key evidence is label-anchored on the names AWS documents for its credentials file, environment variables and STS responses, so unlabelled Base64 near an identifier stays at discovery. AWS does not fix the session token's length, so the evidence regex asks only for its first 40 characters.
Detection quality
Verified
Jurisdictions
global
Regulations
Criminal Code Act 1995 (Cth)
Frameworks
CIS Controls, ISO 27001, NIST CSF, PCI-DSS, SOC 2
Data categories
credentials, security
Scope
specific
Risk rating
5
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Adapted from Purview, Netskope: Adapted from Purview

Pattern

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

Corroborative evidence keywords

api key, api_key, apikey, access key, secret key, private key, auth token, authorization, access token, bearer, conn str, connection string, connectionstring, cookie, credential, database, host, [object Object], oauth, passphrase (+33 more)

Proximity: 300 characters

Should match

Should not match

Known false positives

References

Collections