LLM false-positive filtering for Semgrep security alerts
Security teams that already run Semgrep can add an LLM review step after the scanner, using the Semgrep finding, CWE label, file location, and nearby source context as the only input. The output should be a structured true-positive or false-positive judgment plus a short reason. If the model times out or returns malformed JSON, the workflow should keep the original Semgrep alert open.
QASecClaw gives this shape a useful test case. On OWASP Benchmark v1.2, it cut Semgrep false positives from 560 to 64 while recall dropped by 3.1%. That is enough evidence for a limited pilot on noisy rule families such as injection, XSS, and weak cryptography. The first local check should compare model-filtered alerts against recent human triage decisions and report both false-positive reduction and missed real findings.