Skip to content

feat(coverage): map OWASP LLM Top 10 (2025) + NIST SSDF via kit coverage --standard - #270

Merged
sandstream merged 2 commits into
mainfrom
claude/web-kit-status-sync-p6fg9a
Jul 9, 2026
Merged

sandstream merged 2 commits into
mainfrom
claude/web-kit-status-sync-p6fg9a

Conversation

@sandstream

Copy link
Copy Markdown
Owner

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 (reuses coverage.ts's bucket/evidence primitives; citationsFor now 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 (default asvs, unchanged). --json + --verify evidence-binding work for all three.
  • docs/STANDARDS.md updated: §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 --verify live 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

claude added 2 commits July 9, 2026 02:12
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.
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit 240829e into main Jul 9, 2026
18 checks passed
@sandstream
sandstream deleted the claude/web-kit-status-sync-p6fg9a branch July 9, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants