Repository navigation
v2.2.0
v2.2.0 — Security hardening & provenance fixes from #1
This release addresses the full review in Issue #1 (commit d84bf4c). The focus is making the skill's stated guarantees — read-only research, honest provenance, fail-closed redaction, and clean-room outputs — true in code, not just in documentation.
Read-only trace hardening (kuron_trace.py)
- Removed
python3 -cfrom the "read-only" allowlist entirely. - Validate the full
argv, not just a prefix: denysedscripts containinge/wcommands andgit grep -O/--open-files-in-pager. - Confine every path argument to the scan root, so traces cannot read files outside the repository.
Honest provenance (no more strongest-label fallback)
- Panel badges now require an actual verifier-vote tally/quorum instead of a model self-reported
confidencefield; no tick marks without a real panel run. - Every missing/malformed label now degrades to
unverified-single-pass(never silently upgrades tokuron-panelorad-hoc-panel) across progress, products, and patch paths. - Capability/provenance reporting no longer relies on a hardcoded
shutil.which()table alone — capability and panel claims are reported honestly.
Clean-room products & plugin provenance (kuron_products.py)
- Removed the dynamic
sys.path.insert(0, …)import from user-writable plugin-cache paths; the SARIF/MD/JSONL builder is now fully vendored and deterministic, with no dependency on installed third-party plugins. - Output no longer renames/strips another vendor's attribution — the relationship to the official
claude-securityplugin is now stated explicitly in the README.
Evidence contract & redaction gates
validate_finding()now enforcespoc_trace(3–7 steps, preconditions,why_guard_fails) and a validatedcwe_class, rejects findings missingactive_in_default_config, and strengthens theindependent_routescheck.- Redaction gate now runs before artifacts land on disk (render to temp → gate → promote), with an independent secret-pattern scan instead of relying solely on the redactor's self-report.
- Agent briefs gained frontmatter with
tools:restrictions, turning "strictly read-only" from prompt text into an actual capability boundary.
Policy engine, CI gating & robustness
- Enterprise-tier policy is now deny-by-default, with safer YAML parsing and proper policy errors instead of bare exceptions.
- Severity-based exit codes let the tool gate a CI pipeline directly.
- Windows portability: ASCII scorecards (no box-drawing/emoji on stdout), plus fixes for the smaller crash/race/path-validation issues listed in #1.
Tests
- Suite expanded from 46 to 122 tests — all passing — covering trace hardening, provenance labels, evidence contract, redaction gates, policy strictness, product gates, and patch hardening.
Full change: #1 · d84bf4c · version synced to 2.2.0 across SKILL.md, README.md, plugin.json, marketplace.json, and tests.