Skip to content
Benchmarks

redact-secret · Report

Short-term API key (bedrock-api-key-)

bedrock-api-key- prefixed Base64 pre-signed CallWithBearerToken URL, valid for at most 12 hours.

  • Amazon Bedrock
  • Detectors: aws-bedrock-short-term-api-key
  • Run 2026-10-07
  • Mode published · redact-secret 0.1.0-beta.14
  • Dossier verdictReady
  • Dossier evidence levelT1 · Provider-documented
  • Dossier researched2026-09-27
Registry detector aws-bedrock-short-term-api-key since redact-secret#864 (registry pinned at cfe2aec); graduated from a Beta.10 arrival family (#384, research #779), contract in benchmarks/lib/beta8/384b.ts. T1 by maintainer ruling of 2026-09-27 (redact-secret#779): the bedrock-api-key- prefix, the fixed 133-character head and standard padded Base64, from AWS-authored token generators and the blog; total length stays T2. The product reports the two Bedrock keys as separate detectors.

Research record

From credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0. It describes the research on the format, not what any scanner or the product does, and not a support status.
  • Review stateDraft, not reviewed
  • Format revision1 · current
  • ResearchResearched
  • Researched2026-09-27

3 events in the review history: 2 observed, 1 reviewed. Latest: observed on 2026-09-27 by automation, project maintainer. Project-maintained review is not independent validation. The family record at this release.

Format

Provider format research from credential-evidence snapshot-2026.10.06.4 · records at 77ce761 · schema 1.8.0.

What it looks like

Descriptive pattern
^bedrock-api-key-YmVkcm9jay5hbWF6b25hd3MuY29tLz9BY3Rpb249Q2FsbFdpdGhCZWFyZXJUb2tlbiZYLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsP[A-Za-z0-9+/]+={0,2}$

Parts are shown as recorded. Evidence classes belong to the facts below; no class is assigned to a part.

Format facts

Open questions

No open question is recorded for this revision.

Benchmark dossier notes

From the provider dossier, as written. The evidence level above says how well the format is backed; a fact the dossier does not record is not shown.
Shape
prefix bedrock-api-key-, then Base64 of a SigV4-presigned CallWithBearerToken URL ending in &Version=1. The first 133 Base64 characters after the prefix are constant (they encode the fixed host, action, algorithm and credential parameters). Padded standard Base64, no URL-safe variant. Length is undocumented: about 500 characters with an empty session token, longer with one; "over 1000" is a vendor-blog figure.
Basis
T1 for prefix, head and alphabet, from three AWS-authored token generators (Python, JavaScript, Java) and the AWS blog regex, whose printed body class is malformed (the intended class is standard Base64). Tail length is T2.
Issuance
not attempted. Generated client-side or from the console; never listed or revocable per key, only by denying the generating session. The #779 checklist compares console output with SDK output.
Contract in core
detector-families.md; final evidence in the #864 record linked in the frontmatter.

In this benchmark

Fixture rows on the current run. Counts are for redact-secret in published · redact-secret 0.1.0-beta.14 mode.
Fixtures
34
Left readable
0
Redacted too much
0
False alarms
0

34 fixtures: 13 expect a redaction, 21 must stay quiet. See every row

redact-secret fixture counts by evidence level
Evidence levelFixturesLeft readableToo muchFalse alarms
T1Provider-documented13000
T2Tool-corroborated13000
T3Project policy8000

Every scanner on the same fixtures

In run order. Counts are what each scanner recorded on this family's fixtures, whichever rules it has; a scanner with no rule for the family has nothing to report on it.

Counts per scanner on this family's fixtures
ScannerFixturesLeft readableToo muchFalse alarms
flare-redactRuntime library · 1.6.1 · Published npm package · secrets-only (pii, generic_assignment disabled) · JavaScript engineNo rule maps to it341210
gitleaksRepository scanner · 8.30.1 · Directory scan · default rules1 rule targets it341207
redact-secretProduct measured here · 0.1.0-beta.14 · Published npm package · default detectors1 detector mapped34000
trufflehogRepository scanner · 3.97.4 · Filesystem scan · verification disabledNo rule maps to it341300

Benchmark dossier questions

Things the sources do not settle. They are listed so nobody reads them as settled.
Open caveat
T1 covers the prefix, the fixed 133-character head and the alphabet; total length and the session-token part are T2 (undocumented). Needs console-issued keys to compare with SDK output (checklist in #779).

Looks like it, but isn't

Values the dossier records as resembling this credential without being one.
Collisions
shares the header and variable with the long-term key; the prefix decides. The decoded URL exposes an ASIA access key id, but the encoded form is Base64-wrapped. Claude Platform on AWS keys use a different prefix and are a separate product.

Scanner rules for this family

Mapped by hand (reviewed 2026-09-30) from each scanner's pinned rule file, never from what a scanner found on the fixtures.
Peer scanner rules that target this family
ScannerRuleWhat the rule matches
gitleaks · rules 8.30.1aws-amazon-bedrock-api-key-short-livedbedrock-api-key- + the Base64 pre-signed URL prefix

No rule maps to this family in flare-redact, openredaction, trufflehog.

34 of 34 rows

Fixtures in this family

34 rows, redact-secret's outcome on each. Rows that need a look come first (0), then the rest in corpus order. Choose "Every scanner" to see each scanner's outcome for the same rows.
Fixtures in Short-term API key (bedrock-api-key-)
FixtureKind and evidenceredact-secret
aws-bedrock-short-term-api-key-actions-envaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-agent-settingsaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-curl-beareraws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-dotenvaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-embedded-leading-twinaws-bedrock · boundary-violationMust not flagT2 · Tool-corroborated · twinQuiet
aws-bedrock-short-term-api-key-export-with-sessionaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-head-only-twinaws-bedrock · wrong-lengthMust not flagT2 · Tool-corroborated · twinQuiet
aws-bedrock-short-term-api-key-key-shape-bareaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-key-shape-quotedaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-key-shape-unicode-crlfaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-openai-sdk-mantleaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-pasted-keyaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-plural-prefix-twinaws-bedrock · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
aws-bedrock-short-term-api-key-proxy-logaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-python-environaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-rule-with-body-class-near-missaws-bedrock · format-near-missMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-scanner-rule-anchor-near-missaws-bedrock · format-near-missMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-short-bodyaws-bedrock · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-tool-callaws-bedrock · documented-format-literalMust redactT1 · Provider-documentedRedacted
aws-bedrock-short-term-api-key-urlsafe-body-twinaws-bedrock · wrong-alphabetMust not flagT2 · Tool-corroborated · twinQuiet
aws-bedrock-short-term-api-key-capitalized-prefix-twinaws-bedrock · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
aws-bedrock-short-term-api-key-decoded-host-only-encoded-valueaws-bedrock · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-docs-angle-placeholderaws-bedrock · documentation-placeholderMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-env-reference-referenceaws-bedrock · templated-referenceMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-head-one-char-off-twinaws-bedrock · prefix-near-missMust not flagT2 · Tool-corroborated · twinQuiet
aws-bedrock-short-term-api-key-iam-action-and-arn-public-idaws-bedrock · public-identifierMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-key-guidance-proseaws-bedrock · prose-mentionMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-label-proseaws-bedrock · benign-lookalikeMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-maskaws-bedrock · benign-lookalikeMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-prefix-onlyaws-bedrock · benign-lookalikeMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-python-getenv-referenceaws-bedrock · templated-referenceMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-referenceaws-bedrock · benign-lookalikeMust not flagT3 · Project policyQuiet
aws-bedrock-short-term-api-key-unrelated-base64-encoded-valueaws-bedrock · benign-encoded-valueMust not flagT2 · Tool-corroboratedQuiet
aws-bedrock-short-term-api-key-your-key-here-placeholderaws-bedrock · documentation-placeholderMust not flagT3 · Project policyQuiet

Sources

Researched 2026-09-27.

Documentation and code

  • docs.aws.amazon.com/bedrock/latest/userguide/api-keys-reference.html
  • github.com/aws/aws-bedrock-token-generator-python/blob/main/aws_bedrock_token_generator/token_generator.py
  • aws.amazon.com/blogs/security/securing-amazon-bedrock-api-keys-best-practices-for-implementation-and-management/
  • docs.aws.amazon.com/bedrock/latest/userguide/api-keys-revoke.html
  • github.com/aws/aws-bedrock-token-generator-python/blob/228eec2bfcf209d53dc776c902e00d9e6548e508/aws_bedrock_token_generator/token_generator.py
  • github.com/aws/aws-bedrock-token-generator-js/blob/86277e1489354192c64ffc8f995601daacc1f715/src/token.ts
  • github.com/aws/aws-bedrock-token-generator-java/blob/65a626daa1314c16536030c86adafbad4a6b2d56/src/main/java/software/amazon/bedrock/token/BedrockTokenGenerator.java

Research log

Other Amazon Bedrock families