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

[scanner] Follow-ups from #82: remaining absence-based rules, P02.9 excludes, confidence vs SARIF level

Open emmanuelgjr opened this issue 2 months ago • 0 comments

Follow-ups noted while resolving #19, #22, #23 and #24 in #82. None is blocking.

  1. Other absence-based rules. #22 named P07.x, P08.x, P16.1, P17.1–5 and P20. Four more rules also reach their verdict from the absence of evidence and were left unchanged: P05.1, P06.5, P11.1, P18.4. P06.5 and P11.1 still FAIL on absence. Decide per rule whether they should follow #22 (low / warn) or stay as they are, with a reason.
  2. P08 note. It still says absence in a high-risk EU AI Act use case is a FAIL. Confirm that is intended, given #22.
  3. P02.9 excludes. P02.9 still skips bundles, lockfiles and snapshots (*.min.js, dist/**, **/__snapshots__/**, …). Those excludes existed because of JWT false positives. JWTs now have their own rule (P02.10), so a provider key inside a *.min.js is arguably a real leak. Consider dropping them from P02.9.
  4. Confidence vs SARIF level. #22 assumed the SARIF level and the report rendering consume confidence. They do not: SARIF level comes from the finding's status, and confidence appears only in the SARIF rule properties and the Semgrep metadata. Either wire confidence into the level, or correct the docs that imply it.
  5. Sample report. After #82 the fixture's DSGAI20 is WARN (it was FAIL), and DSGAI-samplereport.png was not regenerated.

emmanuelgjr avatar Oct 01 '26 04:10 emmanuelgjr