@clear-capabilities/agentic-security-scanner 0.74.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.
Files changed (331) hide show
  1. package/CHANGELOG.md +1580 -0
  2. package/bin/.agentic-security/findings.json +1577 -0
  3. package/bin/.agentic-security/last-scan.json +1577 -0
  4. package/bin/.agentic-security/last-scan.json.sig +1 -0
  5. package/bin/.agentic-security/scan-history.json +465 -0
  6. package/bin/.agentic-security/streak.json +25 -0
  7. package/bin/agentic-security-audit.js +198 -0
  8. package/bin/agentic-security-consistency.js +80 -0
  9. package/bin/agentic-security-diff.js +136 -0
  10. package/bin/agentic-security-lsp.js +12 -0
  11. package/bin/agentic-security-mcp.js +40 -0
  12. package/bin/agentic-security-rule.js +153 -0
  13. package/bin/agentic-security.js +1683 -0
  14. package/dist/117.index.js +207 -0
  15. package/dist/178.index.js +250 -0
  16. package/dist/218.index.js +793 -0
  17. package/dist/227.index.js +192 -0
  18. package/dist/301.index.js +167 -0
  19. package/dist/384.index.js +18 -0
  20. package/dist/476.index.js +126 -0
  21. package/dist/513.index.js +373 -0
  22. package/dist/520.index.js +13 -0
  23. package/dist/601.index.js +1038 -0
  24. package/dist/634.index.js +1892 -0
  25. package/dist/637.index.js +216 -0
  26. package/dist/660.index.js +131 -0
  27. package/dist/675.index.js +451 -0
  28. package/dist/826.index.js +188 -0
  29. package/dist/830.index.js +133 -0
  30. package/dist/agentic-security.mjs +272 -0
  31. package/dist/agentic-security.mjs.sha256 +1 -0
  32. package/dist/calibration-seed.json +27 -0
  33. package/package.json +77 -0
  34. package/src/.agentic-security/findings.json +80844 -0
  35. package/src/.agentic-security/last-scan.json +80844 -0
  36. package/src/.agentic-security/last-scan.json.sig +1 -0
  37. package/src/.agentic-security/scan-history.json +8408 -0
  38. package/src/.agentic-security/streak.json +26 -0
  39. package/src/badge.js +188 -0
  40. package/src/compare.js +203 -0
  41. package/src/dataflow/.agentic-security/findings.json +3487 -0
  42. package/src/dataflow/.agentic-security/last-scan.json +3487 -0
  43. package/src/dataflow/.agentic-security/last-scan.json.sig +1 -0
  44. package/src/dataflow/.agentic-security/scan-history.json +735 -0
  45. package/src/dataflow/.agentic-security/streak.json +24 -0
  46. package/src/dataflow/CLAUDE.md +38 -0
  47. package/src/dataflow/access-paths.js +172 -0
  48. package/src/dataflow/async-sequencing.js +177 -0
  49. package/src/dataflow/backward.js +201 -0
  50. package/src/dataflow/catalog-expanded.js +485 -0
  51. package/src/dataflow/catalog.js +659 -0
  52. package/src/dataflow/cross-repo.js +219 -0
  53. package/src/dataflow/engine.js +588 -0
  54. package/src/dataflow/exception-flow.js +116 -0
  55. package/src/dataflow/exploit-prover.js +187 -0
  56. package/src/dataflow/higher-order.js +221 -0
  57. package/src/dataflow/ifds.js +347 -0
  58. package/src/dataflow/implicit-flow.js +129 -0
  59. package/src/dataflow/incremental.js +229 -0
  60. package/src/dataflow/index.js +181 -0
  61. package/src/dataflow/numeric-domain.js +192 -0
  62. package/src/dataflow/path-feasibility.js +114 -0
  63. package/src/dataflow/points-to.js +337 -0
  64. package/src/dataflow/polyglot.js +190 -0
  65. package/src/dataflow/proven-clean.js +159 -0
  66. package/src/dataflow/receiver-context.js +76 -0
  67. package/src/dataflow/sanitizer-proof.js +154 -0
  68. package/src/dataflow/soft-taint.js +140 -0
  69. package/src/dataflow/string-domain.js +234 -0
  70. package/src/dataflow/stub-aware-filter.js +100 -0
  71. package/src/dataflow/summaries.js +132 -0
  72. package/src/dataflow/symbolic-exec.js +238 -0
  73. package/src/dataflow/tabulation.js +135 -0
  74. package/src/engine.js +7763 -0
  75. package/src/history-scan.js +229 -0
  76. package/src/index.js +3 -0
  77. package/src/integrations/.agentic-security/findings.json +1504 -0
  78. package/src/integrations/.agentic-security/last-scan.json +1504 -0
  79. package/src/integrations/.agentic-security/scan-history.json +40 -0
  80. package/src/integrations/.agentic-security/streak.json +21 -0
  81. package/src/integrations/index.js +321 -0
  82. package/src/integrations/tickets.js +200 -0
  83. package/src/ir/.agentic-security/findings.json +3036 -0
  84. package/src/ir/.agentic-security/last-scan.json +3036 -0
  85. package/src/ir/.agentic-security/last-scan.json.sig +1 -0
  86. package/src/ir/.agentic-security/scan-history.json +364 -0
  87. package/src/ir/.agentic-security/streak.json +23 -0
  88. package/src/ir/CLAUDE.md +172 -0
  89. package/src/ir/callgraph.js +73 -0
  90. package/src/ir/class-hierarchy.js +195 -0
  91. package/src/ir/index.js +152 -0
  92. package/src/ir/parser-cs.js +260 -0
  93. package/src/ir/parser-java.js +286 -0
  94. package/src/ir/parser-js.js +413 -0
  95. package/src/ir/parser-kt.js +258 -0
  96. package/src/ir/parser-py-cst.js +136 -0
  97. package/src/ir/parser-py.helper.py +501 -0
  98. package/src/ir/parser-py.js +312 -0
  99. package/src/ir/ssa.js +315 -0
  100. package/src/ir/type-stubs.js +288 -0
  101. package/src/leaderboard.js +152 -0
  102. package/src/llm-validator/.agentic-security/findings.json +1891 -0
  103. package/src/llm-validator/.agentic-security/last-scan.json +1891 -0
  104. package/src/llm-validator/.agentic-security/last-scan.json.sig +1 -0
  105. package/src/llm-validator/.agentic-security/scan-history.json +168 -0
  106. package/src/llm-validator/.agentic-security/streak.json +20 -0
  107. package/src/llm-validator/consistency.js +141 -0
  108. package/src/llm-validator/index.js +437 -0
  109. package/src/lsp/.agentic-security/findings.json +28 -0
  110. package/src/lsp/.agentic-security/last-scan.json +28 -0
  111. package/src/lsp/.agentic-security/scan-history.json +79 -0
  112. package/src/lsp/.agentic-security/streak.json +22 -0
  113. package/src/lsp/server.js +275 -0
  114. package/src/mcp/.agentic-security/findings.json +8358 -0
  115. package/src/mcp/.agentic-security/last-scan.json +8358 -0
  116. package/src/mcp/.agentic-security/last-scan.json.sig +1 -0
  117. package/src/mcp/.agentic-security/scan-history.json +1125 -0
  118. package/src/mcp/.agentic-security/streak.json +22 -0
  119. package/src/mcp/CLAUDE.md +54 -0
  120. package/src/mcp/audit.js +136 -0
  121. package/src/mcp/redact.js +75 -0
  122. package/src/mcp/server.js +158 -0
  123. package/src/mcp/stdio.js +83 -0
  124. package/src/mcp/tools.js +940 -0
  125. package/src/mcp/validate.js +49 -0
  126. package/src/personality.js +164 -0
  127. package/src/poc-video.js +239 -0
  128. package/src/posture/.agentic-security/findings.json +51239 -0
  129. package/src/posture/.agentic-security/last-scan.json +51239 -0
  130. package/src/posture/.agentic-security/last-scan.json.sig +1 -0
  131. package/src/posture/.agentic-security/scan-history.json +5557 -0
  132. package/src/posture/.agentic-security/streak.json +24 -0
  133. package/src/posture/CLAUDE.md +42 -0
  134. package/src/posture/adversarial-self-test.js +114 -0
  135. package/src/posture/adversary-agent.js +204 -0
  136. package/src/posture/agents-memory.js +135 -0
  137. package/src/posture/ai-code-fingerprint.js +171 -0
  138. package/src/posture/aibom.js +284 -0
  139. package/src/posture/api-inventory.js +96 -0
  140. package/src/posture/attack-playbooks.js +305 -0
  141. package/src/posture/auditor-agent.js +115 -0
  142. package/src/posture/auth-posture-import.js +135 -0
  143. package/src/posture/baseline-compare.js +114 -0
  144. package/src/posture/blast-radius.js +836 -0
  145. package/src/posture/bounty-prediction.js +141 -0
  146. package/src/posture/business-logic.js +239 -0
  147. package/src/posture/calibration-drift.js +93 -0
  148. package/src/posture/calibration-seed.json +27 -0
  149. package/src/posture/calibration.js +204 -0
  150. package/src/posture/clustering.js +75 -0
  151. package/src/posture/concurrency-checker.js +265 -0
  152. package/src/posture/confidence.js +65 -0
  153. package/src/posture/container-runtime.js +149 -0
  154. package/src/posture/counterfactual.js +109 -0
  155. package/src/posture/cross-lang-graphql.js +165 -0
  156. package/src/posture/cross-lang-grpc.js +166 -0
  157. package/src/posture/cross-lang-meta.js +101 -0
  158. package/src/posture/cross-lang-openapi.js +187 -0
  159. package/src/posture/cross-lang-orm.js +153 -0
  160. package/src/posture/cross-lang-queues.js +210 -0
  161. package/src/posture/crown-jewels.js +110 -0
  162. package/src/posture/custom-rules.js +361 -0
  163. package/src/posture/cve-alert-daemon.js +433 -0
  164. package/src/posture/cve-lookup.js +129 -0
  165. package/src/posture/dead-code.js +430 -0
  166. package/src/posture/defender-agent.js +158 -0
  167. package/src/posture/deploy-platform.js +204 -0
  168. package/src/posture/detector-fuzz.js +61 -0
  169. package/src/posture/deterministic.js +99 -0
  170. package/src/posture/drift.js +165 -0
  171. package/src/posture/epss.js +156 -0
  172. package/src/posture/exploitability-probability.js +212 -0
  173. package/src/posture/exploitability.js +121 -0
  174. package/src/posture/feature-flags.js +110 -0
  175. package/src/posture/finding-defaults.js +132 -0
  176. package/src/posture/fix-history.js +411 -0
  177. package/src/posture/fix-plan.js +121 -0
  178. package/src/posture/fix-verify-loop.js +157 -0
  179. package/src/posture/fix-verify.js +130 -0
  180. package/src/posture/flow-narration.js +105 -0
  181. package/src/posture/grader-calibration.js +156 -0
  182. package/src/posture/harness-discovery.js +113 -0
  183. package/src/posture/holdout-eval.js +144 -0
  184. package/src/posture/iac-reachability.js +163 -0
  185. package/src/posture/iam-policy.js +128 -0
  186. package/src/posture/integrity.js +97 -0
  187. package/src/posture/learning.js +166 -0
  188. package/src/posture/license-policy.js +109 -0
  189. package/src/posture/llm-redteam-prompts.js +418 -0
  190. package/src/posture/llm-redteam.js +303 -0
  191. package/src/posture/material-change.js +163 -0
  192. package/src/posture/mitigation-composite.js +55 -0
  193. package/src/posture/mttr.js +91 -0
  194. package/src/posture/network-policy-import.js +126 -0
  195. package/src/posture/path-predicates.js +99 -0
  196. package/src/posture/persona-prioritization.js +153 -0
  197. package/src/posture/poc-cwe-map.js +51 -0
  198. package/src/posture/poc-generator.js +500 -0
  199. package/src/posture/policy-gate.js +174 -0
  200. package/src/posture/pre-incident-archaeology.js +110 -0
  201. package/src/posture/profile.js +93 -0
  202. package/src/posture/reachability-filter.js +42 -0
  203. package/src/posture/regression-test-gen.js +200 -0
  204. package/src/posture/reverse-blast-radius.js +110 -0
  205. package/src/posture/router.js +109 -0
  206. package/src/posture/rule-overrides.js +198 -0
  207. package/src/posture/rule-pack-signing.js +209 -0
  208. package/src/posture/rule-packs.js +143 -0
  209. package/src/posture/rule-synthesis.js +108 -0
  210. package/src/posture/ruleset-version.js +71 -0
  211. package/src/posture/sbom.js +129 -0
  212. package/src/posture/schema-aware-bridge.js +207 -0
  213. package/src/posture/security-trend.js +87 -0
  214. package/src/posture/semantic-clone.js +114 -0
  215. package/src/posture/specification-mining.js +170 -0
  216. package/src/posture/stable-id.js +75 -0
  217. package/src/posture/stack-playbook.js +229 -0
  218. package/src/posture/streak.js +249 -0
  219. package/src/posture/suppressions.js +135 -0
  220. package/src/posture/telemetry-ingest.js +112 -0
  221. package/src/posture/threat-model.js +145 -0
  222. package/src/posture/three-agent-pipeline.js +74 -0
  223. package/src/posture/triage.js +146 -0
  224. package/src/posture/trust-boundary-diagram.js +115 -0
  225. package/src/posture/type-narrowing.js +129 -0
  226. package/src/posture/validator-metrics.js +179 -0
  227. package/src/posture/verifier-ephemeral.js +118 -0
  228. package/src/posture/verifier-target.js +147 -0
  229. package/src/posture/verifier.js +257 -0
  230. package/src/posture/version.js +75 -0
  231. package/src/posture/waf-ingest.js +200 -0
  232. package/src/posture/why-fired.js +141 -0
  233. package/src/pr-comment.js +172 -0
  234. package/src/pr-delta.js +198 -0
  235. package/src/report/.agentic-security/findings.json +79 -0
  236. package/src/report/.agentic-security/last-scan.json +79 -0
  237. package/src/report/.agentic-security/last-scan.json.sig +1 -0
  238. package/src/report/.agentic-security/scan-history.json +332 -0
  239. package/src/report/.agentic-security/streak.json +23 -0
  240. package/src/report/index.js +1136 -0
  241. package/src/report/mascot.js +42 -0
  242. package/src/runScan.js +141 -0
  243. package/src/sast/.agentic-security/findings.json +5051 -0
  244. package/src/sast/.agentic-security/last-scan.json +5051 -0
  245. package/src/sast/.agentic-security/last-scan.json.sig +1 -0
  246. package/src/sast/.agentic-security/scan-history.json +788 -0
  247. package/src/sast/.agentic-security/streak.json +23 -0
  248. package/src/sast/CLAUDE.md +39 -0
  249. package/src/sast/_comment-strip.js +46 -0
  250. package/src/sast/agent-tool-escalation.js +131 -0
  251. package/src/sast/auth-provider.js +171 -0
  252. package/src/sast/authz.js +236 -0
  253. package/src/sast/bench-shape/.agentic-security/findings.json +28 -0
  254. package/src/sast/bench-shape/.agentic-security/last-scan.json +28 -0
  255. package/src/sast/bench-shape/.agentic-security/scan-history.json +24 -0
  256. package/src/sast/bench-shape/.agentic-security/streak.json +22 -0
  257. package/src/sast/bench-shape/index.js +62 -0
  258. package/src/sast/claude-hook-injection.js +199 -0
  259. package/src/sast/claude-md-prompt-injection.js +170 -0
  260. package/src/sast/claude-settings.js +165 -0
  261. package/src/sast/client-side.js +149 -0
  262. package/src/sast/cpp-bench-extras.js +122 -0
  263. package/src/sast/cpp-dataflow.js +430 -0
  264. package/src/sast/cpp.js +248 -0
  265. package/src/sast/csharp.js +152 -0
  266. package/src/sast/csrf.js +82 -0
  267. package/src/sast/dart-flutter.js +173 -0
  268. package/src/sast/db-rls.js +147 -0
  269. package/src/sast/db-taint.js +215 -0
  270. package/src/sast/defi-deep.js +242 -0
  271. package/src/sast/deserialization-gadgets.js +113 -0
  272. package/src/sast/django-hardening.js +230 -0
  273. package/src/sast/env-hygiene.js +125 -0
  274. package/src/sast/fastapi-hardening.js +145 -0
  275. package/src/sast/go-extended.js +84 -0
  276. package/src/sast/host-header.js +106 -0
  277. package/src/sast/index.js +17 -0
  278. package/src/sast/java-ast-folding.js +561 -0
  279. package/src/sast/java-bench-extras.js +708 -0
  280. package/src/sast/java-collection-passthrough.js +178 -0
  281. package/src/sast/java-constant-fold.js +244 -0
  282. package/src/sast/java-deserialization.js +125 -0
  283. package/src/sast/jndi.js +104 -0
  284. package/src/sast/juliet-shape.js +324 -0
  285. package/src/sast/jwt-exp.js +104 -0
  286. package/src/sast/kotlin.js +82 -0
  287. package/src/sast/laravel-hardening.js +198 -0
  288. package/src/sast/ldap-injection.js +100 -0
  289. package/src/sast/llm-owasp.js +465 -0
  290. package/src/sast/llm-stored-prompt.js +103 -0
  291. package/src/sast/llm-trading-agent.js +161 -0
  292. package/src/sast/llm.js +308 -0
  293. package/src/sast/logic.js +140 -0
  294. package/src/sast/mass-assignment.js +101 -0
  295. package/src/sast/mcp-audit.js +242 -0
  296. package/src/sast/mobile-manifest.js +195 -0
  297. package/src/sast/model-load.js +164 -0
  298. package/src/sast/mutation-xss.js +87 -0
  299. package/src/sast/nosql-injection.js +82 -0
  300. package/src/sast/open-redirect.js +119 -0
  301. package/src/sast/php.js +91 -0
  302. package/src/sast/pipeline.js +122 -0
  303. package/src/sast/primary-cwe-java.js +155 -0
  304. package/src/sast/prompt-firewall.js +151 -0
  305. package/src/sast/prompt-template.js +157 -0
  306. package/src/sast/prototype-pollution.js +112 -0
  307. package/src/sast/python-sinks.js +195 -0
  308. package/src/sast/quarkus-hardening.js +102 -0
  309. package/src/sast/rag-poisoning.js +118 -0
  310. package/src/sast/rate-limit.js +128 -0
  311. package/src/sast/response-splitting.js +138 -0
  312. package/src/sast/ruby.js +108 -0
  313. package/src/sast/rust.js +105 -0
  314. package/src/sast/solidity.js +167 -0
  315. package/src/sast/springboot-hardening.js +186 -0
  316. package/src/sast/ssrf-cloud-metadata.js +80 -0
  317. package/src/sast/ssti.js +116 -0
  318. package/src/sast/swift.js +162 -0
  319. package/src/sast/toctou.js +95 -0
  320. package/src/sast/webhook.js +101 -0
  321. package/src/sast/xpath-injection.js +51 -0
  322. package/src/sast/xxe.js +140 -0
  323. package/src/sast/zip-slip.js +200 -0
  324. package/src/sca/base-images.json +45 -0
  325. package/src/sca/container.js +107 -0
  326. package/src/sca/dep-confusion.js +134 -0
  327. package/src/sca/index.js +6 -0
  328. package/src/sca/popular-packages.json +41 -0
  329. package/src/sca/sarif-ingest.js +187 -0
  330. package/src/sca/vuln-function-hints.json +89 -0
  331. package/src/secrets/index.js +4 -0
@@ -0,0 +1,1577 @@
1
+ {
2
+ "scanId": "e6825f8d-bb61-42eb-9f3c-3847b2e493fd",
3
+ "startedAt": "2026-05-20T21:28:34.505Z",
4
+ "durationMs": 297,
5
+ "scanned": {
6
+ "files": 7,
7
+ "lines": 0
8
+ },
9
+ "findings": [
10
+ {
11
+ "id": "8ec5768f893c53c3",
12
+ "kind": "logic",
13
+ "severity": "high",
14
+ "vuln": "Sensitive Directory Path Construction",
15
+ "cwe": "CWE-22",
16
+ "stride": "Information Disclosure",
17
+ "file": "agentic-security-audit.js",
18
+ "line": 51,
19
+ "snippet": "function _logPath(root) { return path.join(root, '.agentic-security', 'mcp-audit.log'); }",
20
+ "fix": {
21
+ "description": "Restrict file paths to a specific allowed directory; reject '..' and absolute paths.",
22
+ "code": "const safe = path.resolve('./uploads', file);\nif (!safe.startsWith(path.resolve('./uploads'))) throw 403;"
23
+ },
24
+ "blastRadius": {
25
+ "scope": "all-users",
26
+ "dataAtRisk": [
27
+ "config"
28
+ ],
29
+ "userCount": 50,
30
+ "industry": "generic",
31
+ "jurisdictions": [],
32
+ "controlsApplied": [],
33
+ "dollarBest": 23250,
34
+ "dollarLikely": 136250,
35
+ "dollarWorst": 775000,
36
+ "dollarLow": 23250,
37
+ "dollarHigh": 775000,
38
+ "components": {
39
+ "incidentResponse": {
40
+ "low": 8000,
41
+ "likely": 50000,
42
+ "high": 250000
43
+ },
44
+ "legal": {
45
+ "low": 10000,
46
+ "likely": 75000,
47
+ "high": 500000
48
+ },
49
+ "crisisPR": {
50
+ "low": 0,
51
+ "likely": 0,
52
+ "high": 0
53
+ },
54
+ "notification": {
55
+ "low": 5000,
56
+ "likely": 10000,
57
+ "high": 15000
58
+ },
59
+ "creditMonitoring": {
60
+ "low": 0,
61
+ "likely": 0,
62
+ "high": 0
63
+ },
64
+ "regulatoryFines": {
65
+ "low": 0,
66
+ "likely": 0,
67
+ "high": 0
68
+ },
69
+ "directDamage": {
70
+ "low": 250,
71
+ "likely": 1250,
72
+ "high": 10000
73
+ },
74
+ "classAction": {
75
+ "low": 0,
76
+ "likely": 0,
77
+ "high": 0
78
+ },
79
+ "lostBusiness": {
80
+ "low": 0,
81
+ "likely": 0,
82
+ "high": 0
83
+ }
84
+ },
85
+ "dominantDriver": "legal counsel",
86
+ "comparable": "Snyk 2022 path-traversal disclosure → CDN cache poisoning + .env exfil",
87
+ "confidence": "low",
88
+ "narrative": "Sensitive Directory Path Construction on `agentic-security-audit.js:51` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Snyk 2022 path-traversal disclosure → CDN cache poisoning + .env exfil."
89
+ }
90
+ },
91
+ {
92
+ "id": "toctou-fs:agentic-security-audit.js:55",
93
+ "kind": "sast",
94
+ "severity": "medium",
95
+ "vuln": "TOCTOU: file existence/permission check before open",
96
+ "cwe": "CWE-367",
97
+ "owaspLlm": null,
98
+ "stride": "Tampering",
99
+ "file": "agentic-security-audit.js",
100
+ "line": 55,
101
+ "snippet": "if (!fs.existsSync(fp)) return [];",
102
+ "fix": null,
103
+ "reachable": false,
104
+ "triage": 22,
105
+ "dataClasses": [],
106
+ "chain": null,
107
+ "confidence": 0.7,
108
+ "toxicity": 8,
109
+ "toxicityFactors": [],
110
+ "toxicityLabel": "Low",
111
+ "sources": null,
112
+ "epssScore": null,
113
+ "epssPercentile": null,
114
+ "epssCve": null,
115
+ "exploitedNow": false,
116
+ "tags": null,
117
+ "blastRadius": {
118
+ "scope": "all-users",
119
+ "dataAtRisk": [
120
+ "config"
121
+ ],
122
+ "userCount": 50,
123
+ "industry": "generic",
124
+ "jurisdictions": [],
125
+ "controlsApplied": [],
126
+ "dollarBest": 23250,
127
+ "dollarLikely": 136250,
128
+ "dollarWorst": 775000,
129
+ "dollarLow": 23250,
130
+ "dollarHigh": 775000,
131
+ "components": {
132
+ "incidentResponse": {
133
+ "low": 8000,
134
+ "likely": 50000,
135
+ "high": 250000
136
+ },
137
+ "legal": {
138
+ "low": 10000,
139
+ "likely": 75000,
140
+ "high": 500000
141
+ },
142
+ "crisisPR": {
143
+ "low": 0,
144
+ "likely": 0,
145
+ "high": 0
146
+ },
147
+ "notification": {
148
+ "low": 5000,
149
+ "likely": 10000,
150
+ "high": 15000
151
+ },
152
+ "creditMonitoring": {
153
+ "low": 0,
154
+ "likely": 0,
155
+ "high": 0
156
+ },
157
+ "regulatoryFines": {
158
+ "low": 0,
159
+ "likely": 0,
160
+ "high": 0
161
+ },
162
+ "directDamage": {
163
+ "low": 250,
164
+ "likely": 1250,
165
+ "high": 10000
166
+ },
167
+ "classAction": {
168
+ "low": 0,
169
+ "likely": 0,
170
+ "high": 0
171
+ },
172
+ "lostBusiness": {
173
+ "low": 0,
174
+ "likely": 0,
175
+ "high": 0
176
+ }
177
+ },
178
+ "dominantDriver": "legal counsel",
179
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
180
+ "confidence": "low",
181
+ "narrative": "TOCTOU: file existence/permission check before open on `agentic-security-audit.js:55` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
182
+ },
183
+ "stableId": "1e3825344bf7fde1",
184
+ "confidenceTier": "medium",
185
+ "exploitability": 0.2,
186
+ "exploitabilityTier": "low",
187
+ "exploitabilityFactors": [
188
+ "sev:medium",
189
+ "unreachable"
190
+ ],
191
+ "clusterSize": null,
192
+ "unreachable": false,
193
+ "validator_verdict": "unvalidated",
194
+ "llm_confidence": null,
195
+ "unvalidated": true,
196
+ "cross_language": false,
197
+ "family": "toctou-file-existence-permission-check-b",
198
+ "_unsigned": false,
199
+ "_passThroughSigning": false,
200
+ "signatureStatus": "verified",
201
+ "regression_test": null,
202
+ "poc": null,
203
+ "calibrated_confidence": null,
204
+ "calibrated_confidence_ci": null,
205
+ "calibrated_n": 0,
206
+ "calibration_reason": "no-history",
207
+ "verifier_verdict": "cannot-verify",
208
+ "verifier_reason": "no-poc-no-sanitizer-rule",
209
+ "verifier_runner": null,
210
+ "narration": null,
211
+ "mitigationVerdict": "unreachable-in-prod",
212
+ "mitigationsApplied": [],
213
+ "mitigatedByWaf": false,
214
+ "wafRuleId": null,
215
+ "mitigatedByAuth": false,
216
+ "authMechanism": null,
217
+ "mitigatedByNetwork": false,
218
+ "networkExposure": null,
219
+ "featureFlag": null,
220
+ "featureFlagState": null,
221
+ "featureFlagRollout": null,
222
+ "exposedInProd": false,
223
+ "unreachableInProd": true,
224
+ "coldPath": false,
225
+ "hotPath": false,
226
+ "prodRequestCount": null,
227
+ "crownJewelScore": 0.15,
228
+ "crownJewelTier": "low-value",
229
+ "crownJewelFactors": [
230
+ "shell-execution"
231
+ ],
232
+ "cloneClusterId": "9c2182a3d2005edb",
233
+ "cloneClusterSize": 1,
234
+ "provenance": "human-likely",
235
+ "provenanceScore": 0,
236
+ "typeNarrowed": null,
237
+ "strideCategory": "tampering",
238
+ "personaScores": {
239
+ "script-kiddie": {
240
+ "score": 0.4,
241
+ "tier": "medium",
242
+ "factors": [
243
+ "sev:medium"
244
+ ]
245
+ },
246
+ "opportunistic-criminal": {
247
+ "score": 0.4,
248
+ "tier": "medium",
249
+ "factors": [
250
+ "sev:medium"
251
+ ]
252
+ },
253
+ "apt-nation-state": {
254
+ "score": 0.4,
255
+ "tier": "medium",
256
+ "factors": [
257
+ "sev:medium"
258
+ ]
259
+ },
260
+ "supply-chain-attacker": {
261
+ "score": 0.4,
262
+ "tier": "medium",
263
+ "factors": [
264
+ "sev:medium"
265
+ ]
266
+ },
267
+ "malicious-insider": {
268
+ "score": 0.4,
269
+ "tier": "medium",
270
+ "factors": [
271
+ "sev:medium"
272
+ ]
273
+ }
274
+ },
275
+ "personaTopTwo": [
276
+ "script-kiddie",
277
+ "opportunistic-criminal"
278
+ ],
279
+ "personaMaxName": "script-kiddie",
280
+ "personaMaxScore": 0.4,
281
+ "reverseExposure": null,
282
+ "specMined": null,
283
+ "whyFired": {
284
+ "detector": "sast/toctou-file-existence-permission-check-b",
285
+ "ruleId": "CWE-367",
286
+ "parser": "TOCTOU",
287
+ "evidence": {
288
+ "sinkSnippet": "if (!fs.existsSync(fp)) return [];",
289
+ "sourceSnippet": null,
290
+ "pathSteps": [],
291
+ "sanitizers": [],
292
+ "guards": []
293
+ },
294
+ "considered": {
295
+ "suppressionsApplied": [],
296
+ "suppressionsSkipped": [],
297
+ "reachabilityFilter": "unaffected",
298
+ "clusterCollapsed": false,
299
+ "typeNarrowed": false,
300
+ "crownJewelTier": "low-value",
301
+ "mitigationVerdict": "unreachable-in-prod"
302
+ },
303
+ "scanner": {
304
+ "rulesetVersion": null,
305
+ "packHash": null,
306
+ "modelId": null
307
+ }
308
+ },
309
+ "adversaryTranscript": null,
310
+ "predictedBountyUsd": null,
311
+ "bountyConfidence": null,
312
+ "attackPlaybook": null
313
+ },
314
+ {
315
+ "id": "toctou-fs:agentic-security-consistency.js:44",
316
+ "kind": "sast",
317
+ "severity": "medium",
318
+ "vuln": "TOCTOU: file existence/permission check before open",
319
+ "cwe": "CWE-367",
320
+ "owaspLlm": null,
321
+ "stride": "Tampering",
322
+ "file": "agentic-security-consistency.js",
323
+ "line": 44,
324
+ "snippet": "if (!fs.existsSync(scanFile)) {",
325
+ "fix": null,
326
+ "reachable": false,
327
+ "triage": 22,
328
+ "dataClasses": [],
329
+ "chain": null,
330
+ "confidence": 0.7,
331
+ "toxicity": 8,
332
+ "toxicityFactors": [],
333
+ "toxicityLabel": "Low",
334
+ "sources": null,
335
+ "epssScore": null,
336
+ "epssPercentile": null,
337
+ "epssCve": null,
338
+ "exploitedNow": false,
339
+ "tags": null,
340
+ "blastRadius": {
341
+ "scope": "all-users",
342
+ "dataAtRisk": [
343
+ "config"
344
+ ],
345
+ "userCount": 50,
346
+ "industry": "generic",
347
+ "jurisdictions": [],
348
+ "controlsApplied": [],
349
+ "dollarBest": 23250,
350
+ "dollarLikely": 136250,
351
+ "dollarWorst": 775000,
352
+ "dollarLow": 23250,
353
+ "dollarHigh": 775000,
354
+ "components": {
355
+ "incidentResponse": {
356
+ "low": 8000,
357
+ "likely": 50000,
358
+ "high": 250000
359
+ },
360
+ "legal": {
361
+ "low": 10000,
362
+ "likely": 75000,
363
+ "high": 500000
364
+ },
365
+ "crisisPR": {
366
+ "low": 0,
367
+ "likely": 0,
368
+ "high": 0
369
+ },
370
+ "notification": {
371
+ "low": 5000,
372
+ "likely": 10000,
373
+ "high": 15000
374
+ },
375
+ "creditMonitoring": {
376
+ "low": 0,
377
+ "likely": 0,
378
+ "high": 0
379
+ },
380
+ "regulatoryFines": {
381
+ "low": 0,
382
+ "likely": 0,
383
+ "high": 0
384
+ },
385
+ "directDamage": {
386
+ "low": 250,
387
+ "likely": 1250,
388
+ "high": 10000
389
+ },
390
+ "classAction": {
391
+ "low": 0,
392
+ "likely": 0,
393
+ "high": 0
394
+ },
395
+ "lostBusiness": {
396
+ "low": 0,
397
+ "likely": 0,
398
+ "high": 0
399
+ }
400
+ },
401
+ "dominantDriver": "legal counsel",
402
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
403
+ "confidence": "low",
404
+ "narrative": "TOCTOU: file existence/permission check before open on `agentic-security-consistency.js:44` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
405
+ },
406
+ "stableId": "7244448882e8be9f",
407
+ "confidenceTier": "medium",
408
+ "exploitability": 0.2,
409
+ "exploitabilityTier": "low",
410
+ "exploitabilityFactors": [
411
+ "sev:medium",
412
+ "unreachable"
413
+ ],
414
+ "clusterSize": null,
415
+ "unreachable": false,
416
+ "validator_verdict": "unvalidated",
417
+ "llm_confidence": null,
418
+ "unvalidated": true,
419
+ "cross_language": false,
420
+ "family": "toctou-file-existence-permission-check-b",
421
+ "_unsigned": false,
422
+ "_passThroughSigning": false,
423
+ "signatureStatus": "verified",
424
+ "regression_test": null,
425
+ "poc": null,
426
+ "calibrated_confidence": null,
427
+ "calibrated_confidence_ci": null,
428
+ "calibrated_n": 0,
429
+ "calibration_reason": "no-history",
430
+ "verifier_verdict": "cannot-verify",
431
+ "verifier_reason": "no-poc-no-sanitizer-rule",
432
+ "verifier_runner": null,
433
+ "narration": null,
434
+ "mitigationVerdict": "unreachable-in-prod",
435
+ "mitigationsApplied": [],
436
+ "mitigatedByWaf": false,
437
+ "wafRuleId": null,
438
+ "mitigatedByAuth": false,
439
+ "authMechanism": null,
440
+ "mitigatedByNetwork": false,
441
+ "networkExposure": null,
442
+ "featureFlag": null,
443
+ "featureFlagState": null,
444
+ "featureFlagRollout": null,
445
+ "exposedInProd": false,
446
+ "unreachableInProd": true,
447
+ "coldPath": false,
448
+ "hotPath": false,
449
+ "prodRequestCount": null,
450
+ "crownJewelScore": 0,
451
+ "crownJewelTier": "unknown",
452
+ "crownJewelFactors": [],
453
+ "cloneClusterId": "7451b9ab4bcfdaf0",
454
+ "cloneClusterSize": 1,
455
+ "provenance": "human-likely",
456
+ "provenanceScore": 0.22,
457
+ "typeNarrowed": null,
458
+ "strideCategory": "tampering",
459
+ "personaScores": {
460
+ "script-kiddie": {
461
+ "score": 0.4,
462
+ "tier": "medium",
463
+ "factors": [
464
+ "sev:medium"
465
+ ]
466
+ },
467
+ "opportunistic-criminal": {
468
+ "score": 0.4,
469
+ "tier": "medium",
470
+ "factors": [
471
+ "sev:medium"
472
+ ]
473
+ },
474
+ "apt-nation-state": {
475
+ "score": 0.4,
476
+ "tier": "medium",
477
+ "factors": [
478
+ "sev:medium"
479
+ ]
480
+ },
481
+ "supply-chain-attacker": {
482
+ "score": 0.4,
483
+ "tier": "medium",
484
+ "factors": [
485
+ "sev:medium"
486
+ ]
487
+ },
488
+ "malicious-insider": {
489
+ "score": 0.4,
490
+ "tier": "medium",
491
+ "factors": [
492
+ "sev:medium"
493
+ ]
494
+ }
495
+ },
496
+ "personaTopTwo": [
497
+ "script-kiddie",
498
+ "opportunistic-criminal"
499
+ ],
500
+ "personaMaxName": "script-kiddie",
501
+ "personaMaxScore": 0.4,
502
+ "reverseExposure": null,
503
+ "specMined": null,
504
+ "whyFired": {
505
+ "detector": "sast/toctou-file-existence-permission-check-b",
506
+ "ruleId": "CWE-367",
507
+ "parser": "TOCTOU",
508
+ "evidence": {
509
+ "sinkSnippet": "if (!fs.existsSync(scanFile)) {",
510
+ "sourceSnippet": null,
511
+ "pathSteps": [],
512
+ "sanitizers": [],
513
+ "guards": []
514
+ },
515
+ "considered": {
516
+ "suppressionsApplied": [],
517
+ "suppressionsSkipped": [],
518
+ "reachabilityFilter": "unaffected",
519
+ "clusterCollapsed": false,
520
+ "typeNarrowed": false,
521
+ "crownJewelTier": "unknown",
522
+ "mitigationVerdict": "unreachable-in-prod"
523
+ },
524
+ "scanner": {
525
+ "rulesetVersion": null,
526
+ "packHash": null,
527
+ "modelId": null
528
+ }
529
+ },
530
+ "adversaryTranscript": null,
531
+ "predictedBountyUsd": null,
532
+ "bountyConfidence": null,
533
+ "attackPlaybook": null
534
+ },
535
+ {
536
+ "id": "toctou-fs:agentic-security-consistency.js:66",
537
+ "kind": "sast",
538
+ "severity": "medium",
539
+ "vuln": "TOCTOU: file existence/permission check before open",
540
+ "cwe": "CWE-367",
541
+ "owaspLlm": null,
542
+ "stride": "Tampering",
543
+ "file": "agentic-security-consistency.js",
544
+ "line": 66,
545
+ "snippet": "if (fs.existsSync(fp)) fileContents[f.file] = fs.readFileSync(fp, 'utf8');",
546
+ "fix": null,
547
+ "reachable": false,
548
+ "triage": 22,
549
+ "dataClasses": [],
550
+ "chain": null,
551
+ "confidence": 0.7,
552
+ "toxicity": 8,
553
+ "toxicityFactors": [],
554
+ "toxicityLabel": "Low",
555
+ "sources": null,
556
+ "epssScore": null,
557
+ "epssPercentile": null,
558
+ "epssCve": null,
559
+ "exploitedNow": false,
560
+ "tags": null,
561
+ "blastRadius": {
562
+ "scope": "all-users",
563
+ "dataAtRisk": [
564
+ "config"
565
+ ],
566
+ "userCount": 50,
567
+ "industry": "generic",
568
+ "jurisdictions": [],
569
+ "controlsApplied": [],
570
+ "dollarBest": 23250,
571
+ "dollarLikely": 136250,
572
+ "dollarWorst": 775000,
573
+ "dollarLow": 23250,
574
+ "dollarHigh": 775000,
575
+ "components": {
576
+ "incidentResponse": {
577
+ "low": 8000,
578
+ "likely": 50000,
579
+ "high": 250000
580
+ },
581
+ "legal": {
582
+ "low": 10000,
583
+ "likely": 75000,
584
+ "high": 500000
585
+ },
586
+ "crisisPR": {
587
+ "low": 0,
588
+ "likely": 0,
589
+ "high": 0
590
+ },
591
+ "notification": {
592
+ "low": 5000,
593
+ "likely": 10000,
594
+ "high": 15000
595
+ },
596
+ "creditMonitoring": {
597
+ "low": 0,
598
+ "likely": 0,
599
+ "high": 0
600
+ },
601
+ "regulatoryFines": {
602
+ "low": 0,
603
+ "likely": 0,
604
+ "high": 0
605
+ },
606
+ "directDamage": {
607
+ "low": 250,
608
+ "likely": 1250,
609
+ "high": 10000
610
+ },
611
+ "classAction": {
612
+ "low": 0,
613
+ "likely": 0,
614
+ "high": 0
615
+ },
616
+ "lostBusiness": {
617
+ "low": 0,
618
+ "likely": 0,
619
+ "high": 0
620
+ }
621
+ },
622
+ "dominantDriver": "legal counsel",
623
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
624
+ "confidence": "low",
625
+ "narrative": "TOCTOU: file existence/permission check before open on `agentic-security-consistency.js:66` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
626
+ },
627
+ "stableId": "17c7a9503b897ade",
628
+ "confidenceTier": "medium",
629
+ "exploitability": 0.2,
630
+ "exploitabilityTier": "low",
631
+ "exploitabilityFactors": [
632
+ "sev:medium",
633
+ "unreachable"
634
+ ],
635
+ "clusterSize": null,
636
+ "unreachable": false,
637
+ "validator_verdict": "unvalidated",
638
+ "llm_confidence": null,
639
+ "unvalidated": true,
640
+ "cross_language": false,
641
+ "family": "toctou-file-existence-permission-check-b",
642
+ "_unsigned": false,
643
+ "_passThroughSigning": false,
644
+ "signatureStatus": "verified",
645
+ "regression_test": null,
646
+ "poc": null,
647
+ "calibrated_confidence": null,
648
+ "calibrated_confidence_ci": null,
649
+ "calibrated_n": 0,
650
+ "calibration_reason": "no-history",
651
+ "verifier_verdict": "cannot-verify",
652
+ "verifier_reason": "no-poc-no-sanitizer-rule",
653
+ "verifier_runner": null,
654
+ "narration": null,
655
+ "mitigationVerdict": "unreachable-in-prod",
656
+ "mitigationsApplied": [],
657
+ "mitigatedByWaf": false,
658
+ "wafRuleId": null,
659
+ "mitigatedByAuth": false,
660
+ "authMechanism": null,
661
+ "mitigatedByNetwork": false,
662
+ "networkExposure": null,
663
+ "featureFlag": null,
664
+ "featureFlagState": null,
665
+ "featureFlagRollout": null,
666
+ "exposedInProd": false,
667
+ "unreachableInProd": true,
668
+ "coldPath": false,
669
+ "hotPath": false,
670
+ "prodRequestCount": null,
671
+ "crownJewelScore": 0,
672
+ "crownJewelTier": "unknown",
673
+ "crownJewelFactors": [],
674
+ "cloneClusterId": "71b3a66f0700d3d0",
675
+ "cloneClusterSize": 1,
676
+ "provenance": "human-likely",
677
+ "provenanceScore": 0.22,
678
+ "typeNarrowed": null,
679
+ "strideCategory": "tampering",
680
+ "personaScores": {
681
+ "script-kiddie": {
682
+ "score": 0.4,
683
+ "tier": "medium",
684
+ "factors": [
685
+ "sev:medium"
686
+ ]
687
+ },
688
+ "opportunistic-criminal": {
689
+ "score": 0.4,
690
+ "tier": "medium",
691
+ "factors": [
692
+ "sev:medium"
693
+ ]
694
+ },
695
+ "apt-nation-state": {
696
+ "score": 0.4,
697
+ "tier": "medium",
698
+ "factors": [
699
+ "sev:medium"
700
+ ]
701
+ },
702
+ "supply-chain-attacker": {
703
+ "score": 0.4,
704
+ "tier": "medium",
705
+ "factors": [
706
+ "sev:medium"
707
+ ]
708
+ },
709
+ "malicious-insider": {
710
+ "score": 0.4,
711
+ "tier": "medium",
712
+ "factors": [
713
+ "sev:medium"
714
+ ]
715
+ }
716
+ },
717
+ "personaTopTwo": [
718
+ "script-kiddie",
719
+ "opportunistic-criminal"
720
+ ],
721
+ "personaMaxName": "script-kiddie",
722
+ "personaMaxScore": 0.4,
723
+ "reverseExposure": null,
724
+ "specMined": null,
725
+ "whyFired": {
726
+ "detector": "sast/toctou-file-existence-permission-check-b",
727
+ "ruleId": "CWE-367",
728
+ "parser": "TOCTOU",
729
+ "evidence": {
730
+ "sinkSnippet": "if (fs.existsSync(fp)) fileContents[f.file] = fs.readFileSync(fp, 'utf8');",
731
+ "sourceSnippet": null,
732
+ "pathSteps": [],
733
+ "sanitizers": [],
734
+ "guards": []
735
+ },
736
+ "considered": {
737
+ "suppressionsApplied": [],
738
+ "suppressionsSkipped": [],
739
+ "reachabilityFilter": "unaffected",
740
+ "clusterCollapsed": false,
741
+ "typeNarrowed": false,
742
+ "crownJewelTier": "unknown",
743
+ "mitigationVerdict": "unreachable-in-prod"
744
+ },
745
+ "scanner": {
746
+ "rulesetVersion": null,
747
+ "packHash": null,
748
+ "modelId": null
749
+ }
750
+ },
751
+ "adversaryTranscript": null,
752
+ "predictedBountyUsd": null,
753
+ "bountyConfidence": null,
754
+ "attackPlaybook": null
755
+ },
756
+ {
757
+ "id": "toctou-fs:agentic-security.js:1105",
758
+ "kind": "sast",
759
+ "severity": "medium",
760
+ "vuln": "TOCTOU: file existence/permission check before open",
761
+ "cwe": "CWE-367",
762
+ "owaspLlm": null,
763
+ "stride": "Tampering",
764
+ "file": "agentic-security.js",
765
+ "line": 1105,
766
+ "snippet": "const st = fs.statSync(abs);",
767
+ "fix": null,
768
+ "reachable": false,
769
+ "triage": 22,
770
+ "dataClasses": [],
771
+ "chain": null,
772
+ "confidence": 0.7,
773
+ "toxicity": 8,
774
+ "toxicityFactors": [],
775
+ "toxicityLabel": "Low",
776
+ "sources": null,
777
+ "epssScore": null,
778
+ "epssPercentile": null,
779
+ "epssCve": null,
780
+ "exploitedNow": false,
781
+ "tags": null,
782
+ "blastRadius": {
783
+ "scope": "all-users",
784
+ "dataAtRisk": [
785
+ "config"
786
+ ],
787
+ "userCount": 50,
788
+ "industry": "generic",
789
+ "jurisdictions": [],
790
+ "controlsApplied": [],
791
+ "dollarBest": 23250,
792
+ "dollarLikely": 136250,
793
+ "dollarWorst": 775000,
794
+ "dollarLow": 23250,
795
+ "dollarHigh": 775000,
796
+ "components": {
797
+ "incidentResponse": {
798
+ "low": 8000,
799
+ "likely": 50000,
800
+ "high": 250000
801
+ },
802
+ "legal": {
803
+ "low": 10000,
804
+ "likely": 75000,
805
+ "high": 500000
806
+ },
807
+ "crisisPR": {
808
+ "low": 0,
809
+ "likely": 0,
810
+ "high": 0
811
+ },
812
+ "notification": {
813
+ "low": 5000,
814
+ "likely": 10000,
815
+ "high": 15000
816
+ },
817
+ "creditMonitoring": {
818
+ "low": 0,
819
+ "likely": 0,
820
+ "high": 0
821
+ },
822
+ "regulatoryFines": {
823
+ "low": 0,
824
+ "likely": 0,
825
+ "high": 0
826
+ },
827
+ "directDamage": {
828
+ "low": 250,
829
+ "likely": 1250,
830
+ "high": 10000
831
+ },
832
+ "classAction": {
833
+ "low": 0,
834
+ "likely": 0,
835
+ "high": 0
836
+ },
837
+ "lostBusiness": {
838
+ "low": 0,
839
+ "likely": 0,
840
+ "high": 0
841
+ }
842
+ },
843
+ "dominantDriver": "legal counsel",
844
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
845
+ "confidence": "low",
846
+ "narrative": "TOCTOU: file existence/permission check before open on `agentic-security.js:1105` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
847
+ },
848
+ "stableId": "17f63a600e3a68b4",
849
+ "confidenceTier": "medium",
850
+ "exploitability": 0.2,
851
+ "exploitabilityTier": "low",
852
+ "exploitabilityFactors": [
853
+ "sev:medium",
854
+ "unreachable"
855
+ ],
856
+ "clusterSize": null,
857
+ "unreachable": false,
858
+ "validator_verdict": "unvalidated",
859
+ "llm_confidence": null,
860
+ "unvalidated": true,
861
+ "cross_language": false,
862
+ "family": "toctou-file-existence-permission-check-b",
863
+ "_unsigned": false,
864
+ "_passThroughSigning": false,
865
+ "signatureStatus": "verified",
866
+ "regression_test": null,
867
+ "poc": null,
868
+ "calibrated_confidence": null,
869
+ "calibrated_confidence_ci": null,
870
+ "calibrated_n": 0,
871
+ "calibration_reason": "no-history",
872
+ "verifier_verdict": "cannot-verify",
873
+ "verifier_reason": "no-poc-no-sanitizer-rule",
874
+ "verifier_runner": null,
875
+ "narration": null,
876
+ "mitigationVerdict": "unreachable-in-prod",
877
+ "mitigationsApplied": [],
878
+ "mitigatedByWaf": false,
879
+ "wafRuleId": null,
880
+ "mitigatedByAuth": false,
881
+ "authMechanism": null,
882
+ "mitigatedByNetwork": false,
883
+ "networkExposure": null,
884
+ "featureFlag": null,
885
+ "featureFlagState": null,
886
+ "featureFlagRollout": null,
887
+ "exposedInProd": false,
888
+ "unreachableInProd": true,
889
+ "coldPath": false,
890
+ "hotPath": false,
891
+ "prodRequestCount": null,
892
+ "crownJewelScore": 0,
893
+ "crownJewelTier": "unknown",
894
+ "crownJewelFactors": [],
895
+ "cloneClusterId": "69ff35f4d54a4549",
896
+ "cloneClusterSize": 1,
897
+ "provenance": "human-likely",
898
+ "provenanceScore": 0.04,
899
+ "typeNarrowed": null,
900
+ "strideCategory": "tampering",
901
+ "personaScores": {
902
+ "script-kiddie": {
903
+ "score": 0.4,
904
+ "tier": "medium",
905
+ "factors": [
906
+ "sev:medium"
907
+ ]
908
+ },
909
+ "opportunistic-criminal": {
910
+ "score": 0.4,
911
+ "tier": "medium",
912
+ "factors": [
913
+ "sev:medium"
914
+ ]
915
+ },
916
+ "apt-nation-state": {
917
+ "score": 0.4,
918
+ "tier": "medium",
919
+ "factors": [
920
+ "sev:medium"
921
+ ]
922
+ },
923
+ "supply-chain-attacker": {
924
+ "score": 0.4,
925
+ "tier": "medium",
926
+ "factors": [
927
+ "sev:medium"
928
+ ]
929
+ },
930
+ "malicious-insider": {
931
+ "score": 0.4,
932
+ "tier": "medium",
933
+ "factors": [
934
+ "sev:medium"
935
+ ]
936
+ }
937
+ },
938
+ "personaTopTwo": [
939
+ "script-kiddie",
940
+ "opportunistic-criminal"
941
+ ],
942
+ "personaMaxName": "script-kiddie",
943
+ "personaMaxScore": 0.4,
944
+ "reverseExposure": null,
945
+ "specMined": null,
946
+ "whyFired": {
947
+ "detector": "sast/toctou-file-existence-permission-check-b",
948
+ "ruleId": "CWE-367",
949
+ "parser": "TOCTOU",
950
+ "evidence": {
951
+ "sinkSnippet": "const st = fs.statSync(abs);",
952
+ "sourceSnippet": null,
953
+ "pathSteps": [],
954
+ "sanitizers": [],
955
+ "guards": []
956
+ },
957
+ "considered": {
958
+ "suppressionsApplied": [],
959
+ "suppressionsSkipped": [],
960
+ "reachabilityFilter": "unaffected",
961
+ "clusterCollapsed": false,
962
+ "typeNarrowed": false,
963
+ "crownJewelTier": "unknown",
964
+ "mitigationVerdict": "unreachable-in-prod"
965
+ },
966
+ "scanner": {
967
+ "rulesetVersion": null,
968
+ "packHash": null,
969
+ "modelId": null
970
+ }
971
+ },
972
+ "adversaryTranscript": null,
973
+ "predictedBountyUsd": null,
974
+ "bountyConfidence": null,
975
+ "attackPlaybook": null
976
+ },
977
+ {
978
+ "id": "40a1d57f1e523620",
979
+ "kind": "logic",
980
+ "severity": "medium",
981
+ "vuln": "Missing Unsigned Numeric Validation",
982
+ "cwe": "CWE-20",
983
+ "stride": "Tampering",
984
+ "file": "agentic-security-audit.js",
985
+ "line": 131,
986
+ "snippet": "const rejRate = c.total > 0 ? (c.rejected || 0) / c.total : 0;",
987
+ "fix": {
988
+ "description": "Validate that numeric inputs are positive integers server-side before processing.",
989
+ "code": "// BEFORE\nawait BasketItem.update({ quantity: req.body.quantity });\n\n// AFTER\nif (!Number.isInteger(req.body.quantity) || req.body.quantity < 1)\n return res.status(400).json({ error: 'Invalid quantity' });"
990
+ },
991
+ "blastRadius": {
992
+ "scope": "all-users",
993
+ "dataAtRisk": [
994
+ "config"
995
+ ],
996
+ "userCount": 50,
997
+ "industry": "generic",
998
+ "jurisdictions": [],
999
+ "controlsApplied": [],
1000
+ "dollarBest": 23250,
1001
+ "dollarLikely": 136250,
1002
+ "dollarWorst": 775000,
1003
+ "dollarLow": 23250,
1004
+ "dollarHigh": 775000,
1005
+ "components": {
1006
+ "incidentResponse": {
1007
+ "low": 8000,
1008
+ "likely": 50000,
1009
+ "high": 250000
1010
+ },
1011
+ "legal": {
1012
+ "low": 10000,
1013
+ "likely": 75000,
1014
+ "high": 500000
1015
+ },
1016
+ "crisisPR": {
1017
+ "low": 0,
1018
+ "likely": 0,
1019
+ "high": 0
1020
+ },
1021
+ "notification": {
1022
+ "low": 5000,
1023
+ "likely": 10000,
1024
+ "high": 15000
1025
+ },
1026
+ "creditMonitoring": {
1027
+ "low": 0,
1028
+ "likely": 0,
1029
+ "high": 0
1030
+ },
1031
+ "regulatoryFines": {
1032
+ "low": 0,
1033
+ "likely": 0,
1034
+ "high": 0
1035
+ },
1036
+ "directDamage": {
1037
+ "low": 250,
1038
+ "likely": 1250,
1039
+ "high": 10000
1040
+ },
1041
+ "classAction": {
1042
+ "low": 0,
1043
+ "likely": 0,
1044
+ "high": 0
1045
+ },
1046
+ "lostBusiness": {
1047
+ "low": 0,
1048
+ "likely": 0,
1049
+ "high": 0
1050
+ }
1051
+ },
1052
+ "dominantDriver": "legal counsel",
1053
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
1054
+ "confidence": "low",
1055
+ "narrative": "Missing Unsigned Numeric Validation on `agentic-security-audit.js:131` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
1056
+ }
1057
+ },
1058
+ {
1059
+ "id": "logic:agentic-security-audit.js:55:TOCTOU:_existsSync_followed_by_file_op",
1060
+ "kind": "logic",
1061
+ "severity": "medium",
1062
+ "vuln": "TOCTOU: existsSync followed by file op",
1063
+ "cwe": "CWE-367",
1064
+ "stride": "Tampering",
1065
+ "file": "agentic-security-audit.js",
1066
+ "line": 55,
1067
+ "snippet": "if (!fs.existsSync(fp)) return [];",
1068
+ "fix": {
1069
+ "description": "Replace the check-then-act sequence with a single atomic operation (e.g., `fs.open` with appropriate flags). Between `existsSync` and the file op the file can be replaced by a symlink or removed.",
1070
+ "code": ""
1071
+ },
1072
+ "blastRadius": {
1073
+ "scope": "all-users",
1074
+ "dataAtRisk": [
1075
+ "config"
1076
+ ],
1077
+ "userCount": 50,
1078
+ "industry": "generic",
1079
+ "jurisdictions": [],
1080
+ "controlsApplied": [],
1081
+ "dollarBest": 23250,
1082
+ "dollarLikely": 136250,
1083
+ "dollarWorst": 775000,
1084
+ "dollarLow": 23250,
1085
+ "dollarHigh": 775000,
1086
+ "components": {
1087
+ "incidentResponse": {
1088
+ "low": 8000,
1089
+ "likely": 50000,
1090
+ "high": 250000
1091
+ },
1092
+ "legal": {
1093
+ "low": 10000,
1094
+ "likely": 75000,
1095
+ "high": 500000
1096
+ },
1097
+ "crisisPR": {
1098
+ "low": 0,
1099
+ "likely": 0,
1100
+ "high": 0
1101
+ },
1102
+ "notification": {
1103
+ "low": 5000,
1104
+ "likely": 10000,
1105
+ "high": 15000
1106
+ },
1107
+ "creditMonitoring": {
1108
+ "low": 0,
1109
+ "likely": 0,
1110
+ "high": 0
1111
+ },
1112
+ "regulatoryFines": {
1113
+ "low": 0,
1114
+ "likely": 0,
1115
+ "high": 0
1116
+ },
1117
+ "directDamage": {
1118
+ "low": 250,
1119
+ "likely": 1250,
1120
+ "high": 10000
1121
+ },
1122
+ "classAction": {
1123
+ "low": 0,
1124
+ "likely": 0,
1125
+ "high": 0
1126
+ },
1127
+ "lostBusiness": {
1128
+ "low": 0,
1129
+ "likely": 0,
1130
+ "high": 0
1131
+ }
1132
+ },
1133
+ "dominantDriver": "legal counsel",
1134
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
1135
+ "confidence": "low",
1136
+ "narrative": "TOCTOU: existsSync followed by file op on `agentic-security-audit.js:55` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
1137
+ }
1138
+ },
1139
+ {
1140
+ "id": "e2445e40b5e43c01",
1141
+ "kind": "logic",
1142
+ "severity": "medium",
1143
+ "vuln": "Race Condition (TOCTOU)",
1144
+ "cwe": "CWE-367",
1145
+ "stride": "Tampering",
1146
+ "file": "agentic-security-consistency.js",
1147
+ "line": 66,
1148
+ "snippet": "if (fs.existsSync(fp)) fileContents[f.file] = fs.readFileSync(fp, 'utf8');",
1149
+ "fix": {
1150
+ "description": "Use atomic operations instead of check-then-act patterns.",
1151
+ "code": "// BEFORE\nif (fs.existsSync(p)) fs.unlinkSync(p);\n\n// AFTER\ntry { fs.unlinkSync(p); } catch(e) { if(e.code!=='ENOENT') throw e; }"
1152
+ },
1153
+ "blastRadius": {
1154
+ "scope": "all-users",
1155
+ "dataAtRisk": [
1156
+ "config"
1157
+ ],
1158
+ "userCount": 50,
1159
+ "industry": "generic",
1160
+ "jurisdictions": [],
1161
+ "controlsApplied": [],
1162
+ "dollarBest": 23250,
1163
+ "dollarLikely": 136250,
1164
+ "dollarWorst": 775000,
1165
+ "dollarLow": 23250,
1166
+ "dollarHigh": 775000,
1167
+ "components": {
1168
+ "incidentResponse": {
1169
+ "low": 8000,
1170
+ "likely": 50000,
1171
+ "high": 250000
1172
+ },
1173
+ "legal": {
1174
+ "low": 10000,
1175
+ "likely": 75000,
1176
+ "high": 500000
1177
+ },
1178
+ "crisisPR": {
1179
+ "low": 0,
1180
+ "likely": 0,
1181
+ "high": 0
1182
+ },
1183
+ "notification": {
1184
+ "low": 5000,
1185
+ "likely": 10000,
1186
+ "high": 15000
1187
+ },
1188
+ "creditMonitoring": {
1189
+ "low": 0,
1190
+ "likely": 0,
1191
+ "high": 0
1192
+ },
1193
+ "regulatoryFines": {
1194
+ "low": 0,
1195
+ "likely": 0,
1196
+ "high": 0
1197
+ },
1198
+ "directDamage": {
1199
+ "low": 250,
1200
+ "likely": 1250,
1201
+ "high": 10000
1202
+ },
1203
+ "classAction": {
1204
+ "low": 0,
1205
+ "likely": 0,
1206
+ "high": 0
1207
+ },
1208
+ "lostBusiness": {
1209
+ "low": 0,
1210
+ "likely": 0,
1211
+ "high": 0
1212
+ }
1213
+ },
1214
+ "dominantDriver": "legal counsel",
1215
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
1216
+ "confidence": "low",
1217
+ "narrative": "Race Condition (TOCTOU) on `agentic-security-consistency.js:66` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
1218
+ }
1219
+ },
1220
+ {
1221
+ "id": "logic:agentic-security-consistency.js:44:TOCTOU:_existsSync_followed_by_file_op",
1222
+ "kind": "logic",
1223
+ "severity": "medium",
1224
+ "vuln": "TOCTOU: existsSync followed by file op",
1225
+ "cwe": "CWE-367",
1226
+ "stride": "Tampering",
1227
+ "file": "agentic-security-consistency.js",
1228
+ "line": 44,
1229
+ "snippet": "if (!fs.existsSync(scanFile)) {",
1230
+ "fix": {
1231
+ "description": "Replace the check-then-act sequence with a single atomic operation (e.g., `fs.open` with appropriate flags). Between `existsSync` and the file op the file can be replaced by a symlink or removed.",
1232
+ "code": ""
1233
+ },
1234
+ "blastRadius": {
1235
+ "scope": "all-users",
1236
+ "dataAtRisk": [
1237
+ "config"
1238
+ ],
1239
+ "userCount": 50,
1240
+ "industry": "generic",
1241
+ "jurisdictions": [],
1242
+ "controlsApplied": [],
1243
+ "dollarBest": 23250,
1244
+ "dollarLikely": 136250,
1245
+ "dollarWorst": 775000,
1246
+ "dollarLow": 23250,
1247
+ "dollarHigh": 775000,
1248
+ "components": {
1249
+ "incidentResponse": {
1250
+ "low": 8000,
1251
+ "likely": 50000,
1252
+ "high": 250000
1253
+ },
1254
+ "legal": {
1255
+ "low": 10000,
1256
+ "likely": 75000,
1257
+ "high": 500000
1258
+ },
1259
+ "crisisPR": {
1260
+ "low": 0,
1261
+ "likely": 0,
1262
+ "high": 0
1263
+ },
1264
+ "notification": {
1265
+ "low": 5000,
1266
+ "likely": 10000,
1267
+ "high": 15000
1268
+ },
1269
+ "creditMonitoring": {
1270
+ "low": 0,
1271
+ "likely": 0,
1272
+ "high": 0
1273
+ },
1274
+ "regulatoryFines": {
1275
+ "low": 0,
1276
+ "likely": 0,
1277
+ "high": 0
1278
+ },
1279
+ "directDamage": {
1280
+ "low": 250,
1281
+ "likely": 1250,
1282
+ "high": 10000
1283
+ },
1284
+ "classAction": {
1285
+ "low": 0,
1286
+ "likely": 0,
1287
+ "high": 0
1288
+ },
1289
+ "lostBusiness": {
1290
+ "low": 0,
1291
+ "likely": 0,
1292
+ "high": 0
1293
+ }
1294
+ },
1295
+ "dominantDriver": "legal counsel",
1296
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
1297
+ "confidence": "low",
1298
+ "narrative": "TOCTOU: existsSync followed by file op on `agentic-security-consistency.js:44` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
1299
+ }
1300
+ },
1301
+ {
1302
+ "id": "logic:agentic-security-consistency.js:66:TOCTOU:_existsSync_followed_by_file_op",
1303
+ "kind": "logic",
1304
+ "severity": "medium",
1305
+ "vuln": "TOCTOU: existsSync followed by file op",
1306
+ "cwe": "CWE-367",
1307
+ "stride": "Tampering",
1308
+ "file": "agentic-security-consistency.js",
1309
+ "line": 66,
1310
+ "snippet": "if (fs.existsSync(fp)) fileContents[f.file] = fs.readFileSync(fp, 'utf8');",
1311
+ "fix": {
1312
+ "description": "Replace the check-then-act sequence with a single atomic operation (e.g., `fs.open` with appropriate flags). Between `existsSync` and the file op the file can be replaced by a symlink or removed.",
1313
+ "code": ""
1314
+ },
1315
+ "blastRadius": {
1316
+ "scope": "all-users",
1317
+ "dataAtRisk": [
1318
+ "config"
1319
+ ],
1320
+ "userCount": 50,
1321
+ "industry": "generic",
1322
+ "jurisdictions": [],
1323
+ "controlsApplied": [],
1324
+ "dollarBest": 23250,
1325
+ "dollarLikely": 136250,
1326
+ "dollarWorst": 775000,
1327
+ "dollarLow": 23250,
1328
+ "dollarHigh": 775000,
1329
+ "components": {
1330
+ "incidentResponse": {
1331
+ "low": 8000,
1332
+ "likely": 50000,
1333
+ "high": 250000
1334
+ },
1335
+ "legal": {
1336
+ "low": 10000,
1337
+ "likely": 75000,
1338
+ "high": 500000
1339
+ },
1340
+ "crisisPR": {
1341
+ "low": 0,
1342
+ "likely": 0,
1343
+ "high": 0
1344
+ },
1345
+ "notification": {
1346
+ "low": 5000,
1347
+ "likely": 10000,
1348
+ "high": 15000
1349
+ },
1350
+ "creditMonitoring": {
1351
+ "low": 0,
1352
+ "likely": 0,
1353
+ "high": 0
1354
+ },
1355
+ "regulatoryFines": {
1356
+ "low": 0,
1357
+ "likely": 0,
1358
+ "high": 0
1359
+ },
1360
+ "directDamage": {
1361
+ "low": 250,
1362
+ "likely": 1250,
1363
+ "high": 10000
1364
+ },
1365
+ "classAction": {
1366
+ "low": 0,
1367
+ "likely": 0,
1368
+ "high": 0
1369
+ },
1370
+ "lostBusiness": {
1371
+ "low": 0,
1372
+ "likely": 0,
1373
+ "high": 0
1374
+ }
1375
+ },
1376
+ "dominantDriver": "legal counsel",
1377
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
1378
+ "confidence": "low",
1379
+ "narrative": "TOCTOU: existsSync followed by file op on `agentic-security-consistency.js:66` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
1380
+ }
1381
+ },
1382
+ {
1383
+ "id": "49e1e00962a1950c",
1384
+ "kind": "logic",
1385
+ "severity": "medium",
1386
+ "vuln": "Weak Randomness",
1387
+ "cwe": "CWE-330",
1388
+ "stride": "Spoofing",
1389
+ "file": "agentic-security-rule.js",
1390
+ "line": 98,
1391
+ "snippet": "id: `key-${new Date().toISOString().slice(0, 10)}-${Math.random().toString(36).slice(2, 6)}`,",
1392
+ "fix": {
1393
+ "description": "Use crypto.randomBytes or crypto.randomUUID for security-sensitive values.",
1394
+ "code": "// BEFORE\nconst token = Math.random().toString(36);\n\n// AFTER\nconst token = crypto.randomBytes(32).toString('hex');"
1395
+ },
1396
+ "blastRadius": {
1397
+ "scope": "all-users",
1398
+ "dataAtRisk": [
1399
+ "config"
1400
+ ],
1401
+ "userCount": 50,
1402
+ "industry": "generic",
1403
+ "jurisdictions": [],
1404
+ "controlsApplied": [],
1405
+ "dollarBest": 23250,
1406
+ "dollarLikely": 136250,
1407
+ "dollarWorst": 775000,
1408
+ "dollarLow": 23250,
1409
+ "dollarHigh": 775000,
1410
+ "components": {
1411
+ "incidentResponse": {
1412
+ "low": 8000,
1413
+ "likely": 50000,
1414
+ "high": 250000
1415
+ },
1416
+ "legal": {
1417
+ "low": 10000,
1418
+ "likely": 75000,
1419
+ "high": 500000
1420
+ },
1421
+ "crisisPR": {
1422
+ "low": 0,
1423
+ "likely": 0,
1424
+ "high": 0
1425
+ },
1426
+ "notification": {
1427
+ "low": 5000,
1428
+ "likely": 10000,
1429
+ "high": 15000
1430
+ },
1431
+ "creditMonitoring": {
1432
+ "low": 0,
1433
+ "likely": 0,
1434
+ "high": 0
1435
+ },
1436
+ "regulatoryFines": {
1437
+ "low": 0,
1438
+ "likely": 0,
1439
+ "high": 0
1440
+ },
1441
+ "directDamage": {
1442
+ "low": 250,
1443
+ "likely": 1250,
1444
+ "high": 10000
1445
+ },
1446
+ "classAction": {
1447
+ "low": 0,
1448
+ "likely": 0,
1449
+ "high": 0
1450
+ },
1451
+ "lostBusiness": {
1452
+ "low": 0,
1453
+ "likely": 0,
1454
+ "high": 0
1455
+ }
1456
+ },
1457
+ "dominantDriver": "legal counsel",
1458
+ "comparable": "Generic finding — likely cost driven by user count + jurisdiction stack",
1459
+ "confidence": "low",
1460
+ "narrative": "Weak Randomness on `agentic-security-rule.js:98` could expose configuration / internal data. Context: general SaaS / no specific regulatory exposure. Estimated cost: best $23k · likely $136k · worst $775k. Dominant driver: legal counsel. Comparable: Generic finding — likely cost driven by user count + jurisdiction stack."
1461
+ }
1462
+ }
1463
+ ],
1464
+ "bundles": [],
1465
+ "routes": [],
1466
+ "components": [],
1467
+ "suppressedCount": 38,
1468
+ "blastRadiusSignals": {
1469
+ "industry": "generic",
1470
+ "industryConfidence": "low",
1471
+ "jurisdictions": [],
1472
+ "controls": [],
1473
+ "estimatedUsers": 50,
1474
+ "revenueIndicator": "pre-revenue",
1475
+ "hasStripe": false,
1476
+ "hasAuth": false,
1477
+ "hasUserTable": false,
1478
+ "hasPII": false,
1479
+ "hasPHI": false,
1480
+ "hasS3": false
1481
+ },
1482
+ "_v3": {
1483
+ "counterfactual": {
1484
+ "spofControls": [],
1485
+ "controlsDetected": 118
1486
+ },
1487
+ "threatModel": {
1488
+ "summary": {
1489
+ "assetCount": 1,
1490
+ "boundaryCount": 0,
1491
+ "strideCounts": {
1492
+ "spoofing": 0,
1493
+ "tampering": 4,
1494
+ "repudiation": 0,
1495
+ "informationDisclosure": 0,
1496
+ "denialOfService": 0,
1497
+ "elevationOfPrivilege": 0
1498
+ }
1499
+ },
1500
+ "assets": [
1501
+ {
1502
+ "name": "AGENTIC_SECURITY_PRIVATE_KEY",
1503
+ "file": "agentic-security-rule.js",
1504
+ "line": 121,
1505
+ "category": "secret",
1506
+ "exposure": "internal"
1507
+ }
1508
+ ],
1509
+ "trustBoundaries": [],
1510
+ "stride": {
1511
+ "spoofing": [],
1512
+ "tampering": [
1513
+ {
1514
+ "vuln": "TOCTOU: file existence/permission check before open",
1515
+ "file": "agentic-security-audit.js",
1516
+ "line": 55,
1517
+ "severity": "medium"
1518
+ },
1519
+ {
1520
+ "vuln": "TOCTOU: file existence/permission check before open",
1521
+ "file": "agentic-security-consistency.js",
1522
+ "line": 44,
1523
+ "severity": "medium"
1524
+ },
1525
+ {
1526
+ "vuln": "TOCTOU: file existence/permission check before open",
1527
+ "file": "agentic-security-consistency.js",
1528
+ "line": 66,
1529
+ "severity": "medium"
1530
+ },
1531
+ {
1532
+ "vuln": "TOCTOU: file existence/permission check before open",
1533
+ "file": "agentic-security.js",
1534
+ "line": 1105,
1535
+ "severity": "medium"
1536
+ }
1537
+ ],
1538
+ "repudiation": [],
1539
+ "informationDisclosure": [],
1540
+ "denialOfService": [],
1541
+ "elevationOfPrivilege": []
1542
+ }
1543
+ },
1544
+ "trustBoundaryDiagram": {
1545
+ "mermaid": "flowchart LR\n INTERNET((Internet))\n APP[\"Application\"]\n asset_secret_AGENTIC_SECURITY_PRIVATE_KEY[/\"secret: AGENTIC_SECURITY_PRIVATE_KEY\"/]\n APP -->|asset| asset_secret_AGENTIC_SECURITY_PRIVATE_KEY\n classDef sev_critical fill:#ffcccc,stroke:#a00,stroke-width:2px;\n classDef sev_high fill:#ffe0b2,stroke:#c60,stroke-width:2px;\n classDef sev_medium fill:#fff3cd,stroke:#a80;\n classDef sev_low fill:#e8eaf6,stroke:#557;",
1546
+ "nodes": [
1547
+ {
1548
+ "id": "INTERNET",
1549
+ "kind": "external",
1550
+ "label": "Internet"
1551
+ },
1552
+ {
1553
+ "id": "APP",
1554
+ "kind": "app",
1555
+ "label": "Application"
1556
+ },
1557
+ {
1558
+ "id": "asset_secret_AGENTIC_SECURITY_PRIVATE_KEY",
1559
+ "kind": "asset",
1560
+ "label": "secret: AGENTIC_SECURITY_PRIVATE_KEY"
1561
+ }
1562
+ ],
1563
+ "edges": [
1564
+ {
1565
+ "from": "APP",
1566
+ "to": "asset_secret_AGENTIC_SECURITY_PRIVATE_KEY",
1567
+ "kind": "asset"
1568
+ }
1569
+ ],
1570
+ "decorations": []
1571
+ },
1572
+ "calibrationDrift": {
1573
+ "alarms": [],
1574
+ "note": "no-feedback-data"
1575
+ }
1576
+ }
1577
+ }