AWS Bedrock API Key
Detects Amazon Bedrock API keys, which start with the case-sensitive prefix ABSK followed by 100 to 260 Base64/URL-safe characters. Leaked Bedrock bearer tokens allow unauthorized model invocation and billed inference against enabled foundation models in the target AWS account.
- Type
- regex
- Engine
- boost_regex
- Confidence
- high
- Confidence justification
- High confidence: Amazon Bedrock long-term and short-term API keys carry the distinctive uppercase ABSK prefix and a long encoded payload (104-264 characters total), making accidental collisions in ordinary text negligible.
- Jurisdictions
- global
- Regulations
- Criminal Code Act 1995 (Cth)
- Frameworks
- CIS Controls, ISO 27001, NIST CSF, SOC 2
- Data categories
- credentials, security
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Unsupported, Macie: Unsupported, Zscaler: Compatible, CrowdStrike DLP: Unsupported, Palo Alto: Unsupported, Netskope: Unsupported
Pattern
(?-i)(?<![A-Za-z0-9+/_-])(ABSK[A-Za-z0-9+/=_-]{100,260})(?![A-Za-z0-9+/=_-])
Corroborative evidence keywords
bedrock, AWS_BEARER_TOKEN_BEDROCK, bedrock-runtime, amazonaws.com, api key, api_key, apikey, access key, access token, auth token, authorization, bearer, conn str, connection string, connectionstring, cookie, credential, database, host, [object Object] (+37 more)
Proximity: 300 characters
Should not match
AWS_BEARER_TOKEN_BEDROCK=ABSKshortpayload0123456789abcdef— Payload far shorter than minimum 100 characters after ABSKabsk_lowercase_short_prefix— Lowercase absk prefix rejected by case-sensitive ruleConfigure AWS_BEARER_TOKEN_BEDROCK for bedrock-runtime inference calls.— Prose documentation mentioning the variable with no token valuetemplate example placeholder record identifier— Template/sample context should be excluded even when anchor words are present
Known false positives
- Revoked or expired short-term Bedrock bearer tokens in historical logs. Mitigation: Verify token status in IAM / Amazon Bedrock console before escalating.
- Synthetic ABSK strings in SDK unit tests and documentation. Mitigation: Suppressed on every tier by the shared template-exclusion dictionary.
References
- Amazon Bedrock API keys documentation (ABSK bearer token format and AWS_BEARER_TOKEN_BEDROCK)
- Supported secret scanning patterns - GitHub Docs (Amazon Bedrock API Key)