Skip to content

Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base Supports Claude Code, Kiro, Cursor, Cline, and other AI coding clients 逆向/渗透/安全技能路由包 - AI 自动路由 + 按需自举工具链 + 自动进化经验库 | 支持 Claude Code / Kiro / Cursor / Cline 等代码 AI 客户端

Shell

Merge PR #131: require benchmark coverage for every route

zhaoxuya520a10b30b6e3bc
diff --cc CHANGELOG.md
index 8a14be7,9d3f0f9..c290bd0
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -10,12 -10,9 +10,13 @@@ Versioning follows [Semantic Versioning
- **CI runs remaining unwired suites** — `test-p0-friction.ps1` on the Windows leg of `routing-tests` (Windows PowerShell 5.1); `case-review/tests/test_review_case.py` in the Linux `case-contract` job. `test-workflow-title-safety.ps1` was already wired.
- **Binary Ninja route and skill** — added `binary-ninja-reverse` for HLIL/MLIL/LLIL, Python API, and an explicitly enabled loopback community MCP bridge; Binary Ninja remains a manual commercial dependency.
- **Optional Codex adapter plugin** — added `plugins/reverse-skill/` without changing the client-neutral core or auto-registering MCP servers.
+- **Benchmark coverage for R40 (case-evidence-review)** — the route had a single English case; added three cases covering its previously-untested branches (Chinese `证据链`/`证据图`/`可追溯性`/`案件审查`/`案例审计`, and English `evidence.?graph`/`fixity.?check`/`case.?audit`), each verified through both the PowerShell and Bash routers.
+ - **Route↔benchmark coverage gate** — `verify-routing-coherence.ps1` now fails when any `routing.json` route has no `routing-benchmark.json` case, enforcing the benchmark meta's "add a case when you add a route" rule (the reverse of the existing ghost-expect check).
### Fixed
+- **macOS BSD sed in bash workflow tests** — `test-bash-workflow.sh` used GNU-only `sed -i 's/…/…/'`. BSD `sed` (macOS) treats the expression as a backup suffix and aborts with `invalid command code`, so Test 4/5 (case-guard reject paths) never ran on macOS. Replaced with a portable `mktemp` + `sed` + `mv` helper and wired `test-bash-workflow.sh` into `macos-bash-compat.yml` so the reject-path contract is covered on macOS CI (closes #135).
+- **Kali tool discovery: `yara`** — `yara` is in the Kali bootstrap manifest and the Windows tool catalog and is referenced by four skills, but was missing from `kali/scripts/lib/tool-discovery.sh`, so `refresh-tool-index.sh` never reported its path on Kali. Added the catalog entry (`malware-analysis`), matching its sibling analysis CLIs (`binwalk`, `bkcrack`).
+- **binwalk could never auto-install on Windows** — `skills/scripts/bootstrap-manifest.json` declared `"bootstrapKind": "winget-package"` with `"wingetId": "ReFirmLabs.binwalk"`, but that id does not exist in the winget community repository (`winget show --id ReFirmLabs.binwalk --exact` → `0x8A150014 NO_APPLICATIONS_FOUND`), and binwalk ships no prebuilt binaries on any GitHub release (`assets: 0` for v3.1.0 and the seven preceding releases), so `bootstrap-reverse.ps1 -Capability binwalk` could only ever fail with a package-not-found error. The Windows entry is now `"bootstrapKind": "manual"` + `"canAutoInstall": false` with a `manualInstallHint` pointing at the Rust toolchain (`winget install Rustlang.Rustup` → `cargo install binwalk`), matching what `firmware-pentest/SKILL.md` already documents. Linux / Kali / macOS are unaffected: `bootstrap-reverse.sh` installs binwalk through apt/brew and does not read this entry. `tool-index.md.template` updated to match.
- **IDA MCP HTTP stall** — `run-supervisor.py` patches stock `idalib_supervisor` onto `ThreadingHTTPServer` and accepts Streamable HTTP GET `/mcp` (patch failure is skipped, supervisor still starts). Keep-alive deadlock is **time since last healthy `tools/list`**, not process `CreationDate`; `open.ps1` holds `opening.lock` so in-flight opens are never `-Force`d. New `recover.ps1` is an immediate `-Force` path. Never `taskkill`s `ida.exe`.
- **Broken internal doc links + guard** — removed a dangling `phishing-case-study.md` reference and redirected the missing payloader `反弹shell.md` index entry to its tracked raw data. Added `skills/scripts/verify-doc-links.py`, wired into CI, so internal Markdown links are checked from Git index blobs even when Defender quarantines a working-tree payload file.
- **Windows PowerShell 5.1 encoding** — added a UTF-8 BOM to five non-ASCII `.ps1` scripts (`skills/scripts/verify-doc-facts.ps1`, `apk-reverse/scripts/frida-run.ps1`, `apk-reverse/scripts/rebuild-sign-install.ps1`, `ida-reverse/scripts/start.ps1`, `radare2/scripts/recon.ps1`). Without a BOM, PS 5.1 parses these files as the system ANSI codepage and garbles their Chinese / em-dash string literals; `verify-doc-facts.ps1` was failing four checks under 5.1 (CI only ran it under `pwsh`, which defaults to UTF-8). CI now guards every non-ASCII `.ps1` for a BOM.