Repository navigation
Description
trufflehog ships 886 detectors. Comparing the browser-relevant subset against our 88 patterns leaves roughly 35 services with distinctive, client-side-exposed shapes that we do not recognise. Add them as FAST (prefix) patterns where the provider uses a unique prefix, and as CONTEXT patterns with a bounded look-behind (keyword, at most 40 chars, word-bounded value) otherwise. Never a bare shape keyed on an English word.
Groups, in priority order:
- analytics and product: PostHog
phc_, Intercom, LaunchDarkly (sdk-/mob-UUID), Amplitude as a real pattern, New Relic browser keyNRJS- - commerce and CMS: Shopify
shpat_/shpss_/shpca_/shppa_, Storyblok, Contentful CDA/CMA, Webflow, Squarespace, Airtablepat…, Notionsecret_/ntn_ - media and messaging: Cloudinary
cloudinary://, Mux, OneSignal, Pusher, PubNubpub-c-/sub-c-, Zapier webhook URL - cloud: GCP service-account JSON (
"type": "service_account"+private_key_id), Cloudflare global API key (37 hex + email), Azure SAS (sig=+se=) and function keys, Sentry org tokensntrys_, Supabase management tokensbp_relabelled correctly - forms and scheduling: Typeform
tfp_, Calendly, Uploadcare, Unsplash
Public-by-design tiers to add alongside: Stripe pk_test_, PostHog project key, Pusher app key, PubNub subscribe key, Algolia search-only key (distinct from admin), LaunchDarkly client-side id.
Test suite: one seeded generator per new pattern in tests/security/leaked-secrets/generators.ts, one near-miss negative (single corrupted character or wrong prefix) per pattern, and a prefilter assertion once the keyword prefilter lands (#363).
Acceptance Criteria
- Every service listed above has a pattern with at least one positive in two contexts and one near-miss negative in the corpus harness
- No new pattern is keyed on a dictionary word; every CONTEXT pattern requires the keyword within 40 characters before a word-bounded value
- The public-tier keys listed report as
leaked-secrets-public, never high or medium - Re-running the private 776-site corpus adds no more than 5 new medium-tier sites
- The rule doc page and the skill README pattern count match the code
Activity
nc9 commentedon Oct 11, 2026
Checked against current main (ad95fb2): mostly STILL TRUE.
packages/rules/src/security/leaked-secrets.tsnow has 103 named patterns. Some services on the list are covered:phc_(line 618, public tier), Amplitude (814), Contentful (852), Intercom app id and LaunchDarkly client id (2105, 2109), Supabasesbp_(204), Algolia and Stripepk_test_(public).Not found in the source: Shopify
shpat_/shpss_/shpca_/shppa_, New RelicNRJS-, Typeformtfp_, PubNubpub-c-/sub-c-, Cloudinarycloudinary://, Notionntn_, the GCP service-account JSON shape, Zapier hook URLs, the Azure SASsig=+se=pair, Storyblok, Webflow, Airtable, Mux, OneSignal, Pusher, Calendly, Uploadcare and Unsplash. Sentrysntrys_appears only in a comment (line 2334), not as a pattern.feat(rules): leaked-secrets detector parity with trufflehog for brows…
perf(rules): gate Airtable and Mux on their names, share keyword regi…
docs(changelog): leaked-secrets adds 34 patterns, not 33 #359
feat(rules): leaked-secrets detector parity with trufflehog for brows…
perf(rules): gate Airtable and Mux on their names, share keyword regi…
docs(changelog): leaked-secrets adds 34 patterns, not 33 #359
test(rules): regenerate leaked-secrets snapshot for the new patterns …
feat(rules): leaked-secrets detector parity with trufflehog for brows…
perf(rules): gate Airtable and Mux on their names, share keyword regi…
docs(changelog): leaked-secrets adds 34 patterns, not 33 #359
test(rules): regenerate leaked-secrets snapshot for the new patterns …
feat(rules): leaked-secrets detector parity with trufflehog for brows…