Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By trailofbits Verified Orgv0.2.2CC-BY-SA-4.0In 2 marketplaces
Tests a security patch against the original bug, root-cause variants and unchanged behavior, returning reproducible failures and validation gaps with saved evidence. Runs checks in isolated git worktrees and needs Git 2.36+, Python 3.11+ and uv.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Validate a security patch against the reported bug and the surrounding code it affects. Give the patch author reproducible failures to fix and identify what still needs testing.
The post-patch-validation agent skill tests human and agent patches against pinned revisions.
It checks the original bug, variants of its root cause, behavior that should remain unchanged,
and failures the patch could introduce. Each result preserves the assertions and execution logs
so an author can repair the patch and a reviewer can assess the evidence.
/plugin marketplace add trailofbits/skills
/plugin install post-patch-validation@trailofbits
The portable skill works with agents that support Agent Skills. Claude Code users also get the
bundled /post-patch-validation:validate-patch dynamic workflow.
Ask an agent to validate a patch and provide:
The skill creates a pinned JSON plan, authors checks, and runs them in isolated Git worktrees. It returns every supported failure and every validation gap. The author can then revise the patch and request a fresh validation against the new inputs. Earlier results remain available for review.
post-patch-validation/
├── plan.json
└── results/
├── artifact-manifest.json
├── patch.diff
├── plan.snapshot.json
├── report.md
├── result.json
├── helpers/
│ └── <sha256>
├── scratch/
│ └── <check-id-and-side>/
└── 001-<check-id>-<side>.stdout / .stderr
result.json contains an assessment with four fields:
| Field | Meaning |
|---|---|
status | complete when all required checks produced usable evidence, otherwise incomplete |
findings | Each supported failure, with its check ID, kind, and message |
gaps | Missing or invalid evidence, with the affected check ID and reason |
human_review_required | Always true |
Completeness describes the evidence, including evidence of failure. A missed variant and a regression both appear in the findings. An unrelated timeout adds a gap without removing either finding. Failed harness controls prevent attributing other failures to the patch, while preserving all raw observations.
The project suite runs on the patch first. A completed failure triggers a baseline run. A baseline pass supports reporting a failure after the patch. If both revisions fail, the result records an attribution gap and keeps both logs. A timeout alone does not establish a regression.
When the supplied checks pass, the report says: “All supplied checks passed. Human review is still
required.” It displays the evidence level alongside that statement: source, build, or runtime.
Passing source checks cannot establish runtime behavior. Reviewers must still assess the
assertions and any omitted paths.
| Exit code | Meaning |
|---|---|
0 | Complete validation with no findings |
1 | Complete validation with findings |
10 | Incomplete validation, possibly with supported findings |
64 | Invalid inputs, including a rejected plan or changed input pins |
Always read the result artifact after exit 10. Invalid inputs may be rejected before a result exists.
The runner pins commits and patch hashes, disables Git hooks, uses argv arrays, and preserves raw
output. Exploit and variant checks must reproduce the unsafe behavior on baseline and emit
PPV_REACHED immediately before their safety assertion. A missing marker leaves a gap.
Each invocation receives private scratch and plan directories. Exploit and variant checks cannot use runner-provided side labels. Their execution order is randomized, while evidence filenames remain stable. Invoked helper files are hashed and archived when they are inside the plan or checkout and within the size limit. The result records unarchived files for review.
Checks use a fixed minimal environment. --allow-env NAME forwards required toolchain variables
and records their values, so credentials are refused. Affected submodules use locally available
pinned objects without contacting remote URLs. Worktree metadata locks protect concurrent runs.
These measures isolate evidence state. Checks still run with the caller's privileges. Run untrusted helper code inside an appropriate OS or container sandbox.
Invoke /post-patch-validation:validate-patch, or pass structured inputs to the Workflow tool:
Workflow({
name: 'post-patch-validation:validate-patch',
args: {
finding: 'UAF when a callback releases the final request reference',
baseRef: 'vulnerable-tag',
patchRef: 'HEAD',
workdir: 'post-patch-validation',
},
})
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub trailofbits/skills --plugin post-patch-validationPlugins from other owners that cover similar ground