GenAI-Data-Security-Initiative icon indicating copy to clipboard operation
GenAI-Data-Security-Initiative copied to clipboard

[scanner] P02.9 JWT branch: add exclude_globs and drop to low/warn

Open emmanuelgjr opened this issue 4 months ago • 0 comments

Control: DSGAI02 · Classification: VALUE-BEARING

The JWT branch of P02.9 (eyJ...) false-positives on JS bundles, lockfiles, and test snapshots. Constrain it:

exclude_globs: ['*.min.js', 'dist/**', '**/__snapshots__/**', '*.lock', '*.map']

Keep the JWT branch at confidence low, signal warn. Add a negative fixture (a *.min.js containing an eyJ... string that must not fire).


Blocked on Phase 1. Mergeable after the fixture corpus and self-test CI land (PR-04 / PR-06) — feel free to draft now. Add your positive + negative test snippets to the fixture app when you open the PR.

Never paste real credentials. Use obviously fake canonical values (e.g. sk-proj-FAKE00000000000000000000000000).

emmanuelgjr avatar Jul 18 '26 04:07 emmanuelgjr