GenAI-Data-Security-Initiative
GenAI-Data-Security-Initiative copied to clipboard
[scanner] Follow-ups from #82: remaining absence-based rules, P02.9 excludes, confidence vs SARIF level
Follow-ups noted while resolving #19, #22, #23 and #24 in #82. None is blocking.
- 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.
- P08 note. It still says absence in a high-risk EU AI Act use case is a FAIL. Confirm that is intended, given #22.
- 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.jsis arguably a real leak. Consider dropping them from P02.9. - Confidence vs SARIF level. #22 assumed the SARIF
leveland the report rendering consumeconfidence. They do not: SARIFlevelcomes from the finding's status, andconfidenceappears only in the SARIF rule properties and the Semgrep metadata. Either wireconfidenceinto the level, or correct the docs that imply it. - Sample report. After #82 the fixture's DSGAI20 is WARN (it was FAIL), and
DSGAI-samplereport.pngwas not regenerated.