redact-secret · Report · Detector
W&B API keys
Format evidence
- Provider documentation wandb SDK validation.py at 98f93d6 ([\w-]+, 40+; "may only contain the letters A-Z, digits and underscores"), the wandb_v1_ weave-claude-code test constant (R5), #10688 test keys of 86, docs "about 86 characters" (re-checked 2026-09-28) · observed 2026-09-28 · wandb_v1_ + [A-Za-z0-9_] to about 86 in all; every provider test fixture of a new key is exactly 86; no separator is required
- trufflehog 3.97.4
- Reference 1
- Reference 2
- Reference 3
- Reference 4
- Reference 5
- Reference 6
- Reference 7
- Reference 8
- Reference 9
- Reference 10
- Reference 11
- Reference 12
Arrival evidence (#436, product redact-secret#917; #860 handoff wandb.md, READY for wandb_v1_). T1: the prefix is a W&B-authored test constant (R5), the [A-Za-z0-9_] alphabet is the SDK validator and its error text (R1), and the docs say new keys are "about 86 characters", which every provider test fixture of a new key (wandb#10688, Weave #5732) makes exactly 86. By the orchestrator decision on redact-secret#917 the product matches a bounded tolerant range around 86 until an issuance check, so positives carry totals 85, 86 and 87 and no fixture asserts silence on any length. The 27/_/49 split is scanner-only (T2) and not required: positives carry it and a body without an inner _. On-prem keys are <host>-<key>; the host label is public and is authored as an envelope around the key, so a finding with or without it passes. Excluded: the legacy 40-hex key (generic context), client JWTs (jwt), OIDC identity-token files, wandb_v1_ placeholders, and a future wandb_v2_ (unknown, so never asserted). Graduated to a registry detector at the 1127bf9 re-pin (redact-secret PR #938).
What the run recorded, by group
| Group | Fixtures | Leaked or false alarms | Near-twins | Outcomes | Other scanners, same cell |
|---|---|---|---|---|---|
| Must not flag · Tool-corroborated | 11 | False alarmsat most 25.9%0 of 11 controls flagged | 11 quiet · 0 flagged |
| |
| Must not flag · Project policy | 8 | False alarmsat most 32.4%0 of 8 controls flagged | 8 quiet · 0 flagged |
| |
| Must redact · Provider-documented | 16 | Secret spans left readableat most 19.4%0 of 16 spans | Near-twins told apartinsufficient-coverage6 of 6 pairs | 16 redacted · 0 too much · 0 partly exposed · 0 missed |
|
- Fixtures
- 35
- Left readable
- 0
- Redacted too much
- 0
- False alarms
- 0
Fixtures for this detector
| Fixture | Kind and evidence | redact-secret |
|---|---|---|
wandb-api-key-bare-prosewandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-bearer-headerwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-chat-pastewandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-dotenvwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-exportwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-json-api-keywandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-json-tokenwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-key-shape-barewandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-key-shape-quotedwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-key-shape-unicode-crlfwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-mcp-envwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-netrc-passwordwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-on-prem-host-labelwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-sdk-kwargwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-wandb-loginwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-x-api-key-headerwandb · documented-format-literal | Must redactT1 · Provider-documented | Redacted |
wandb-api-key-actions-secret-referencewandb · templated-reference | Must not flagT3 · Project policy | Quiet |
wandb-api-key-ellipsis-placeholderwandb · documentation-placeholder | Must not flagT3 · Project policy | Quiet |
wandb-api-key-entity-and-project-public-idwandb · public-identifier | Must not flagT2 · Tool-corroborated | Quiet |
wandb-api-key-env-reference-referencewandb · templated-reference | Must not flagT3 · Project policy | Quiet |
wandb-api-key-git-sha-encoded-valuewandb · benign-encoded-value | Must not flagT2 · Tool-corroborated | Quiet |
wandb-api-key-hyphen-in-body-twinwandb · wrong-alphabet | Must not flagT2 · Tool-corroborated · twin | Quiet |
wandb-api-key-hyphen-prefix-twinwandb · boundary-violation | Must not flagT2 · Tool-corroborated · twin | Quiet |
wandb-api-key-key-guidance-prosewandb · prose-mention | Must not flagT3 · Project policy | Quiet |
wandb-api-key-label-prosewandb · benign-lookalike | Must not flagT3 · Project policy | Quiet |
wandb-api-key-leading-glue-twinwandb · boundary-violation | Must not flagT2 · Tool-corroborated · twin | Quiet |
wandb-api-key-leading-underscore-twinwandb · boundary-violation | Must not flagT2 · Tool-corroborated · twin | Quiet |
wandb-api-key-maskwandb · benign-lookalike | Must not flagT3 · Project policy | Quiet |
wandb-api-key-prefix-onlywandb · benign-lookalike | Must not flagT2 · Tool-corroborated | Quiet |
wandb-api-key-referencewandb · benign-lookalike | Must not flagT3 · Project policy | Quiet |
wandb-api-key-short-bodywandb · benign-lookalike | Must not flagT2 · Tool-corroborated | Quiet |
wandb-api-key-test-constant-shape-placeholderwandb · documentation-placeholder | Must not flagT3 · Project policy | Quiet |
wandb-api-key-trailing-hyphen-twinwandb · boundary-violation | Must not flagT2 · Tool-corroborated · twin | Quiet |
wandb-api-key-uppercase-prefix-twinwandb · prefix-near-miss | Must not flagT2 · Tool-corroborated · twin | Quiet |
wandb-api-key-version-identifiers-public-idwandb · public-identifier | Must not flagT2 · Tool-corroborated | Quiet |