@clear-capabilities/agentic-security-scanner 0.136.9 → 0.137.1
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 +659 -0
- package/bin/agentic-security.js +3 -0
- package/dist/435.index.js +9 -1
- package/dist/agentic-security.mjs +3 -3
- package/dist/agentic-security.mjs.sha256 +1 -1
- package/package.json +8 -8
- package/src/dataflow/CLAUDE.md +3 -1
- package/src/dataflow/catalog-expanded.js +1 -0
- package/src/dataflow/catalog.js +157 -31
- package/src/dataflow/engine.js +318 -55
- package/src/dataflow/index.js +15 -0
- package/src/dataflow/points-to.js +19 -6
- package/src/engine.js +281 -207
- package/src/ir/CLAUDE.md +14 -3
- package/src/ir/class-hierarchy.js +57 -11
- package/src/ir/index.js +14 -2
- package/src/ir/parser-cs.js +451 -31
- package/src/ir/parser-java.js +205 -2
- package/src/ir/parser-js.js +149 -2
- package/src/ir/parser-kt.js +436 -18
- package/src/ir/parser-php.js +587 -29
- package/src/ir/parser-py.helper.py +32 -2
- package/src/ir/parser-py.js +31 -4
- package/src/ir/parser-rb.js +124 -19
- package/src/lsp/server.js +7 -1
- package/src/mcp/tools.js +9 -1
- package/src/posture/clustering.js +12 -1
- package/src/posture/sbom.js +2 -2
package/bin/agentic-security.js
CHANGED
|
@@ -433,6 +433,9 @@ async function cmdScan(args) {
|
|
|
433
433
|
if (process.stderr.isTTY) process.stderr.write(`\r[${p.phase}] ${p.current}/${p.total} ${p.file} `);
|
|
434
434
|
},
|
|
435
435
|
});
|
|
436
|
+
// The BOM/attestation emitters stamp the producing engine's version into
|
|
437
|
+
// their metadata; carry the real package version so it can never drift.
|
|
438
|
+
if (meta && meta.engineVersion == null) meta.engineVersion = PKG_VERSION;
|
|
436
439
|
if (process.stderr.isTTY) process.stderr.write('\r' + ' '.repeat(80) + '\r');
|
|
437
440
|
|
|
438
441
|
const only = args.flags.only;
|
package/dist/435.index.js
CHANGED
|
@@ -814,8 +814,16 @@ const scan_diff = {
|
|
|
814
814
|
fileContents[rel] = content;
|
|
815
815
|
}
|
|
816
816
|
|
|
817
|
+
// PRD R1 (docs/DETECTION_GAP_REMEDIATION_PRD.md): deep mode is default-on
|
|
818
|
+
// for the interactive CLI scan but was never requested here, so an
|
|
819
|
+
// agent's pre-write self-correction scan was regex/AST-only — blind to
|
|
820
|
+
// any bug whose source and sink are connected only through a call
|
|
821
|
+
// (`fileContents` scopes the deep engine's IR to exactly the files
|
|
822
|
+
// passed in, same bound this tool already enforces via MAX_FILES_PER_SCAN
|
|
823
|
+
// / MAX_TOTAL_SCAN_BYTES, so this does not turn scan_diff into a
|
|
824
|
+
// full-project deep scan).
|
|
817
825
|
const runScan = await getRunScan();
|
|
818
|
-
const result = await runScan(sessionRoot, { network: false, fileContents });
|
|
826
|
+
const result = await runScan(sessionRoot, { network: false, fileContents, deep: true, deepInCi: true });
|
|
819
827
|
const wantSet = new Set(Object.keys(fileContents));
|
|
820
828
|
const sevRank = { info: 0, low: 1, medium: 2, high: 3, critical: 4 };
|
|
821
829
|
const min = sevRank[severity] ?? 0;
|