@clear-capabilities/agentic-security-scanner 0.152.0 → 0.153.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/dist/1336.index.js +16010 -0
- package/dist/agentic-security.mjs +3 -3
- package/dist/agentic-security.mjs.sha256 +1 -1
- package/package.json +4 -3
- package/src/dataflow/backward.js +104 -7
- package/src/dataflow/cross-service-taint.js +154 -11
- package/src/dataflow/engine.js +23 -1
- package/src/dataflow/exploit-prover.js +111 -23
- package/src/dataflow/index.js +12 -2
- package/src/dataflow/string-domain.js +36 -0
- package/src/engine.js +10 -6
- package/src/ir/class-hierarchy.js +160 -1
- package/src/report/index.js +12 -0
- package/src/dataflow/smt-feasibility.js +0 -189
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,60 @@
|
|
|
9
9
|
> make the history less accurate, not more.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
## 0.153.0 - Taint-engine points-to precision, and two default-adjacent capabilities rebuilt from broken to sound
|
|
13
|
+
|
|
14
|
+
Four taint-engine capabilities landed since 0.152.0, continuing the "next-generation taint analysis
|
|
15
|
+
capabilities" initiative: two narrow points-to-precision fixes for JS/TS class-hierarchy resolution,
|
|
16
|
+
and two substantial rebuilds of capabilities found to be structurally non-functional on real data —
|
|
17
|
+
one opt-in (SMT path feasibility), one running by default (cross-service schema-driven taint).
|
|
18
|
+
|
|
19
|
+
- **Cross-call-site parameter type inference for CHA** (`dataflow/class-hierarchy.js`): JS/TS gains
|
|
20
|
+
the same "driver constructs a concrete instance, passes it as a parameter to a helper that invokes
|
|
21
|
+
a virtual method" resolution Java/C# already had via declared parameter types — a narrow,
|
|
22
|
+
well-scoped slice of Andersen-style points-to analysis, not the full thing. A call site's literal
|
|
23
|
+
`new ClassName(...)` argument, or an identifier whose type was already established, now propagates
|
|
24
|
+
onto the callee's parameter; two call sites disagreeing on the class permanently refuse to resolve
|
|
25
|
+
it rather than guess.
|
|
26
|
+
- **Factory-function return-type inference for CHA**: the sibling gap on the RETURN side —
|
|
27
|
+
`function makeHelper() { return new Helper(); } const h = makeHelper();` — closed with the same
|
|
28
|
+
"never guess" discipline: a function only qualifies when every reachable `return` is a `new
|
|
29
|
+
ClassName(...)` of the same class.
|
|
30
|
+
- **SMT/exploit-proof path feasibility, rebuilt from the ground up** (`dataflow/exploit-prover.js`,
|
|
31
|
+
`dataflow/backward.js`): the pre-existing SMT-lite infeasibility check was fed a flat list of
|
|
32
|
+
taint sources reaching a sink, never a real sequential source-to-sink path, so its own
|
|
33
|
+
(correctly-written) metacharacter-exclusion logic had nothing genuine to walk — confirmed by
|
|
34
|
+
direct code reading, and by its own tests only ever exercising hand-fabricated fixtures the real
|
|
35
|
+
engine never produces. A second, parallel, independently-broken module (`smt-feasibility.js`, also
|
|
36
|
+
opt-in) had the identical defect plus a direct `severity` mutation that violated this codebase's
|
|
37
|
+
recall-preserving-demotion convention; retired outright rather than fixed twice. Three real engine
|
|
38
|
+
bugs were found and fixed to make the rebuild work on real data: `sliceBackward` couldn't trace
|
|
39
|
+
through a call-shaped sanitizer RHS, `engine.js`'s own finding-normalization allowlist silently
|
|
40
|
+
dropped `argIndex`, and a compound (string-concatenation) sink argument couldn't be resolved. The
|
|
41
|
+
rebuilt check now refuses to conclude safety the moment an opaque, unmodeled call sits between a
|
|
42
|
+
trusted sanitizer and a sink, verified via direct adversarial reproduction. `z3-solver` is added as
|
|
43
|
+
a genuine `optionalDependencies` entry, with its current (load-only, not yet query-discharging)
|
|
44
|
+
scope documented honestly rather than overclaimed. Opt-in via `AGENTIC_SECURITY_SYMEXEC=1`.
|
|
45
|
+
- **Cross-service schema-driven taint, rebuilt from a complete no-op** (`dataflow/cross-service-taint.js`):
|
|
46
|
+
this module runs BY DEFAULT (opt-out via `AGENTIC_SECURITY_NO_CROSS_SERVICE=1`) but was found, via
|
|
47
|
+
direct reproduction, to have never worked at all for real findings — an HTTP path-template matcher
|
|
48
|
+
that failed on the module's own documented example (a `:param` vs. `{param}` placeholder-syntax
|
|
49
|
+
mismatch), a field-name correlation check that read finding properties (`source.snippet`/
|
|
50
|
+
`source.expr`) that do not exist on any real finding, and a report-layer allowlist that silently
|
|
51
|
+
dropped the annotation even when it did fire. Rebuilt with structural path-template matching and
|
|
52
|
+
provenance-based correlation for HTTP transport (a real, catalog-backed signal, since a real
|
|
53
|
+
finding never retains the specific field name that reached a sink) with a best-effort text-match
|
|
54
|
+
fallback for other transports; the report-layer allowlist fix means the annotation now actually
|
|
55
|
+
reaches SARIF/JSON/HTML output. A genuine remaining scope limitation — no mechanism seeds a NEW
|
|
56
|
+
taint source from a `consumes` declaration — is documented in the module's own header rather than
|
|
57
|
+
left implicit.
|
|
58
|
+
- **Measured**: both rebuilds verified via full real-corpus TEST-split runs for all three
|
|
59
|
+
SARD/Juliet languages, byte-identical to the 0.152.0 baseline in every case (Java macroF1=59.1%,
|
|
60
|
+
C# macroF1=68.6%, PHP macroF1=48.2%) — neither the SARD fixtures nor the CVE-replay/self-scan/
|
|
61
|
+
mutation/layer-recall corpora exercise these specific capabilities, so this release ships real,
|
|
62
|
+
adversarially-tested engine correctness with no corpus-visible movement, consistent with this
|
|
63
|
+
project's own established precedent for capability work independent of any one benchmark.
|
|
64
|
+
|
|
65
|
+
|
|
12
66
|
## 0.152.0 - Rust: first-class language, and the SARD 80% F1 push's taint-engine architecture work
|
|
13
67
|
|
|
14
68
|
Rust joins the first-class language set (JS/TS, Python, Java, Kotlin, Go, Ruby, PHP, C#) with both
|