DeepSeek Harness Plugin

STARDUSTLC666/dsh-code-security

Stars ★ 1 Downloads (30d) 1,616 Category Security & Permissions Added 2026-08-17 npm dsh-code-security

Deterministic code security review: 40+ rules, secret entropy detection, staged-diff review, SARIF export, baseline acceptance, SBOM-lite dependency inventory and health self-check.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-code-security

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:STARDUSTLC666/dsh-code-security

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

0.3.6 update (2026-09-28)

Rejects unknown scan arguments and empty targets before scanning or replacing state, preventing misspelled scopes from expanding to the whole workspace. Fixes standard-mode output incorrectly displaying zero files and a failed verdict: counts, verdicts and findings now come from the actual scan result.

Validation host: Harness 0.2.0-rc.1 built from official sources (commit 407e65c8) with Node 24.16.0 on 2026-09-28. All 31 plugin tests pass in an isolated environment; all 18 plugins mount together in one host registering 10 tools, with tool schemas and health-check contracts passing. No live ports or external services were exercised in this round.

Every agent code change passes a local security scan before delivery.

A DeepSeek Harness plugin for AI code security review: deterministic rule engine, git-diff incremental review, fix-verify loop, and policy gate. Methodology borrows from Codex security skills (evidence-first findings, severity ordering, supply-chain layers). Zero runtime dependencies.

Compatibility

2026-09-13 fix: retain the service receiver when calling subprocess.spawn, preventing failures caused by passing the method as an unbound callback. Verified against a real isolated host subprocess service. secure_diff reads a real isolated Git repository through the host subprocess service and reports the changed file and added line.

Tools

Tool Purpose Write
secure_scan Scan files with CWE/severity/line/snippet evidence state
secure_diff Review only added lines of git diff state
secure_fix_verify Compare with baseline: closed / remaining / fresh state
secure_report Aggregate by rule/file with gate verdict no
secure_export Export SARIF 2.1.0 / Markdown file write approval
secure_baseline Accept current findings as baseline; gate on new issues only approval
secure_deps SBOM-lite: parse dependency manifests and version-risk flags no
secure_policy_show Show .code-security.json no
secure_policy_set Replace policy JSON approval

40+ deterministic rules: injection, deserialization, weak crypto (including shell TLS bypass flags), secrets, dangerous config, sensitive logging, path traversal, SSRF.

dsh plugin --profile web add dsh-code-security

MIT

License

MIT (see LICENSE)

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.