Repository navigation
feat(coverage): map OWASP LLM Top 10 (2025) + NIST SSDF via kit coverage --standard - #270
Merged
Merged
Conversation
Captures the positioning: kit is both a deterministic enforcement 'meat grinder' (PreToolUse/capture/commit gates, warn->enforce) AND an audit tool (tamper-evident HMAC/Ed25519 audit log, self-audit, coverage evidence map, SBOM/SARIF, verified-forget receipts). The two form the 'no false green' loop: the grinder produces the evidence, the audit (gate/hook-liveness, R13 catch-false-green) proves the grinder was on. Includes the honest machine-local trust boundary (tamper-evident, not tamper-resistant vs same-UID; TPM/HSM on the 5.0 roadmap). README pointer added.
…age --standard Extends the ASVS evidence-map to two more standards (STANDARDS.md §2 #1/#2 -> now covered), on a verified basis (no false green): a source-run confirmed the LLM01-LLM10 titles and the SSDF PO/PS/PW/RV practices before mapping. - src/coverage/standard.ts: generic, standard-agnostic evidence-map engine (reuses coverage.ts's bucket/evidence primitives; citationsFor now exported). - src/coverage/owasp-llm-top10.ts: LLM01-LLM10 (2025) -> kit controls (5 auto / 3 gap / 2 na): injection-quarantine+MCP-triage=LLM01, secret detection=LLM02, supply-chain/slopsquat=LLM03, memory write-gate=LLM04 (agent-memory slice), gates/governance=LLM06; honest gap/na for output handling, prompt leakage, vectors, misinformation, unbounded consumption. - src/coverage/ssdf-218a.ts: the 800-218 practices 218A profiles that kit speaks to (9 auto / 1 gap / 1 na) across PO/PS/PW/RV. - kit coverage --standard=asvs|llm-top10|ssdf (default asvs, unchanged); --json and --verify evidence-binding work for all three. Caveats carried into each disclaimer: IDs confirmed via search index (egress- blocked first-party fetch); 218A's specific AI task augmentations not enumerated. Tests: generic engine + both descriptors (well-formedness, buckets, no-'compliant' disclaimer, determinism, --verify binding). Full suite 2580/2580.
|
✅ Docker image built successfully
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the top two gaps from
docs/STANDARDS.md §2— kit now maps the two standards it already had controls for, on a verified basis.No false green first
A source-run verified the control IDs before any mapping: OWASP LLM01–LLM10 (2025) titles and the NIST SSDF PO/PS/PW/RV practices. Caveat carried into each disclaimer — IDs confirmed via search index (first-party fetch was egress-blocked), and kit does not enumerate 218A's specific AI task augmentations.
What's added
src/coverage/standard.ts— a generic, standard-agnostic evidence-map engine (reusescoverage.ts's bucket/evidence primitives;citationsFornow exported). ASVS path untouched.src/coverage/owasp-llm-top10.ts— LLM01–LLM10 → kit controls (5 auto / 3 gap / 2 n/a): injection-quarantine + MCP-triage = LLM01, secret detection = LLM02, supply-chain/slopsquat = LLM03, memory write-gate = LLM04 (agent-memory slice), gates/governance = LLM06; honest gap/na for output handling, prompt leakage, vectors, misinformation, unbounded consumption.src/coverage/ssdf-218a.ts— the 800-218 practices 218A profiles that kit speaks to (9 auto / 1 gap / 1 n/a) across PO/PS/PW/RV.kit coverage --standard=asvs|llm-top10|ssdf(defaultasvs, unchanged).--json+--verifyevidence-binding work for all three.docs/STANDARDS.mdupdated: §2 Governance harvest: code-review lenses, preflight gates, secrets runbooks #1/feat(review): cite the rule each security check enforces (Increment 1) #2 → §1 (covered).Tests
Generic engine + both descriptors — well-formedness (every requirement mapped once), valid buckets, AUTO cites checks / MANUAL·NA don't, disclaimer never says "compliant"/"certified", determinism, and
--verifylive binding. Full suite 2580/2580. CLI smoke-tested (llm-top10, ssdf, unknown→exit 1, asvs unchanged).This is goal 1 of two; goal 2 (workflow-driven North Star) follows.
🤖 Generated with Claude Code
Generated by Claude Code