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.
- package/CHANGELOG.md +184 -0
- package/LICENSE +21 -0
- package/README.md +809 -0
- package/dist/__tests__/integration/certification-flow.test.d.ts +5 -0
- package/dist/__tests__/integration/certification-flow.test.d.ts.map +1 -0
- package/dist/__tests__/integration/certification-flow.test.js +245 -0
- package/dist/__tests__/integration/certification-flow.test.js.map +1 -0
- package/dist/__tests__/integration/commands.test.d.ts +5 -0
- package/dist/__tests__/integration/commands.test.d.ts.map +1 -0
- package/dist/__tests__/integration/commands.test.js +93 -0
- package/dist/__tests__/integration/commands.test.js.map +1 -0
- package/dist/action/diff-mode.d.ts +34 -0
- package/dist/action/diff-mode.d.ts.map +1 -0
- package/dist/action/diff-mode.js +201 -0
- package/dist/action/diff-mode.js.map +1 -0
- package/dist/action/diff-mode.test.d.ts +5 -0
- package/dist/action/diff-mode.test.d.ts.map +1 -0
- package/dist/action/diff-mode.test.js +162 -0
- package/dist/action/diff-mode.test.js.map +1 -0
- package/dist/action/index.d.ts +10 -0
- package/dist/action/index.d.ts.map +1 -0
- package/dist/action/index.js +231 -0
- package/dist/action/index.js.map +1 -0
- package/dist/action/pr-comment.d.ts +30 -0
- package/dist/action/pr-comment.d.ts.map +1 -0
- package/dist/action/pr-comment.js +301 -0
- package/dist/action/pr-comment.js.map +1 -0
- package/dist/action/pr-comment.test.d.ts +5 -0
- package/dist/action/pr-comment.test.d.ts.map +1 -0
- package/dist/action/pr-comment.test.js +189 -0
- package/dist/action/pr-comment.test.js.map +1 -0
- package/dist/action/sarif-upload.d.ts +104 -0
- package/dist/action/sarif-upload.d.ts.map +1 -0
- package/dist/action/sarif-upload.js +188 -0
- package/dist/action/sarif-upload.js.map +1 -0
- package/dist/action/sarif-upload.test.d.ts +5 -0
- package/dist/action/sarif-upload.test.d.ts.map +1 -0
- package/dist/action/sarif-upload.test.js +206 -0
- package/dist/action/sarif-upload.test.js.map +1 -0
- package/dist/action/types.d.ts +104 -0
- package/dist/action/types.d.ts.map +1 -0
- package/dist/action/types.js +33 -0
- package/dist/action/types.js.map +1 -0
- package/dist/action/types.test.d.ts +5 -0
- package/dist/action/types.test.d.ts.map +1 -0
- package/dist/action/types.test.js +79 -0
- package/dist/action/types.test.js.map +1 -0
- package/dist/agents/agent-integrity.d.ts +111 -0
- package/dist/agents/agent-integrity.d.ts.map +1 -0
- package/dist/agents/agent-integrity.js +308 -0
- package/dist/agents/agent-integrity.js.map +1 -0
- package/dist/agents/agent-privacy.d.ts +68 -0
- package/dist/agents/agent-privacy.d.ts.map +1 -0
- package/dist/agents/agent-privacy.js +345 -0
- package/dist/agents/agent-privacy.js.map +1 -0
- package/dist/agents/exploit-chain.d.ts +64 -0
- package/dist/agents/exploit-chain.d.ts.map +1 -0
- package/dist/agents/exploit-chain.js +477 -0
- package/dist/agents/exploit-chain.js.map +1 -0
- package/dist/agents/exploit-chain.test.d.ts +5 -0
- package/dist/agents/exploit-chain.test.d.ts.map +1 -0
- package/dist/agents/exploit-chain.test.js +455 -0
- package/dist/agents/exploit-chain.test.js.map +1 -0
- package/dist/agents/index.d.ts +14 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +19 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/logic-flaw-detector.d.ts +55 -0
- package/dist/agents/logic-flaw-detector.d.ts.map +1 -0
- package/dist/agents/logic-flaw-detector.js +454 -0
- package/dist/agents/logic-flaw-detector.js.map +1 -0
- package/dist/agents/zero-day-hunter.d.ts +69 -0
- package/dist/agents/zero-day-hunter.d.ts.map +1 -0
- package/dist/agents/zero-day-hunter.js +591 -0
- package/dist/agents/zero-day-hunter.js.map +1 -0
- package/dist/certification/artifacts.d.ts +21 -0
- package/dist/certification/artifacts.d.ts.map +1 -0
- package/dist/certification/artifacts.js +275 -0
- package/dist/certification/artifacts.js.map +1 -0
- package/dist/certification/autofix.d.ts +122 -0
- package/dist/certification/autofix.d.ts.map +1 -0
- package/dist/certification/autofix.js +476 -0
- package/dist/certification/autofix.js.map +1 -0
- package/dist/certification/badge.d.ts +56 -0
- package/dist/certification/badge.d.ts.map +1 -0
- package/dist/certification/badge.js +155 -0
- package/dist/certification/badge.js.map +1 -0
- package/dist/certification/cache.d.ts +121 -0
- package/dist/certification/cache.d.ts.map +1 -0
- package/dist/certification/cache.js +275 -0
- package/dist/certification/cache.js.map +1 -0
- package/dist/certification/cache.test.d.ts +5 -0
- package/dist/certification/cache.test.d.ts.map +1 -0
- package/dist/certification/cache.test.js +270 -0
- package/dist/certification/cache.test.js.map +1 -0
- package/dist/certification/consensus.d.ts +105 -0
- package/dist/certification/consensus.d.ts.map +1 -0
- package/dist/certification/consensus.js +353 -0
- package/dist/certification/consensus.js.map +1 -0
- package/dist/certification/consensus.test.d.ts +5 -0
- package/dist/certification/consensus.test.d.ts.map +1 -0
- package/dist/certification/consensus.test.js +342 -0
- package/dist/certification/consensus.test.js.map +1 -0
- package/dist/certification/index.d.ts +14 -0
- package/dist/certification/index.d.ts.map +1 -0
- package/dist/certification/index.js +14 -0
- package/dist/certification/index.js.map +1 -0
- package/dist/certification/rules.d.ts +89 -0
- package/dist/certification/rules.d.ts.map +1 -0
- package/dist/certification/rules.js +317 -0
- package/dist/certification/rules.js.map +1 -0
- package/dist/certification/sarif.d.ts +107 -0
- package/dist/certification/sarif.d.ts.map +1 -0
- package/dist/certification/sarif.js +191 -0
- package/dist/certification/sarif.js.map +1 -0
- package/dist/certification/store.d.ts +255 -0
- package/dist/certification/store.d.ts.map +1 -0
- package/dist/certification/store.js +835 -0
- package/dist/certification/store.js.map +1 -0
- package/dist/certification/store.test.d.ts +5 -0
- package/dist/certification/store.test.d.ts.map +1 -0
- package/dist/certification/store.test.js +468 -0
- package/dist/certification/store.test.js.map +1 -0
- package/dist/certification/summary.d.ts +72 -0
- package/dist/certification/summary.d.ts.map +1 -0
- package/dist/certification/summary.js +296 -0
- package/dist/certification/summary.js.map +1 -0
- package/dist/certification/types.d.ts +138 -0
- package/dist/certification/types.d.ts.map +1 -0
- package/dist/certification/types.js +34 -0
- package/dist/certification/types.js.map +1 -0
- package/dist/commands/audits/api-check.d.ts +3 -0
- package/dist/commands/audits/api-check.d.ts.map +1 -0
- package/dist/commands/audits/api-check.js +71 -0
- package/dist/commands/audits/api-check.js.map +1 -0
- package/dist/commands/audits/deadcode.d.ts +3 -0
- package/dist/commands/audits/deadcode.d.ts.map +1 -0
- package/dist/commands/audits/deadcode.js +63 -0
- package/dist/commands/audits/deadcode.js.map +1 -0
- package/dist/commands/audits/deps.d.ts +3 -0
- package/dist/commands/audits/deps.d.ts.map +1 -0
- package/dist/commands/audits/deps.js +56 -0
- package/dist/commands/audits/deps.js.map +1 -0
- package/dist/commands/audits/errors.d.ts +3 -0
- package/dist/commands/audits/errors.d.ts.map +1 -0
- package/dist/commands/audits/errors.js +65 -0
- package/dist/commands/audits/errors.js.map +1 -0
- package/dist/commands/audits/index.d.ts +3 -0
- package/dist/commands/audits/index.d.ts.map +1 -0
- package/dist/commands/audits/index.js +15 -0
- package/dist/commands/audits/index.js.map +1 -0
- package/dist/commands/audits/perf.d.ts +3 -0
- package/dist/commands/audits/perf.d.ts.map +1 -0
- package/dist/commands/audits/perf.js +85 -0
- package/dist/commands/audits/perf.js.map +1 -0
- package/dist/commands/audits/secrets.d.ts +3 -0
- package/dist/commands/audits/secrets.d.ts.map +1 -0
- package/dist/commands/audits/secrets.js +71 -0
- package/dist/commands/audits/secrets.js.map +1 -0
- package/dist/commands/certification/certify.d.ts +3 -0
- package/dist/commands/certification/certify.d.ts.map +1 -0
- package/dist/commands/certification/certify.js +108 -0
- package/dist/commands/certification/certify.js.map +1 -0
- package/dist/commands/certification/index.d.ts +3 -0
- package/dist/commands/certification/index.d.ts.map +1 -0
- package/dist/commands/certification/index.js +17 -0
- package/dist/commands/certification/index.js.map +1 -0
- package/dist/commands/certification/performance.d.ts +3 -0
- package/dist/commands/certification/performance.d.ts.map +1 -0
- package/dist/commands/certification/performance.js +89 -0
- package/dist/commands/certification/performance.js.map +1 -0
- package/dist/commands/certification/quality.d.ts +3 -0
- package/dist/commands/certification/quality.d.ts.map +1 -0
- package/dist/commands/certification/quality.js +92 -0
- package/dist/commands/certification/quality.js.map +1 -0
- package/dist/commands/certification/redteam.d.ts +3 -0
- package/dist/commands/certification/redteam.d.ts.map +1 -0
- package/dist/commands/certification/redteam.js +114 -0
- package/dist/commands/certification/redteam.js.map +1 -0
- package/dist/commands/certification/reliability.d.ts +3 -0
- package/dist/commands/certification/reliability.d.ts.map +1 -0
- package/dist/commands/certification/reliability.js +93 -0
- package/dist/commands/certification/reliability.js.map +1 -0
- package/dist/commands/certification/security.d.ts +3 -0
- package/dist/commands/certification/security.d.ts.map +1 -0
- package/dist/commands/certification/security.js +90 -0
- package/dist/commands/certification/security.js.map +1 -0
- package/dist/commands/certification/typesafety.d.ts +3 -0
- package/dist/commands/certification/typesafety.d.ts.map +1 -0
- package/dist/commands/certification/typesafety.js +87 -0
- package/dist/commands/certification/typesafety.js.map +1 -0
- package/dist/commands/core/add-tests.d.ts +3 -0
- package/dist/commands/core/add-tests.d.ts.map +1 -0
- package/dist/commands/core/add-tests.js +29 -0
- package/dist/commands/core/add-tests.js.map +1 -0
- package/dist/commands/core/audit.d.ts +3 -0
- package/dist/commands/core/audit.d.ts.map +1 -0
- package/dist/commands/core/audit.js +64 -0
- package/dist/commands/core/audit.js.map +1 -0
- package/dist/commands/core/fix-critical.d.ts +3 -0
- package/dist/commands/core/fix-critical.d.ts.map +1 -0
- package/dist/commands/core/fix-critical.js +22 -0
- package/dist/commands/core/fix-critical.js.map +1 -0
- package/dist/commands/core/fix-high.d.ts +3 -0
- package/dist/commands/core/fix-high.d.ts.map +1 -0
- package/dist/commands/core/fix-high.js +32 -0
- package/dist/commands/core/fix-high.js.map +1 -0
- package/dist/commands/core/fix-medium.d.ts +3 -0
- package/dist/commands/core/fix-medium.d.ts.map +1 -0
- package/dist/commands/core/fix-medium.js +29 -0
- package/dist/commands/core/fix-medium.js.map +1 -0
- package/dist/commands/core/fix-rls.d.ts +3 -0
- package/dist/commands/core/fix-rls.d.ts.map +1 -0
- package/dist/commands/core/fix-rls.js +17 -0
- package/dist/commands/core/fix-rls.js.map +1 -0
- package/dist/commands/core/harden.d.ts +3 -0
- package/dist/commands/core/harden.d.ts.map +1 -0
- package/dist/commands/core/harden.js +19 -0
- package/dist/commands/core/harden.js.map +1 -0
- package/dist/commands/core/index.d.ts +3 -0
- package/dist/commands/core/index.d.ts.map +1 -0
- package/dist/commands/core/index.js +21 -0
- package/dist/commands/core/index.js.map +1 -0
- package/dist/commands/core/preflight.d.ts +3 -0
- package/dist/commands/core/preflight.d.ts.map +1 -0
- package/dist/commands/core/preflight.js +50 -0
- package/dist/commands/core/preflight.js.map +1 -0
- package/dist/commands/core/verify.d.ts +3 -0
- package/dist/commands/core/verify.d.ts.map +1 -0
- package/dist/commands/core/verify.js +32 -0
- package/dist/commands/core/verify.js.map +1 -0
- package/dist/commands/index.d.ts +28 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +37 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/types.d.ts +9 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +5 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/compliance/cis.d.ts +29 -0
- package/dist/compliance/cis.d.ts.map +1 -0
- package/dist/compliance/cis.js +316 -0
- package/dist/compliance/cis.js.map +1 -0
- package/dist/compliance/frameworks/eu-ai-act.d.ts +55 -0
- package/dist/compliance/frameworks/eu-ai-act.d.ts.map +1 -0
- package/dist/compliance/frameworks/eu-ai-act.js +621 -0
- package/dist/compliance/frameworks/eu-ai-act.js.map +1 -0
- package/dist/compliance/frameworks/index.d.ts +67 -0
- package/dist/compliance/frameworks/index.d.ts.map +1 -0
- package/dist/compliance/frameworks/index.js +97 -0
- package/dist/compliance/frameworks/index.js.map +1 -0
- package/dist/compliance/frameworks/iso-42001.d.ts +59 -0
- package/dist/compliance/frameworks/iso-42001.d.ts.map +1 -0
- package/dist/compliance/frameworks/iso-42001.js +719 -0
- package/dist/compliance/frameworks/iso-42001.js.map +1 -0
- package/dist/compliance/frameworks/mitre-atlas.d.ts +58 -0
- package/dist/compliance/frameworks/mitre-atlas.d.ts.map +1 -0
- package/dist/compliance/frameworks/mitre-atlas.js +686 -0
- package/dist/compliance/frameworks/mitre-atlas.js.map +1 -0
- package/dist/compliance/frameworks/nist-ai-rmf.d.ts +51 -0
- package/dist/compliance/frameworks/nist-ai-rmf.d.ts.map +1 -0
- package/dist/compliance/frameworks/nist-ai-rmf.js +677 -0
- package/dist/compliance/frameworks/nist-ai-rmf.js.map +1 -0
- package/dist/compliance/frameworks/owasp-llm.d.ts +58 -0
- package/dist/compliance/frameworks/owasp-llm.d.ts.map +1 -0
- package/dist/compliance/frameworks/owasp-llm.js +399 -0
- package/dist/compliance/frameworks/owasp-llm.js.map +1 -0
- package/dist/compliance/gdpr.d.ts +34 -0
- package/dist/compliance/gdpr.d.ts.map +1 -0
- package/dist/compliance/gdpr.js +319 -0
- package/dist/compliance/gdpr.js.map +1 -0
- package/dist/compliance/hipaa.d.ts +29 -0
- package/dist/compliance/hipaa.d.ts.map +1 -0
- package/dist/compliance/hipaa.js +205 -0
- package/dist/compliance/hipaa.js.map +1 -0
- package/dist/compliance/index.d.ts +18 -0
- package/dist/compliance/index.d.ts.map +1 -0
- package/dist/compliance/index.js +26 -0
- package/dist/compliance/index.js.map +1 -0
- package/dist/compliance/iso27001.d.ts +30 -0
- package/dist/compliance/iso27001.d.ts.map +1 -0
- package/dist/compliance/iso27001.js +332 -0
- package/dist/compliance/iso27001.js.map +1 -0
- package/dist/compliance/mapper.d.ts +42 -0
- package/dist/compliance/mapper.d.ts.map +1 -0
- package/dist/compliance/mapper.js +269 -0
- package/dist/compliance/mapper.js.map +1 -0
- package/dist/compliance/mapper.test.d.ts +5 -0
- package/dist/compliance/mapper.test.d.ts.map +1 -0
- package/dist/compliance/mapper.test.js +360 -0
- package/dist/compliance/mapper.test.js.map +1 -0
- package/dist/compliance/pci-dss.d.ts +29 -0
- package/dist/compliance/pci-dss.d.ts.map +1 -0
- package/dist/compliance/pci-dss.js +247 -0
- package/dist/compliance/pci-dss.js.map +1 -0
- package/dist/compliance/report.d.ts +25 -0
- package/dist/compliance/report.d.ts.map +1 -0
- package/dist/compliance/report.js +254 -0
- package/dist/compliance/report.js.map +1 -0
- package/dist/compliance/report.test.d.ts +5 -0
- package/dist/compliance/report.test.d.ts.map +1 -0
- package/dist/compliance/report.test.js +128 -0
- package/dist/compliance/report.test.js.map +1 -0
- package/dist/compliance/soc2.d.ts +30 -0
- package/dist/compliance/soc2.d.ts.map +1 -0
- package/dist/compliance/soc2.js +262 -0
- package/dist/compliance/soc2.js.map +1 -0
- package/dist/compliance/soc2.test.d.ts +5 -0
- package/dist/compliance/soc2.test.d.ts.map +1 -0
- package/dist/compliance/soc2.test.js +86 -0
- package/dist/compliance/soc2.test.js.map +1 -0
- package/dist/compliance/types.d.ts +125 -0
- package/dist/compliance/types.d.ts.map +1 -0
- package/dist/compliance/types.js +10 -0
- package/dist/compliance/types.js.map +1 -0
- package/dist/config/flags.d.ts +456 -0
- package/dist/config/flags.d.ts.map +1 -0
- package/dist/config/flags.js +464 -0
- package/dist/config/flags.js.map +1 -0
- package/dist/config/index.d.ts +10 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +10 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/severity-overrides.d.ts +209 -0
- package/dist/config/severity-overrides.d.ts.map +1 -0
- package/dist/config/severity-overrides.js +380 -0
- package/dist/config/severity-overrides.js.map +1 -0
- package/dist/cost/index.d.ts +11 -0
- package/dist/cost/index.d.ts.map +1 -0
- package/dist/cost/index.js +12 -0
- package/dist/cost/index.js.map +1 -0
- package/dist/cost/pricing.d.ts +57 -0
- package/dist/cost/pricing.d.ts.map +1 -0
- package/dist/cost/pricing.js +196 -0
- package/dist/cost/pricing.js.map +1 -0
- package/dist/cost/pricing.test.d.ts +5 -0
- package/dist/cost/pricing.test.d.ts.map +1 -0
- package/dist/cost/pricing.test.js +195 -0
- package/dist/cost/pricing.test.js.map +1 -0
- package/dist/cost/tracker.d.ts +100 -0
- package/dist/cost/tracker.d.ts.map +1 -0
- package/dist/cost/tracker.js +366 -0
- package/dist/cost/tracker.js.map +1 -0
- package/dist/cost/tracker.test.d.ts +5 -0
- package/dist/cost/tracker.test.d.ts.map +1 -0
- package/dist/cost/tracker.test.js +360 -0
- package/dist/cost/tracker.test.js.map +1 -0
- package/dist/cost/types.d.ts +135 -0
- package/dist/cost/types.d.ts.map +1 -0
- package/dist/cost/types.js +9 -0
- package/dist/cost/types.js.map +1 -0
- package/dist/enterprise/auth/oidc.d.ts +231 -0
- package/dist/enterprise/auth/oidc.d.ts.map +1 -0
- package/dist/enterprise/auth/oidc.js +372 -0
- package/dist/enterprise/auth/oidc.js.map +1 -0
- package/dist/enterprise/auth/oidc.test.d.ts +5 -0
- package/dist/enterprise/auth/oidc.test.d.ts.map +1 -0
- package/dist/enterprise/auth/oidc.test.js +435 -0
- package/dist/enterprise/auth/oidc.test.js.map +1 -0
- package/dist/enterprise/index.d.ts +14 -0
- package/dist/enterprise/index.d.ts.map +1 -0
- package/dist/enterprise/index.js +19 -0
- package/dist/enterprise/index.js.map +1 -0
- package/dist/enterprise/integrations/chat.d.ts +205 -0
- package/dist/enterprise/integrations/chat.d.ts.map +1 -0
- package/dist/enterprise/integrations/chat.js +624 -0
- package/dist/enterprise/integrations/chat.js.map +1 -0
- package/dist/enterprise/integrations/chat.test.d.ts +5 -0
- package/dist/enterprise/integrations/chat.test.d.ts.map +1 -0
- package/dist/enterprise/integrations/chat.test.js +557 -0
- package/dist/enterprise/integrations/chat.test.js.map +1 -0
- package/dist/enterprise/integrations/ticketing.d.ts +257 -0
- package/dist/enterprise/integrations/ticketing.d.ts.map +1 -0
- package/dist/enterprise/integrations/ticketing.js +548 -0
- package/dist/enterprise/integrations/ticketing.js.map +1 -0
- package/dist/enterprise/integrations/ticketing.test.d.ts +5 -0
- package/dist/enterprise/integrations/ticketing.test.d.ts.map +1 -0
- package/dist/enterprise/integrations/ticketing.test.js +693 -0
- package/dist/enterprise/integrations/ticketing.test.js.map +1 -0
- package/dist/enterprise/policy/opa.d.ts +194 -0
- package/dist/enterprise/policy/opa.d.ts.map +1 -0
- package/dist/enterprise/policy/opa.js +385 -0
- package/dist/enterprise/policy/opa.js.map +1 -0
- package/dist/enterprise/policy/opa.test.d.ts +5 -0
- package/dist/enterprise/policy/opa.test.d.ts.map +1 -0
- package/dist/enterprise/policy/opa.test.js +702 -0
- package/dist/enterprise/policy/opa.test.js.map +1 -0
- package/dist/enterprise/signing/kms.d.ts +211 -0
- package/dist/enterprise/signing/kms.d.ts.map +1 -0
- package/dist/enterprise/signing/kms.js +480 -0
- package/dist/enterprise/signing/kms.js.map +1 -0
- package/dist/enterprise/signing/kms.test.d.ts +5 -0
- package/dist/enterprise/signing/kms.test.d.ts.map +1 -0
- package/dist/enterprise/signing/kms.test.js +511 -0
- package/dist/enterprise/signing/kms.test.js.map +1 -0
- package/dist/eval/fixtures.d.ts +58 -0
- package/dist/eval/fixtures.d.ts.map +1 -0
- package/dist/eval/fixtures.js +571 -0
- package/dist/eval/fixtures.js.map +1 -0
- package/dist/eval/fixtures.test.d.ts +5 -0
- package/dist/eval/fixtures.test.d.ts.map +1 -0
- package/dist/eval/fixtures.test.js +193 -0
- package/dist/eval/fixtures.test.js.map +1 -0
- package/dist/eval/harness.d.ts +30 -0
- package/dist/eval/harness.d.ts.map +1 -0
- package/dist/eval/harness.js +221 -0
- package/dist/eval/harness.js.map +1 -0
- package/dist/eval/harness.test.d.ts +5 -0
- package/dist/eval/harness.test.d.ts.map +1 -0
- package/dist/eval/harness.test.js +314 -0
- package/dist/eval/harness.test.js.map +1 -0
- package/dist/eval/index.d.ts +15 -0
- package/dist/eval/index.d.ts.map +1 -0
- package/dist/eval/index.js +18 -0
- package/dist/eval/index.js.map +1 -0
- package/dist/eval/metrics.d.ts +56 -0
- package/dist/eval/metrics.d.ts.map +1 -0
- package/dist/eval/metrics.js +298 -0
- package/dist/eval/metrics.js.map +1 -0
- package/dist/eval/metrics.test.d.ts +5 -0
- package/dist/eval/metrics.test.d.ts.map +1 -0
- package/dist/eval/metrics.test.js +426 -0
- package/dist/eval/metrics.test.js.map +1 -0
- package/dist/eval/report.d.ts +30 -0
- package/dist/eval/report.d.ts.map +1 -0
- package/dist/eval/report.js +333 -0
- package/dist/eval/report.js.map +1 -0
- package/dist/eval/report.test.d.ts +5 -0
- package/dist/eval/report.test.d.ts.map +1 -0
- package/dist/eval/report.test.js +275 -0
- package/dist/eval/report.test.js.map +1 -0
- package/dist/eval/types.d.ts +234 -0
- package/dist/eval/types.d.ts.map +1 -0
- package/dist/eval/types.js +27 -0
- package/dist/eval/types.js.map +1 -0
- package/dist/http-server.d.ts +3 -0
- package/dist/http-server.d.ts.map +1 -0
- package/dist/http-server.js +127 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4120 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +46 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +131 -0
- package/dist/logger.js.map +1 -0
- package/dist/multimodel/consensus.d.ts +49 -0
- package/dist/multimodel/consensus.d.ts.map +1 -0
- package/dist/multimodel/consensus.js +454 -0
- package/dist/multimodel/consensus.js.map +1 -0
- package/dist/multimodel/consensus.test.d.ts +5 -0
- package/dist/multimodel/consensus.test.d.ts.map +1 -0
- package/dist/multimodel/consensus.test.js +415 -0
- package/dist/multimodel/consensus.test.js.map +1 -0
- package/dist/multimodel/index.d.ts +13 -0
- package/dist/multimodel/index.d.ts.map +1 -0
- package/dist/multimodel/index.js +14 -0
- package/dist/multimodel/index.js.map +1 -0
- package/dist/multimodel/runner.d.ts +95 -0
- package/dist/multimodel/runner.d.ts.map +1 -0
- package/dist/multimodel/runner.js +312 -0
- package/dist/multimodel/runner.js.map +1 -0
- package/dist/multimodel/runner.test.d.ts +5 -0
- package/dist/multimodel/runner.test.d.ts.map +1 -0
- package/dist/multimodel/runner.test.js +224 -0
- package/dist/multimodel/runner.test.js.map +1 -0
- package/dist/multimodel/types.d.ts +202 -0
- package/dist/multimodel/types.d.ts.map +1 -0
- package/dist/multimodel/types.js +10 -0
- package/dist/multimodel/types.js.map +1 -0
- package/dist/observability/index.d.ts +9 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +9 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/observability/otel.d.ts +102 -0
- package/dist/observability/otel.d.ts.map +1 -0
- package/dist/observability/otel.js +284 -0
- package/dist/observability/otel.js.map +1 -0
- package/dist/plugins/index.d.ts +10 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +10 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/loader.d.ts +78 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +470 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/plugins/types.d.ts +304 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +100 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/sbom/cyclonedx.d.ts +30 -0
- package/dist/sbom/cyclonedx.d.ts.map +1 -0
- package/dist/sbom/cyclonedx.js +392 -0
- package/dist/sbom/cyclonedx.js.map +1 -0
- package/dist/sbom/cyclonedx.test.d.ts +5 -0
- package/dist/sbom/cyclonedx.test.d.ts.map +1 -0
- package/dist/sbom/cyclonedx.test.js +244 -0
- package/dist/sbom/cyclonedx.test.js.map +1 -0
- package/dist/sbom/index.d.ts +13 -0
- package/dist/sbom/index.d.ts.map +1 -0
- package/dist/sbom/index.js +15 -0
- package/dist/sbom/index.js.map +1 -0
- package/dist/sbom/provenance.d.ts +37 -0
- package/dist/sbom/provenance.d.ts.map +1 -0
- package/dist/sbom/provenance.js +268 -0
- package/dist/sbom/provenance.js.map +1 -0
- package/dist/sbom/provenance.test.d.ts +5 -0
- package/dist/sbom/provenance.test.d.ts.map +1 -0
- package/dist/sbom/provenance.test.js +189 -0
- package/dist/sbom/provenance.test.js.map +1 -0
- package/dist/sbom/signing.d.ts +87 -0
- package/dist/sbom/signing.d.ts.map +1 -0
- package/dist/sbom/signing.js +354 -0
- package/dist/sbom/signing.js.map +1 -0
- package/dist/sbom/signing.test.d.ts +5 -0
- package/dist/sbom/signing.test.d.ts.map +1 -0
- package/dist/sbom/signing.test.js +170 -0
- package/dist/sbom/signing.test.js.map +1 -0
- package/dist/sbom/types.d.ts +384 -0
- package/dist/sbom/types.d.ts.map +1 -0
- package/dist/sbom/types.js +17 -0
- package/dist/sbom/types.js.map +1 -0
- package/dist/scanners/agent/credential-scope-audit.d.ts +40 -0
- package/dist/scanners/agent/credential-scope-audit.d.ts.map +1 -0
- package/dist/scanners/agent/credential-scope-audit.js +404 -0
- package/dist/scanners/agent/credential-scope-audit.js.map +1 -0
- package/dist/scanners/agent/exfil-path-graph.d.ts +50 -0
- package/dist/scanners/agent/exfil-path-graph.d.ts.map +1 -0
- package/dist/scanners/agent/exfil-path-graph.js +764 -0
- package/dist/scanners/agent/exfil-path-graph.js.map +1 -0
- package/dist/scanners/agent/index.d.ts +43 -0
- package/dist/scanners/agent/index.d.ts.map +1 -0
- package/dist/scanners/agent/index.js +616 -0
- package/dist/scanners/agent/index.js.map +1 -0
- package/dist/scanners/agent/manifest-audit.d.ts +43 -0
- package/dist/scanners/agent/manifest-audit.d.ts.map +1 -0
- package/dist/scanners/agent/manifest-audit.js +403 -0
- package/dist/scanners/agent/manifest-audit.js.map +1 -0
- package/dist/scanners/agent/payloads/index.d.ts +44 -0
- package/dist/scanners/agent/payloads/index.d.ts.map +1 -0
- package/dist/scanners/agent/payloads/index.js +184 -0
- package/dist/scanners/agent/payloads/index.js.map +1 -0
- package/dist/scanners/agent/permission-minimiser.d.ts +48 -0
- package/dist/scanners/agent/permission-minimiser.d.ts.map +1 -0
- package/dist/scanners/agent/permission-minimiser.js +551 -0
- package/dist/scanners/agent/permission-minimiser.js.map +1 -0
- package/dist/scanners/agent/prompt-injection-fuzzer.d.ts +39 -0
- package/dist/scanners/agent/prompt-injection-fuzzer.d.ts.map +1 -0
- package/dist/scanners/agent/prompt-injection-fuzzer.js +720 -0
- package/dist/scanners/agent/prompt-injection-fuzzer.js.map +1 -0
- package/dist/scanners/agent/sandbox-audit.d.ts +44 -0
- package/dist/scanners/agent/sandbox-audit.d.ts.map +1 -0
- package/dist/scanners/agent/sandbox-audit.js +425 -0
- package/dist/scanners/agent/sandbox-audit.js.map +1 -0
- package/dist/scanners/agent/supply-chain-mcp.d.ts +53 -0
- package/dist/scanners/agent/supply-chain-mcp.d.ts.map +1 -0
- package/dist/scanners/agent/supply-chain-mcp.js +479 -0
- package/dist/scanners/agent/supply-chain-mcp.js.map +1 -0
- package/dist/scanners/agent/tool-description-drift.d.ts +62 -0
- package/dist/scanners/agent/tool-description-drift.d.ts.map +1 -0
- package/dist/scanners/agent/tool-description-drift.js +365 -0
- package/dist/scanners/agent/tool-description-drift.js.map +1 -0
- package/dist/scanners/agent/types.d.ts +840 -0
- package/dist/scanners/agent/types.d.ts.map +1 -0
- package/dist/scanners/agent/types.js +149 -0
- package/dist/scanners/agent/types.js.map +1 -0
- package/dist/scanners/bandit.d.ts +25 -0
- package/dist/scanners/bandit.d.ts.map +1 -0
- package/dist/scanners/bandit.js +129 -0
- package/dist/scanners/bandit.js.map +1 -0
- package/dist/scanners/binary-analysis.d.ts +41 -0
- package/dist/scanners/binary-analysis.d.ts.map +1 -0
- package/dist/scanners/binary-analysis.js +587 -0
- package/dist/scanners/binary-analysis.js.map +1 -0
- package/dist/scanners/binary-analysis.test.d.ts +5 -0
- package/dist/scanners/binary-analysis.test.d.ts.map +1 -0
- package/dist/scanners/binary-analysis.test.js +291 -0
- package/dist/scanners/binary-analysis.test.js.map +1 -0
- package/dist/scanners/brakeman.d.ts +30 -0
- package/dist/scanners/brakeman.d.ts.map +1 -0
- package/dist/scanners/brakeman.js +271 -0
- package/dist/scanners/brakeman.js.map +1 -0
- package/dist/scanners/dependencies.d.ts +22 -0
- package/dist/scanners/dependencies.d.ts.map +1 -0
- package/dist/scanners/dependencies.js +202 -0
- package/dist/scanners/dependencies.js.map +1 -0
- package/dist/scanners/dependencies.test.d.ts +5 -0
- package/dist/scanners/dependencies.test.d.ts.map +1 -0
- package/dist/scanners/dependencies.test.js +185 -0
- package/dist/scanners/dependencies.test.js.map +1 -0
- package/dist/scanners/eslint.d.ts +25 -0
- package/dist/scanners/eslint.d.ts.map +1 -0
- package/dist/scanners/eslint.js +220 -0
- package/dist/scanners/eslint.js.map +1 -0
- package/dist/scanners/gosec.d.ts +25 -0
- package/dist/scanners/gosec.d.ts.map +1 -0
- package/dist/scanners/gosec.js +128 -0
- package/dist/scanners/gosec.js.map +1 -0
- package/dist/scanners/index.d.ts +128 -0
- package/dist/scanners/index.d.ts.map +1 -0
- package/dist/scanners/index.js +811 -0
- package/dist/scanners/index.js.map +1 -0
- package/dist/scanners/index.test.d.ts +5 -0
- package/dist/scanners/index.test.d.ts.map +1 -0
- package/dist/scanners/index.test.js +424 -0
- package/dist/scanners/index.test.js.map +1 -0
- package/dist/scanners/memory-safety.d.ts +44 -0
- package/dist/scanners/memory-safety.d.ts.map +1 -0
- package/dist/scanners/memory-safety.js +571 -0
- package/dist/scanners/memory-safety.js.map +1 -0
- package/dist/scanners/memory-safety.test.d.ts +5 -0
- package/dist/scanners/memory-safety.test.d.ts.map +1 -0
- package/dist/scanners/memory-safety.test.js +321 -0
- package/dist/scanners/memory-safety.test.js.map +1 -0
- package/dist/scanners/race-condition.d.ts +25 -0
- package/dist/scanners/race-condition.d.ts.map +1 -0
- package/dist/scanners/race-condition.js +443 -0
- package/dist/scanners/race-condition.js.map +1 -0
- package/dist/scanners/race-condition.test.d.ts +5 -0
- package/dist/scanners/race-condition.test.d.ts.map +1 -0
- package/dist/scanners/race-condition.test.js +428 -0
- package/dist/scanners/race-condition.test.js.map +1 -0
- package/dist/scanners/secrets.d.ts +25 -0
- package/dist/scanners/secrets.d.ts.map +1 -0
- package/dist/scanners/secrets.js +367 -0
- package/dist/scanners/secrets.js.map +1 -0
- package/dist/scanners/secrets.test.d.ts +5 -0
- package/dist/scanners/secrets.test.d.ts.map +1 -0
- package/dist/scanners/secrets.test.js +160 -0
- package/dist/scanners/secrets.test.js.map +1 -0
- package/dist/scanners/semgrep.d.ts +33 -0
- package/dist/scanners/semgrep.d.ts.map +1 -0
- package/dist/scanners/semgrep.js +350 -0
- package/dist/scanners/semgrep.js.map +1 -0
- package/dist/scanners/semgrep.test.d.ts +8 -0
- package/dist/scanners/semgrep.test.d.ts.map +1 -0
- package/dist/scanners/semgrep.test.js +254 -0
- package/dist/scanners/semgrep.test.js.map +1 -0
- package/dist/scanners/trivy.d.ts +26 -0
- package/dist/scanners/trivy.d.ts.map +1 -0
- package/dist/scanners/trivy.js +187 -0
- package/dist/scanners/trivy.js.map +1 -0
- package/dist/scanners/types.d.ts +210 -0
- package/dist/scanners/types.d.ts.map +1 -0
- package/dist/scanners/types.js +106 -0
- package/dist/scanners/types.js.map +1 -0
- package/dist/scanners/types.test.d.ts +5 -0
- package/dist/scanners/types.test.d.ts.map +1 -0
- package/dist/scanners/types.test.js +103 -0
- package/dist/scanners/types.test.js.map +1 -0
- package/dist/scanners/typescript.d.ts +32 -0
- package/dist/scanners/typescript.d.ts.map +1 -0
- package/dist/scanners/typescript.js +300 -0
- package/dist/scanners/typescript.js.map +1 -0
- package/dist/scanners/typescript.test.d.ts +5 -0
- package/dist/scanners/typescript.test.d.ts.map +1 -0
- package/dist/scanners/typescript.test.js +296 -0
- package/dist/scanners/typescript.test.js.map +1 -0
- package/dist/transcripts/index.d.ts +13 -0
- package/dist/transcripts/index.d.ts.map +1 -0
- package/dist/transcripts/index.js +17 -0
- package/dist/transcripts/index.js.map +1 -0
- package/dist/transcripts/logger.d.ts +190 -0
- package/dist/transcripts/logger.d.ts.map +1 -0
- package/dist/transcripts/logger.js +385 -0
- package/dist/transcripts/logger.js.map +1 -0
- package/dist/transcripts/logger.test.d.ts +5 -0
- package/dist/transcripts/logger.test.d.ts.map +1 -0
- package/dist/transcripts/logger.test.js +227 -0
- package/dist/transcripts/logger.test.js.map +1 -0
- package/dist/transcripts/redaction.d.ts +125 -0
- package/dist/transcripts/redaction.d.ts.map +1 -0
- package/dist/transcripts/redaction.js +416 -0
- package/dist/transcripts/redaction.js.map +1 -0
- package/dist/transcripts/redaction.test.d.ts +5 -0
- package/dist/transcripts/redaction.test.d.ts.map +1 -0
- package/dist/transcripts/redaction.test.js +267 -0
- package/dist/transcripts/redaction.test.js.map +1 -0
- package/dist/transcripts/signing.d.ts +108 -0
- package/dist/transcripts/signing.d.ts.map +1 -0
- package/dist/transcripts/signing.js +173 -0
- package/dist/transcripts/signing.js.map +1 -0
- package/dist/transcripts/verifier.d.ts +133 -0
- package/dist/transcripts/verifier.d.ts.map +1 -0
- package/dist/transcripts/verifier.js +489 -0
- package/dist/transcripts/verifier.js.map +1 -0
- package/dist/transcripts/verifier.test.d.ts +5 -0
- package/dist/transcripts/verifier.test.d.ts.map +1 -0
- package/dist/transcripts/verifier.test.js +330 -0
- package/dist/transcripts/verifier.test.js.map +1 -0
- package/dist/util/concurrency.d.ts +221 -0
- package/dist/util/concurrency.d.ts.map +1 -0
- package/dist/util/concurrency.js +339 -0
- package/dist/util/concurrency.js.map +1 -0
- package/dist/util/index.d.ts +12 -0
- package/dist/util/index.d.ts.map +1 -0
- package/dist/util/index.js +12 -0
- package/dist/util/index.js.map +1 -0
- package/dist/util/json.d.ts +63 -0
- package/dist/util/json.d.ts.map +1 -0
- package/dist/util/json.js +134 -0
- package/dist/util/json.js.map +1 -0
- package/dist/util/paths.d.ts +56 -0
- package/dist/util/paths.d.ts.map +1 -0
- package/dist/util/paths.js +128 -0
- package/dist/util/paths.js.map +1 -0
- package/dist/util/retry.d.ts +185 -0
- package/dist/util/retry.d.ts.map +1 -0
- package/dist/util/retry.js +338 -0
- package/dist/util/retry.js.map +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nist-ai-rmf.js","sourceRoot":"","sources":["../../../src/compliance/frameworks/nist-ai-rmf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwB;IACvD,+EAA+E;IAC/E,iDAAiD;IACjD,+EAA+E;IAE/E;QACE,EAAE,EAAE,YAAY;QAChB,SAAS,EAAE,aAAoB;QAC/B,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,6BAA6B;QACpC,WAAW,EACT,8KAA8K;QAChL,QAAQ,EAAE;YACR,QAAQ;YACR,YAAY;YACZ,YAAY;YACZ,YAAY;YACZ,SAAS;YACT,eAAe;SAChB;QACD,iBAAiB,EAAE;YACjB,2BAA2B;YAC3B,iBAAiB;SAClB;QACD,iBAAiB,EAAE,KAAK;KACzB;IACD;QACE,EAAE,EAAE,YAAY;QAChB,SAAS,EAAE,aAAoB;QAC/B,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,yLAAyL;QAC3L,QAAQ,EAAE;YACR,gBAAgB;YAChB,OAAO;YACP,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;SACjB;QACD,iBAAiB,EAAE;YACjB,kBAAkB;YAClB,uBAAuB;SACxB;QACD,iBAAiB,EAAE,QAAQ;KAC5B;IACD;QACE,EAAE,EAAE,YAAY;QAChB,SAAS,EAAE,aAAoB;QAC/B,QAAQ,EAAE,YAAY;QACtB,KAAK,EAAE,yBAAyB;QAChC,WAAW,EACT,2JAA2J;QAC7J,QAAQ,EAAE;YACR,eAAe;YACf,gBAAgB;YAChB,WAAW;YACX,YAAY;SACb;QACD,iBAAiB,EAAE;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MAAM,UAAU,8BAA8B,CAAC,QAAgB;IAC7D,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACrE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACnE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;AACtE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OWASP LLM Top 10 Compliance Framework
|
|
3
|
+
*
|
|
4
|
+
* Maps security findings to OWASP Top 10 for Large Language Model Applications (2025).
|
|
5
|
+
* This framework addresses AI-specific security risks in LLM-powered applications.
|
|
6
|
+
*
|
|
7
|
+
* @see https://owasp.org/www-project-top-10-for-large-language-model-applications/
|
|
8
|
+
* @module compliance/frameworks/owasp-llm
|
|
9
|
+
*/
|
|
10
|
+
import type { ComplianceControl } from "../types.js";
|
|
11
|
+
/**
|
|
12
|
+
* AI-specific compliance framework type
|
|
13
|
+
*/
|
|
14
|
+
export type AIComplianceFramework = "OWASP-LLM" | "NIST-AI-RMF" | "MITRE-ATLAS" | "EU-AI-ACT" | "ISO-42001";
|
|
15
|
+
/**
|
|
16
|
+
* OWASP LLM Top 10 Controls (2025 version)
|
|
17
|
+
*
|
|
18
|
+
* Each control maps to one of the OWASP LLM Top 10 risks with
|
|
19
|
+
* associated finding categories from agent scanners.
|
|
20
|
+
*/
|
|
21
|
+
export declare const OWASP_LLM_CONTROLS: ComplianceControl[];
|
|
22
|
+
/**
|
|
23
|
+
* Cross-mapping to SOC 2 controls for integrated compliance
|
|
24
|
+
*/
|
|
25
|
+
export declare const OWASP_LLM_TO_SOC2_MAPPING: Record<string, string[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Cross-mapping to ISO 27001 controls
|
|
28
|
+
*/
|
|
29
|
+
export declare const OWASP_LLM_TO_ISO27001_MAPPING: Record<string, string[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Get all OWASP LLM Top 10 controls
|
|
32
|
+
*/
|
|
33
|
+
export declare function getOWASPLLMControls(): ComplianceControl[];
|
|
34
|
+
/**
|
|
35
|
+
* Get OWASP LLM control by ID (LLM01-LLM10)
|
|
36
|
+
*/
|
|
37
|
+
export declare function getOWASPLLMControlById(id: string): ComplianceControl | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Get OWASP LLM controls by category
|
|
40
|
+
*/
|
|
41
|
+
export declare function getOWASPLLMControlsByCategory(category: string): ComplianceControl[];
|
|
42
|
+
/**
|
|
43
|
+
* Get all OWASP LLM categories
|
|
44
|
+
*/
|
|
45
|
+
export declare function getOWASPLLMCategories(): string[];
|
|
46
|
+
/**
|
|
47
|
+
* Get cross-mapping to SOC 2 for a specific LLM control
|
|
48
|
+
*/
|
|
49
|
+
export declare function getSOC2MappingForLLMControl(llmControlId: string): string[];
|
|
50
|
+
/**
|
|
51
|
+
* Get cross-mapping to ISO 27001 for a specific LLM control
|
|
52
|
+
*/
|
|
53
|
+
export declare function getISO27001MappingForLLMControl(llmControlId: string): string[];
|
|
54
|
+
/**
|
|
55
|
+
* Generate remediation guidance for a specific LLM control
|
|
56
|
+
*/
|
|
57
|
+
export declare function getRemediationGuidance(controlId: string): string[];
|
|
58
|
+
//# sourceMappingURL=owasp-llm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owasp-llm.d.ts","sourceRoot":"","sources":["../../../src/compliance/frameworks/owasp-llm.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,aAAa,GACb,aAAa,GACb,WAAW,GACX,WAAW,CAAC;AAEhB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EAiQjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAW9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAWlE,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,iBAAiB,EAAE,CAEzD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAEhF;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAEnF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,EAAE,CAEhD;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAE1E;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAE9E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CA2ElE"}
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OWASP LLM Top 10 Compliance Framework
|
|
3
|
+
*
|
|
4
|
+
* Maps security findings to OWASP Top 10 for Large Language Model Applications (2025).
|
|
5
|
+
* This framework addresses AI-specific security risks in LLM-powered applications.
|
|
6
|
+
*
|
|
7
|
+
* @see https://owasp.org/www-project-top-10-for-large-language-model-applications/
|
|
8
|
+
* @module compliance/frameworks/owasp-llm
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* OWASP LLM Top 10 Controls (2025 version)
|
|
12
|
+
*
|
|
13
|
+
* Each control maps to one of the OWASP LLM Top 10 risks with
|
|
14
|
+
* associated finding categories from agent scanners.
|
|
15
|
+
*/
|
|
16
|
+
export const OWASP_LLM_CONTROLS = [
|
|
17
|
+
// LLM01: Prompt Injection
|
|
18
|
+
{
|
|
19
|
+
id: "LLM01",
|
|
20
|
+
framework: "OWASP-LLM",
|
|
21
|
+
category: "Input Validation",
|
|
22
|
+
title: "Prompt Injection",
|
|
23
|
+
description: "Prompt injection occurs when an attacker manipulates a large language model (LLM) through crafted inputs, causing the LLM to unknowingly execute the attacker's intentions. This can be done directly by 'jailbreaking' the system prompt or indirectly through manipulated external inputs, potentially leading to data exfiltration, social engineering, and other issues.",
|
|
24
|
+
keywords: [
|
|
25
|
+
"prompt injection",
|
|
26
|
+
"jailbreak",
|
|
27
|
+
"instruction override",
|
|
28
|
+
"system prompt",
|
|
29
|
+
"indirect injection",
|
|
30
|
+
"context manipulation",
|
|
31
|
+
],
|
|
32
|
+
findingCategories: [
|
|
33
|
+
"prompt-injection",
|
|
34
|
+
"injection",
|
|
35
|
+
"insecure-plugin",
|
|
36
|
+
],
|
|
37
|
+
cweIds: ["CWE-94", "CWE-77", "CWE-74"],
|
|
38
|
+
severityThreshold: "high",
|
|
39
|
+
},
|
|
40
|
+
// LLM02: Insecure Output Handling
|
|
41
|
+
{
|
|
42
|
+
id: "LLM02",
|
|
43
|
+
framework: "OWASP-LLM",
|
|
44
|
+
category: "Output Validation",
|
|
45
|
+
title: "Insecure Output Handling",
|
|
46
|
+
description: "Insecure Output Handling refers specifically to insufficient validation, sanitization, and handling of the outputs generated by large language models before they are passed downstream to other components and systems. Since LLM-generated content can be controlled by prompt input, this behavior is similar to providing users indirect access to additional functionality.",
|
|
47
|
+
keywords: [
|
|
48
|
+
"output validation",
|
|
49
|
+
"output sanitization",
|
|
50
|
+
"downstream injection",
|
|
51
|
+
"xss",
|
|
52
|
+
"sql injection",
|
|
53
|
+
"command injection",
|
|
54
|
+
],
|
|
55
|
+
findingCategories: [
|
|
56
|
+
"insecure-output",
|
|
57
|
+
"xss",
|
|
58
|
+
"sql-injection",
|
|
59
|
+
"command-injection",
|
|
60
|
+
"code-injection",
|
|
61
|
+
],
|
|
62
|
+
cweIds: ["CWE-79", "CWE-89", "CWE-78", "CWE-94", "CWE-116"],
|
|
63
|
+
severityThreshold: "high",
|
|
64
|
+
},
|
|
65
|
+
// LLM03: Training Data Poisoning
|
|
66
|
+
{
|
|
67
|
+
id: "LLM03",
|
|
68
|
+
framework: "OWASP-LLM",
|
|
69
|
+
category: "Data Integrity",
|
|
70
|
+
title: "Training Data Poisoning",
|
|
71
|
+
description: "The starting point of any machine learning approach is training data. In terms of large language models, this is 'pre-training'. Poisoning refers to manipulation of pre-training data or data involved in fine-tuning or embedding to introduce vulnerabilities, backdoors or biases that could compromise the model's security, effectiveness or ethical behavior.",
|
|
72
|
+
keywords: [
|
|
73
|
+
"training data",
|
|
74
|
+
"data poisoning",
|
|
75
|
+
"fine-tuning",
|
|
76
|
+
"backdoor",
|
|
77
|
+
"bias injection",
|
|
78
|
+
"model manipulation",
|
|
79
|
+
],
|
|
80
|
+
findingCategories: [
|
|
81
|
+
"training-data-poisoning",
|
|
82
|
+
"integrity-failure",
|
|
83
|
+
"supply-chain-vuln",
|
|
84
|
+
],
|
|
85
|
+
cweIds: ["CWE-1035", "CWE-829", "CWE-494"],
|
|
86
|
+
severityThreshold: "high",
|
|
87
|
+
},
|
|
88
|
+
// LLM04: Model Denial of Service
|
|
89
|
+
{
|
|
90
|
+
id: "LLM04",
|
|
91
|
+
framework: "OWASP-LLM",
|
|
92
|
+
category: "Availability",
|
|
93
|
+
title: "Model Denial of Service",
|
|
94
|
+
description: "An attacker interacts with an LLM in a method that consumes an exceptionally high amount of resources, which results in a decline in the quality of service for them and other users, as well as potentially incurring high resource costs. The model may become unresponsive or significantly slow, impacting legitimate users.",
|
|
95
|
+
keywords: [
|
|
96
|
+
"denial of service",
|
|
97
|
+
"resource exhaustion",
|
|
98
|
+
"token flooding",
|
|
99
|
+
"context overflow",
|
|
100
|
+
"recursive prompts",
|
|
101
|
+
"rate limiting",
|
|
102
|
+
],
|
|
103
|
+
findingCategories: [
|
|
104
|
+
"model-denial-of-service",
|
|
105
|
+
"resource-exhaustion",
|
|
106
|
+
],
|
|
107
|
+
cweIds: ["CWE-400", "CWE-770", "CWE-789"],
|
|
108
|
+
severityThreshold: "medium",
|
|
109
|
+
},
|
|
110
|
+
// LLM05: Supply Chain Vulnerabilities
|
|
111
|
+
{
|
|
112
|
+
id: "LLM05",
|
|
113
|
+
framework: "OWASP-LLM",
|
|
114
|
+
category: "Supply Chain",
|
|
115
|
+
title: "Supply Chain Vulnerabilities",
|
|
116
|
+
description: "The supply chain in LLMs can be vulnerable, impacting the integrity of training data, ML models, and deployment platforms. These vulnerabilities can lead to biased outcomes, security breaches, or system failures. Risks include outdated components, vulnerable pre-trained models, poisoned fine-tuning datasets, and insecure plugin stores.",
|
|
117
|
+
keywords: [
|
|
118
|
+
"supply chain",
|
|
119
|
+
"dependency",
|
|
120
|
+
"third-party",
|
|
121
|
+
"plugin",
|
|
122
|
+
"model hub",
|
|
123
|
+
"package vulnerability",
|
|
124
|
+
"typosquatting",
|
|
125
|
+
],
|
|
126
|
+
findingCategories: [
|
|
127
|
+
"supply-chain-vuln",
|
|
128
|
+
"dependency-vuln",
|
|
129
|
+
"vulnerable-component",
|
|
130
|
+
"insecure-plugin",
|
|
131
|
+
],
|
|
132
|
+
cweIds: ["CWE-1035", "CWE-829", "CWE-494", "CWE-937"],
|
|
133
|
+
severityThreshold: "high",
|
|
134
|
+
},
|
|
135
|
+
// LLM06: Sensitive Information Disclosure
|
|
136
|
+
{
|
|
137
|
+
id: "LLM06",
|
|
138
|
+
framework: "OWASP-LLM",
|
|
139
|
+
category: "Data Protection",
|
|
140
|
+
title: "Sensitive Information Disclosure",
|
|
141
|
+
description: "LLM applications have the potential to reveal sensitive information, proprietary algorithms, or other confidential details through their output. This can result in unauthorized access to sensitive data, intellectual property, privacy violations, and other security breaches. Consumers of LLM applications should be aware of how to safely interact with LLMs.",
|
|
142
|
+
keywords: [
|
|
143
|
+
"sensitive data",
|
|
144
|
+
"data leakage",
|
|
145
|
+
"pii exposure",
|
|
146
|
+
"confidential information",
|
|
147
|
+
"system prompt extraction",
|
|
148
|
+
"model memorization",
|
|
149
|
+
],
|
|
150
|
+
findingCategories: [
|
|
151
|
+
"sensitive-disclosure",
|
|
152
|
+
"pii-exposure",
|
|
153
|
+
"hardcoded-secret",
|
|
154
|
+
"exfil-path",
|
|
155
|
+
],
|
|
156
|
+
cweIds: ["CWE-200", "CWE-359", "CWE-532", "CWE-538"],
|
|
157
|
+
severityThreshold: "high",
|
|
158
|
+
},
|
|
159
|
+
// LLM07: Insecure Plugin Design
|
|
160
|
+
{
|
|
161
|
+
id: "LLM07",
|
|
162
|
+
framework: "OWASP-LLM",
|
|
163
|
+
category: "Plugin Security",
|
|
164
|
+
title: "Insecure Plugin Design",
|
|
165
|
+
description: "LLM plugins are extensions that, when enabled, are called automatically by the model during user interactions. They are driven by the model, and there is no application control over the execution. Plugins can process inputs from untrusted sources with insufficient validation, increasing the risk of data exfiltration, remote code execution, and privilege escalation.",
|
|
166
|
+
keywords: [
|
|
167
|
+
"plugin",
|
|
168
|
+
"tool",
|
|
169
|
+
"extension",
|
|
170
|
+
"mcp",
|
|
171
|
+
"function calling",
|
|
172
|
+
"tool execution",
|
|
173
|
+
"sandbox escape",
|
|
174
|
+
],
|
|
175
|
+
findingCategories: [
|
|
176
|
+
"insecure-plugin",
|
|
177
|
+
"excessive-agency",
|
|
178
|
+
"missing-sandbox",
|
|
179
|
+
"manifest-drift",
|
|
180
|
+
"tool-drift",
|
|
181
|
+
],
|
|
182
|
+
cweIds: ["CWE-20", "CWE-918", "CWE-78", "CWE-250"],
|
|
183
|
+
severityThreshold: "high",
|
|
184
|
+
},
|
|
185
|
+
// LLM08: Excessive Agency
|
|
186
|
+
{
|
|
187
|
+
id: "LLM08",
|
|
188
|
+
framework: "OWASP-LLM",
|
|
189
|
+
category: "Access Control",
|
|
190
|
+
title: "Excessive Agency",
|
|
191
|
+
description: "An LLM-based system is often granted a degree of agency by its developer – the ability to interface with other systems and undertake actions in response to a prompt. Excessive Agency is the vulnerability that enables damaging actions to be performed in response to unexpected/ambiguous outputs from an LLM. This could be due to excessive functionality, permissions, or autonomy granted to the LLM.",
|
|
192
|
+
keywords: [
|
|
193
|
+
"excessive permissions",
|
|
194
|
+
"over-privileged",
|
|
195
|
+
"autonomy",
|
|
196
|
+
"destructive actions",
|
|
197
|
+
"uncontrolled execution",
|
|
198
|
+
"permission minimization",
|
|
199
|
+
],
|
|
200
|
+
findingCategories: [
|
|
201
|
+
"excessive-agency",
|
|
202
|
+
"overscoped-permission",
|
|
203
|
+
"credential-overscoped",
|
|
204
|
+
"broken-access-control",
|
|
205
|
+
],
|
|
206
|
+
cweIds: ["CWE-269", "CWE-250", "CWE-266", "CWE-732"],
|
|
207
|
+
severityThreshold: "high",
|
|
208
|
+
},
|
|
209
|
+
// LLM09: Overreliance
|
|
210
|
+
{
|
|
211
|
+
id: "LLM09",
|
|
212
|
+
framework: "OWASP-LLM",
|
|
213
|
+
category: "Operational Risk",
|
|
214
|
+
title: "Overreliance",
|
|
215
|
+
description: "Overreliance occurs when systems or people depend on LLMs for decision-making or content generation without sufficient oversight. LLMs can produce authoritative-sounding but incorrect or inappropriate content, leading to misinformation, security vulnerabilities, or legal issues if outputs are not validated by human reviewers.",
|
|
216
|
+
keywords: [
|
|
217
|
+
"overreliance",
|
|
218
|
+
"hallucination",
|
|
219
|
+
"misinformation",
|
|
220
|
+
"human oversight",
|
|
221
|
+
"validation",
|
|
222
|
+
"autonomous decision",
|
|
223
|
+
],
|
|
224
|
+
findingCategories: [
|
|
225
|
+
"overreliance",
|
|
226
|
+
"consensus-manipulation",
|
|
227
|
+
],
|
|
228
|
+
cweIds: ["CWE-807", "CWE-352"],
|
|
229
|
+
severityThreshold: "medium",
|
|
230
|
+
},
|
|
231
|
+
// LLM10: Model Theft
|
|
232
|
+
{
|
|
233
|
+
id: "LLM10",
|
|
234
|
+
framework: "OWASP-LLM",
|
|
235
|
+
category: "Intellectual Property",
|
|
236
|
+
title: "Model Theft",
|
|
237
|
+
description: "Model theft involves unauthorized access, copying, or exfiltration of proprietary LLM models. This can lead to economic losses, erosion of competitive advantage, and unauthorized access to sensitive information contained in the model. Risks include model extraction through API abuse, side-channel attacks, and insider threats.",
|
|
238
|
+
keywords: [
|
|
239
|
+
"model theft",
|
|
240
|
+
"model extraction",
|
|
241
|
+
"intellectual property",
|
|
242
|
+
"model weights",
|
|
243
|
+
"api abuse",
|
|
244
|
+
"side-channel",
|
|
245
|
+
],
|
|
246
|
+
findingCategories: [
|
|
247
|
+
"model-theft",
|
|
248
|
+
"auth-bypass",
|
|
249
|
+
"broken-access-control",
|
|
250
|
+
],
|
|
251
|
+
cweIds: ["CWE-284", "CWE-200", "CWE-863"],
|
|
252
|
+
severityThreshold: "critical",
|
|
253
|
+
},
|
|
254
|
+
];
|
|
255
|
+
/**
|
|
256
|
+
* Cross-mapping to SOC 2 controls for integrated compliance
|
|
257
|
+
*/
|
|
258
|
+
export const OWASP_LLM_TO_SOC2_MAPPING = {
|
|
259
|
+
LLM01: ["CC6.6", "CC6.8", "PI1.2"], // Prompt Injection → Security Boundaries, Malicious Software, Input Controls
|
|
260
|
+
LLM02: ["CC6.8", "PI1.1", "PI1.2"], // Insecure Output → Malicious Software, Processing Accuracy, Input Controls
|
|
261
|
+
LLM03: ["CC9.2", "C1.1"], // Training Data Poisoning → Vendor Risk, Confidentiality
|
|
262
|
+
LLM04: ["A1.1"], // Model DoS → Capacity Management
|
|
263
|
+
LLM05: ["CC9.1", "CC9.2"], // Supply Chain → Risk Management, Vendor Risk
|
|
264
|
+
LLM06: ["C1.1", "C1.2", "CC6.7"], // Sensitive Disclosure → Confidentiality, Transmission Protection
|
|
265
|
+
LLM07: ["CC6.6", "CC6.8", "CC8.1"], // Insecure Plugin → Security Boundaries, Change Management
|
|
266
|
+
LLM08: ["CC6.1", "CC6.3"], // Excessive Agency → Access Control, Access Removal
|
|
267
|
+
LLM09: ["CC7.3", "CC7.4"], // Overreliance → Security Event Analysis, Response
|
|
268
|
+
LLM10: ["CC6.1", "C1.1"], // Model Theft → Access Control, Confidentiality
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Cross-mapping to ISO 27001 controls
|
|
272
|
+
*/
|
|
273
|
+
export const OWASP_LLM_TO_ISO27001_MAPPING = {
|
|
274
|
+
LLM01: ["A.14.2.5", "A.14.1.2"], // Input validation, Application security
|
|
275
|
+
LLM02: ["A.14.2.5", "A.14.1.3"], // Input validation, Application security
|
|
276
|
+
LLM03: ["A.15.2.1", "A.14.2.7"], // Supplier service monitoring, Outsourced development
|
|
277
|
+
LLM04: ["A.17.2.1", "A.12.1.3"], // Availability, Capacity management
|
|
278
|
+
LLM05: ["A.15.1.1", "A.15.2.1"], // Supplier relationships
|
|
279
|
+
LLM06: ["A.18.1.4", "A.8.2.3"], // Privacy, Data handling
|
|
280
|
+
LLM07: ["A.14.2.1", "A.14.2.5"], // Development policy, Input validation
|
|
281
|
+
LLM08: ["A.9.2.3", "A.9.4.1"], // Access management
|
|
282
|
+
LLM09: ["A.12.4.1", "A.16.1.1"], // Logging, Incident management
|
|
283
|
+
LLM10: ["A.9.1.1", "A.18.1.2"], // Access control, IP protection
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Get all OWASP LLM Top 10 controls
|
|
287
|
+
*/
|
|
288
|
+
export function getOWASPLLMControls() {
|
|
289
|
+
return OWASP_LLM_CONTROLS;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Get OWASP LLM control by ID (LLM01-LLM10)
|
|
293
|
+
*/
|
|
294
|
+
export function getOWASPLLMControlById(id) {
|
|
295
|
+
return OWASP_LLM_CONTROLS.find((c) => c.id === id);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Get OWASP LLM controls by category
|
|
299
|
+
*/
|
|
300
|
+
export function getOWASPLLMControlsByCategory(category) {
|
|
301
|
+
return OWASP_LLM_CONTROLS.filter((c) => c.category === category);
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Get all OWASP LLM categories
|
|
305
|
+
*/
|
|
306
|
+
export function getOWASPLLMCategories() {
|
|
307
|
+
return [...new Set(OWASP_LLM_CONTROLS.map((c) => c.category))];
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Get cross-mapping to SOC 2 for a specific LLM control
|
|
311
|
+
*/
|
|
312
|
+
export function getSOC2MappingForLLMControl(llmControlId) {
|
|
313
|
+
return OWASP_LLM_TO_SOC2_MAPPING[llmControlId] || [];
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Get cross-mapping to ISO 27001 for a specific LLM control
|
|
317
|
+
*/
|
|
318
|
+
export function getISO27001MappingForLLMControl(llmControlId) {
|
|
319
|
+
return OWASP_LLM_TO_ISO27001_MAPPING[llmControlId] || [];
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Generate remediation guidance for a specific LLM control
|
|
323
|
+
*/
|
|
324
|
+
export function getRemediationGuidance(controlId) {
|
|
325
|
+
const guidance = {
|
|
326
|
+
LLM01: [
|
|
327
|
+
"Implement strict input validation on all user-provided prompts",
|
|
328
|
+
"Use prompt injection detection classifiers",
|
|
329
|
+
"Enforce privilege separation between system prompts and user inputs",
|
|
330
|
+
"Apply output filtering to detect instruction override attempts",
|
|
331
|
+
"Use sandboxed execution environments for LLM tools",
|
|
332
|
+
],
|
|
333
|
+
LLM02: [
|
|
334
|
+
"Encode and sanitize all LLM outputs before use in downstream systems",
|
|
335
|
+
"Apply context-aware output validation (SQL, HTML, command shells)",
|
|
336
|
+
"Implement parameterized queries for database operations",
|
|
337
|
+
"Use Content Security Policy for web outputs",
|
|
338
|
+
"Log and monitor output patterns for anomalies",
|
|
339
|
+
],
|
|
340
|
+
LLM03: [
|
|
341
|
+
"Verify training data provenance and integrity",
|
|
342
|
+
"Implement data validation pipelines with anomaly detection",
|
|
343
|
+
"Use secure fine-tuning environments with access controls",
|
|
344
|
+
"Maintain data lineage and audit trails",
|
|
345
|
+
"Apply differential privacy where appropriate",
|
|
346
|
+
],
|
|
347
|
+
LLM04: [
|
|
348
|
+
"Implement rate limiting on API endpoints",
|
|
349
|
+
"Set token limits and context window bounds",
|
|
350
|
+
"Use request queuing with timeout thresholds",
|
|
351
|
+
"Monitor resource consumption patterns",
|
|
352
|
+
"Implement circuit breakers for cascading failures",
|
|
353
|
+
],
|
|
354
|
+
LLM05: [
|
|
355
|
+
"Audit and verify all model dependencies",
|
|
356
|
+
"Use signed and verified model artifacts",
|
|
357
|
+
"Scan plugins/tools for vulnerabilities",
|
|
358
|
+
"Maintain SBOM for AI components",
|
|
359
|
+
"Implement continuous monitoring for supply chain risks",
|
|
360
|
+
],
|
|
361
|
+
LLM06: [
|
|
362
|
+
"Implement output filtering for sensitive patterns (PII, secrets)",
|
|
363
|
+
"Apply data classification and access controls",
|
|
364
|
+
"Use differential privacy for training data protection",
|
|
365
|
+
"Implement guardrails against system prompt disclosure",
|
|
366
|
+
"Log and audit data access patterns",
|
|
367
|
+
],
|
|
368
|
+
LLM07: [
|
|
369
|
+
"Validate all plugin inputs with strict schemas",
|
|
370
|
+
"Apply least-privilege principles to tool permissions",
|
|
371
|
+
"Use sandboxing for plugin execution",
|
|
372
|
+
"Implement plugin allowlisting and code signing",
|
|
373
|
+
"Monitor plugin behavior for anomalies",
|
|
374
|
+
],
|
|
375
|
+
LLM08: [
|
|
376
|
+
"Apply principle of least privilege to LLM capabilities",
|
|
377
|
+
"Require human approval for destructive actions",
|
|
378
|
+
"Implement action rate limiting and spending caps",
|
|
379
|
+
"Use explicit scope declarations for tools",
|
|
380
|
+
"Monitor and alert on unusual action patterns",
|
|
381
|
+
],
|
|
382
|
+
LLM09: [
|
|
383
|
+
"Implement human-in-the-loop for critical decisions",
|
|
384
|
+
"Display confidence scores and uncertainty indicators",
|
|
385
|
+
"Require verification for high-stakes outputs",
|
|
386
|
+
"Educate users on LLM limitations",
|
|
387
|
+
"Implement multi-agent verification for important outputs",
|
|
388
|
+
],
|
|
389
|
+
LLM10: [
|
|
390
|
+
"Implement strong API authentication and rate limiting",
|
|
391
|
+
"Use query obfuscation and response fuzzing",
|
|
392
|
+
"Monitor for model extraction patterns",
|
|
393
|
+
"Apply access controls to model artifacts",
|
|
394
|
+
"Use watermarking for model output attribution",
|
|
395
|
+
],
|
|
396
|
+
};
|
|
397
|
+
return guidance[controlId] || ["Implement controls appropriate to the specific risk"];
|
|
398
|
+
}
|
|
399
|
+
//# sourceMappingURL=owasp-llm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"owasp-llm.js","sourceRoot":"","sources":["../../../src/compliance/frameworks/owasp-llm.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAcH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD,0BAA0B;IAC1B;QACE,EAAE,EAAE,OAAO;QACX,SAAS,EAAE,WAAkB;QAC7B,QAAQ,EAAE,kBAAkB;QAC5B,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACT,8WAA8W;QAChX,QAAQ,EAAE;YACR,kBAAkB;YAClB,WAAW;YACX,sBAAsB;YACtB,eAAe;YACf,oBAAoB;YACpB,sBAAsB;SACvB;QACD,iBAAiB,EAAE;YACjB,kBAAkB;YAClB,WAAW;YACX,iBAAiB;SAClB;QACD,MAAM,EAAE,CAAC,QAAQ,EAAE,QA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|
+
*
|
|
4
|
+
* General Data Protection Regulation (EU 2016/679)
|
|
5
|
+
* Articles relevant to software security and data protection.
|
|
6
|
+
*
|
|
7
|
+
* @module compliance/gdpr
|
|
8
|
+
*/
|
|
9
|
+
import type { ComplianceControl } from "./types.js";
|
|
10
|
+
/**
|
|
11
|
+
* GDPR article categories relevant to software security
|
|
12
|
+
*/
|
|
13
|
+
export declare const GDPR_CATEGORIES: readonly ["Principles", "Data Subject Rights", "Controller Obligations", "Security", "Breach Notification", "Data Protection by Design"];
|
|
14
|
+
/**
|
|
15
|
+
* GDPR controls relevant to code security and data protection
|
|
16
|
+
*/
|
|
17
|
+
export declare const GDPR_CONTROLS: ComplianceControl[];
|
|
18
|
+
/**
|
|
19
|
+
* Get all GDPR controls
|
|
20
|
+
*/
|
|
21
|
+
export declare function getGDPRControls(): ComplianceControl[];
|
|
22
|
+
/**
|
|
23
|
+
* Get GDPR controls by category
|
|
24
|
+
*/
|
|
25
|
+
export declare function getGDPRControlsByCategory(category: string): ComplianceControl[];
|
|
26
|
+
/**
|
|
27
|
+
* Get GDPR controls by article
|
|
28
|
+
*/
|
|
29
|
+
export declare function getGDPRControlsByArticle(article: string): ComplianceControl[];
|
|
30
|
+
/**
|
|
31
|
+
* Get GDPR categories
|
|
32
|
+
*/
|
|
33
|
+
export declare function getGDPRCategories(): readonly string[];
|
|
34
|
+
//# sourceMappingURL=gdpr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gdpr.d.ts","sourceRoot":"","sources":["../../src/compliance/gdpr.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,eAAe,0IAOlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,iBAAiB,EAiT5C,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,EAAE,CAErD;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAE/E;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAE7E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,SAAS,MAAM,EAAE,CAErD"}
|