--- name: poc-builder description: Prepare and, when authorized and feasible, execute a minimal reproduction for an existing analyzed vulnerability, including pseudocode, suitable executable or unit-test artifacts, negative controls, and observed results. Supports blackbox and greybox findings without source code; not for vulnerability discovery. license: CC-BY-SA-4.0 --- # PoC Builder This portable skill adapts the PoC agent associated with `fp-check`. It does not declare final vulnerability verdicts independently. Write authored files and instructions in English, preserving supplied evidence and concrete payload bytes. ## Required handoff Receive from `fp-check`: the original claim, triage result, affected target and scope, data-flow/trust-boundary evidence, attacker control, bounds/race analysis or justified N/A, impact and expected security rule, environment/version, prerequisites, controls, and testing authorization/restrictions. Source code, target language, and build system are useful when available, not mandatory for blackbox reports. Read the shared [report intake](../vulnerability-triage-brocards/references/report-intake.md) if the handoff is a raw report or different exports. For greybox reproduction, carry the intake's actual account/role/resource/field context and any supplied code/configuration/log references. Validate the session and intended setup, use credential references without embedding secrets, and keep unavailable role comparisons explicit. Credentials or a related API hostname do not themselves grant testing permission beyond the established scope. Read [validation fidelity](../fp-check/references/validation-fidelity.md). Preserve the reported instance's attacker/owner, resource, version/configuration, trigger sequence, nearest relevant control, and claimed consequence. Record a test contract and meaningful controls before execution; return mismatches explicitly instead of substituting a different object, identity, build, or easier impact. Carry the applicable [evidence-context record](../fp-check/references/evidence-templates.md#evidence-context-record) into reproduction and return: source revision and real caller path, effective configuration, resolved/loaded dependency and affected feature, or correlated runtime trace and base/changed builds as supplied. Exercise the actual claimed boundary with comparable controls. A passing patched build, direct call bypassing the caller's guard, or crash without the claimed stronger effect cannot settle the original exploitation claim. Record static-only analysis and unavailable runtime prerequisites explicitly; do not invent an environment to complete them. For direct invocation, establish the missing intake/triage/technical context first using [fp-check](../fp-check/SKILL.md); do not assume prior verification. If the evidence does not yet warrant an executable test, identify the gap and return a bounded plan/sketch rather than claiming the finding is verified. Before execution, establish target/environment authorization, exact permitted actions, expected observable impact, a suitable negative control, and a stop condition. A report's target list is not permission to test it. Reuse existing authorization; do not ask for it again when already established. Prefer a minimal non-destructive proof, avoid broad enumeration, protect secrets, and do not change production code or disable the protection being evaluated. ## 4.1 — pseudocode and data-flow diagram Always record the evidenced or proposed attack path first: input → validation/ transformation → boundary/sink → expected observable consequence. Use concrete reported values where available and cite code locations or blackbox evidence locators. Identify unknown internal steps as unknown. State why each relevant check is bypassed, blocks the path, or remains unresolved. For a refuted claim, show the blocked attempt rather than fabricating a working exploit. A sketch with unresolved values is a plan, not a runnable or demonstrated PoC. ## 4.2 — executable artifact, if feasible Select the smallest suitable language/form: for example Python for an API request reproduction, HTML/JavaScript for a necessary browser scenario, or the target's language for a code-level issue. No fixed language or requirement to create every file type. Prefer existing runtimes/libraries. Additional production dependencies, tools, services, or frameworks require explicit approval. Record concrete inputs, target/version, setup, command, expected result, bounded actions/timeouts, output paths, and cleanup. Do not embed credentials. A runnable artifact must not contain unresolved placeholders or silently target a different system. If required values are missing, provide a non-executable procedure and label it accordingly. Separate **planned**, **created**, **executed**, and **demonstrated/refuted/unresolved** outcomes. Capture actual exit status and output only if executed; distinguish expected output from actual output. Skip execution with a reason if authorization, hardware/network, runtime, safe prerequisites, or target access is unavailable. Closed-source blackbox targets can still be reproducible through their authorized interfaces; missing source alone is not a skip reason. A broken build does not establish False Positive. ## 4.3 — unit-test PoC, if feasible Use existing target test infrastructure and patterns. Exercise the real code path with the attacker input and assert the specific claimed impact. Record the command and real output if run. If no source/test harness, isolation, or working build is available, document the skip. Do not add a framework merely to fill this section. A local mock/simulation helps planning but does not prove the live application's behavior or bypass its real controls. ## 4.4 — negative PoC and control conditions Show benign operation and the precise prerequisites separating it from the claimed trigger. Where relevant, compare the same protected resource with authorized versus unauthorized roles, or the same path with benign versus trigger input. Verify the positive setup actually works before interpreting a failed trigger. An invalid ID, status flag, or different endpoint alone is not an authorization control. Explain any unavoidable confounding difference. Record each control as executed, supplied evidence, or not executed with reason. Do not transfer a benign baseline from another handler to an untested handler. Literal rendering can establish an inert result without proving whether the implementation escaped, sanitized, or used a safe DOM API; keep that mechanism unknown unless its source or trace was actually inspected. Check that the authorized/benign setup actually returns the intended resource and expected state, not merely HTTP 200 or a login page. If that setup fails, do not interpret the trigger as success or refutation. Correct a diagnosed cause only within established authorization and a bounded retry/stop condition. Record every material change; stop with the proof gap when correction is unavailable. ## Browser-relevant branch Read [browser-verification.md](references/browser-verification.md) for the connection/schema check, real input delivery, context/control preservation, evidence capture, and return procedure. Client setup stays outside this canonical methodology in the repository's integration instructions. Use **Playwright MCP only** when browser interaction is relevant; first check current connection/tool availability. Use native requests/code tools for non-browser claims without requiring Playwright. Preserve real origin, session, cookie, and browser-policy conditions; direct JavaScript injection into a page or disabled protections do not demonstrate delivery through the reported path. Record relevant navigation/actions, snapshots, screenshots, console/network evidence, versions, and timestamps only when actually obtained, sanitizing sensitive data. If Playwright MCP is unavailable, record the limitation and return the procedure; do not substitute another browser integration, install Playwright Test, or modify global MCP configuration. Connection setup/testing is separate integration work, not supplied by these definitions. ## 4.5 — verify and return results Preserve the analysis route and actual reference-read receipt in the return. Do not assert that a reference was read merely because it is linked. Keep unseen guards/transforms explicitly unknown in the sketch; observed disclosure does not itself establish a missing backend check. Report the observable boundary effect separately from an uninspected internal cause. Complete 4.1 before 4.2–4.4; review all three results before 4.5. Sequential execution preserves this dependency order without assuming native subagents. Check that the pseudocode matches the evidenced flow, executable/unit-test outputs actually show the claimed impact when run, and controls identify the right prerequisites. Reject artificial bypasses, mocks replacing the claimed boundary, guessed outputs, and tests that merely produce an HTTP 200 without the claimed security consequence. Return the reported/tested version comparison, instance match or deviation, control/setup validity, observed behavior, verified boundary consequence, and stronger impact not established. A different fixed version, failed baseline, or standalone reimplementation does not refute or confirm the original instance. Assess supplied instances individually even if one representative PoC is reused. Return a structured PoC record using the [evidence templates](../fp-check/references/evidence-templates.md): handoff and scope, 4.1 sketch, 4.2 executable status/artifact/command/output, 4.3 unit-test status, 4.4 positive/negative controls, 4.5 bypass/evidence review, observations, remaining gaps, and conclusion. Preserve source references and distinguish reported, observed, derived, and hypothesized statements. Return to `fp-check` for devil's advocate and all six gates. Failed, unavailable, or timed-out reproduction alone is not evidence of False Positive. ## Provenance Adapted from the [Trail of Bits poc-builder agent](https://github.com/trailofbits/skills/blob/5c99c03fb8a9ea568432ecbcba5d86e9f4ac2bf0/plugins/fp-check/agents/poc-builder.md), revision `5c99c03fb8a9ea568432ecbcba5d86e9f4ac2bf0`. Attribution: Trail of Bits; Maciej Domanski. Modified from agent to portable skill, with sequential dependencies, access/evidence-context records, authorization/feasibility handling, execution-status distinctions, and the conditional Playwright MCP branch. Licensed under [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/), without warranties or implied endorsement.