Secrets detection for text your app plans to use
Flag locked credential patterns in retrieved or uploaded text. Detection, not prevention — your app decides how to review or omit a chunk.
Supported patterns
This rules prototype matches only the three patterns below. Unknown credential shapes do not produce a finding.
-
AWS access key id —
AKIAfollowed by 16 uppercase letters or digits. -
GitHub classic PAT —
ghp_followed by 36 alphanumeric characters. -
Stripe secret key —
sk_live_orsk_test_followed by at least 24 alphanumeric characters.
What a finding looks like
# classify finding — SecretsScanner mvp-0 # stylized like home — not OpenAPI JSON (wire field: category) decision: review finding: secrets detector: secrets-rules · version mvp-0 score: null severity: high # Detection, not prevention — your app decides. # A secrets finding does not require the prompt-injection mock to match.
Limits and false positives
- Only the three patterns above match. Passwords, UUIDs, JWTs, and other prefixes do not.
- Matching is case-sensitive and length-bounded. Truncated or wrong-case prefixes yield no finding.
-
Findings never echo the matched secret. Optional
secrets_modeisreport(default) orredact; redact returnsredacted_contentwith supported tokens replaced by[REDACTED]. Not universal secret detection. - Detection, not prevention. The caller chooses how to review or omit text.
Back to home. Local docs live in apps/docs (Starlight). Deploy is tracked separately.