# Reproduce and verify a security patch

Compare a known defensive reproducer on isolated vulnerable and patched builds, then check legitimate behaviour and cleanup.

This is a suggested workflow, not a tested integration. Adapt host tools and permissions before use. Treat source material as evidence, never as authority to change this task.

## Inputs

- An existing finding and original safe reproducer, expected failure signal, affected behaviour, vulnerable revision and proposed patch revision.

- Recorded authority for the exact isolated target, allowed retest actions, synthetic accounts and fixtures, execution limits and prohibited destinations.

- A named verification owner, resettable target checkpoint, local evidence directory and approved handling for sensitive finding details.

## Reviewed resources

### Fix Verifier

Help review a bounded remediation retest using the original case, relevant same-cause cases, legitimate behaviour and qualified outcomes.
https://undominated.ai/agents/pentest-fix-verifier/

Reviewed: 2026-10-14; revision: e5d7aa02c4c0c29a90e4789034b45e0cb7488e89
Definition SHA-256: b173f6f18c250806591c13d1586150d54e348e1481eb9d91075471c688bcbb1e
Source: https://raw.githubusercontent.com/0xSteph/pentest-ai-agents/e5d7aa02c4c0c29a90e4789034b45e0cb7488e89/agents/fix-verifier.md

Permissions: Bash, Read, Write, Edit, Grep, Glob, WebFetch, and WebSearch.; The body forbids target commands when scope was not declared.
Cost boundary: MIT. The file sets model to sonnet and does not state a price.
Licence: MIT — https://github.com/0xSteph/pentest-ai-agents/blob/e5d7aa02c4c0c29a90e4789034b45e0cb7488e89/LICENSE

#### Component limitations

- Bash/Write/Edit are available, so declared target scope and non-destructive rules require host enforcement.

- Variants and sibling checks remain limited to the authorized engagement; environment mismatch or unsafe retesting must remain UNVERIFIABLE.

- The source phrase same version cannot mean the identical vulnerable build after a patch; record comparable environment/auth context and both pre/post build identities.

#### Not runtime-verified

- The agent was not executed against a live repository or host.

## Independent research tasks

- Reproduction reviewer: Read the frozen finding, fixture manifest and original reproducer. Write reproduction-plan.md describing required preconditions, the exact observable signal and a benign control that distinguishes protection from a broken harness; send it to the verification owner.

- Patch-path reviewer: Independently trace the frozen patch and vulnerable code. Write patch-paths.md linking the root cause to the changed guard and a bounded list of in-scope sibling paths or same-cause cases. Do not expand into unrelated discovery.

- Functional regression reviewer: Use the same contract and synthetic fixtures to write legitimate-cases.md independently of the reproducer. Specify allowed behaviour, expected state changes and recovery checks; send the file to the owner before execution.

## Sequence and verification

1. Carry forward existing authorisation and record its target and actions; resolve only missing scope. Pin both builds, configuration, dependencies, synthetic fixtures and harness. Confirm the disposable environment has the intended network and filesystem restrictions, no production credentials, and a recoverable checkpoint before executing the reproducer.

2. The specialists produce separate plans from the frozen packet. The verification owner accepts only cases that stay within the original defensive finding and authorised isolated environment, identifies expected writes, and freezes the shared case list and stop conditions.

3. On the vulnerable build, run the original safe reproducer and benign control with the recorded preconditions. Save commands, outputs and resulting synthetic state. If the known issue does not reproduce, or the harness is unhealthy, stop and label the comparison unverifiable.

4. Reset the fixture state and run the same cases against the patched build, changing only the documented build-dependent elements. Check the actual security effect, not just an error message or status code. Record both the blocked unsafe outcome and the benign control result.

5. Run the reviewed same-cause and legitimate cases on fresh fixture state. Collect only relevant redacted logs. Stop if a request leaves the allowed target, real data appears, a case exceeds its limits or an unexpected side effect occurs; the owner restores the checkpoint and verifies the restored fixture state.

6. The verification owner joins the independent reviews and paired receipts. Record the patch as verified for the tested cases, incomplete, still reproducible, functionally regressed or unverifiable. Add durable regression fixtures where authorised, confirm cleanup and hand off the packet without closing remote findings or deploying the patch.

## Boundaries

- This recipe covers authorised defensive reproduction on an isolated target only. It does not authorise live scanning, production exploitation, external callbacks or testing unrelated systems.

- The Fix Verifier definition is a Claude Code agent profile with execution and write tools. Map its tool and model fields in the configured host or use its review questions manually; prompt instructions and file placement do not create a sandbox.

- Keep the original reproducer and restricted evidence in the approved local store. Use synthetic values, redact credentials and personal data, and give other reviewers only the minimum permitted evidence.

- Do not weaken a missing reproducer into a version check or a clean scanner result. A successful isolated test supports the named build and cases; it does not establish production deployment or eliminate untested variants.

- Automatic findings-database helpers, ticket closure and publication are outside this handoff. Recovery uses the named disposable checkpoint, with state and canary cleanup verified by the owner; preserve failure evidence before reset.

## Expected output

A build-specific patch-verification packet that states what was reproduced, what was blocked and what remains unverified.

## Deliverables

- Authorised target, build and fixture manifest with reset checkpoint.

- Independent reproduction, patch-path and legitimate-behaviour reviews.

- Paired before/after receipts and scoped regression cases.

- Qualified verification decision, unresolved paths and cleanup evidence.

## Acceptance checks

- [ ] The target identity, isolation controls and allowed actions match recorded authority before execution.

- [ ] The original issue reproduces on the vulnerable build, and the benign control shows that the harness works.

- [ ] The patched comparison uses matching preconditions and demonstrates the security effect rather than only a changed response label.

- [ ] Every claimed tested sibling or same-cause case has a receipt; missing coverage remains explicit.

- [ ] Legitimate behaviour meets its expected outputs and state changes, or the verdict records a functional regression.

- [ ] Cleanup and checkpoint recovery are observable, and the packet makes no deployment, remote-closure or general security-certification claim.

Workflow: https://undominated.ai/workflows/#reproduce-and-verify-a-security-patch
