mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 02:08:18 +00:00
spec(contributor-scan): close the deferred decisions 4.1 and 4.2 on the maintainer's record
Task 4.1 (Req 7.1), decided 2026-11-24: "C memory-safety beyond string-function misuse is out of scope. Record that, and say so per corpus slice." The decision is recorded in the spec's amendment record, the steering overview and roadmap, and the user docs; the pair corpus README states it per slice (vfc, sast, local). The maintainer stated no reason, so the records name the evidence that was on record and label it as such: the memory family models calls, not arithmetic; no execution tier is adopted, since Rung.EXECUTION_CONFIRMED has no producer; of the 176 vfc pairs none is labelled as going through a string API the family models (129 carry no sink label, counted 2026-11-24). With it, task 5.3 (the C harvest of Req 9.2) and task 2.13 are withdrawn, and task 2.15 closes on its recorded-decision branch. Req 9.2 is left unmet and its text stands. The entailment at contrib/examples/iccfrompng.c:124, libpng's last one by task 2.13's account, now has nothing that removes it; that is recorded as to be re-measured. Task 4.2 (Req 7.2), decided 2026-11-24: "Keep both, record why. No output change for JSON, SARIF or MCP consumers. Record the reason in the spec and docs, and revisit when detection-core revises its consumer contract." rung is the model ladder's verdict; evidence_level is the pattern and overlay pipeline's vocabulary, which the overlay raises only to static_corroboration. Folding one into the other would present a text match as a model verdict or change the JSON, SARIF and MCP output. No code changes. Reviewed in four adversarial rounds; the fourth approved both records.
This commit is contained in:
@@ -266,7 +266,8 @@ each; everything past exhaustion counted into `regions_unjudged`.
|
|||||||
2. **Scale it (Req 3, 4).** Budget and ranking, then the first run against a pinned known-vulnerable
|
2. **Scale it (Req 3, 4).** Budget and ranking, then the first run against a pinned known-vulnerable
|
||||||
checkout, the measurement that has never been taken and can reshape the rest.
|
checkout, the measurement that has never been taken and can reshape the rest.
|
||||||
3. **Ship it (Req 5, 6).** Contributor output; build and verify the image that is currently only defined.
|
3. **Ship it (Req 5, 6).** Contributor output; build and verify the image that is currently only defined.
|
||||||
4. **Close the deferred (Req 7).** The memory decision; retire `evidence_level`.
|
4. **Close the deferred (Req 7).** The memory decision; retire `evidence_level`. *(Decided 2026-11-24: both
|
||||||
|
are recorded and `evidence_level` is kept; see the amendment record in requirements.md.)*
|
||||||
5. **Grow the corpus (Req 9).** PHP/WordPress first: the families the model arbitrates best. C CVEs only
|
5. **Grow the corpus (Req 9).** PHP/WordPress first: the families the model arbitrates best. C CVEs only
|
||||||
after 7.1.
|
after 7.1.
|
||||||
6. **Regression baselines (Req 10).**
|
6. **Regression baselines (Req 10).**
|
||||||
|
|||||||
@@ -240,3 +240,48 @@ reasoned claim. Task 2.17 carries that half.
|
|||||||
stopped free work visible at all.
|
stopped free work visible at all.
|
||||||
* **Req 11.2's byte-identical gates held through every one of nine defect fixes**, which says the same thing
|
* **Req 11.2's byte-identical gates held through every one of nine defect fixes**, which says the same thing
|
||||||
from the other side: the corpus could not have caught any of them.
|
from the other side: the corpus could not have caught any of them.
|
||||||
|
|
||||||
|
## Amendment record, deferred decisions (approved 2026-11-24)
|
||||||
|
|
||||||
|
The maintainer closed the two deferred decisions of Requirement 7 on 2026-11-24. Neither decision rewrites a
|
||||||
|
numbered acceptance criterion above. The decisions are quoted verbatim. The evidence listed under each is what
|
||||||
|
was on record when the choice was made, not a reason the maintainer stated.
|
||||||
|
|
||||||
|
| decision | discharges | consequence |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| "C memory-safety beyond string-function misuse is out of scope. Record that, and say so per corpus slice." | Req 7.1 | Task 4.1 closes on the record. Task 5.3, the harvest of Req 9.2 that was gated on Req 7.1, is withdrawn. Task 2.13 is withdrawn with it. Task 2.15 closes on its recorded-decision branch. |
|
||||||
|
| "Keep both, record why. No output change for JSON, SARIF or MCP consumers. Record the reason in the spec and docs, and revisit when detection-core revises its consumer contract." | Req 7.2 | Task 4.2 closes on the record. The scope line above, "retiring `evidence_level`", and design step 4, "retire `evidence_level`", are discharged by this record, not by a retirement. |
|
||||||
|
|
||||||
|
**What the first decision means here.** In task 2.15's words: `c/memory` is scoped to string-function misuse
|
||||||
|
and makes no claim about arithmetic overflows. Nothing beyond that scope is built or adopted for C. The pair
|
||||||
|
corpus README says so for each slice that holds C pairs: `vfc`, `sast` and `local`. Requirement 9.2, the
|
||||||
|
real-world C library CVEs, is left unmet by the withdrawal of task 5.3; its text stands.
|
||||||
|
|
||||||
|
**The evidence on record for it.**
|
||||||
|
|
||||||
|
- The `memory` family models calls, not arithmetic, and says so in its own `limits` (`ruleset/families.toml`).
|
||||||
|
- `c/memory` has produced zero true positives and three classes of false positive; libpng is the one
|
||||||
|
measured C checkout.
|
||||||
|
- No execution tier is adopted: `Rung.EXECUTION_CONFIRMED` has no producer in `src/`.
|
||||||
|
- Labels, counted from `benchmarks/pairs/vfc/catalog.toml` on 2026-11-24: of the 176 pairs, 129 carry no sink
|
||||||
|
label, and none of the 16 distinct named sinks (across 47 pairs) is one the `memory` family models: `gets`,
|
||||||
|
`strcpy`, `strcat`, `sprintf` or a non-literal format string.
|
||||||
|
|
||||||
|
**Why 2.13 is withdrawn.** 2.13 would stop `c/memory` entailing a `strcpy` into a destination allocated to
|
||||||
|
fit, which is inside the scope that stays. Its Observable needs a second C checkout with a genuine CWE-121,
|
||||||
|
because a rule extended until one checkout is clean is the overfitting Req 8 exists to prevent, and it depends
|
||||||
|
on 5.3 for that checkout. With the harvest withdrawn there is no second checkout, so the rule is not extended.
|
||||||
|
By task 2.13's own account the entailment at `contrib/examples/iccfrompng.c:124` was libpng's last one
|
||||||
|
(`benchmarks/measurements/2026-09-09-repo-libpng-bounds.json`). Nothing removes it now, so the roadmap's
|
||||||
|
second release criterion, zero known-false entailed findings on every pinned checkout, is not expected to
|
||||||
|
hold on libpng. That is to be re-measured, not assumed.
|
||||||
|
|
||||||
|
**Why both vocabularies are kept.** They are not two names for one thing. `rung` is the model ladder's
|
||||||
|
verdict, raised only by the arbiter with a verdict behind it. `evidence_level` is the pattern and overlay
|
||||||
|
pipeline's own vocabulary (`verification.py`, `EvidenceLevel`). The overlay assigns only `suspicion` and
|
||||||
|
`static_corroboration` today, so the difference a reader meets is `static_corroboration` against
|
||||||
|
`model_corroborated`: a text match must not be presented as a model verdict. The verification records and the
|
||||||
|
ranker read `evidence_level`, the report uses it to group pattern-only matches, and 52 rule keys declare
|
||||||
|
`min_evidence_level`. Removing the field would change the JSON, SARIF and MCP output, which the decision rules
|
||||||
|
out. A single vocabulary is a consumer-contract change and belongs to detection-core; the decision is
|
||||||
|
revisited when detection-core revises that contract.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"feature_name": "contributor-scan",
|
"feature_name": "contributor-scan",
|
||||||
"created_at": "2026-09-08T20:00:00Z",
|
"created_at": "2026-09-08T20:00:00Z",
|
||||||
"updated_at": "2026-09-14T06:10:56.975614+00:00",
|
"updated_at": "2026-11-24T10:41:15.412732+00:00",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"phase": "implementation",
|
"phase": "implementation",
|
||||||
"approvals": {
|
"approvals": {
|
||||||
@@ -51,6 +51,11 @@
|
|||||||
"at": "2026-09-14T05:58:44.810694+00:00",
|
"at": "2026-09-14T05:58:44.810694+00:00",
|
||||||
"source": "ok",
|
"source": "ok",
|
||||||
"action": "Accepted the proposed shared engine/census/context follow-up after group 8 NO-GO. Task 2.19 covers the confirmed missing Gruntfile and honest census-completeness repair; runtime and independent qualification gates remain unchanged."
|
"action": "Accepted the proposed shared engine/census/context follow-up after group 8 NO-GO. Task 2.19 covers the confirmed missing Gruntfile and honest census-completeness repair; runtime and independent qualification gates remain unchanged."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"at": "2026-11-24T10:05:00+00:00",
|
||||||
|
"source": "approved",
|
||||||
|
"action": "Closed the memory-family decision (task 4.1): \"C memory-safety beyond string-function misuse is out of scope. Record that, and say so per corpus slice.\" Task 5.3 and task 2.13 are withdrawn; task 2.15 closes on its recorded-decision branch. Kept evidence_level beside rung (task 4.2): \"Keep both, record why. No output change for JSON, SARIF or MCP consumers. Record the reason in the spec and docs, and revisit when detection-core revises its consumer contract.\""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"implementation_verification": {
|
"implementation_verification": {
|
||||||
|
|||||||
@@ -235,7 +235,7 @@
|
|||||||
- _Requirements: 8.1, 8.2_
|
- _Requirements: 8.1, 8.2_
|
||||||
- _Depends: 2.9_
|
- _Depends: 2.9_
|
||||||
|
|
||||||
- [ ] 2.13 A destination allocated to size is bounded too
|
- [x] 2.13 A destination allocated to size is bounded too
|
||||||
- 2.12's remainder, and libpng's last entailed finding: `strcpy(output + len, ".icc")` at
|
- 2.12's remainder, and libpng's last entailed finding: `strcpy(output + len, ".icc")` at
|
||||||
contrib/examples/iccfrompng.c:124, where `output = malloc(len + 5)` and a five-byte copy lands at offset
|
contrib/examples/iccfrompng.c:124, where `output = malloc(len + 5)` and a five-byte copy lands at offset
|
||||||
`len`. It fits exactly. There is no comparison anywhere, so the bound rule cannot see it -- the
|
`len`. It fits exactly. There is no comparison anywhere, so the bound rule cannot see it -- the
|
||||||
@@ -248,6 +248,9 @@
|
|||||||
Without the second half this task should not be closed.
|
Without the second half this task should not be closed.
|
||||||
- _Requirements: 8.1, 8.2_
|
- _Requirements: 8.1, 8.2_
|
||||||
- _Depends: 2.12, 5.3_
|
- _Depends: 2.12, 5.3_
|
||||||
|
- _Withdrawn 2026-11-24, with task 5.3._ Its Observable needs a second C checkout with a genuine CWE-121,
|
||||||
|
which 5.3 was to supply. The maintainer's decision on task 4.1 withdrew that harvest, so the rule is not
|
||||||
|
extended and the entailment at `contrib/examples/iccfrompng.c:124` stands until it is re-measured.
|
||||||
|
|
||||||
- [ ] 2.14 Control dependence is not populated, and two arbiters want it
|
- [ ] 2.14 Control dependence is not populated, and two arbiters want it
|
||||||
- Measured, not assumed: **0 of 13,184 calls in the libpng CPG and 0 of 1,152 in the vampi CPG have a
|
- Measured, not assumed: **0 of 13,184 calls in the libpng CPG and 0 of 1,152 in the vampi CPG have a
|
||||||
@@ -265,7 +268,7 @@
|
|||||||
- _Requirements: 4.2, 8.1_
|
- _Requirements: 4.2, 8.1_
|
||||||
- _Depends: 2.12_
|
- _Depends: 2.12_
|
||||||
|
|
||||||
- [ ] 2.15 A C checkout whose CVE goes through a sink we model
|
- [x] 2.15 A C checkout whose CVE goes through a sink we model
|
||||||
- libpng cannot demonstrate a C true positive, and pinning an older vulnerable commit would not change
|
- libpng cannot demonstrate a C true positive, and pinning an older vulnerable commit would not change
|
||||||
that. **Every one of the twelve files using `strcpy`/`strcat`/`sprintf`/`gets` is under `contrib/`; the
|
that. **Every one of the twelve files using `strcpy`/`strcat`/`sprintf`/`gets` is under `contrib/`; the
|
||||||
library itself uses none of them.** Its overflows are array and pointer arithmetic and `memcpy` sizing,
|
library itself uses none of them.** Its overflows are array and pointer arithmetic and `memcpy` sizing,
|
||||||
@@ -293,6 +296,9 @@
|
|||||||
leave it implying it covers a class it cannot see.
|
leave it implying it covers a class it cannot see.
|
||||||
- _Requirements: 4.1, 4.4_
|
- _Requirements: 4.1, 4.4_
|
||||||
- _Depends: 2.12_
|
- _Depends: 2.12_
|
||||||
|
- _Closed 2026-11-24 on its recorded-decision branch._ The decision that `c/memory` is scoped to
|
||||||
|
string-function misuse and makes no claim about arithmetic overflows is recorded under task 4.1 and in
|
||||||
|
the amendment record at the end of `requirements.md`. No such checkout was pinned.
|
||||||
|
|
||||||
- [x] 2.16 Say what `c/memory` actually covers, or retire it
|
- [x] 2.16 Say what `c/memory` actually covers, or retire it
|
||||||
- Its score so far is zero true positives and every finding a false one: 26 from a substring match, 3 from
|
- Its score so far is zero true positives and every finding a false one: 26 from a substring match, 3 from
|
||||||
@@ -375,19 +381,30 @@
|
|||||||
|
|
||||||
## Group 4 — Close the deferred decisions
|
## Group 4 — Close the deferred decisions
|
||||||
|
|
||||||
- [ ] 4.1 The memory-family decision
|
- [x] 4.1 The memory-family decision
|
||||||
- Either reach `memory` through an adopted execution tier, or record explicitly that C memory-safety is out
|
- Either reach `memory` through an adopted execution tier, or record explicitly that C memory-safety is out
|
||||||
of scope. 173 of the 176 real-world CVE pairs sit idle behind a stub; the decision gates Req 9.2.
|
of scope. 173 of the 176 real-world CVE pairs sit idle behind a stub; the decision gates Req 9.2.
|
||||||
- Observable: the decision and its reason are recorded where a later reader finds them; if out of scope,
|
- Observable: the decision and its reason are recorded where a later reader finds them; if out of scope,
|
||||||
the corpus says so per slice.
|
the corpus says so per slice.
|
||||||
- _Requirements: 7.1, 7.3_
|
- _Requirements: 7.1, 7.3_
|
||||||
|
- _Closed 2026-11-24 on the out-of-scope branch._ Maintainer decision, verbatim: "C memory-safety beyond
|
||||||
|
string-function misuse is out of scope. Record that, and say so per corpus slice." The evidence on record
|
||||||
|
for it, which is not a reason the maintainer stated, is in the amendment record at the end of
|
||||||
|
`requirements.md`, in the steering overview and roadmap, and in `docs/detection-techniques.md`.
|
||||||
|
`benchmarks/pairs/README.md` says so per slice, for `vfc`, `sast` and `local`. Req 9.2 is left unmet by
|
||||||
|
the withdrawal of task 5.3; its text stands.
|
||||||
|
|
||||||
- [ ] 4.2 Retire `evidence_level`
|
- [x] 4.2 Retire `evidence_level`
|
||||||
- It duplicates `rung` in intent. Retire it, or record why both are kept. Note the legacy value
|
- It duplicates `rung` in intent. Retire it, or record why both are kept. Note the legacy value
|
||||||
`static_corroboration` comes from the flat-IR overlay, which Req 4.4 of the predecessor demotes to the
|
`static_corroboration` comes from the flat-IR overlay, which Req 4.4 of the predecessor demotes to the
|
||||||
suspicion band — so a straight rename would overstate it.
|
suspicion band — so a straight rename would overstate it.
|
||||||
- Observable: one vocabulary, or a recorded reason for two; SARIF and JSON consumers considered.
|
- Observable: one vocabulary, or a recorded reason for two; SARIF and JSON consumers considered.
|
||||||
- _Requirements: 7.2, 7.3_
|
- _Requirements: 7.2, 7.3_
|
||||||
|
- _Closed 2026-11-24 on the recorded-reason branch._ Maintainer decision, verbatim: "Keep both, record
|
||||||
|
why. No output change for JSON, SARIF or MCP consumers. Record the reason in the spec and docs, and
|
||||||
|
revisit when detection-core revises its consumer contract." The reason is in the amendment record at the
|
||||||
|
end of `requirements.md`, in `docs/detection-techniques.md` and in `docs/architecture.md`. JSON, SARIF
|
||||||
|
and MCP output are unchanged.
|
||||||
|
|
||||||
## Group 5 — Grow the corpus
|
## Group 5 — Grow the corpus
|
||||||
|
|
||||||
@@ -431,11 +448,13 @@
|
|||||||
- The slice where the stated audience works, currently 35 pairs. Same read-check discipline.
|
- The slice where the stated audience works, currently 35 pairs. Same read-check discipline.
|
||||||
- _Requirements: 9.3, 9.4, 9.5, 9.6, 9.7_
|
- _Requirements: 9.3, 9.4, 9.5, 9.6, 9.7_
|
||||||
|
|
||||||
- [ ] 5.3 Real-world C library CVEs
|
- [x] 5.3 Real-world C library CVEs
|
||||||
- libpng and the image libraries, OpenSSH, libpam, kernel modules. **Gated on 4.1**: until the memory
|
- libpng and the image libraries, OpenSSH, libpam, kernel modules. **Gated on 4.1**: until the memory
|
||||||
decision closes these would join 173 idle pairs.
|
decision closes these would join 173 idle pairs.
|
||||||
- _Requirements: 9.2, 9.4, 9.5, 9.6_
|
- _Requirements: 9.2, 9.4, 9.5, 9.6_
|
||||||
- _Depends: 4.1_
|
- _Depends: 4.1_
|
||||||
|
- _Withdrawn 2026-11-24._ The maintainer's decision on task 4.1 put C memory-safety beyond string-function
|
||||||
|
misuse out of scope, so this harvest would only add idle pairs. Req 9.2 is left unmet; its text stands.
|
||||||
|
|
||||||
- [x] 5.4 WordPress entry points, and the one-verdict-per-region limit
|
- [x] 5.4 WordPress entry points, and the one-verdict-per-region limit
|
||||||
- Two things stand between the PHP facts and a WordPress result, and the second was found by running the
|
- Two things stand between the PHP facts and a WordPress result, and the second was found by running the
|
||||||
|
|||||||
@@ -184,9 +184,16 @@ invocation per query kind.
|
|||||||
|
|
||||||
## What is not true yet
|
## What is not true yet
|
||||||
|
|
||||||
- **The C story does not work.** `c/memory` has produced zero true positives and three distinct classes of
|
- **The C story does not work, and its scope is now decided.** `c/memory` has produced zero true positives
|
||||||
false one. It models string functions; libpng overflows through arithmetic, and its library code never
|
and three distinct classes of false one. It models string functions; libpng overflows through arithmetic,
|
||||||
calls a sink we model. This is structural, not tuning.
|
and its library code never calls a sink we model. This is structural, not tuning. **Decided by the
|
||||||
|
maintainer on 2026-11-24 (contributor-scan task 4.1): "C memory-safety beyond string-function misuse is out
|
||||||
|
of scope. Record that, and say so per corpus slice."** The evidence on record: the family models calls, not
|
||||||
|
arithmetic; no execution tier is adopted, since `Rung.EXECUTION_CONFIRMED` has no producer; and in the
|
||||||
|
real-world `vfc` slice no pair is labelled as going through a string API the `memory` family models (129 of
|
||||||
|
176 carry no sink label). With it the C harvest (task 5.3) and the allocated-destination rule (task 2.13)
|
||||||
|
are withdrawn, and the pair corpus README says so for every slice that holds C pairs. The evidence on record
|
||||||
|
and the counts are in the spec's amendment record.
|
||||||
- **Two languages are demonstrated.** Python end to end, and PHP on a real plugin slice where it found a
|
- **Two languages are demonstrated.** Python end to end, and PHP on a real plugin slice where it found a
|
||||||
real CVE. Ruby and Go still have **zero families** — Joern parses them and the engine says nothing.
|
real CVE. Ruby and Go still have **zero families** — Joern parses them and the engine says nothing.
|
||||||
- **Not at repository scale for PHP.** The 637-file checkout does not load; the 2-file slice does. That
|
- **Not at repository scale for PHP.** The 637-file checkout does not load; the 2-file slice does. That
|
||||||
|
|||||||
@@ -557,7 +557,7 @@ distrust SAST.
|
|||||||
|
|
||||||
PHP moves up: it is the shortest path from here to a target the maintainer named, and it is the case the
|
PHP moves up: it is the shortest path from here to a target the maintainer named, and it is the case the
|
||||||
existing arbiter is best suited to. The C decision moves up with it, because criterion 4 needs `c/memory`
|
existing arbiter is best suited to. The C decision moves up with it, because criterion 4 needs `c/memory`
|
||||||
either earning its place or being scoped, and scoping it is cheap.
|
either earning its place or being scoped, and scoping it is cheap. Taken on 2026-11-24: scoped.
|
||||||
|
|
||||||
## The one test everything is ordered by
|
## The one test everything is ordered by
|
||||||
|
|
||||||
@@ -610,10 +610,14 @@ Only after a scan finishes is there any point tuning what it finds.
|
|||||||
8. For **2.14**, check control dependence. It is absent from both CPGs, so every guard question runs on CFG dominance. Find
|
8. For **2.14**, check control dependence. It is absent from both CPGs, so every guard question runs on CFG dominance. Find
|
||||||
out whether Joern's CDG pass can be applied from the query script and what it costs. If it cannot, that is
|
out whether Joern's CDG pass can be applied from the query script and what it costs. If it cannot, that is
|
||||||
a real bound on what this engine can reason about and should be recorded as one.
|
a real bound on what this engine can reason about and should be recorded as one.
|
||||||
9. **2.13** covers a destination allocated to size. It is deliberately blocked on 6, so the rule can be measured for what
|
9. **2.13** was to cover a `strcpy` copy into a destination allocated to fit. **Withdrawn 2026-11-24:** its
|
||||||
it *silences* as well as what it clears.
|
Observable needs a second C checkout with a genuine CWE-121, and the harvest that was to supply one (5.3)
|
||||||
|
is withdrawn.
|
||||||
10. Ship **Group 3–4**: contributor output, the Docker image, the memory-family decision, and retirement of
|
10. Ship **Group 3–4**: contributor output, the Docker image, the memory-family decision, and retirement of
|
||||||
`evidence_level` now that the rung carries the meaning.
|
`evidence_level`. **Decided 2026-11-24:** C memory-safety beyond string-function misuse is out of scope
|
||||||
|
(contributor-scan task 4.1, so the C harvest in 5.3 is withdrawn), and `evidence_level` stays beside `rung`
|
||||||
|
as the overlay pipeline's own vocabulary, with the reason recorded (task 4.2). Revisit it when detection-core
|
||||||
|
revises its consumer contract.
|
||||||
|
|
||||||
## Alongside — keep the codebase from growing into the problem
|
## Alongside — keep the codebase from growing into the problem
|
||||||
|
|
||||||
@@ -633,6 +637,9 @@ Only after a scan finishes is there any point tuning what it finds.
|
|||||||
The order matters: **question 1 lands before question 2 starts**, or adopting an IR makes
|
The order matters: **question 1 lands before question 2 starts**, or adopting an IR makes
|
||||||
the growth problem worse rather than better.
|
the growth problem worse rather than better.
|
||||||
|
|
||||||
|
**Overtaken 2026-11-24:** C memory-safety beyond string-function misuse is out of scope (contributor-scan task
|
||||||
|
4.1), so question 2 is not pursued.
|
||||||
|
|
||||||
## After — the feedback loop
|
## After — the feedback loop
|
||||||
|
|
||||||
11. **`finding-feedback-loop`** (design generated, awaiting approval). Its ledger and dismissals are useful
|
11. **`finding-feedback-loop`** (design generated, awaiting approval). Its ledger and dismissals are useful
|
||||||
|
|||||||
@@ -27,19 +27,37 @@ Pairs in this directory **must not** join `LANGUAGE_MANIFESTS`.
|
|||||||
## Slices
|
## Slices
|
||||||
|
|
||||||
- **local** — in-tree fixture counterparts (`app.py` vs `safe.py`, …). CI gate:
|
- **local** — in-tree fixture counterparts (`app.py` vs `safe.py`, …). CI gate:
|
||||||
every local pair must pass (`python -m openultrasast.pair_gate`).
|
every local pair must pass (`python -m openultrasast.pair_gate`). Its one
|
||||||
|
C++ pair (`local-cpp-buffer`) exercises string APIs the `memory` family
|
||||||
|
models, so it is inside the scope that stays (decision of 2026-11-24,
|
||||||
|
under `vfc`).
|
||||||
- **github** — real commit/function pairs (SVEN, CWE-Bench-Java, NVD patterns).
|
- **github** — real commit/function pairs (SVEN, CWE-Bench-Java, NVD patterns).
|
||||||
Measured, not a 90% smoke gate. Misses here are the honesty / evolve-the-harness
|
Measured, not a 90% smoke gate. Misses here are the honesty / evolve-the-harness
|
||||||
dashboard.
|
dashboard.
|
||||||
- **sast** — OWASP Benchmark Java/Python true-vs-false files and Juliet
|
- **sast** — OWASP Benchmark Java/Python true-vs-false files and Juliet
|
||||||
bad-vs-good sinks (`benchmarks/pairs/sast/`). Score is Youden (TPR − FPR).
|
bad-vs-good sinks (`benchmarks/pairs/sast/`). Score is Youden (TPR − FPR).
|
||||||
Honesty dashboard, not a CI fail.
|
Honesty dashboard, not a CI fail. Its two C pairs (`juliet-c-cwe134-printf`,
|
||||||
|
`juliet-c-cwe121-strcpy`) go through string APIs the `memory` family models, so
|
||||||
|
they are inside the scope that stays (decision of 2026-11-24, under `vfc`).
|
||||||
- **vfc** — reviewed isolated functions from OpenSSL, Firefox, Chromium, and
|
- **vfc** — reviewed isolated functions from OpenSSL, Firefox, Chromium, and
|
||||||
curl (`benchmarks/pairs/vfc/`). Overlay vs inventory scoreboard. Honesty
|
curl (`benchmarks/pairs/vfc/`). Overlay vs inventory scoreboard. Honesty
|
||||||
dashboard, not a CI fail. Training labels (vuln vs fixed) are
|
dashboard, not a CI fail. Training labels (vuln vs fixed) are
|
||||||
`vfc/training/manifest.jsonl` (vuln vs fixed, one snapshot per line).
|
`vfc/training/manifest.jsonl` (vuln vs fixed, one snapshot per line).
|
||||||
Grow with a blobless `git log --grep=CVE-202` mine plus `vfc/harvest.py`,
|
Grow with a blobless `git log --grep=CVE-202` mine plus `vfc/harvest.py`,
|
||||||
then `vfc/generate_catalog.py` (maintainer, not CI).
|
then `vfc/generate_catalog.py` (maintainer, not CI).
|
||||||
|
**The model layer decides none of this slice** (counts taken from
|
||||||
|
`vfc/catalog.toml` on 2026-11-24). 176 pairs: 173 in C or C++, 3 without a
|
||||||
|
language. No pair is labelled as going through a string API that the
|
||||||
|
`memory` family models (`gets`, `strcpy`, `strcat`, `sprintf` or a
|
||||||
|
non-literal format string): 129 pairs carry no sink label, and of the 16
|
||||||
|
distinct named sinks (across 47 pairs) the most common are `NULL` (15
|
||||||
|
pairs), `memcpy` (13) and `free` (4). 130 pairs record their mechanism only
|
||||||
|
as `other`; 44 name one of the mechanisms the `memory` family declares. The
|
||||||
|
family's own `verifier` is `"none"`. By maintainer decision of 2026-11-24, C
|
||||||
|
memory-safety beyond string-function misuse is out of scope, so these pairs
|
||||||
|
are not waiting for a rule. The harvest that would have grown the slice for
|
||||||
|
the model layer is withdrawn (contributor-scan task 5.3); the mine above
|
||||||
|
grows the overlay scoreboard only.
|
||||||
- **vibe-py** — Real-Vuln-Benchmark functions (`benchmarks/pairs/vibe-py/`):
|
- **vibe-py** — Real-Vuln-Benchmark functions (`benchmarks/pairs/vibe-py/`):
|
||||||
Python web repos pinned by commit, one vulnerable function per pair with a
|
Python web repos pinned by commit, one vulnerable function per pair with a
|
||||||
false-positive trap from the same repo as the fixed twin. Today only the 15
|
false-positive trap from the same repo as the fixed twin. Today only the 15
|
||||||
|
|||||||
@@ -84,6 +84,9 @@ suspicion ─▶ static_corroboration ─▶ crash_reproduced ─▶ root_cause_
|
|||||||
call-graph, route, CLI, parser or dynamic evidence;
|
call-graph, route, CLI, parser or dynamic evidence;
|
||||||
- `static_corroboration` with function-level reachability: `ACCEPTED`.
|
- `static_corroboration` with function-level reachability: `ACCEPTED`.
|
||||||
|
|
||||||
|
The rung ladder above and this evidence ladder are two vocabularies kept apart on purpose: a text
|
||||||
|
match is `static_corroboration` here and is not a rung. `detection-techniques.md` says why.
|
||||||
|
|
||||||
A rejected finding becomes a **scoped false-positive learning** (`calibration.py`). It has a
|
A rejected finding becomes a **scoped false-positive learning** (`calibration.py`). It has a
|
||||||
scope and a reason from a fixed taxonomy: `unreachable_path`, `missing_attacker_control`,
|
scope and a reason from a fixed taxonomy: `unreachable_path`, `missing_attacker_control`,
|
||||||
`sanitizer_disproved`, `static_rule_mismatch`, `incorrect_model_assumption`, `duplicate`,
|
`sanitizer_disproved`, `static_rule_mismatch`, `incorrect_model_assumption`, `duplicate`,
|
||||||
|
|||||||
@@ -161,6 +161,13 @@ A frontend is the Joern parser that turns one language into a CPG.
|
|||||||
| Java | `javasrc2cpg` | |
|
| Java | `javasrc2cpg` | |
|
||||||
| C, C++ | `c2cpg` | Adds `c_bounds_arithmetic_unmodeled`; the `memory` family models calls, not arithmetic (`ruleset/families.toml:91`). |
|
| C, C++ | `c2cpg` | Adds `c_bounds_arithmetic_unmodeled`; the `memory` family models calls, not arithmetic (`ruleset/families.toml:91`). |
|
||||||
|
|
||||||
|
C memory-safety beyond string-function misuse is out of scope (maintainer decision, 2026-11-24;
|
||||||
|
contributor-scan task 4.1). The `memory` family stays scoped to the string and format APIs it
|
||||||
|
names, and makes no claim about arithmetic overflows: an index, a pointer offset or a computed
|
||||||
|
`memcpy` size. No execution tier is adopted to reach them. The labels on record, counted on
|
||||||
|
2026-11-24: of the 176 pairs in the real-world `vfc` slice, none is labelled as going through a
|
||||||
|
string API the family models, and 129 carry no sink label.
|
||||||
|
|
||||||
Joern is pinned at `v4.0.625` in the image (`Dockerfile:14`, `docker-compose.yml:15`,
|
Joern is pinned at `v4.0.625` in the image (`Dockerfile:14`, `docker-compose.yml:15`,
|
||||||
`ops/joern.py`), on `eclipse-temurin:21-jre-noble` (`Dockerfile:12`). The pin stayed there after
|
`ops/joern.py`), on `eclipse-temurin:21-jre-noble` (`Dockerfile:12`). The pin stayed there after
|
||||||
the graph fix. That decision is recorded in `2026-09-20-php-runtime-after-graph-fix.json`
|
the graph fix. That decision is recorded in `2026-09-20-php-runtime-after-graph-fix.json`
|
||||||
@@ -727,3 +734,15 @@ The three representations are kept separate on purpose. A finding carries the ru
|
|||||||
degradations of the representation that produced it. So a reader can tell a flow the graph
|
degradations of the representation that produced it. So a reader can tell a flow the graph
|
||||||
entailed from a statement a regex matched. A reader can also tell "did not look" from "looked
|
entailed from a statement a regex matched. A reader can also tell "did not look" from "looked
|
||||||
and found nothing".
|
and found nothing".
|
||||||
|
|
||||||
|
`evidence_level` is kept beside `rung` for the same reason (decided 2026-11-24: both stay;
|
||||||
|
contributor-scan task 4.2). They are not two names for one thing. `rung` is the model ladder's
|
||||||
|
verdict (`model/ladder.py`): suspicion, `model_corroborated`, `model_entailed`,
|
||||||
|
`execution_confirmed`, raised only by the arbiter and only with a verdict behind it.
|
||||||
|
`evidence_level` is the pattern and overlay pipeline's own vocabulary (`verification.py`,
|
||||||
|
`EvidenceLevel`): suspicion, `static_corroboration`, `crash_reproduced`,
|
||||||
|
`root_cause_explained`, `exploit_demonstrated`, `patch_validated`. The verification records
|
||||||
|
read it, ranking reads it, and the report uses it to group pattern-only matches. Folding one
|
||||||
|
vocabulary into the other would either present a text match as a model verdict or change the
|
||||||
|
JSON, SARIF and MCP output and the `min_evidence_level` declared on all 52 rules. A reader
|
||||||
|
must never take `static_corroboration` as `model_corroborated`.
|
||||||
|
|||||||
Reference in New Issue
Block a user