vaspera 2.5.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 (712) hide show
  1. package/CHANGELOG.md +184 -0
  2. package/LICENSE +21 -0
  3. package/README.md +809 -0
  4. package/dist/__tests__/integration/certification-flow.test.d.ts +5 -0
  5. package/dist/__tests__/integration/certification-flow.test.d.ts.map +1 -0
  6. package/dist/__tests__/integration/certification-flow.test.js +245 -0
  7. package/dist/__tests__/integration/certification-flow.test.js.map +1 -0
  8. package/dist/__tests__/integration/commands.test.d.ts +5 -0
  9. package/dist/__tests__/integration/commands.test.d.ts.map +1 -0
  10. package/dist/__tests__/integration/commands.test.js +93 -0
  11. package/dist/__tests__/integration/commands.test.js.map +1 -0
  12. package/dist/action/diff-mode.d.ts +34 -0
  13. package/dist/action/diff-mode.d.ts.map +1 -0
  14. package/dist/action/diff-mode.js +201 -0
  15. package/dist/action/diff-mode.js.map +1 -0
  16. package/dist/action/diff-mode.test.d.ts +5 -0
  17. package/dist/action/diff-mode.test.d.ts.map +1 -0
  18. package/dist/action/diff-mode.test.js +162 -0
  19. package/dist/action/diff-mode.test.js.map +1 -0
  20. package/dist/action/index.d.ts +10 -0
  21. package/dist/action/index.d.ts.map +1 -0
  22. package/dist/action/index.js +231 -0
  23. package/dist/action/index.js.map +1 -0
  24. package/dist/action/pr-comment.d.ts +30 -0
  25. package/dist/action/pr-comment.d.ts.map +1 -0
  26. package/dist/action/pr-comment.js +301 -0
  27. package/dist/action/pr-comment.js.map +1 -0
  28. package/dist/action/pr-comment.test.d.ts +5 -0
  29. package/dist/action/pr-comment.test.d.ts.map +1 -0
  30. package/dist/action/pr-comment.test.js +189 -0
  31. package/dist/action/pr-comment.test.js.map +1 -0
  32. package/dist/action/sarif-upload.d.ts +104 -0
  33. package/dist/action/sarif-upload.d.ts.map +1 -0
  34. package/dist/action/sarif-upload.js +188 -0
  35. package/dist/action/sarif-upload.js.map +1 -0
  36. package/dist/action/sarif-upload.test.d.ts +5 -0
  37. package/dist/action/sarif-upload.test.d.ts.map +1 -0
  38. package/dist/action/sarif-upload.test.js +206 -0
  39. package/dist/action/sarif-upload.test.js.map +1 -0
  40. package/dist/action/types.d.ts +104 -0
  41. package/dist/action/types.d.ts.map +1 -0
  42. package/dist/action/types.js +33 -0
  43. package/dist/action/types.js.map +1 -0
  44. package/dist/action/types.test.d.ts +5 -0
  45. package/dist/action/types.test.d.ts.map +1 -0
  46. package/dist/action/types.test.js +79 -0
  47. package/dist/action/types.test.js.map +1 -0
  48. package/dist/agents/agent-integrity.d.ts +111 -0
  49. package/dist/agents/agent-integrity.d.ts.map +1 -0
  50. package/dist/agents/agent-integrity.js +308 -0
  51. package/dist/agents/agent-integrity.js.map +1 -0
  52. package/dist/agents/agent-privacy.d.ts +68 -0
  53. package/dist/agents/agent-privacy.d.ts.map +1 -0
  54. package/dist/agents/agent-privacy.js +345 -0
  55. package/dist/agents/agent-privacy.js.map +1 -0
  56. package/dist/agents/exploit-chain.d.ts +64 -0
  57. package/dist/agents/exploit-chain.d.ts.map +1 -0
  58. package/dist/agents/exploit-chain.js +477 -0
  59. package/dist/agents/exploit-chain.js.map +1 -0
  60. package/dist/agents/exploit-chain.test.d.ts +5 -0
  61. package/dist/agents/exploit-chain.test.d.ts.map +1 -0
  62. package/dist/agents/exploit-chain.test.js +455 -0
  63. package/dist/agents/exploit-chain.test.js.map +1 -0
  64. package/dist/agents/index.d.ts +14 -0
  65. package/dist/agents/index.d.ts.map +1 -0
  66. package/dist/agents/index.js +19 -0
  67. package/dist/agents/index.js.map +1 -0
  68. package/dist/agents/logic-flaw-detector.d.ts +55 -0
  69. package/dist/agents/logic-flaw-detector.d.ts.map +1 -0
  70. package/dist/agents/logic-flaw-detector.js +454 -0
  71. package/dist/agents/logic-flaw-detector.js.map +1 -0
  72. package/dist/agents/zero-day-hunter.d.ts +69 -0
  73. package/dist/agents/zero-day-hunter.d.ts.map +1 -0
  74. package/dist/agents/zero-day-hunter.js +591 -0
  75. package/dist/agents/zero-day-hunter.js.map +1 -0
  76. package/dist/certification/artifacts.d.ts +21 -0
  77. package/dist/certification/artifacts.d.ts.map +1 -0
  78. package/dist/certification/artifacts.js +275 -0
  79. package/dist/certification/artifacts.js.map +1 -0
  80. package/dist/certification/autofix.d.ts +122 -0
  81. package/dist/certification/autofix.d.ts.map +1 -0
  82. package/dist/certification/autofix.js +476 -0
  83. package/dist/certification/autofix.js.map +1 -0
  84. package/dist/certification/badge.d.ts +56 -0
  85. package/dist/certification/badge.d.ts.map +1 -0
  86. package/dist/certification/badge.js +155 -0
  87. package/dist/certification/badge.js.map +1 -0
  88. package/dist/certification/cache.d.ts +121 -0
  89. package/dist/certification/cache.d.ts.map +1 -0
  90. package/dist/certification/cache.js +275 -0
  91. package/dist/certification/cache.js.map +1 -0
  92. package/dist/certification/cache.test.d.ts +5 -0
  93. package/dist/certification/cache.test.d.ts.map +1 -0
  94. package/dist/certification/cache.test.js +270 -0
  95. package/dist/certification/cache.test.js.map +1 -0
  96. package/dist/certification/consensus.d.ts +105 -0
  97. package/dist/certification/consensus.d.ts.map +1 -0
  98. package/dist/certification/consensus.js +353 -0
  99. package/dist/certification/consensus.js.map +1 -0
  100. package/dist/certification/consensus.test.d.ts +5 -0
  101. package/dist/certification/consensus.test.d.ts.map +1 -0
  102. package/dist/certification/consensus.test.js +342 -0
  103. package/dist/certification/consensus.test.js.map +1 -0
  104. package/dist/certification/index.d.ts +14 -0
  105. package/dist/certification/index.d.ts.map +1 -0
  106. package/dist/certification/index.js +14 -0
  107. package/dist/certification/index.js.map +1 -0
  108. package/dist/certification/rules.d.ts +89 -0
  109. package/dist/certification/rules.d.ts.map +1 -0
  110. package/dist/certification/rules.js +317 -0
  111. package/dist/certification/rules.js.map +1 -0
  112. package/dist/certification/sarif.d.ts +107 -0
  113. package/dist/certification/sarif.d.ts.map +1 -0
  114. package/dist/certification/sarif.js +191 -0
  115. package/dist/certification/sarif.js.map +1 -0
  116. package/dist/certification/store.d.ts +255 -0
  117. package/dist/certification/store.d.ts.map +1 -0
  118. package/dist/certification/store.js +835 -0
  119. package/dist/certification/store.js.map +1 -0
  120. package/dist/certification/store.test.d.ts +5 -0
  121. package/dist/certification/store.test.d.ts.map +1 -0
  122. package/dist/certification/store.test.js +468 -0
  123. package/dist/certification/store.test.js.map +1 -0
  124. package/dist/certification/summary.d.ts +72 -0
  125. package/dist/certification/summary.d.ts.map +1 -0
  126. package/dist/certification/summary.js +296 -0
  127. package/dist/certification/summary.js.map +1 -0
  128. package/dist/certification/types.d.ts +138 -0
  129. package/dist/certification/types.d.ts.map +1 -0
  130. package/dist/certification/types.js +34 -0
  131. package/dist/certification/types.js.map +1 -0
  132. package/dist/commands/audits/api-check.d.ts +3 -0
  133. package/dist/commands/audits/api-check.d.ts.map +1 -0
  134. package/dist/commands/audits/api-check.js +71 -0
  135. package/dist/commands/audits/api-check.js.map +1 -0
  136. package/dist/commands/audits/deadcode.d.ts +3 -0
  137. package/dist/commands/audits/deadcode.d.ts.map +1 -0
  138. package/dist/commands/audits/deadcode.js +63 -0
  139. package/dist/commands/audits/deadcode.js.map +1 -0
  140. package/dist/commands/audits/deps.d.ts +3 -0
  141. package/dist/commands/audits/deps.d.ts.map +1 -0
  142. package/dist/commands/audits/deps.js +56 -0
  143. package/dist/commands/audits/deps.js.map +1 -0
  144. package/dist/commands/audits/errors.d.ts +3 -0
  145. package/dist/commands/audits/errors.d.ts.map +1 -0
  146. package/dist/commands/audits/errors.js +65 -0
  147. package/dist/commands/audits/errors.js.map +1 -0
  148. package/dist/commands/audits/index.d.ts +3 -0
  149. package/dist/commands/audits/index.d.ts.map +1 -0
  150. package/dist/commands/audits/index.js +15 -0
  151. package/dist/commands/audits/index.js.map +1 -0
  152. package/dist/commands/audits/perf.d.ts +3 -0
  153. package/dist/commands/audits/perf.d.ts.map +1 -0
  154. package/dist/commands/audits/perf.js +85 -0
  155. package/dist/commands/audits/perf.js.map +1 -0
  156. package/dist/commands/audits/secrets.d.ts +3 -0
  157. package/dist/commands/audits/secrets.d.ts.map +1 -0
  158. package/dist/commands/audits/secrets.js +71 -0
  159. package/dist/commands/audits/secrets.js.map +1 -0
  160. package/dist/commands/certification/certify.d.ts +3 -0
  161. package/dist/commands/certification/certify.d.ts.map +1 -0
  162. package/dist/commands/certification/certify.js +108 -0
  163. package/dist/commands/certification/certify.js.map +1 -0
  164. package/dist/commands/certification/index.d.ts +3 -0
  165. package/dist/commands/certification/index.d.ts.map +1 -0
  166. package/dist/commands/certification/index.js +17 -0
  167. package/dist/commands/certification/index.js.map +1 -0
  168. package/dist/commands/certification/performance.d.ts +3 -0
  169. package/dist/commands/certification/performance.d.ts.map +1 -0
  170. package/dist/commands/certification/performance.js +89 -0
  171. package/dist/commands/certification/performance.js.map +1 -0
  172. package/dist/commands/certification/quality.d.ts +3 -0
  173. package/dist/commands/certification/quality.d.ts.map +1 -0
  174. package/dist/commands/certification/quality.js +92 -0
  175. package/dist/commands/certification/quality.js.map +1 -0
  176. package/dist/commands/certification/redteam.d.ts +3 -0
  177. package/dist/commands/certification/redteam.d.ts.map +1 -0
  178. package/dist/commands/certification/redteam.js +114 -0
  179. package/dist/commands/certification/redteam.js.map +1 -0
  180. package/dist/commands/certification/reliability.d.ts +3 -0
  181. package/dist/commands/certification/reliability.d.ts.map +1 -0
  182. package/dist/commands/certification/reliability.js +93 -0
  183. package/dist/commands/certification/reliability.js.map +1 -0
  184. package/dist/commands/certification/security.d.ts +3 -0
  185. package/dist/commands/certification/security.d.ts.map +1 -0
  186. package/dist/commands/certification/security.js +90 -0
  187. package/dist/commands/certification/security.js.map +1 -0
  188. package/dist/commands/certification/typesafety.d.ts +3 -0
  189. package/dist/commands/certification/typesafety.d.ts.map +1 -0
  190. package/dist/commands/certification/typesafety.js +87 -0
  191. package/dist/commands/certification/typesafety.js.map +1 -0
  192. package/dist/commands/core/add-tests.d.ts +3 -0
  193. package/dist/commands/core/add-tests.d.ts.map +1 -0
  194. package/dist/commands/core/add-tests.js +29 -0
  195. package/dist/commands/core/add-tests.js.map +1 -0
  196. package/dist/commands/core/audit.d.ts +3 -0
  197. package/dist/commands/core/audit.d.ts.map +1 -0
  198. package/dist/commands/core/audit.js +64 -0
  199. package/dist/commands/core/audit.js.map +1 -0
  200. package/dist/commands/core/fix-critical.d.ts +3 -0
  201. package/dist/commands/core/fix-critical.d.ts.map +1 -0
  202. package/dist/commands/core/fix-critical.js +22 -0
  203. package/dist/commands/core/fix-critical.js.map +1 -0
  204. package/dist/commands/core/fix-high.d.ts +3 -0
  205. package/dist/commands/core/fix-high.d.ts.map +1 -0
  206. package/dist/commands/core/fix-high.js +32 -0
  207. package/dist/commands/core/fix-high.js.map +1 -0
  208. package/dist/commands/core/fix-medium.d.ts +3 -0
  209. package/dist/commands/core/fix-medium.d.ts.map +1 -0
  210. package/dist/commands/core/fix-medium.js +29 -0
  211. package/dist/commands/core/fix-medium.js.map +1 -0
  212. package/dist/commands/core/fix-rls.d.ts +3 -0
  213. package/dist/commands/core/fix-rls.d.ts.map +1 -0
  214. package/dist/commands/core/fix-rls.js +17 -0
  215. package/dist/commands/core/fix-rls.js.map +1 -0
  216. package/dist/commands/core/harden.d.ts +3 -0
  217. package/dist/commands/core/harden.d.ts.map +1 -0
  218. package/dist/commands/core/harden.js +19 -0
  219. package/dist/commands/core/harden.js.map +1 -0
  220. package/dist/commands/core/index.d.ts +3 -0
  221. package/dist/commands/core/index.d.ts.map +1 -0
  222. package/dist/commands/core/index.js +21 -0
  223. package/dist/commands/core/index.js.map +1 -0
  224. package/dist/commands/core/preflight.d.ts +3 -0
  225. package/dist/commands/core/preflight.d.ts.map +1 -0
  226. package/dist/commands/core/preflight.js +50 -0
  227. package/dist/commands/core/preflight.js.map +1 -0
  228. package/dist/commands/core/verify.d.ts +3 -0
  229. package/dist/commands/core/verify.d.ts.map +1 -0
  230. package/dist/commands/core/verify.js +32 -0
  231. package/dist/commands/core/verify.js.map +1 -0
  232. package/dist/commands/index.d.ts +28 -0
  233. package/dist/commands/index.d.ts.map +1 -0
  234. package/dist/commands/index.js +37 -0
  235. package/dist/commands/index.js.map +1 -0
  236. package/dist/commands/types.d.ts +9 -0
  237. package/dist/commands/types.d.ts.map +1 -0
  238. package/dist/commands/types.js +5 -0
  239. package/dist/commands/types.js.map +1 -0
  240. package/dist/compliance/cis.d.ts +29 -0
  241. package/dist/compliance/cis.d.ts.map +1 -0
  242. package/dist/compliance/cis.js +316 -0
  243. package/dist/compliance/cis.js.map +1 -0
  244. package/dist/compliance/frameworks/eu-ai-act.d.ts +55 -0
  245. package/dist/compliance/frameworks/eu-ai-act.d.ts.map +1 -0
  246. package/dist/compliance/frameworks/eu-ai-act.js +621 -0
  247. package/dist/compliance/frameworks/eu-ai-act.js.map +1 -0
  248. package/dist/compliance/frameworks/index.d.ts +67 -0
  249. package/dist/compliance/frameworks/index.d.ts.map +1 -0
  250. package/dist/compliance/frameworks/index.js +97 -0
  251. package/dist/compliance/frameworks/index.js.map +1 -0
  252. package/dist/compliance/frameworks/iso-42001.d.ts +59 -0
  253. package/dist/compliance/frameworks/iso-42001.d.ts.map +1 -0
  254. package/dist/compliance/frameworks/iso-42001.js +719 -0
  255. package/dist/compliance/frameworks/iso-42001.js.map +1 -0
  256. package/dist/compliance/frameworks/mitre-atlas.d.ts +58 -0
  257. package/dist/compliance/frameworks/mitre-atlas.d.ts.map +1 -0
  258. package/dist/compliance/frameworks/mitre-atlas.js +686 -0
  259. package/dist/compliance/frameworks/mitre-atlas.js.map +1 -0
  260. package/dist/compliance/frameworks/nist-ai-rmf.d.ts +51 -0
  261. package/dist/compliance/frameworks/nist-ai-rmf.d.ts.map +1 -0
  262. package/dist/compliance/frameworks/nist-ai-rmf.js +677 -0
  263. package/dist/compliance/frameworks/nist-ai-rmf.js.map +1 -0
  264. package/dist/compliance/frameworks/owasp-llm.d.ts +58 -0
  265. package/dist/compliance/frameworks/owasp-llm.d.ts.map +1 -0
  266. package/dist/compliance/frameworks/owasp-llm.js +399 -0
  267. package/dist/compliance/frameworks/owasp-llm.js.map +1 -0
  268. package/dist/compliance/gdpr.d.ts +34 -0
  269. package/dist/compliance/gdpr.d.ts.map +1 -0
  270. package/dist/compliance/gdpr.js +319 -0
  271. package/dist/compliance/gdpr.js.map +1 -0
  272. package/dist/compliance/hipaa.d.ts +29 -0
  273. package/dist/compliance/hipaa.d.ts.map +1 -0
  274. package/dist/compliance/hipaa.js +205 -0
  275. package/dist/compliance/hipaa.js.map +1 -0
  276. package/dist/compliance/index.d.ts +18 -0
  277. package/dist/compliance/index.d.ts.map +1 -0
  278. package/dist/compliance/index.js +26 -0
  279. package/dist/compliance/index.js.map +1 -0
  280. package/dist/compliance/iso27001.d.ts +30 -0
  281. package/dist/compliance/iso27001.d.ts.map +1 -0
  282. package/dist/compliance/iso27001.js +332 -0
  283. package/dist/compliance/iso27001.js.map +1 -0
  284. package/dist/compliance/mapper.d.ts +42 -0
  285. package/dist/compliance/mapper.d.ts.map +1 -0
  286. package/dist/compliance/mapper.js +269 -0
  287. package/dist/compliance/mapper.js.map +1 -0
  288. package/dist/compliance/mapper.test.d.ts +5 -0
  289. package/dist/compliance/mapper.test.d.ts.map +1 -0
  290. package/dist/compliance/mapper.test.js +360 -0
  291. package/dist/compliance/mapper.test.js.map +1 -0
  292. package/dist/compliance/pci-dss.d.ts +29 -0
  293. package/dist/compliance/pci-dss.d.ts.map +1 -0
  294. package/dist/compliance/pci-dss.js +247 -0
  295. package/dist/compliance/pci-dss.js.map +1 -0
  296. package/dist/compliance/report.d.ts +25 -0
  297. package/dist/compliance/report.d.ts.map +1 -0
  298. package/dist/compliance/report.js +254 -0
  299. package/dist/compliance/report.js.map +1 -0
  300. package/dist/compliance/report.test.d.ts +5 -0
  301. package/dist/compliance/report.test.d.ts.map +1 -0
  302. package/dist/compliance/report.test.js +128 -0
  303. package/dist/compliance/report.test.js.map +1 -0
  304. package/dist/compliance/soc2.d.ts +30 -0
  305. package/dist/compliance/soc2.d.ts.map +1 -0
  306. package/dist/compliance/soc2.js +262 -0
  307. package/dist/compliance/soc2.js.map +1 -0
  308. package/dist/compliance/soc2.test.d.ts +5 -0
  309. package/dist/compliance/soc2.test.d.ts.map +1 -0
  310. package/dist/compliance/soc2.test.js +86 -0
  311. package/dist/compliance/soc2.test.js.map +1 -0
  312. package/dist/compliance/types.d.ts +125 -0
  313. package/dist/compliance/types.d.ts.map +1 -0
  314. package/dist/compliance/types.js +10 -0
  315. package/dist/compliance/types.js.map +1 -0
  316. package/dist/config/flags.d.ts +456 -0
  317. package/dist/config/flags.d.ts.map +1 -0
  318. package/dist/config/flags.js +464 -0
  319. package/dist/config/flags.js.map +1 -0
  320. package/dist/config/index.d.ts +10 -0
  321. package/dist/config/index.d.ts.map +1 -0
  322. package/dist/config/index.js +10 -0
  323. package/dist/config/index.js.map +1 -0
  324. package/dist/config/severity-overrides.d.ts +209 -0
  325. package/dist/config/severity-overrides.d.ts.map +1 -0
  326. package/dist/config/severity-overrides.js +380 -0
  327. package/dist/config/severity-overrides.js.map +1 -0
  328. package/dist/cost/index.d.ts +11 -0
  329. package/dist/cost/index.d.ts.map +1 -0
  330. package/dist/cost/index.js +12 -0
  331. package/dist/cost/index.js.map +1 -0
  332. package/dist/cost/pricing.d.ts +57 -0
  333. package/dist/cost/pricing.d.ts.map +1 -0
  334. package/dist/cost/pricing.js +196 -0
  335. package/dist/cost/pricing.js.map +1 -0
  336. package/dist/cost/pricing.test.d.ts +5 -0
  337. package/dist/cost/pricing.test.d.ts.map +1 -0
  338. package/dist/cost/pricing.test.js +195 -0
  339. package/dist/cost/pricing.test.js.map +1 -0
  340. package/dist/cost/tracker.d.ts +100 -0
  341. package/dist/cost/tracker.d.ts.map +1 -0
  342. package/dist/cost/tracker.js +366 -0
  343. package/dist/cost/tracker.js.map +1 -0
  344. package/dist/cost/tracker.test.d.ts +5 -0
  345. package/dist/cost/tracker.test.d.ts.map +1 -0
  346. package/dist/cost/tracker.test.js +360 -0
  347. package/dist/cost/tracker.test.js.map +1 -0
  348. package/dist/cost/types.d.ts +135 -0
  349. package/dist/cost/types.d.ts.map +1 -0
  350. package/dist/cost/types.js +9 -0
  351. package/dist/cost/types.js.map +1 -0
  352. package/dist/enterprise/auth/oidc.d.ts +231 -0
  353. package/dist/enterprise/auth/oidc.d.ts.map +1 -0
  354. package/dist/enterprise/auth/oidc.js +372 -0
  355. package/dist/enterprise/auth/oidc.js.map +1 -0
  356. package/dist/enterprise/auth/oidc.test.d.ts +5 -0
  357. package/dist/enterprise/auth/oidc.test.d.ts.map +1 -0
  358. package/dist/enterprise/auth/oidc.test.js +435 -0
  359. package/dist/enterprise/auth/oidc.test.js.map +1 -0
  360. package/dist/enterprise/index.d.ts +14 -0
  361. package/dist/enterprise/index.d.ts.map +1 -0
  362. package/dist/enterprise/index.js +19 -0
  363. package/dist/enterprise/index.js.map +1 -0
  364. package/dist/enterprise/integrations/chat.d.ts +205 -0
  365. package/dist/enterprise/integrations/chat.d.ts.map +1 -0
  366. package/dist/enterprise/integrations/chat.js +624 -0
  367. package/dist/enterprise/integrations/chat.js.map +1 -0
  368. package/dist/enterprise/integrations/chat.test.d.ts +5 -0
  369. package/dist/enterprise/integrations/chat.test.d.ts.map +1 -0
  370. package/dist/enterprise/integrations/chat.test.js +557 -0
  371. package/dist/enterprise/integrations/chat.test.js.map +1 -0
  372. package/dist/enterprise/integrations/ticketing.d.ts +257 -0
  373. package/dist/enterprise/integrations/ticketing.d.ts.map +1 -0
  374. package/dist/enterprise/integrations/ticketing.js +548 -0
  375. package/dist/enterprise/integrations/ticketing.js.map +1 -0
  376. package/dist/enterprise/integrations/ticketing.test.d.ts +5 -0
  377. package/dist/enterprise/integrations/ticketing.test.d.ts.map +1 -0
  378. package/dist/enterprise/integrations/ticketing.test.js +693 -0
  379. package/dist/enterprise/integrations/ticketing.test.js.map +1 -0
  380. package/dist/enterprise/policy/opa.d.ts +194 -0
  381. package/dist/enterprise/policy/opa.d.ts.map +1 -0
  382. package/dist/enterprise/policy/opa.js +385 -0
  383. package/dist/enterprise/policy/opa.js.map +1 -0
  384. package/dist/enterprise/policy/opa.test.d.ts +5 -0
  385. package/dist/enterprise/policy/opa.test.d.ts.map +1 -0
  386. package/dist/enterprise/policy/opa.test.js +702 -0
  387. package/dist/enterprise/policy/opa.test.js.map +1 -0
  388. package/dist/enterprise/signing/kms.d.ts +211 -0
  389. package/dist/enterprise/signing/kms.d.ts.map +1 -0
  390. package/dist/enterprise/signing/kms.js +480 -0
  391. package/dist/enterprise/signing/kms.js.map +1 -0
  392. package/dist/enterprise/signing/kms.test.d.ts +5 -0
  393. package/dist/enterprise/signing/kms.test.d.ts.map +1 -0
  394. package/dist/enterprise/signing/kms.test.js +511 -0
  395. package/dist/enterprise/signing/kms.test.js.map +1 -0
  396. package/dist/eval/fixtures.d.ts +58 -0
  397. package/dist/eval/fixtures.d.ts.map +1 -0
  398. package/dist/eval/fixtures.js +571 -0
  399. package/dist/eval/fixtures.js.map +1 -0
  400. package/dist/eval/fixtures.test.d.ts +5 -0
  401. package/dist/eval/fixtures.test.d.ts.map +1 -0
  402. package/dist/eval/fixtures.test.js +193 -0
  403. package/dist/eval/fixtures.test.js.map +1 -0
  404. package/dist/eval/harness.d.ts +30 -0
  405. package/dist/eval/harness.d.ts.map +1 -0
  406. package/dist/eval/harness.js +221 -0
  407. package/dist/eval/harness.js.map +1 -0
  408. package/dist/eval/harness.test.d.ts +5 -0
  409. package/dist/eval/harness.test.d.ts.map +1 -0
  410. package/dist/eval/harness.test.js +314 -0
  411. package/dist/eval/harness.test.js.map +1 -0
  412. package/dist/eval/index.d.ts +15 -0
  413. package/dist/eval/index.d.ts.map +1 -0
  414. package/dist/eval/index.js +18 -0
  415. package/dist/eval/index.js.map +1 -0
  416. package/dist/eval/metrics.d.ts +56 -0
  417. package/dist/eval/metrics.d.ts.map +1 -0
  418. package/dist/eval/metrics.js +298 -0
  419. package/dist/eval/metrics.js.map +1 -0
  420. package/dist/eval/metrics.test.d.ts +5 -0
  421. package/dist/eval/metrics.test.d.ts.map +1 -0
  422. package/dist/eval/metrics.test.js +426 -0
  423. package/dist/eval/metrics.test.js.map +1 -0
  424. package/dist/eval/report.d.ts +30 -0
  425. package/dist/eval/report.d.ts.map +1 -0
  426. package/dist/eval/report.js +333 -0
  427. package/dist/eval/report.js.map +1 -0
  428. package/dist/eval/report.test.d.ts +5 -0
  429. package/dist/eval/report.test.d.ts.map +1 -0
  430. package/dist/eval/report.test.js +275 -0
  431. package/dist/eval/report.test.js.map +1 -0
  432. package/dist/eval/types.d.ts +234 -0
  433. package/dist/eval/types.d.ts.map +1 -0
  434. package/dist/eval/types.js +27 -0
  435. package/dist/eval/types.js.map +1 -0
  436. package/dist/http-server.d.ts +3 -0
  437. package/dist/http-server.d.ts.map +1 -0
  438. package/dist/http-server.js +127 -0
  439. package/dist/http-server.js.map +1 -0
  440. package/dist/index.d.ts +33 -0
  441. package/dist/index.d.ts.map +1 -0
  442. package/dist/index.js +4120 -0
  443. package/dist/index.js.map +1 -0
  444. package/dist/logger.d.ts +46 -0
  445. package/dist/logger.d.ts.map +1 -0
  446. package/dist/logger.js +131 -0
  447. package/dist/logger.js.map +1 -0
  448. package/dist/multimodel/consensus.d.ts +49 -0
  449. package/dist/multimodel/consensus.d.ts.map +1 -0
  450. package/dist/multimodel/consensus.js +454 -0
  451. package/dist/multimodel/consensus.js.map +1 -0
  452. package/dist/multimodel/consensus.test.d.ts +5 -0
  453. package/dist/multimodel/consensus.test.d.ts.map +1 -0
  454. package/dist/multimodel/consensus.test.js +415 -0
  455. package/dist/multimodel/consensus.test.js.map +1 -0
  456. package/dist/multimodel/index.d.ts +13 -0
  457. package/dist/multimodel/index.d.ts.map +1 -0
  458. package/dist/multimodel/index.js +14 -0
  459. package/dist/multimodel/index.js.map +1 -0
  460. package/dist/multimodel/runner.d.ts +95 -0
  461. package/dist/multimodel/runner.d.ts.map +1 -0
  462. package/dist/multimodel/runner.js +312 -0
  463. package/dist/multimodel/runner.js.map +1 -0
  464. package/dist/multimodel/runner.test.d.ts +5 -0
  465. package/dist/multimodel/runner.test.d.ts.map +1 -0
  466. package/dist/multimodel/runner.test.js +224 -0
  467. package/dist/multimodel/runner.test.js.map +1 -0
  468. package/dist/multimodel/types.d.ts +202 -0
  469. package/dist/multimodel/types.d.ts.map +1 -0
  470. package/dist/multimodel/types.js +10 -0
  471. package/dist/multimodel/types.js.map +1 -0
  472. package/dist/observability/index.d.ts +9 -0
  473. package/dist/observability/index.d.ts.map +1 -0
  474. package/dist/observability/index.js +9 -0
  475. package/dist/observability/index.js.map +1 -0
  476. package/dist/observability/otel.d.ts +102 -0
  477. package/dist/observability/otel.d.ts.map +1 -0
  478. package/dist/observability/otel.js +284 -0
  479. package/dist/observability/otel.js.map +1 -0
  480. package/dist/plugins/index.d.ts +10 -0
  481. package/dist/plugins/index.d.ts.map +1 -0
  482. package/dist/plugins/index.js +10 -0
  483. package/dist/plugins/index.js.map +1 -0
  484. package/dist/plugins/loader.d.ts +78 -0
  485. package/dist/plugins/loader.d.ts.map +1 -0
  486. package/dist/plugins/loader.js +470 -0
  487. package/dist/plugins/loader.js.map +1 -0
  488. package/dist/plugins/types.d.ts +304 -0
  489. package/dist/plugins/types.d.ts.map +1 -0
  490. package/dist/plugins/types.js +100 -0
  491. package/dist/plugins/types.js.map +1 -0
  492. package/dist/sbom/cyclonedx.d.ts +30 -0
  493. package/dist/sbom/cyclonedx.d.ts.map +1 -0
  494. package/dist/sbom/cyclonedx.js +392 -0
  495. package/dist/sbom/cyclonedx.js.map +1 -0
  496. package/dist/sbom/cyclonedx.test.d.ts +5 -0
  497. package/dist/sbom/cyclonedx.test.d.ts.map +1 -0
  498. package/dist/sbom/cyclonedx.test.js +244 -0
  499. package/dist/sbom/cyclonedx.test.js.map +1 -0
  500. package/dist/sbom/index.d.ts +13 -0
  501. package/dist/sbom/index.d.ts.map +1 -0
  502. package/dist/sbom/index.js +15 -0
  503. package/dist/sbom/index.js.map +1 -0
  504. package/dist/sbom/provenance.d.ts +37 -0
  505. package/dist/sbom/provenance.d.ts.map +1 -0
  506. package/dist/sbom/provenance.js +268 -0
  507. package/dist/sbom/provenance.js.map +1 -0
  508. package/dist/sbom/provenance.test.d.ts +5 -0
  509. package/dist/sbom/provenance.test.d.ts.map +1 -0
  510. package/dist/sbom/provenance.test.js +189 -0
  511. package/dist/sbom/provenance.test.js.map +1 -0
  512. package/dist/sbom/signing.d.ts +87 -0
  513. package/dist/sbom/signing.d.ts.map +1 -0
  514. package/dist/sbom/signing.js +354 -0
  515. package/dist/sbom/signing.js.map +1 -0
  516. package/dist/sbom/signing.test.d.ts +5 -0
  517. package/dist/sbom/signing.test.d.ts.map +1 -0
  518. package/dist/sbom/signing.test.js +170 -0
  519. package/dist/sbom/signing.test.js.map +1 -0
  520. package/dist/sbom/types.d.ts +384 -0
  521. package/dist/sbom/types.d.ts.map +1 -0
  522. package/dist/sbom/types.js +17 -0
  523. package/dist/sbom/types.js.map +1 -0
  524. package/dist/scanners/agent/credential-scope-audit.d.ts +40 -0
  525. package/dist/scanners/agent/credential-scope-audit.d.ts.map +1 -0
  526. package/dist/scanners/agent/credential-scope-audit.js +404 -0
  527. package/dist/scanners/agent/credential-scope-audit.js.map +1 -0
  528. package/dist/scanners/agent/exfil-path-graph.d.ts +50 -0
  529. package/dist/scanners/agent/exfil-path-graph.d.ts.map +1 -0
  530. package/dist/scanners/agent/exfil-path-graph.js +764 -0
  531. package/dist/scanners/agent/exfil-path-graph.js.map +1 -0
  532. package/dist/scanners/agent/index.d.ts +43 -0
  533. package/dist/scanners/agent/index.d.ts.map +1 -0
  534. package/dist/scanners/agent/index.js +616 -0
  535. package/dist/scanners/agent/index.js.map +1 -0
  536. package/dist/scanners/agent/manifest-audit.d.ts +43 -0
  537. package/dist/scanners/agent/manifest-audit.d.ts.map +1 -0
  538. package/dist/scanners/agent/manifest-audit.js +403 -0
  539. package/dist/scanners/agent/manifest-audit.js.map +1 -0
  540. package/dist/scanners/agent/payloads/index.d.ts +44 -0
  541. package/dist/scanners/agent/payloads/index.d.ts.map +1 -0
  542. package/dist/scanners/agent/payloads/index.js +184 -0
  543. package/dist/scanners/agent/payloads/index.js.map +1 -0
  544. package/dist/scanners/agent/permission-minimiser.d.ts +48 -0
  545. package/dist/scanners/agent/permission-minimiser.d.ts.map +1 -0
  546. package/dist/scanners/agent/permission-minimiser.js +551 -0
  547. package/dist/scanners/agent/permission-minimiser.js.map +1 -0
  548. package/dist/scanners/agent/prompt-injection-fuzzer.d.ts +39 -0
  549. package/dist/scanners/agent/prompt-injection-fuzzer.d.ts.map +1 -0
  550. package/dist/scanners/agent/prompt-injection-fuzzer.js +720 -0
  551. package/dist/scanners/agent/prompt-injection-fuzzer.js.map +1 -0
  552. package/dist/scanners/agent/sandbox-audit.d.ts +44 -0
  553. package/dist/scanners/agent/sandbox-audit.d.ts.map +1 -0
  554. package/dist/scanners/agent/sandbox-audit.js +425 -0
  555. package/dist/scanners/agent/sandbox-audit.js.map +1 -0
  556. package/dist/scanners/agent/supply-chain-mcp.d.ts +53 -0
  557. package/dist/scanners/agent/supply-chain-mcp.d.ts.map +1 -0
  558. package/dist/scanners/agent/supply-chain-mcp.js +479 -0
  559. package/dist/scanners/agent/supply-chain-mcp.js.map +1 -0
  560. package/dist/scanners/agent/tool-description-drift.d.ts +62 -0
  561. package/dist/scanners/agent/tool-description-drift.d.ts.map +1 -0
  562. package/dist/scanners/agent/tool-description-drift.js +365 -0
  563. package/dist/scanners/agent/tool-description-drift.js.map +1 -0
  564. package/dist/scanners/agent/types.d.ts +840 -0
  565. package/dist/scanners/agent/types.d.ts.map +1 -0
  566. package/dist/scanners/agent/types.js +149 -0
  567. package/dist/scanners/agent/types.js.map +1 -0
  568. package/dist/scanners/bandit.d.ts +25 -0
  569. package/dist/scanners/bandit.d.ts.map +1 -0
  570. package/dist/scanners/bandit.js +129 -0
  571. package/dist/scanners/bandit.js.map +1 -0
  572. package/dist/scanners/binary-analysis.d.ts +41 -0
  573. package/dist/scanners/binary-analysis.d.ts.map +1 -0
  574. package/dist/scanners/binary-analysis.js +587 -0
  575. package/dist/scanners/binary-analysis.js.map +1 -0
  576. package/dist/scanners/binary-analysis.test.d.ts +5 -0
  577. package/dist/scanners/binary-analysis.test.d.ts.map +1 -0
  578. package/dist/scanners/binary-analysis.test.js +291 -0
  579. package/dist/scanners/binary-analysis.test.js.map +1 -0
  580. package/dist/scanners/brakeman.d.ts +30 -0
  581. package/dist/scanners/brakeman.d.ts.map +1 -0
  582. package/dist/scanners/brakeman.js +271 -0
  583. package/dist/scanners/brakeman.js.map +1 -0
  584. package/dist/scanners/dependencies.d.ts +22 -0
  585. package/dist/scanners/dependencies.d.ts.map +1 -0
  586. package/dist/scanners/dependencies.js +202 -0
  587. package/dist/scanners/dependencies.js.map +1 -0
  588. package/dist/scanners/dependencies.test.d.ts +5 -0
  589. package/dist/scanners/dependencies.test.d.ts.map +1 -0
  590. package/dist/scanners/dependencies.test.js +185 -0
  591. package/dist/scanners/dependencies.test.js.map +1 -0
  592. package/dist/scanners/eslint.d.ts +25 -0
  593. package/dist/scanners/eslint.d.ts.map +1 -0
  594. package/dist/scanners/eslint.js +220 -0
  595. package/dist/scanners/eslint.js.map +1 -0
  596. package/dist/scanners/gosec.d.ts +25 -0
  597. package/dist/scanners/gosec.d.ts.map +1 -0
  598. package/dist/scanners/gosec.js +128 -0
  599. package/dist/scanners/gosec.js.map +1 -0
  600. package/dist/scanners/index.d.ts +128 -0
  601. package/dist/scanners/index.d.ts.map +1 -0
  602. package/dist/scanners/index.js +811 -0
  603. package/dist/scanners/index.js.map +1 -0
  604. package/dist/scanners/index.test.d.ts +5 -0
  605. package/dist/scanners/index.test.d.ts.map +1 -0
  606. package/dist/scanners/index.test.js +424 -0
  607. package/dist/scanners/index.test.js.map +1 -0
  608. package/dist/scanners/memory-safety.d.ts +44 -0
  609. package/dist/scanners/memory-safety.d.ts.map +1 -0
  610. package/dist/scanners/memory-safety.js +571 -0
  611. package/dist/scanners/memory-safety.js.map +1 -0
  612. package/dist/scanners/memory-safety.test.d.ts +5 -0
  613. package/dist/scanners/memory-safety.test.d.ts.map +1 -0
  614. package/dist/scanners/memory-safety.test.js +321 -0
  615. package/dist/scanners/memory-safety.test.js.map +1 -0
  616. package/dist/scanners/race-condition.d.ts +25 -0
  617. package/dist/scanners/race-condition.d.ts.map +1 -0
  618. package/dist/scanners/race-condition.js +443 -0
  619. package/dist/scanners/race-condition.js.map +1 -0
  620. package/dist/scanners/race-condition.test.d.ts +5 -0
  621. package/dist/scanners/race-condition.test.d.ts.map +1 -0
  622. package/dist/scanners/race-condition.test.js +428 -0
  623. package/dist/scanners/race-condition.test.js.map +1 -0
  624. package/dist/scanners/secrets.d.ts +25 -0
  625. package/dist/scanners/secrets.d.ts.map +1 -0
  626. package/dist/scanners/secrets.js +367 -0
  627. package/dist/scanners/secrets.js.map +1 -0
  628. package/dist/scanners/secrets.test.d.ts +5 -0
  629. package/dist/scanners/secrets.test.d.ts.map +1 -0
  630. package/dist/scanners/secrets.test.js +160 -0
  631. package/dist/scanners/secrets.test.js.map +1 -0
  632. package/dist/scanners/semgrep.d.ts +33 -0
  633. package/dist/scanners/semgrep.d.ts.map +1 -0
  634. package/dist/scanners/semgrep.js +350 -0
  635. package/dist/scanners/semgrep.js.map +1 -0
  636. package/dist/scanners/semgrep.test.d.ts +8 -0
  637. package/dist/scanners/semgrep.test.d.ts.map +1 -0
  638. package/dist/scanners/semgrep.test.js +254 -0
  639. package/dist/scanners/semgrep.test.js.map +1 -0
  640. package/dist/scanners/trivy.d.ts +26 -0
  641. package/dist/scanners/trivy.d.ts.map +1 -0
  642. package/dist/scanners/trivy.js +187 -0
  643. package/dist/scanners/trivy.js.map +1 -0
  644. package/dist/scanners/types.d.ts +210 -0
  645. package/dist/scanners/types.d.ts.map +1 -0
  646. package/dist/scanners/types.js +106 -0
  647. package/dist/scanners/types.js.map +1 -0
  648. package/dist/scanners/types.test.d.ts +5 -0
  649. package/dist/scanners/types.test.d.ts.map +1 -0
  650. package/dist/scanners/types.test.js +103 -0
  651. package/dist/scanners/types.test.js.map +1 -0
  652. package/dist/scanners/typescript.d.ts +32 -0
  653. package/dist/scanners/typescript.d.ts.map +1 -0
  654. package/dist/scanners/typescript.js +300 -0
  655. package/dist/scanners/typescript.js.map +1 -0
  656. package/dist/scanners/typescript.test.d.ts +5 -0
  657. package/dist/scanners/typescript.test.d.ts.map +1 -0
  658. package/dist/scanners/typescript.test.js +296 -0
  659. package/dist/scanners/typescript.test.js.map +1 -0
  660. package/dist/transcripts/index.d.ts +13 -0
  661. package/dist/transcripts/index.d.ts.map +1 -0
  662. package/dist/transcripts/index.js +17 -0
  663. package/dist/transcripts/index.js.map +1 -0
  664. package/dist/transcripts/logger.d.ts +190 -0
  665. package/dist/transcripts/logger.d.ts.map +1 -0
  666. package/dist/transcripts/logger.js +385 -0
  667. package/dist/transcripts/logger.js.map +1 -0
  668. package/dist/transcripts/logger.test.d.ts +5 -0
  669. package/dist/transcripts/logger.test.d.ts.map +1 -0
  670. package/dist/transcripts/logger.test.js +227 -0
  671. package/dist/transcripts/logger.test.js.map +1 -0
  672. package/dist/transcripts/redaction.d.ts +125 -0
  673. package/dist/transcripts/redaction.d.ts.map +1 -0
  674. package/dist/transcripts/redaction.js +416 -0
  675. package/dist/transcripts/redaction.js.map +1 -0
  676. package/dist/transcripts/redaction.test.d.ts +5 -0
  677. package/dist/transcripts/redaction.test.d.ts.map +1 -0
  678. package/dist/transcripts/redaction.test.js +267 -0
  679. package/dist/transcripts/redaction.test.js.map +1 -0
  680. package/dist/transcripts/signing.d.ts +108 -0
  681. package/dist/transcripts/signing.d.ts.map +1 -0
  682. package/dist/transcripts/signing.js +173 -0
  683. package/dist/transcripts/signing.js.map +1 -0
  684. package/dist/transcripts/verifier.d.ts +133 -0
  685. package/dist/transcripts/verifier.d.ts.map +1 -0
  686. package/dist/transcripts/verifier.js +489 -0
  687. package/dist/transcripts/verifier.js.map +1 -0
  688. package/dist/transcripts/verifier.test.d.ts +5 -0
  689. package/dist/transcripts/verifier.test.d.ts.map +1 -0
  690. package/dist/transcripts/verifier.test.js +330 -0
  691. package/dist/transcripts/verifier.test.js.map +1 -0
  692. package/dist/util/concurrency.d.ts +221 -0
  693. package/dist/util/concurrency.d.ts.map +1 -0
  694. package/dist/util/concurrency.js +339 -0
  695. package/dist/util/concurrency.js.map +1 -0
  696. package/dist/util/index.d.ts +12 -0
  697. package/dist/util/index.d.ts.map +1 -0
  698. package/dist/util/index.js +12 -0
  699. package/dist/util/index.js.map +1 -0
  700. package/dist/util/json.d.ts +63 -0
  701. package/dist/util/json.d.ts.map +1 -0
  702. package/dist/util/json.js +134 -0
  703. package/dist/util/json.js.map +1 -0
  704. package/dist/util/paths.d.ts +56 -0
  705. package/dist/util/paths.d.ts.map +1 -0
  706. package/dist/util/paths.js +128 -0
  707. package/dist/util/paths.js.map +1 -0
  708. package/dist/util/retry.d.ts +185 -0
  709. package/dist/util/retry.d.ts.map +1 -0
  710. package/dist/util/retry.js +338 -0
  711. package/dist/util/retry.js.map +1 -0
  712. package/package.json +79 -0
@@ -0,0 +1,719 @@
1
+ /**
2
+ * ISO/IEC 42001 AI Management System Compliance Framework
3
+ *
4
+ * Maps security findings to ISO/IEC 42001:2023 requirements.
5
+ * ISO/IEC 42001 specifies requirements for establishing, implementing,
6
+ * maintaining and continually improving an AI management system (AIMS).
7
+ *
8
+ * @see https://www.iso.org/standard/81230.html
9
+ * @module compliance/frameworks/iso-42001
10
+ */
11
+ /**
12
+ * ISO/IEC 42001 Controls
13
+ *
14
+ * Based on ISO/IEC 42001:2023 requirements and Annex A controls.
15
+ * Controls cover both management system clauses and specific AI controls.
16
+ */
17
+ export const ISO_42001_CONTROLS = [
18
+ // ============================================================================
19
+ // Clause 4: Context of the Organization
20
+ // ============================================================================
21
+ {
22
+ id: "ISO42001-4.1",
23
+ framework: "ISO-42001",
24
+ category: "Context",
25
+ title: "Understanding the Organization and Its Context",
26
+ description: "The organization shall determine external and internal issues that are relevant to its purpose and affect its ability to achieve the intended outcomes of its AI management system.",
27
+ keywords: [
28
+ "context",
29
+ "organizational issues",
30
+ "ai management system",
31
+ ],
32
+ findingCategories: [],
33
+ severityThreshold: "low",
34
+ },
35
+ {
36
+ id: "ISO42001-4.2",
37
+ framework: "ISO-42001",
38
+ category: "Context",
39
+ title: "Understanding Needs and Expectations of Interested Parties",
40
+ description: "The organization shall determine interested parties relevant to the AI management system and their requirements, including regulatory, legal, and contractual obligations.",
41
+ keywords: [
42
+ "stakeholders",
43
+ "interested parties",
44
+ "requirements",
45
+ ],
46
+ findingCategories: [
47
+ "overreliance",
48
+ ],
49
+ severityThreshold: "low",
50
+ },
51
+ {
52
+ id: "ISO42001-4.3",
53
+ framework: "ISO-42001",
54
+ category: "Context",
55
+ title: "Scope of the AI Management System",
56
+ description: "The organization shall determine the boundaries and applicability of the AI management system to establish its scope, considering AI systems and their deployment contexts.",
57
+ keywords: [
58
+ "scope",
59
+ "boundaries",
60
+ "applicability",
61
+ ],
62
+ findingCategories: [
63
+ "manifest-drift",
64
+ ],
65
+ severityThreshold: "low",
66
+ },
67
+ {
68
+ id: "ISO42001-4.4",
69
+ framework: "ISO-42001",
70
+ category: "Context",
71
+ title: "AI Management System",
72
+ description: "The organization shall establish, implement, maintain, and continually improve an AI management system in accordance with ISO 42001 requirements.",
73
+ keywords: [
74
+ "management system",
75
+ "continuous improvement",
76
+ "implementation",
77
+ ],
78
+ findingCategories: [],
79
+ severityThreshold: "low",
80
+ },
81
+ // ============================================================================
82
+ // Clause 5: Leadership
83
+ // ============================================================================
84
+ {
85
+ id: "ISO42001-5.1",
86
+ framework: "ISO-42001",
87
+ category: "Leadership",
88
+ title: "Leadership and Commitment",
89
+ description: "Top management shall demonstrate leadership and commitment with respect to the AI management system by ensuring AI policy, objectives, and resources are established.",
90
+ keywords: [
91
+ "leadership",
92
+ "commitment",
93
+ "top management",
94
+ ],
95
+ findingCategories: [],
96
+ severityThreshold: "low",
97
+ },
98
+ {
99
+ id: "ISO42001-5.2",
100
+ framework: "ISO-42001",
101
+ category: "Leadership",
102
+ title: "AI Policy",
103
+ description: "Top management shall establish an AI policy that is appropriate to the purpose of the organization, provides a framework for setting AI objectives, and includes commitment to continual improvement.",
104
+ keywords: [
105
+ "ai policy",
106
+ "objectives",
107
+ "framework",
108
+ ],
109
+ findingCategories: [
110
+ "excessive-agency",
111
+ "overscoped-permission",
112
+ ],
113
+ severityThreshold: "medium",
114
+ },
115
+ {
116
+ id: "ISO42001-5.3",
117
+ framework: "ISO-42001",
118
+ category: "Leadership",
119
+ title: "Organizational Roles, Responsibilities and Authorities",
120
+ description: "Top management shall ensure responsibilities and authorities for relevant roles are assigned and communicated within the organization for AI governance.",
121
+ keywords: [
122
+ "roles",
123
+ "responsibilities",
124
+ "authorities",
125
+ ],
126
+ findingCategories: [
127
+ "excessive-agency",
128
+ ],
129
+ severityThreshold: "medium",
130
+ },
131
+ // ============================================================================
132
+ // Clause 6: Planning
133
+ // ============================================================================
134
+ {
135
+ id: "ISO42001-6.1",
136
+ framework: "ISO-42001",
137
+ category: "Planning",
138
+ title: "Actions to Address Risks and Opportunities",
139
+ description: "When planning for the AI management system, the organization shall consider issues, requirements, and determine risks and opportunities that need to be addressed.",
140
+ keywords: [
141
+ "risk planning",
142
+ "opportunities",
143
+ "risk assessment",
144
+ ],
145
+ findingCategories: [
146
+ "prompt-injection",
147
+ "exfil-path",
148
+ "supply-chain-vuln",
149
+ ],
150
+ severityThreshold: "high",
151
+ },
152
+ {
153
+ id: "ISO42001-6.1.3",
154
+ framework: "ISO-42001",
155
+ category: "Planning",
156
+ title: "AI Risk Assessment",
157
+ description: "The organization shall define and apply an AI risk assessment process that establishes risk criteria, identifies risks, analyzes and evaluates them.",
158
+ keywords: [
159
+ "risk assessment",
160
+ "risk criteria",
161
+ "risk analysis",
162
+ ],
163
+ findingCategories: [
164
+ "prompt-injection",
165
+ "insecure-plugin",
166
+ "excessive-agency",
167
+ "missing-sandbox",
168
+ ],
169
+ severityThreshold: "high",
170
+ },
171
+ {
172
+ id: "ISO42001-6.1.4",
173
+ framework: "ISO-42001",
174
+ category: "Planning",
175
+ title: "AI Risk Treatment",
176
+ description: "The organization shall define and apply an AI risk treatment process to select appropriate options, determine controls, and produce a statement of applicability.",
177
+ keywords: [
178
+ "risk treatment",
179
+ "controls",
180
+ "statement of applicability",
181
+ ],
182
+ findingCategories: [],
183
+ severityThreshold: "medium",
184
+ },
185
+ {
186
+ id: "ISO42001-6.2",
187
+ framework: "ISO-42001",
188
+ category: "Planning",
189
+ title: "AI Objectives and Planning to Achieve Them",
190
+ description: "The organization shall establish AI objectives at relevant functions, levels, and processes, ensuring they are consistent with the AI policy and measurable.",
191
+ keywords: [
192
+ "ai objectives",
193
+ "measurement",
194
+ "planning",
195
+ ],
196
+ findingCategories: [],
197
+ severityThreshold: "low",
198
+ },
199
+ // ============================================================================
200
+ // Clause 7: Support
201
+ // ============================================================================
202
+ {
203
+ id: "ISO42001-7.1",
204
+ framework: "ISO-42001",
205
+ category: "Support",
206
+ title: "Resources",
207
+ description: "The organization shall determine and provide the resources needed for the establishment, implementation, maintenance, and continual improvement of the AI management system.",
208
+ keywords: [
209
+ "resources",
210
+ "infrastructure",
211
+ "support",
212
+ ],
213
+ findingCategories: [],
214
+ severityThreshold: "low",
215
+ },
216
+ {
217
+ id: "ISO42001-7.2",
218
+ framework: "ISO-42001",
219
+ category: "Support",
220
+ title: "Competence",
221
+ description: "The organization shall determine necessary competence of persons doing work under its control that affects AI system performance and ensure persons are competent.",
222
+ keywords: [
223
+ "competence",
224
+ "training",
225
+ "qualifications",
226
+ ],
227
+ findingCategories: [
228
+ "overreliance",
229
+ ],
230
+ severityThreshold: "medium",
231
+ },
232
+ {
233
+ id: "ISO42001-7.3",
234
+ framework: "ISO-42001",
235
+ category: "Support",
236
+ title: "Awareness",
237
+ description: "Persons doing work under the organization's control shall be aware of the AI policy, their contribution to the effectiveness of the AI management system, and implications of not conforming.",
238
+ keywords: [
239
+ "awareness",
240
+ "policy understanding",
241
+ "implications",
242
+ ],
243
+ findingCategories: [],
244
+ severityThreshold: "low",
245
+ },
246
+ {
247
+ id: "ISO42001-7.4",
248
+ framework: "ISO-42001",
249
+ category: "Support",
250
+ title: "Communication",
251
+ description: "The organization shall determine internal and external communications relevant to the AI management system, including what, when, with whom, and how to communicate.",
252
+ keywords: [
253
+ "communication",
254
+ "internal",
255
+ "external",
256
+ ],
257
+ findingCategories: [],
258
+ severityThreshold: "low",
259
+ },
260
+ {
261
+ id: "ISO42001-7.5",
262
+ framework: "ISO-42001",
263
+ category: "Support",
264
+ title: "Documented Information",
265
+ description: "The AI management system shall include documented information required by ISO 42001 and determined by the organization as necessary for AI management system effectiveness.",
266
+ keywords: [
267
+ "documentation",
268
+ "documented information",
269
+ "records",
270
+ ],
271
+ findingCategories: [
272
+ "manifest-drift",
273
+ "tool-drift",
274
+ "unsigned-change",
275
+ ],
276
+ severityThreshold: "medium",
277
+ },
278
+ // ============================================================================
279
+ // Clause 8: Operation
280
+ // ============================================================================
281
+ {
282
+ id: "ISO42001-8.1",
283
+ framework: "ISO-42001",
284
+ category: "Operation",
285
+ title: "Operational Planning and Control",
286
+ description: "The organization shall plan, implement, and control processes needed to meet requirements and implement actions determined in planning by establishing criteria and control.",
287
+ keywords: [
288
+ "operational planning",
289
+ "process control",
290
+ "criteria",
291
+ ],
292
+ findingCategories: [
293
+ "excessive-agency",
294
+ "overscoped-permission",
295
+ ],
296
+ severityThreshold: "medium",
297
+ },
298
+ {
299
+ id: "ISO42001-8.2",
300
+ framework: "ISO-42001",
301
+ category: "Operation",
302
+ title: "AI Risk Assessment",
303
+ description: "The organization shall perform AI risk assessments at planned intervals or when significant changes are proposed or occur, retaining documented results.",
304
+ keywords: [
305
+ "risk assessment",
306
+ "periodic assessment",
307
+ "significant changes",
308
+ ],
309
+ findingCategories: [
310
+ "manifest-drift",
311
+ "tool-drift",
312
+ ],
313
+ severityThreshold: "high",
314
+ },
315
+ {
316
+ id: "ISO42001-8.3",
317
+ framework: "ISO-42001",
318
+ category: "Operation",
319
+ title: "AI Risk Treatment",
320
+ description: "The organization shall implement the AI risk treatment plan and retain documented information on results of AI risk treatment.",
321
+ keywords: [
322
+ "risk treatment",
323
+ "implementation",
324
+ "documentation",
325
+ ],
326
+ findingCategories: [],
327
+ severityThreshold: "medium",
328
+ },
329
+ {
330
+ id: "ISO42001-8.4",
331
+ framework: "ISO-42001",
332
+ category: "Operation",
333
+ title: "AI System Impact Assessment",
334
+ description: "The organization shall establish and apply a process for AI system impact assessment to evaluate potential consequences of AI system deployment.",
335
+ keywords: [
336
+ "impact assessment",
337
+ "consequences",
338
+ "deployment evaluation",
339
+ ],
340
+ findingCategories: [
341
+ "excessive-agency",
342
+ "exfil-path",
343
+ "prompt-injection",
344
+ ],
345
+ severityThreshold: "high",
346
+ },
347
+ // ============================================================================
348
+ // Clause 9: Performance Evaluation
349
+ // ============================================================================
350
+ {
351
+ id: "ISO42001-9.1",
352
+ framework: "ISO-42001",
353
+ category: "Performance",
354
+ title: "Monitoring, Measurement, Analysis and Evaluation",
355
+ description: "The organization shall determine what needs to be monitored and measured, methods for monitoring and measurement, when monitoring and measuring shall be performed, and who shall analyze results.",
356
+ keywords: [
357
+ "monitoring",
358
+ "measurement",
359
+ "analysis",
360
+ "evaluation",
361
+ ],
362
+ findingCategories: [
363
+ "logging-failure",
364
+ ],
365
+ severityThreshold: "medium",
366
+ },
367
+ {
368
+ id: "ISO42001-9.2",
369
+ framework: "ISO-42001",
370
+ category: "Performance",
371
+ title: "Internal Audit",
372
+ description: "The organization shall conduct internal audits at planned intervals to provide information on whether the AI management system conforms to requirements and is effectively implemented.",
373
+ keywords: [
374
+ "internal audit",
375
+ "conformance",
376
+ "effectiveness",
377
+ ],
378
+ findingCategories: [],
379
+ severityThreshold: "medium",
380
+ },
381
+ {
382
+ id: "ISO42001-9.3",
383
+ framework: "ISO-42001",
384
+ category: "Performance",
385
+ title: "Management Review",
386
+ description: "Top management shall review the organization's AI management system at planned intervals to ensure its continuing suitability, adequacy, and effectiveness.",
387
+ keywords: [
388
+ "management review",
389
+ "suitability",
390
+ "effectiveness",
391
+ ],
392
+ findingCategories: [],
393
+ severityThreshold: "low",
394
+ },
395
+ // ============================================================================
396
+ // Clause 10: Improvement
397
+ // ============================================================================
398
+ {
399
+ id: "ISO42001-10.1",
400
+ framework: "ISO-42001",
401
+ category: "Improvement",
402
+ title: "Continual Improvement",
403
+ description: "The organization shall continually improve the suitability, adequacy, and effectiveness of the AI management system.",
404
+ keywords: [
405
+ "continual improvement",
406
+ "suitability",
407
+ "effectiveness",
408
+ ],
409
+ findingCategories: [],
410
+ severityThreshold: "low",
411
+ },
412
+ {
413
+ id: "ISO42001-10.2",
414
+ framework: "ISO-42001",
415
+ category: "Improvement",
416
+ title: "Nonconformity and Corrective Action",
417
+ description: "When a nonconformity occurs, the organization shall react, evaluate the need for action, implement any action needed, review effectiveness, and make changes to the AI management system if necessary.",
418
+ keywords: [
419
+ "nonconformity",
420
+ "corrective action",
421
+ "root cause",
422
+ ],
423
+ findingCategories: [],
424
+ severityThreshold: "medium",
425
+ },
426
+ // ============================================================================
427
+ // Annex A: AI System Life Cycle Controls
428
+ // ============================================================================
429
+ {
430
+ id: "ISO42001-A.5.2",
431
+ framework: "ISO-42001",
432
+ category: "AI System Life Cycle",
433
+ title: "AI System Requirements",
434
+ description: "Requirements for the AI system shall be specified, including functional requirements, quality attributes, constraints, and acceptance criteria.",
435
+ keywords: [
436
+ "requirements",
437
+ "specifications",
438
+ "acceptance criteria",
439
+ ],
440
+ findingCategories: [
441
+ "manifest-drift",
442
+ ],
443
+ severityThreshold: "medium",
444
+ },
445
+ {
446
+ id: "ISO42001-A.5.3",
447
+ framework: "ISO-42001",
448
+ category: "AI System Life Cycle",
449
+ title: "AI System Design and Development",
450
+ description: "The organization shall design and develop AI systems considering identified risks, requirements, and the intended operational environment.",
451
+ keywords: [
452
+ "design",
453
+ "development",
454
+ "architecture",
455
+ ],
456
+ findingCategories: [
457
+ "insecure-plugin",
458
+ "excessive-agency",
459
+ ],
460
+ severityThreshold: "high",
461
+ },
462
+ {
463
+ id: "ISO42001-A.5.4",
464
+ framework: "ISO-42001",
465
+ category: "AI System Life Cycle",
466
+ title: "AI System Verification and Validation",
467
+ description: "Verification and validation activities shall be performed to ensure AI systems meet specified requirements and are fit for intended use.",
468
+ keywords: [
469
+ "verification",
470
+ "validation",
471
+ "testing",
472
+ ],
473
+ findingCategories: [
474
+ "prompt-injection",
475
+ "model-denial-of-service",
476
+ ],
477
+ severityThreshold: "high",
478
+ },
479
+ {
480
+ id: "ISO42001-A.5.5",
481
+ framework: "ISO-42001",
482
+ category: "AI System Life Cycle",
483
+ title: "AI System Deployment",
484
+ description: "Deployment of AI systems shall be planned and controlled, including monitoring and evaluation of deployment outcomes.",
485
+ keywords: [
486
+ "deployment",
487
+ "release",
488
+ "rollout",
489
+ ],
490
+ findingCategories: [
491
+ "unsigned-change",
492
+ "manifest-drift",
493
+ ],
494
+ severityThreshold: "medium",
495
+ },
496
+ {
497
+ id: "ISO42001-A.5.6",
498
+ framework: "ISO-42001",
499
+ category: "AI System Life Cycle",
500
+ title: "AI System Operation and Monitoring",
501
+ description: "AI systems shall be operated and monitored throughout their deployment to ensure continued conformance with requirements.",
502
+ keywords: [
503
+ "operation",
504
+ "monitoring",
505
+ "conformance",
506
+ ],
507
+ findingCategories: [
508
+ "logging-failure",
509
+ "tool-drift",
510
+ ],
511
+ severityThreshold: "high",
512
+ },
513
+ {
514
+ id: "ISO42001-A.5.7",
515
+ framework: "ISO-42001",
516
+ category: "AI System Life Cycle",
517
+ title: "AI System Retirement",
518
+ description: "Retirement of AI systems shall be planned and controlled, ensuring data and model handling comply with applicable requirements.",
519
+ keywords: [
520
+ "retirement",
521
+ "decommissioning",
522
+ "data handling",
523
+ ],
524
+ findingCategories: [],
525
+ severityThreshold: "low",
526
+ },
527
+ // ============================================================================
528
+ // Annex A: Data for AI Systems
529
+ // ============================================================================
530
+ {
531
+ id: "ISO42001-A.6.2",
532
+ framework: "ISO-42001",
533
+ category: "Data for AI Systems",
534
+ title: "Data Acquisition",
535
+ description: "Data acquisition for AI systems shall be controlled to ensure data is collected in accordance with applicable requirements and ethical considerations.",
536
+ keywords: [
537
+ "data acquisition",
538
+ "data collection",
539
+ "ethical data",
540
+ ],
541
+ findingCategories: [
542
+ "training-data-poisoning",
543
+ "pii-exposure",
544
+ ],
545
+ severityThreshold: "high",
546
+ },
547
+ {
548
+ id: "ISO42001-A.6.3",
549
+ framework: "ISO-42001",
550
+ category: "Data for AI Systems",
551
+ title: "Data Quality",
552
+ description: "The organization shall ensure data used in AI systems meets quality requirements, including accuracy, completeness, and relevance.",
553
+ keywords: [
554
+ "data quality",
555
+ "accuracy",
556
+ "completeness",
557
+ ],
558
+ findingCategories: [
559
+ "training-data-poisoning",
560
+ "integrity-failure",
561
+ ],
562
+ severityThreshold: "high",
563
+ },
564
+ {
565
+ id: "ISO42001-A.6.4",
566
+ framework: "ISO-42001",
567
+ category: "Data for AI Systems",
568
+ title: "Data Provenance",
569
+ description: "Information about data provenance shall be documented and maintained, including data sources, transformations, and lineage.",
570
+ keywords: [
571
+ "provenance",
572
+ "lineage",
573
+ "data sources",
574
+ ],
575
+ findingCategories: [
576
+ "supply-chain-vuln",
577
+ "unsigned-change",
578
+ ],
579
+ severityThreshold: "medium",
580
+ },
581
+ // ============================================================================
582
+ // Annex A: Third-Party Relationships
583
+ // ============================================================================
584
+ {
585
+ id: "ISO42001-A.9.2",
586
+ framework: "ISO-42001",
587
+ category: "Third-Party Relationships",
588
+ title: "Third-Party AI Components",
589
+ description: "Use of third-party AI components shall be controlled, including evaluation of risks and verification of compliance with requirements.",
590
+ keywords: [
591
+ "third-party",
592
+ "components",
593
+ "supply chain",
594
+ ],
595
+ findingCategories: [
596
+ "supply-chain-vuln",
597
+ "dependency-vuln",
598
+ "insecure-plugin",
599
+ ],
600
+ severityThreshold: "high",
601
+ },
602
+ {
603
+ id: "ISO42001-A.9.3",
604
+ framework: "ISO-42001",
605
+ category: "Third-Party Relationships",
606
+ title: "AI System Integration",
607
+ description: "Integration of AI systems with third-party systems shall be controlled to ensure security and reliability of the integrated solution.",
608
+ keywords: [
609
+ "integration",
610
+ "third-party systems",
611
+ "interfaces",
612
+ ],
613
+ findingCategories: [
614
+ "exfil-path",
615
+ "missing-sandbox",
616
+ ],
617
+ severityThreshold: "high",
618
+ },
619
+ // ============================================================================
620
+ // Annex A: AI System Resources (Security-Focused)
621
+ // ============================================================================
622
+ {
623
+ id: "ISO42001-A.3.3",
624
+ framework: "ISO-42001",
625
+ category: "AI System Resources",
626
+ title: "AI System Security",
627
+ description: "Security measures shall be implemented to protect AI systems from unauthorized access, use, disclosure, disruption, modification, or destruction.",
628
+ keywords: [
629
+ "security",
630
+ "protection",
631
+ "access control",
632
+ ],
633
+ findingCategories: [
634
+ "auth-bypass",
635
+ "broken-access-control",
636
+ "model-theft",
637
+ ],
638
+ severityThreshold: "critical",
639
+ },
640
+ {
641
+ id: "ISO42001-A.3.4",
642
+ framework: "ISO-42001",
643
+ category: "AI System Resources",
644
+ title: "AI System Resilience",
645
+ description: "AI systems shall be designed and operated to be resilient against disruptions, including adversarial attacks and system failures.",
646
+ keywords: [
647
+ "resilience",
648
+ "adversarial attacks",
649
+ "reliability",
650
+ ],
651
+ findingCategories: [
652
+ "prompt-injection",
653
+ "model-denial-of-service",
654
+ ],
655
+ severityThreshold: "high",
656
+ },
657
+ ];
658
+ /**
659
+ * Get all ISO 42001 controls
660
+ */
661
+ export function getISO42001Controls() {
662
+ return ISO_42001_CONTROLS;
663
+ }
664
+ /**
665
+ * Get ISO 42001 control by ID
666
+ */
667
+ export function getISO42001ControlById(id) {
668
+ return ISO_42001_CONTROLS.find((c) => c.id === id);
669
+ }
670
+ /**
671
+ * Get ISO 42001 controls by clause
672
+ */
673
+ export function getISO42001ControlsByClause(clause) {
674
+ return ISO_42001_CONTROLS.filter((c) => c.category === clause);
675
+ }
676
+ /**
677
+ * Get ISO 42001 controls by category
678
+ */
679
+ export function getISO42001ControlsByCategory(category) {
680
+ return ISO_42001_CONTROLS.filter((c) => c.category === category);
681
+ }
682
+ /**
683
+ * Get all ISO 42001 categories
684
+ */
685
+ export function getISO42001Categories() {
686
+ return [...new Set(ISO_42001_CONTROLS.map((c) => c.category))];
687
+ }
688
+ /**
689
+ * Get ISO 42001 clauses
690
+ */
691
+ export function getISO42001Clauses() {
692
+ return ["Context", "Leadership", "Planning", "Support", "Operation", "Performance", "Improvement"];
693
+ }
694
+ /**
695
+ * Cross-mapping to ISO 27001 controls
696
+ */
697
+ export const ISO_42001_TO_ISO_27001_MAPPING = {
698
+ "ISO42001-6.1.3": ["A.8.2", "A.12.6.1"], // Risk Assessment
699
+ "ISO42001-7.5": ["A.5.1.2", "A.18.1.3"], // Documentation
700
+ "ISO42001-8.4": ["A.14.2.1"], // Impact Assessment
701
+ "ISO42001-9.1": ["A.12.4.1"], // Monitoring
702
+ "ISO42001-9.2": ["A.18.2.1"], // Internal Audit
703
+ "ISO42001-A.3.3": ["A.9.1.1", "A.9.4.1"], // Security
704
+ "ISO42001-A.6.2": ["A.8.2.1"], // Data Classification
705
+ "ISO42001-A.9.2": ["A.15.1.1", "A.15.2.1"], // Third-Party
706
+ };
707
+ /**
708
+ * Cross-mapping to NIST AI RMF
709
+ */
710
+ export const ISO_42001_TO_NIST_AI_RMF_MAPPING = {
711
+ "ISO42001-4.1": ["GOVERN-1.1"], // Context
712
+ "ISO42001-5.2": ["GOVERN-1.2"], // Policy
713
+ "ISO42001-6.1.3": ["MAP-3.1", "MEASURE-2.1"], // Risk Assessment
714
+ "ISO42001-8.4": ["MAP-3.1"], // Impact Assessment
715
+ "ISO42001-9.1": ["MEASURE-4.1"], // Monitoring
716
+ "ISO42001-A.5.4": ["MEASURE-2.3"], // Verification
717
+ "ISO42001-A.6.3": ["MAP-1.2"], // Data Quality
718
+ };
719
+ //# sourceMappingURL=iso-42001.js.map