$ dsh plugin add pbfuzz19
スター
3
フォーク
TypeScript
言語
NOASSERTION
ライセンス
2026-05-03
作成日
2026-11-05
最終プッシュ
README
pbfuzz-dsh
PBFuzz (the CCS'26 agentic directed fuzzer) as plugins for
DeepSeek Harness (DSH).
Point the agent at a target repo and a bug (a CVE, a patch, a crash trace, or just file:line);
it runs a directed-fuzzing loop until it produces a verified Proof-of-Vulnerability input.
Quick start
Ubuntu 22.04/24.04 x86-64, Node.js ≥ 22, Python ≥ 3.11
1. Set up DeepSeek Harness — follow the
official docs to install DSH and configure
your DeepSeek API key. The commands below always use the newest DSH on npm (@latest); CI tests
every change against it, so a DSH release these plugins cannot run on is caught before it is published.
2. Install pbfuzz from npm
npx @deepseek-ai/dsh@latest plugin --profile web add @pbfuzz/dsh-pbfuzz
That is all: the package ships the Python engine, its schemas and PyYAML.
Then start DSH with npx @deepseek-ai/dsh@latest web.
Optional static analysis (C/C++ reachability; needs an LLVM 14 toolchain, see
packages/dsh-kanalyzer):
npx @deepseek-ai/dsh@latest plugin --profile web add @pbfuzz/dsh-kanalyzer
Manage the install with the same plugin command (add --profile NAME for a profile other than
web), and restart DSH afterwards:
npx @deepseek-ai/dsh@latest plugin --profile web list # installed plugins and versions
npx @deepseek-ai/dsh@latest plugin --profile web add @pbfuzz/dsh-pbfuzz@0.1.14 # a specific release
npx @deepseek-ai/dsh@latest plugin --profile web remove @pbfuzz/dsh-pbfuzz
To move to a newer release, add it by exact version; npm view @pbfuzz/dsh-pbfuzz version
prints the newest one. Releases are listed at
npmjs.com/package/@pbfuzz/dsh-pbfuzz.
From source
git clone <this-repo-url> pbfuzz-dsh && cd pbfuzz-dsh
./install.sh
That builds the plugins and the Python engine and adds the local build to DSH. Restart
npx @deepseek-ai/dsh@latest web and you're done.
| Script | Does |
|---|---|
./install.sh |
build + install into DSH (profile web; --profile NAME to change) |
./install.sh --with-kanalyzer |
also the static-analysis plugin and its LLVM 14 toolchain (slow, uses sudo) |
./build.sh |
build only — no changes to your DSH install |
Use
Open a session in the target repository and describe the bug in plain language — pbfuzz's skill triggers automatically:
There's a bug in
src/http/modules/ngx_http_rewrite_module.c:178(nginx). Reproduce it as a verified PoV.
The agent probes the repo, proposes a campaign (target, build command, oracle) and shows you a one-screen summary to Approve or Revise. Once approved it drives PLAN → IMPLEMENT → EXECUTE → REFLECT on its own — writing a fuzzing plan, a generator, running it, and reflecting on the result — until it reports a triggering input or gives up and explains why.
Useful commands inside a session:
| Command | Does |
|---|---|
/pbfuzz [notes] |
start a new campaign, with notes as the bug report |
/pbfuzz run <campaign.yaml> |
headless: load a hand-written, already-confirmed campaign and start PIER with no prompts |
/pbfuzz status |
print the current campaign's phase and metrics |
/pbfuzz selfcheck |
run the environment self-check (LLVM, tracers, Python) now |
Settings (tracer, budget caps, oracle defaults, which auxiliary analyses are on) live under
Plugins → @pbfuzz/dsh-pbfuzz → Configure in the web UI, or under the pbfuzz entry's config: in
your profile's cordis.patch.yml. Three budgets —
budget.maxPierRounds, budget.campaignWallTimeMin, budget.maxConsecutiveForcedContinues — are
the only brake on an unattended run; reaching one stops the campaign for real (phase: STOPPED).
Worked examples for C/C++, Python and Java targets are in examples/; headless runs
on Magma benchmark bugs are in examples/magma/.
How it works
@pbfuzz/dsh-pbfuzz— the campaign FSM (PLAN → IMPLEMENT → EXECUTE → REFLECT, "PIER"), its tools (pbfuzz_campaign,pbfuzz_plan,pbfuzz_fuzz,pbfuzz_reflect, …), the state guards that keep the model from tampering with engine-owned evidence, and the settings/dashboard UI. It runs as a native Cordis plugin — no Claude-Code-style hooks, no compatibility layer.@pbfuzz/dsh-kanalyzer(optional) — a general-purpose LLVM static-analysis plugin (reachability, call graphs) thatdsh-pbfuzzconsumes when static analysis is turned on.engine/— the Python sidecar that actually runs the target: generates inputs, executes them, judges the oracle, and is the sole writer ofmetrics.json. It speaks JSON-RPC over stdio and never runs model-written code outside a resource-bounded sandbox.
Repository layout
packages/dsh-pbfuzz/ the pbfuzz plugin: src/, skills/, canaries/, tests/
packages/dsh-kanalyzer/ the static-analysis plugin
engine/ the Python fuzzing sidecar (pbfuzz_engine/)
contracts/ JSON Schemas shared by both plugins and the engine (pnpm codegen)
examples/ worked targets: C/C++, Python (atheris), Java (Jazzer)
dsh-tests/ tests that boot the real DSH in-process (no mocks), always on npm's latest
docs/ DSH upgrade playbook, verification records
Development
pnpm -r typecheck
pnpm -r test # vitest, both packages
pnpm run test:engine # pytest, the Python engine
pnpm run test:dsh # the real DSH, newest from npm, booted in-process (needs the network; no API key)
pnpm run check:clients # settings-card ⇔ schema parity, client bundle self-checks
pnpm run codegen:check # contracts/ generated files are up to date
セキュリティ・認証 の他のプラグイン
dsh-uumit-remote
by uumit-ai
別の端末からDSHへ接続し、招待したユーザーにリモート環境を選択的に共有できます。
dsh-auto-review
by perrylink
DeepSeek Harness 承認リクエスト向け第 2 モデル AI 自動レビュー:読み取り専用レビューサブエージェントが構造化 allow/deny 判定を返す。デフォルトフェイルクローズ、セッションログで完全監査可能
cc-safety-net
by kenryu42
AIコーディングエージェント向けの実行前セキュリティガード。Gitやファイル操作の破壊的コマンド、機密ファイルへのアクセスをツール実行前に検知してブロックします。
dsh-permission-rules
by perrylink
Claude Code 風宣言的 permission rules:allow/deny/ask、glob/regex、監査ログ
