A self-hosted classifier for findings: it cuts false positives today and becomes an asset for embedded and PLC security over time. This is a research track, branched off the pilot work; the survey below is its starting point.
Why
In the first acceptance round (2026-09-28), some findings were obviously false to a person looking at the code snippet, yet they were reported. There are two different failures behind that, and each needs its own fix:
The rule fired wrongly. The finding is false in the code.
The finding is real, but its CRA mapping is wrong. It doesn't violate the requirement it was attached to.
Today the LLM triage (stage 5) and the grounded judge (stages 5b/5c) are the only filters.
Hard constraints
Everything runs on our own infrastructure. No customer code goes to third-party APIs, including Jev.
Licences must allow commercial use.
Nothing is ever hidden automatically. A classifier may only suggest "Zu prüfen" or Fehlalarm, with a reason a person can check.
Cold start: it has to be useful with almost no labels and get better as users label findings.
Design (proposal, to be refined in the branch)
Split the Fehlalarm label into "Fehlalarm – Regel" and "Fehlalarm – Zuordnung". Store the reviewer's reasoning with every label (the "Ihre Einschätzung" text). This is the one product change the pilot should get now: every label recorded before the split stays mixed.
Weeks 0–4, almost no labels:
Measure each rule's noise on Juliet 1.3 (CC0) and CASTLE (MIT), and fix the noisy custom CRA rules directly.
Give the judge a rubric per CWE plus a focused code slice, as ZeroFalse and LLM4FPM do. Qwen3.8-27B is now on staging.
Optionally add VulnLLM-R-7B (Apache-2.0) as a second opinion.
Embed each finding (code window, rule, CWE), with jina-embeddings-v2-base-code or our existing bge, and show the nearest labelled findings as the suggestion's reason.
A few hundred labels: logistic regression or SetFit over the embeddings plus structured features (scanner, rule, CWE, severity, path signals). Calibrate it so it can abstain, and keep separate models for Regel and Zuordnung.
A few thousand labels: a LoRA fine-tune of a 7B model (Qwen2.5-Coder-7B or VulnLLM-R-7B) that maps finding, code window and CRA requirement to a label plus a reason. The PLC labels become our own dataset; none exists publicly.
Evaluation:
Split by customer or project and by time, never randomly.
Guard metric: how often a real issue is suggested as Fehlalarm, per rule and per CWE.
Then the precision of the Fehlalarm suggestions and the reviewer time saved.
Spot-check a sample of accepted suggestions.
Where it plugs in
Between detection and the LLM triage (stage 5 in pipeline/orchestrator.rs):
A confident suggestion skips the LLM for that finding.
An uncertain one goes to the LLM as today.
Labels come from status changes in status_history together with developer_feedback.
Survey (2026-09-28)
Self-hosted FP classifier for SAST findings: survey (2026-09-28)
1. SAST false-positive classifiers / triage
LLM4FPM (C/C++; Cppcheck, Infer, CSA warnings). Joern-based code-property-graph slice goes to a local LLM (qwen2.5-32b on 4x RTX 3090). F1 > 99% on Juliet. Raised D2A label accuracy from about 53% to 86% (libtiff subset). No code link found.https://arxiv.org/abs/2411.03079, https://arxiv.org/html/2411.03079
ZeroFalse (Java only; OWASP Benchmark with 1,974 cases, OpenVuln with 58 alerts). The analyzer output is enriched with the dataflow trace, CWE id and a CWE-specific rubric, then an LLM judges it. F1 0.912 on OWASP and 0.955 on OpenVuln. CWE-specialised prompts beat generic ones. Open-weight models tested include Qwen3-235B and gpt-oss-20B/120B. Repo is MIT. https://arxiv.org/html/2510.02534, https://github.com/mhsniranmanesh/ZeroFalse
Memoir: turns historical FP alerts into retrievable "semantic memories" that grow as verified cases come in. F1 99.43% on CWE-Bench-Java (Java/CodeQL). No code found.https://arxiv.org/abs/2608.09181
Sifting the Noise (ISSTA 2026): Aider, OpenHands and SWE-agent used as FP filters. OWASP FP rate went from over 92% to 6.3%. Includes a C/C++ OSS-Fuzz post-cutoff study. Backbones are closed models (Claude Sonnet 4, GPT-5), so this is evidence for the pattern, not a component we can use. https://arxiv.org/abs/2601.22952
Kharkar et al., ICSE 2022: a transformer FP filter for null-deref and resource-leak warnings, reported precision +17.5%. I could not verify the analyzer, language or code release. https://arxiv.org/abs/2203.09907
ACWRecommender (C): UniXcoder for actionable-warning detection plus weak-supervision reranking. Built from 68,274 reversions in top-500 GitHub C repos. https://arxiv.org/abs/2511.12229
Generalisation warning: PrimeVul reports that a 7B model scoring 68.26% F1 on BigVul drops to 3.09% on PrimeVul. https://arxiv.org/abs/2403.18624. DiverseVul concludes that "deep learning is still not ready for vulnerability detection". https://arxiv.org/abs/2304.00409
These are function-level detectors, not FP classifiers. At most they are a second opinion on the code window. ReGVD and SecurityEval were not surveyed.
3. Datasets
Dataset
What
Size
Licence
D2A
Infer warnings on C, labelled by before/after-fix differential analysis
None of these contain semgrep or cppcheck output in the form our pipeline produces. Transfer to our rules is unproven.
4. PLC / IEC 61131-3
Very little exists.
An MDPI Mathematics 2025 paper LoRA-fine-tunes CodeLlama, Qwen2.5-Coder and StarCoder2 (7B, 4-bit) on real plus synthetic ST covering 5 vulnerability types, and reports gains for binary and multi-class classification. I could not verify the dataset, the code availability or the numbers (the site returned 403). https://www.mdpi.com/2227-7390/13/19/3211
No public PLC FP or TP warning dataset was found. Our own labels would be the asset.
5. Few-label / online learning
Active learning: an incremental SVM found more than 90% of actionable warnings while humans ignored 70–80% of them. https://arxiv.org/abs/1911.01387. That study uses the FindBugs "golden features" data lineage, which Kang et al. showed suffers from leakage and duplication; with those fixed, performance is only marginally better than always predicting "actionable". https://arxiv.org/abs/2202.05982. Treat all warning-triage numbers as optimistic unless the splits are leakage-free.
Retrieval over past labels: the idea is backed by Memoir and by Semgrep memories (above). I found no paper doing embedding + kNN over user labels specifically for warning triage.
SetFit: general few-shot results, e.g. 8 labels per class competitive with RoBERTa-Large trained on about 3k labels. Not validated on warnings. https://huggingface.co/docs/setfit/en/index
Conformal prediction / abstention: exists as a general framework (e.g. https://arxiv.org/html/2607.27143). I found no application to warning triage.
6. Staged recommendation
Before anything else, split the label. "Fehlalarm" should become two labels: Regel (the rule fired wrongly) and Zuordnung (the finding is real but the CRA mapping is wrong). They have different fixes (rule tuning vs. mapping) and would otherwise blend into one target. Record the rationale text with every label.
Weeks 0–4 (near-zero labels)
Run our detectors on Juliet 1.3 (CC0) and CASTLE (MIT). This gives per-rule and per-CWE FP priors, which shows which custom CRA semgrep and cppcheck rules are noisy, and lets us fix rules directly.
Upgrade the LLM judge ZeroFalse-style: add a CWE-specific rubric and the flow/context slice (LLM4FPM shows local Qwen-class models work on C/C++). Optionally run VulnLLM-R-7B (Apache-2.0, same Qwen base) as a second opinion on the code window.
Embed (jina-v2-code) the code window plus rule id plus CWE. As labels arrive, show the kNN neighbours ("3 similar findings were marked Fehlalarm – Regel") as the rationale. Output is only a "Zu prüfen" or Fehlalarm suggestion.
A few hundred labels: a logistic or SetFit head on the embeddings plus metadata (scanner, rule, CWE, severity, path features such as vendor/HAL/test directories). Calibrate the probabilities and add conformal abstention so that low-confidence cases stay "Zu prüfen". Keep the Regel and Zuordnung heads separate.
A few thousand labels: LoRA fine-tune a 7B model (Qwen2.5-Coder-7B or VulnLLM-R-7B) on (finding, code window, CRA requirement) → label plus rationale. Retrain periodically. The PLC subset becomes a proprietary dataset.
Evaluation
Split by project/customer and by time, never at random. PrimeVul and Kang et al. show how much random splits inflate results.
The guard metric is the TP-suggested-as-FP rate, meaning real issues the classifier suggests are Fehlalarm, reported per rule and per CWE. Secondary metrics are the precision of the Fehlalarm suggestion and the reviewer time saved.
Audit a sample of accepted suggestions against the source.
Nothing is ever auto-hidden.
Related:
#383 (derive checks from controls; the judge improvements VulnAgent-R2 and IRIS),
A self-hosted classifier for findings: it cuts false positives today and becomes an asset for embedded and PLC security over time. This is a **research track**, branched off the pilot work; the survey below is its starting point.
## Why
In the first acceptance round (2026-09-28), some findings were obviously false to a person looking at the code snippet, yet they were reported. There are two different failures behind that, and each needs its own fix:
1. **The rule fired wrongly.** The finding is false in the code.
2. **The finding is real, but its CRA mapping is wrong.** It doesn't violate the requirement it was attached to.
Today the LLM triage (stage 5) and the grounded judge (stages 5b/5c) are the only filters.
## Hard constraints
- **Everything runs on our own infrastructure.** No customer code goes to third-party APIs, **including Jev**.
- **Licences must allow commercial use.**
- **Nothing is ever hidden automatically.** A classifier may only *suggest* "Zu prüfen" or Fehlalarm, with a reason a person can check.
- **Cold start:** it has to be useful with almost no labels and get better as users label findings.
## Design (proposal, to be refined in the branch)
1. **Split the Fehlalarm label** into **"Fehlalarm – Regel"** and **"Fehlalarm – Zuordnung"**. Store the reviewer's reasoning with every label (the "Ihre Einschätzung" text). This is the one product change the pilot should get **now**: every label recorded before the split stays mixed.
2. **Weeks 0–4, almost no labels:**
- Measure each rule's noise on Juliet 1.3 (CC0) and CASTLE (MIT), and fix the noisy custom CRA rules directly.
- Give the judge a rubric per CWE plus a focused code slice, as ZeroFalse and LLM4FPM do. Qwen3.8-27B is now on staging.
- Optionally add VulnLLM-R-7B (Apache-2.0) as a second opinion.
- Embed each finding (code window, rule, CWE), with jina-embeddings-v2-base-code or our existing bge, and show the nearest labelled findings as the suggestion's reason.
3. **A few hundred labels:** logistic regression or SetFit over the embeddings plus structured features (scanner, rule, CWE, severity, path signals). Calibrate it so it can abstain, and keep separate models for Regel and Zuordnung.
4. **A few thousand labels:** a LoRA fine-tune of a 7B model (Qwen2.5-Coder-7B or VulnLLM-R-7B) that maps finding, code window and CRA requirement to a label plus a reason. The PLC labels become our own dataset; none exists publicly.
5. **Evaluation:**
- Split by customer or project and by time, never randomly.
- **Guard metric:** how often a real issue is suggested as Fehlalarm, per rule and per CWE.
- Then the precision of the Fehlalarm suggestions and the reviewer time saved.
- Spot-check a sample of accepted suggestions.
## Where it plugs in
Between detection and the LLM triage (stage 5 in `pipeline/orchestrator.rs`):
- A confident suggestion skips the LLM for that finding.
- An uncertain one goes to the LLM as today.
- Labels come from status changes in `status_history` together with `developer_feedback`.
## Survey (2026-09-28)
# Self-hosted FP classifier for SAST findings: survey (2026-09-28)
## 1. SAST false-positive classifiers / triage
- **LLM4FPM** (C/C++; Cppcheck, Infer, CSA warnings). Joern-based code-property-graph slice goes to a local LLM (qwen2.5-32b on 4x RTX 3090). F1 > 99% on Juliet. Raised D2A label accuracy from about 53% to 86% (libtiff subset). **No code link found.** https://arxiv.org/abs/2411.03079, https://arxiv.org/html/2411.03079
- **ZeroFalse** (Java only; OWASP Benchmark with 1,974 cases, OpenVuln with 58 alerts). The analyzer output is enriched with the dataflow trace, CWE id and a CWE-specific rubric, then an LLM judges it. F1 0.912 on OWASP and 0.955 on OpenVuln. CWE-specialised prompts beat generic ones. Open-weight models tested include Qwen3-235B and gpt-oss-20B/120B. Repo is MIT. https://arxiv.org/html/2510.02534, https://github.com/mhsniranmanesh/ZeroFalse
- **IRIS** (neuro-symbolic: CodeQL plus an LLM that infers sources and sinks and filters paths). **Java only.** MIT. https://github.com/iris-sast/iris, https://arxiv.org/abs/2405.17238
- **Memoir**: turns historical FP alerts into retrievable "semantic memories" that grow as verified cases come in. F1 99.43% on CWE-Bench-Java (Java/CodeQL). **No code found.** https://arxiv.org/abs/2608.09181
- **Sifting the Noise** (ISSTA 2026): Aider, OpenHands and SWE-agent used as FP filters. OWASP FP rate went from over 92% to 6.3%. Includes a C/C++ OSS-Fuzz post-cutoff study. Backbones are closed models (Claude Sonnet 4, GPT-5), so this is evidence for the pattern, not a component we can use. https://arxiv.org/abs/2601.22952
- **Kharkar et al., ICSE 2022**: a transformer FP filter for null-deref and resource-leak warnings, reported precision +17.5%. I could not verify the analyzer, language or code release. https://arxiv.org/abs/2203.09907
- **ACWRecommender** (C): UniXcoder for actionable-warning detection plus weak-supervision reranking. Built from 68,274 reversions in top-500 GitHub C repos. https://arxiv.org/abs/2511.12229
- **Semgrep Assistant "memories"** (commercial; the numbers are vendor-reported): users agree with its triage more than 96% of the time. One customer saw a further 2.8x improvement after 5 memories. https://semgrep.dev/blog/2025/announcing-ai-noise-filtering-and-triage-memories/, https://semgrep.dev/blog/2025/building-an-appsec-ai-that-security-researchers-agree-with-96-of-the-time/
**Takeaway:** the only C/C++ SAST-FP work with local open models (LLM4FPM) has no code. No released FP-classifier weights were found.
## 2. Vulnerability classifiers with weights
| Model | Weights / licence | Notes |
|---|---|---|
| LineVul (CodeBERT) | Weights on Google Drive, MIT | BigVul C/C++; reported F1 0.91 https://github.com/awsm-research/LineVul |
| VulBERTa (RoBERTa, C/C++) | Pretrained and fine-tuned weights, MIT | https://github.com/ICL-ml4csec/VulBERTa |
| VulnLLM-R-7B (Qwen2.5-7B-Instruct) | HF weights, Apache-2.0 | Reasoning detector for C/C++/Py/Java; evaluated on PrimeVul, Juliet 1.3, ARVO https://huggingface.co/UCSB-SURFI/VulnLLM-R-7B |
| DeepDFA (GNN) | Replication package; licence not verified | https://github.com/ISU-PAAL/DeepDFA |
| UniXcoder-base | Apache-2.0 base encoder | https://huggingface.co/microsoft/unixcoder-base |
**Generalisation warning:** PrimeVul reports that a 7B model scoring 68.26% F1 on BigVul drops to 3.09% on PrimeVul. https://arxiv.org/abs/2403.18624. DiverseVul concludes that "deep learning is still not ready for vulnerability detection". https://arxiv.org/abs/2304.00409
These are **function-level detectors, not FP classifiers**. At most they are a second opinion on the code window. ReGVD and SecurityEval were not surveyed.
## 3. Datasets
| Dataset | What | Size | Licence |
|---|---|---|---|
| D2A | Infer warnings on C, labelled by before/after-fix differential analysis | 6 projects (OpenSSL, FFmpeg, HTTPD, NGINX, libtiff, libav); counts not verified | Apache-2.0 repo, archived 2024 https://github.com/IBM/D2A. Labels are noisy (about 53% accuracy per LLM4FPM) |
| Juliet C/C++ 1.3 | Synthetic CWE test cases | 118 CWEs | CC0 / US public domain https://samate.nist.gov/SARD/test-suites/112, https://zenodo.org/records/4701387 |
| CASTLE | Hand-made C micro-benchmarks | 250 programs, 25 CWEs | MIT https://github.com/CASTLE-Benchmark/CASTLE-Benchmark |
| PrimeVul | C/C++ functions | about 7k vulnerable, 229k benign | MIT repo https://github.com/DLVulDet/PrimeVul |
| DiverseVul | C/C++ functions | 18,945 vulnerable, 330,492 benign | Licence not stated https://github.com/wagner-group/diversevul |
| AW4C | C actionable warnings | 38,134 | Licence not verified https://dl.acm.org/doi/10.1145/3643991.3644885 |
| OWASP Benchmark | Java, a mix of real and fake vulnerabilities | about 2,740 cases | GPL-2.0 https://github.com/OWASP-Benchmark/BenchmarkJava |
| NASCAR | Java SpotBugs, PMD and Checkstyle warnings | 20 projects | CC-BY-4.0 https://arxiv.org/abs/2511.10323 |
None of these contain semgrep or cppcheck output in the form our pipeline produces. Transfer to our rules is unproven.
## 4. PLC / IEC 61131-3
Very little exists.
- An MDPI *Mathematics* 2025 paper LoRA-fine-tunes CodeLlama, Qwen2.5-Coder and StarCoder2 (7B, 4-bit) on real plus synthetic ST covering 5 vulnerability types, and reports gains for binary and multi-class classification. I could not verify the dataset, the code availability or the numbers (the site returned 403). https://www.mdpi.com/2227-7390/13/19/3211
- ICSQuartz is an ST fuzzer that fuzzed 116 ICS programs and found real bugs. It is dynamic, not a classifier. https://www.ndss-symposium.org/wp-content/uploads/2025-795-paper.pdf
- ICSPatch works on binaries and memory, not ST source. https://arxiv.org/abs/2212.04229
- iec-checker is an ST/PLCopen XML linter with 26 PLCopen checks, LGPL-3.0. https://github.com/jubnzv/iec-checker
No public PLC FP or TP warning dataset was found. **Our own labels would be the asset.**
## 5. Few-label / online learning
- **Active learning:** an incremental SVM found more than 90% of actionable warnings while humans ignored 70–80% of them. https://arxiv.org/abs/1911.01387. That study uses the FindBugs "golden features" data lineage, which Kang et al. showed suffers from leakage and duplication; with those fixed, performance is only marginally better than always predicting "actionable". https://arxiv.org/abs/2202.05982. **Treat all warning-triage numbers as optimistic unless the splits are leakage-free.**
- **Retrieval over past labels:** the idea is backed by Memoir and by Semgrep memories (above). I found **no paper doing embedding + kNN over user labels** specifically for warning triage.
- **SetFit:** general few-shot results, e.g. 8 labels per class competitive with RoBERTa-Large trained on about 3k labels. Not validated on warnings. https://huggingface.co/docs/setfit/en/index
- **Embedding models:** jina-embeddings-v2-base-code is Apache-2.0, 161M parameters, lists C/C++, and has 8k context. https://huggingface.co/jinaai/jina-embeddings-v2-base-code. nomic-embed-code is 7B, Apache-2.0, and does not list C/C++. https://huggingface.co/nomic-ai/nomic-embed-code
- **Conformal prediction / abstention:** exists as a general framework (e.g. https://arxiv.org/html/2607.27143). I found no application to warning triage.
## 6. Staged recommendation
**Before anything else, split the label.** "Fehlalarm" should become two labels: **Regel** (the rule fired wrongly) and **Zuordnung** (the finding is real but the CRA mapping is wrong). They have different fixes (rule tuning vs. mapping) and would otherwise blend into one target. Record the rationale text with every label.
**Weeks 0–4 (near-zero labels)**
1. Run *our* detectors on Juliet 1.3 (CC0) and CASTLE (MIT). This gives per-rule and per-CWE FP priors, which shows which custom CRA semgrep and cppcheck rules are noisy, and lets us fix rules directly.
2. Upgrade the LLM judge ZeroFalse-style: add a CWE-specific rubric and the flow/context slice (LLM4FPM shows local Qwen-class models work on C/C++). Optionally run VulnLLM-R-7B (Apache-2.0, same Qwen base) as a second opinion on the code window.
3. Embed (jina-v2-code) the code window plus rule id plus CWE. As labels arrive, show the kNN neighbours ("3 similar findings were marked Fehlalarm – Regel") as the rationale. Output is only a "Zu prüfen" or Fehlalarm *suggestion*.
**A few hundred labels:** a logistic or SetFit head on the embeddings plus metadata (scanner, rule, CWE, severity, path features such as vendor/HAL/test directories). Calibrate the probabilities and add conformal abstention so that low-confidence cases stay "Zu prüfen". Keep the Regel and Zuordnung heads separate.
**A few thousand labels:** LoRA fine-tune a 7B model (Qwen2.5-Coder-7B or VulnLLM-R-7B) on (finding, code window, CRA requirement) → label plus rationale. Retrain periodically. The PLC subset becomes a proprietary dataset.
**Evaluation**
- Split by **project/customer and by time**, never at random. PrimeVul and Kang et al. show how much random splits inflate results.
- The guard metric is the **TP-suggested-as-FP rate**, meaning real issues the classifier suggests are Fehlalarm, reported per rule and per CWE. Secondary metrics are the precision of the Fehlalarm suggestion and the reviewer time saved.
- Audit a sample of accepted suggestions against the source.
- Nothing is ever auto-hidden.
---
Related:
- #383 (derive checks from controls; the judge improvements VulnAgent-R2 and IRIS),
- #415 (triage cap and concurrency),
- orca-platform#40 (Qwen3.8-27B).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
A self-hosted classifier for findings: it cuts false positives today and becomes an asset for embedded and PLC security over time. This is a research track, branched off the pilot work; the survey below is its starting point.
Why
In the first acceptance round (2026-09-28), some findings were obviously false to a person looking at the code snippet, yet they were reported. There are two different failures behind that, and each needs its own fix:
Today the LLM triage (stage 5) and the grounded judge (stages 5b/5c) are the only filters.
Hard constraints
Design (proposal, to be refined in the branch)
Where it plugs in
Between detection and the LLM triage (stage 5 in
pipeline/orchestrator.rs):status_historytogether withdeveloper_feedback.Survey (2026-09-28)
Self-hosted FP classifier for SAST findings: survey (2026-09-28)
1. SAST false-positive classifiers / triage
Takeaway: the only C/C++ SAST-FP work with local open models (LLM4FPM) has no code. No released FP-classifier weights were found.
2. Vulnerability classifiers with weights
Generalisation warning: PrimeVul reports that a 7B model scoring 68.26% F1 on BigVul drops to 3.09% on PrimeVul. https://arxiv.org/abs/2403.18624. DiverseVul concludes that "deep learning is still not ready for vulnerability detection". https://arxiv.org/abs/2304.00409
These are function-level detectors, not FP classifiers. At most they are a second opinion on the code window. ReGVD and SecurityEval were not surveyed.
3. Datasets
None of these contain semgrep or cppcheck output in the form our pipeline produces. Transfer to our rules is unproven.
4. PLC / IEC 61131-3
Very little exists.
No public PLC FP or TP warning dataset was found. Our own labels would be the asset.
5. Few-label / online learning
6. Staged recommendation
Before anything else, split the label. "Fehlalarm" should become two labels: Regel (the rule fired wrongly) and Zuordnung (the finding is real but the CRA mapping is wrong). They have different fixes (rule tuning vs. mapping) and would otherwise blend into one target. Record the rationale text with every label.
Weeks 0–4 (near-zero labels)
A few hundred labels: a logistic or SetFit head on the embeddings plus metadata (scanner, rule, CWE, severity, path features such as vendor/HAL/test directories). Calibrate the probabilities and add conformal abstention so that low-confidence cases stay "Zu prüfen". Keep the Regel and Zuordnung heads separate.
A few thousand labels: LoRA fine-tune a 7B model (Qwen2.5-Coder-7B or VulnLLM-R-7B) on (finding, code window, CRA requirement) → label plus rationale. Retrain periodically. The PLC subset becomes a proprietary dataset.
Evaluation
Related: