You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trufflehog scans every decoded form of a chunk (base64, escaped unicode, UTF-16, HTML entities) to depth 5. We scan raw bytes only, so a key inside an entity-encoded attribute ("apiKey":"sk_live_…"), a sk_live_ escaped JSON string, or a base64 config blob in a data attribute or window.__CONFIG__ is missed.
Scope for the web case:
HTML entity decode of attribute values and text nodes before the html-location scan (the DOM already gives decoded text; use it instead of doc.toString())
\uXXXX and \xXX escape decoding inside inline and external script strings
base64 decoding of standalone blobs of 64+ chars that decode to printable text, depth 2, with the decoded location reported as <location> (base64)
Never decode inside a data: image URI or an SRI hash
Acceptance Criteria
A key entity-encoded inside an attribute is reported at location html
A key written with \u escapes inside a script string is reported at the script's location
A key inside a base64 blob assigned to a global or data attribute is reported with a (base64) suffix on the location
A 200 KB base64 image data URI adds under 5 ms to the page scan and reports nothing
Bench (bun run bench:secrets) regresses by no more than 15% ms/MB against the README baseline
Activity
feat(rules): decode encoded content and token structure in leaked-sec…
feat(rules): decode encoded content and token structure in leaked-sec…
feat(rules): decode encoded content and token structure in leaked-sec…
feat(rules): decode encoded content and token structure in leaked-sec…
feat(rules): decode encoded content and token structure in leaked-sec…