vulnerability-writeup · diff
git:20260709.2712622 to git:20260826.33bd952
130 added, 212 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: vulnerability-writeup
- description: Write up vulnerabilities from disclosure documents, rough notes, supplied findings, PoCs, source code, or Codex Security scan output into polished, self-contained, source-backed reports. Use for one vulnerability or a disclosure campaign; a Codex Security scan is optional.
+ description: Turn vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained, sceptically validated, natural-sounding vulnerability reports. Use for one vulnerability or a disclosure campaign; a Codex Security scan is optional.
---
# Vulnerability Writeup
- ## Overview
+ ## Purpose
- Produce a distributable report set from rough vulnerability notes, PoCs, and source code. Treat this as a technical disclosure campaign: every distinct vulnerability gets its own directory, its own report, its own PoC artifacts,
- and its own sub-agent draft. The desired output is not a cleaned-up note. It is a calm, expert narrative that proves the bug from source, explores how far the primitive can realistically be pushed, and ships with a PoC that another researcher can build and run.
+ Produce a disclosure report that another security researcher can understand, check and, where safely possible, reproduce. Treat the original finding as a hypothesis, not a conclusion. Establish the assessed software version, attacker position, reachable entry point, expected security behaviour, actual failure and narrowest demonstrated impact before deciding how strongly the report can speak. Pin the exact underlying source privately so the report remains accurate without burdening the reader with unnecessary commit hashes.
- Do not require a Codex Security scan, scan ID, manifest, findings JSON, coverage receipt, or seal. Ordinary disclosure documents and supplied vulnerability material are first-class inputs. When scan artifacts are present, use their validated fields as additional evidence; otherwise inventory the supplied documents directly and proceed with the same research and quality bar.
+ The result is still a finished, distributable vulnerability report, not an interactive review. Bring the scepticism, evidence discipline and approachable researcher-to-researcher voice of a good conversational review into the report itself.
- ## Core Rules
+ Accept supplied notes, disclosure documents, existing reports, PoCs, source trees and scanner findings as first-class inputs. Do not require a scan ID, finding bundle, manifest, coverage receipt or other Codex Security scan artefact.
- - Use one sub-agent per vulnerability write-up. Do not assign multiple vulnerabilities to one worker.
- - When this skill is used during Codex Security final reporting, the scan request is already authorization to launch the required one-finding write-up sub-agents. Do not ask for separate sub-agent authorization.
- - The main agent owns inventory and deduplication. Workers receive only the single vulnerability they are writing.
- - Review every sub-agent report yourself before accepting it.
- - If a report falls short, run another sub-agent for that same vulnerability with the raw artifacts and a concise critique.
- - Source access is mandatory for an excellent report. If the source tree or vulnerable revision is missing, stop and get it from the user unless the user explicitly accepts a lower-confidence report.
- - Treat pre-captured source snippets as leads, not as the complete source of truth. Workers must inspect the target source tree or an exact revision snapshot before choosing final snippets.
- - Never guess missing technical detail. Read source, inspect commits, run safe experiments, and clearly separate validated facts from hypotheses.
- - Use lab or VM access only when it is explicitly authorized for this work.
- Never test against public or live production instances unless the user has explicitly instructed you to do so for that target.
- - Make reports self-contained and distributable. Do not mention Drive,
- internal provenance, local absolute paths, or prior working folders.
- - Write in the natural first-person voice of a professional vulnerability researcher. Use "we" throughout the technical walkthrough to guide the reader through source, state transitions, exploit ideas, and PoC behavior ("we first reach", "if we carry this value forward", "from here we control"). Include honest "I" statements for the work actually performed and its limits ("I reviewed revision", "I reproduced", "I could not run this without a VM"). Static review is work and may be stated as such. Never invent testing or personal observations. Do not sprinkle pronouns into otherwise impersonal prose merely to satisfy this rule; the report should feel genuinely narrated.
- - Prefer readable, terminal-friendly line wrapping when it does not make the prose awkward. Do not let line length rules damage clarity, links, tables,
- code references, or the natural rhythm of the report.
- - Prefer source-backed narrative over labels. Each report should tell the full story: trigger, vulnerable path, bad state, impact, PoC, and fix.
- - Vulnerabilities sometimes have several different options for exploitation.
- Exploring and discussing alternative exploitation routes is often useful to include in a report even if it's not the best route or the one used for the PoC, so always include those discussions where they add interesting insights or explore ideas that otherwise wouldn't be covered. Where alternatives are covered, make the pros and cons clear, as one would expect in a technical discourse.
- - Treat PoCs as first-class deliverables. The final report directory should contain clean PoC source, build/run instructions, representative output,
- and any reliability, cleanup, or target-environment notes the reader needs.
- If you feel it's not possible to develop a PoC, ask the user for guidance.
+ ## Non-negotiable rules
- If the platform refuses to start more sub-agents, state that constraint to the user and queue the tasks. You should always delegate one report to one sub-agent. If a sub-agent starts but creates no files after one reasonable wait and one explicit finish instruction, close it and retry once with a tighter prompt for the same single vulnerability. If the retry also stalls,
- mark the writeup phase blocked unless the user explicitly authorizes a main-agent fallback. Do not silently use a main-agent fallback for production scan completion.
+ - Give each distinct vulnerability its own report directory and exactly one drafting sub-agent. The main agent owns inventory, deduplication, source checks and final acceptance.
+ - During Codex Security final reporting, the scan request authorises those one-finding drafting sub-agents. Do not request separate delegation approval.
+ - Inspect the exact vulnerable source revision. Resolve the complete commit internally when possible and note dirty, shallow, missing, patched or mismatched source. For a reproduced vendor or distribution package, verify every reader-facing excerpt and line citation against that exact patched source; use upstream source separately for history unless it is also the code that ran. Follow relevant dependency code in causal order and identify its exact tested version. Use `git show REV:PATH` for a non-checked-out revision rather than treating the current worktree as that revision. In the report, identify the software by its verified public release whenever one exists.
+ - If the exact source or revision is unavailable, stop and request it. Produce a report-only assessment only when the user explicitly accepts that limitation, and make every source-dependent conclusion visibly conditional.
+ - Trace the vulnerable code back to the change that introduced it and determine which released versions actually contain the vulnerable behaviour. Inspect the relevant tags, release branches, fixes and backports; never turn an unverified commit range into an affected-version claim.
+ - Never invent a source excerpt, line number, revision, affected version, first affected release, fixed release, advisory, CVE, CVSS vector, deployment prevalence, exploit route, execution result or observation.
+ - Distinguish source evidence, inspected-but-unexecuted PoCs, actual runtime observations, supplied report claims, inference and unknowns. Do not promote an inspected PoC into a reproduced vulnerability.
+ - Do not use "witness" as shorthand for supporting evidence. Name the actual source excerpt, test input, HTTP request and response, execution trace, proof-of-concept run, observed output or counterexample, and explain exactly what it demonstrates. Preserve an actual source identifier containing that word only when necessary, and immediately explain its concrete meaning.
+ - Test only within the user's explicit authorisation. Use disposable local targets for crashing, destructive or privilege-escalating PoCs. Never contact or test a public, external or production target without target-specific permission.
+ - Do not manufacture PoC commands, logs, screenshots or sample output. Include observed output only when it was actually produced or when a supplied, identifiable trace was inspected. Label a prediction as expected output and explain that it was not observed.
+ - Write in the language and locale the user requests; when they do not specify one, use their normal default. Be warm, direct and exact; guide substantive reasoning with a natural `we`, and use `I` only for work actually performed. Describe what the software should do, what it actually does and why that matters in plain language.
+ - Give people clear, conventional names when they help explain the finding: Alice is the legitimate account or resource owner, Bob is another legitimate user or intended recipient, Mallory is the active attacker, and Eve is a passive observer. Use matching example usernames such as `alice`, `bob`, `mallory` and `eve` consistently in prose, commands and PoCs.
+ - Make every delivered report and PoC portable and self-contained. Use repository-relative source paths, report-relative commands and verified software versions. Never include a local absolute path in report prose, excerpts, citations, links, PoC code, build files, command examples or captured output.
- ## Inputs
+ ## Actors, language and release references
- Gather and preserve these inputs before drafting:
+ Introduce only the people the particular finding needs and keep their roles consistent. For example: `Alice owns the document; Mallory signs in as mallory and retrieves it by changing the document ID.` Add Bob when the behaviour involves another legitimate user or intended recipient, and Eve only when passive interception is actually relevant. Preserve important real system roles, privileges and account types; do not pretend that a generic example user has permissions the actual product does not grant.
- - raw vulnerability documents, exported text, or existing rough reports;
- - supplied scanner findings or Codex Security finding bundles, when present;
- - existing PoCs, scripts, crash logs, traces, and screenshots;
- - the target source tree and exact vulnerable revision or release tag;
- - a focused inventory of relevant source paths, functions, and revisions when available;
- - fix commits, upstream diffs, or advisory text when available;
- - lab access details such as SSH hosts, VMs, kernels, or test accounts;
- - the user's authorization boundary for testing, especially whether any live target is in scope.
+ Explain the problem in terms of what should happen and what happens instead. Prefer `Only Alice should be able to read her document, but the download handler checks that Mallory is signed in without checking who owns the document` over abstract, theory-heavy security language. Define genuinely necessary technical terms once and use them only when they clarify the real mechanism.
- When the corpus comes from an external store (e.g. cloud storage or network paths), export the key text locally first. The final reports must not refer to external storage unless the user explicitly asks for provenance notes.
+ Replace opaque evidence labels with the actual thing observed. For example, write `the request showing Mallory received Alice's document`, `the input that triggers the out-of-bounds read`, `the recorded order of the two requests`, `the failing regression test`, or `the source lines showing that the ownership check is missing`. Choose the phrase that matches the real evidence; do not substitute an equally vague generic label.
- The produced write-ups must be distributable on their own and not assume access to other files or systems.
+ Use public release numbers as the primary reader-facing source references. Give the assessed release, the first verified affected release and the fixed release when established. Cite source using a repository-relative path and function; do not repeat a commit hash for every excerpt. Include a short commit reference only when the introducing change, fixing change, unversioned build or conflicting release history is itself important to the explanation.
- ## Campaign Workflow
+ ## Trace affected release history
- 1. Create a destination directory, usually `reports` or the user-provided name. Use short, representative slug names.
- 2. Build an inventory of candidate documents and PoCs. Record title,
- subsystem, primitive, affected paths, and likely duplicates.
- 3. Deduplicate by root cause and vulnerable code path, not by document title.
- Merge notes and PoCs that describe the same bug.
- 4. Read `references/report-format.md` in full and use it as the report format.
- Instruct every worker to do the same before drafting.
- 5. Confirm that each distinct vulnerability has enough source context to let a worker trace the bug from entry point to bad state. Inspect the finding's recorded locations, reopen the source around each relevant boundary, and give the worker the focused paths, functions, revision, and short source excerpts it needs. If source access is missing, collect the missing files,
- revision, fix diff, or build instructions before drafting, or proceed at explicitly lower confidence when the user accepts that limitation.
- 6. If authorized lab access exists, record how to reach it and what safety limits apply. If it does not, instruct the worker to build or reason about PoCs locally and to state what could not be executed.
- 7. For each distinct vulnerability, create one directory containing an appropriately-named report file as markdown (e.g. `freebsd-shm-uaf.md`)
- and a `poc/` directory when PoCs exist. Don't just use a nondescript file name like `report.md`.
- 8. Launch exactly one sub-agent for that vulnerability. Give it the raw notes, focused source paths and excerpts, target source tree, vulnerable revision, PoCs, output directory, format rules, lab details, and authorization boundary. Do not give it other vulnerabilities.
- 9. Review the worker output immediately. Check technical correctness,
- completeness, line wrapping, self-contained wording, source snippets,
- exploitability depth, PoC usability, and narrative voice. Reject a report that is written as an impersonal sequence of facts, reserves "we" for one token sentence, or never states in first person what was and was not validated.
- 10. Reject snippets that cut off before the vulnerable condition, missing guard, dangerous sink, relevant lifetime transition, or proposed fixed invariant. Inspect source directly before asking the worker to rewrite. If the story is thin, incomplete,
- speculative, narratively compressed, impersonal, or missing a runnable PoC path, launch a new sub-agent for that same vulnerability with the raw inputs and the specific gaps to close.
- 11. Make only small main-agent edits after acceptance: heading fixes, line wrapping, command-path portability, and typo cleanup. Do not paper over a weak draft with surface edits.
- 12. Run final validation over the whole report set before returning.
+ Before drafting, inspect the history of the actual vulnerable code rather than assuming the current version has always behaved this way.
- ## Sub-Agent Prompt
+ 1. Identify the exact lines, check, state change or permission decision that makes the reported attack possible.
+ 2. Trace that behaviour through file history, renames and blame to identify the change that introduced it.
+ 3. Inspect release tags and maintained branches to find the earliest released version that actually contains the vulnerable behaviour.
+ 4. Inspect the fixing change and each relevant release branch to determine the first fixed version and any backported fixes.
+ 5. Confirm representative affected and fixed release snapshots directly. A tag containing an introducing commit is not proof that the released code remained vulnerable after subsequent fixes or backports.
+ 6. State separately what is confirmed, what is the earliest version inspected and what cannot be determined from the available history. If tags, older history or release mappings are missing, say so rather than claiming a definitive first affected version.
- Use a prompt shaped like this for each vulnerability:
+ Do not stop at a shallow checkout when complete history, release archives or authoritative mirrors can be obtained safely within scope. Use checksum manifests or equivalent publisher evidence to establish archive provenance where appropriate. Inspect enough actual release snapshots to support the stated family or branch coverage, then name the intermediate patch releases or current branch tips that were not individually checked.
- ```text
- Write one high-quality vulnerability disclosure report for <slug>.
+ Use Git history and full commit identities as research evidence, not as repeated report prose. When supported, explain the result as a release history: `The vulnerable ownership check was introduced in 2.3.0, is present in 2.3.0–2.5.1, and is corrected in 2.5.2.` Explain what the introducing change was trying to do and why the earlier release did not have the problem when that history clarifies the root cause. Do not present that example as a finding or reuse its version numbers without checking the real project.
- You are responsible for exactly one vulnerability. Do not write about,
- summarize, compare, or polish any other finding. Quality drops when one
- worker handles multiple bugs, so keep all attention on this single report.
+ ## Evidence-first intake
- Inputs:
- - Raw notes: <paths>
- - Existing rough report, if any: <path>
- - PoC artifacts: <paths>
- - Focused source paths and excerpts: <paths and relevant functions>
- - Target source tree: <path>
- - Vulnerable revision/release: <revision>
- - Fix commits/diffs, if any: <paths/revisions>
- - Lab access: <ssh/vm details>
- - Testing authorization boundary: <what is allowed and forbidden>
- - Required format: `references/report-format.md`.
- - Output directory: <reports-dir>/<slug>
+ Before drafting, inventory:
- Rules:
- - Before drafting, open and read `references/report-format.md` in full. Its
- headings are the beginning of the assignment, not a completeness checklist.
- - Analyze source and fixes directly; never guess. Trace the bug from the
- attacker-controlled entry point through the relevant state transitions to
- the bad state.
- - Treat supplied snippets as starting points. If a snippet ends before the
- decisive branch, guard, sink, lifetime transition, or patch invariant,
- reopen the source tree and quote a complete short snippet instead.
- - Use the source tree throughout the report. Include short, relevant snippets
- with file paths, functions, and enough surrounding explanation for a human
- reader to follow the path without opening the repository.
- - Treat the rough notes as leads, not gospel. Validate each claim against the
- vulnerable source, the fix diff, or an experiment. Correct the notes when
- the source proves them incomplete or slightly wrong.
- - Explore exploitability, not just reachability. Discuss viable primitives,
- constraints, allocator or protocol behavior, race windows, object lifetime,
- attacker-controlled bytes, reliability, and useful dead ends. Build small
- throwaway probes when they clarify an exploit path.
- - Verify or improve the PoC when safe and authorized. Prefer disposable VMs
- or local test targets for crashes, corruption, LPE, data loss, or denial of
- service. Never run against public or live production instances unless the
- authorization boundary explicitly allows that target.
- - Ship a polished final PoC in `poc/`. Include source, build files, a README
- when helpful, exact run commands using relative paths, required environment
- details, expected output, and notes on reliability or cleanup.
- - Produce a self-contained report markdown file with no provenance references
- and no local absolute paths.
- - Use a natural first-person researcher voice in the report itself. Guide the
- reader with "we" across the substantive walkthrough: introduce why each
- source excerpt matters, carry values and object state between functions,
- reason through exploit options, and explain PoC behavior. Do not leave the
- reader with a dense sequence of snippets and declarative conclusions.
- - Include at least one truthful first-person-singular account of the validation
- basis and limits. For example: "I reviewed the vulnerable revision and fix
- directly, but I did not execute the panic trigger because no disposable VM
- was available." Mention builds, experiments, failures, or observations only
- when they actually happened.
- - Give important transitions enough prose to teach why the evidence matters.
- Explore promising exploitation routes, relevant alternatives, constraints,
- and informative dead ends instead of collapsing exploitability into a verdict
- paragraph. Add depth where the bug warrants it; do not pad the report.
- - Prefer readable prose wrapping, but do not contort technical language,
- links, tables, or code references to satisfy a fixed column width.
- - Explain trigger, vulnerable path, bad state, impact, exploitability, PoC,
- and fix as one coherent narrative. The reader should feel calmly guided
- from background to source proof to practical demonstration.
- - Use relative commands such as `cd poc` then `make`, not local absolute
- paths.
- ```
+ - the raw finding, report, disclosure notes and claimed trigger;
+ - the exact source root, assessed release and privately pinned commit or tag;
+ - the introducing change, earliest verified affected release, affected release branches, fixing change and verified fixed or backported releases;
+ - the affected paths, functions, configuration and build options;
+ - Alice, Bob, Mallory or Eve as appropriate, together with each person's actual account, required credentials, privileges and controlled input;
+ - the affected owner, intended recipient, security boundary and downstream consumer;
+ - the claimed impact and the narrower primitive actually supported;
+ - any PoC, logs, negative control, regression test and available fix;
+ - what was read, built, executed, observed, merely supplied or not available;
+ - the testing authorisation and any disposable test environment.
- When re-running a weak report, add only the review deltas:
+ Write down the minimal reported trigger as a hypothesis before tracing it. Keep the actual attacker-controlled input, intermediate state and claimed sink aligned throughout the investigation. Do not quietly replace the claimed exploit with an easier earlier event, another request, a different object, a patched revision or a test-fixture-only behaviour.
- ```text
- The prior draft was too light on <specific gaps>. Rewrite from the raw
- artifacts and source so the report reads as a complete technical story. Use
- "we" to guide the actual source and exploitation walkthrough, and state with
- "I" what you personally validated and what you could not test. Do not merely
- add first-person phrases to the existing prose.
- ```
+ Before drafting, reduce the finding to one concrete attack sentence: who Mallory is, which legitimate credential or input she controls, what she does, which separate policy or owner should stop her and which real sink she reaches. State the important non-claims alongside it, such as `Mallory reuses her own session; she does not steal Alice's session or break TLS.` Record the complete tested topology and prerequisites near this sentence, separating defaults from operator configuration and leaving deployment prevalence unknown unless measured.
- ## Technical Analysis Standard
+ Challenge the claim before making it sound convincing:
- For each report, prove the vulnerability from the target source:
+ - Is the required configuration default, optional, unusual or unknown? Documentation and shipped examples establish existence, not prevalence.
+ - Does the attacker already need the access or privilege that the report claims to obtain?
+ - Does the exact source preserve the reported object ownership, callback order, lock, lifetime, bounds, validation order and final sink?
+ - Can cancellation, generation checks, error handling, cleanup, permissions or another guard prevent the path?
+ - Does a controlled test change only timing or visibility, or can it create the outcome itself?
+ - What negative control or concrete observation would distinguish the claimed vulnerability from a benign explanation?
+ - Does the evidence establish reachability, a bad state, a real boundary crossing or only a stronger impact that remains possible?
- - identify the exact entry point and attacker-controlled inputs;
- - follow data, lifetime, locking, bounds, and state transitions;
- - quote short source snippets only when they clarify the path;
- - inspect vulnerable release code with commands like `git show <rev>:<file>`;
- - compare fix commits when available to confirm the intended invariant;
- - describe the resulting kernel or application state precisely;
- - calibrate impact to the validated primitive;
- - name assumptions and unverified exploitability limits.
+ If the source contradicts the finding, stop presenting it as a vulnerability. Explain the contradiction and the remaining evidence rather than generating a persuasive disclosure for a false positive.
- ### Source Work
+ ## Campaign workflow
- The worker should use the repository as a primary artifact:
+ 1. Create the user-requested report directory, or use `reports/`. Inventory and deduplicate findings by root cause and source path rather than title.
+ 2. Read `references/report-format.md` completely. Require each drafting sub-agent to read it before writing.
+ 3. Pin and inspect each finding's vulnerable source. Independently check the decisive entry point, security check, state change, sink and available fix. Trace the introducing change and inspect the affected and fixed release tags before assigning the finding.
+ 4. Record the one-sentence attack and non-claims, verified release history, named actors, complete tested topology, defaults versus configured prerequisites, meaningful positive and negative controls, exact validation basis and testing boundary before assigning the finding.
+ 5. Create one descriptively named Markdown report per vulnerability and a sibling `poc/` directory only when real PoC artefacts exist or can safely be developed.
+ 6. Launch exactly one sub-agent for each distinct vulnerability. Provide only that vulnerability's raw material, pinned source, PoC artefacts, output directory, report-format reference and authorisation boundary.
+ 7. Independently read the returned report against the pinned source, release history and raw artefacts. Check each important claim, excerpt, transition, affected-version statement, impact, fix and reported observation.
+ 8. Reject a draft that smooths over missing evidence, invents a run, inflates impact, guesses affected versions, leaks a local absolute path, calls an unexplained piece of evidence a "witness", overloads the prose with hashes or jargon, mistakes configuration existence for prevalence, or uses named actors or first-person language as decoration.
+ 9. If the draft needs substantive repair, launch a fresh sub-agent for that same finding with the original artefacts and specific review failures. Do not cover an evidentiary failure with cosmetic edits.
+ 10. Make only small final corrections after acceptance, and validate the completed report and real PoC artefacts before delivery.
- - inspect the vulnerable revision, not just the current tree;
- - use `git show <revision>:<path>` when the source tree is a Git checkout and the scanned revision is available;
- - identify relevant compile-time options, configuration, permissions, and threat-model checks;
- - search for sibling call sites and variants that help explain the invariant;
- - include snippets from vulnerable code and, when useful, the fixing diff;
- - keep snippets short and narrate the important lines before or after them.
+ If delegation is unavailable, report that constraint instead of silently drafting a production-scan finding in the main agent. If a worker stalls, give one explicit finish instruction, retry once with a tighter single-finding assignment, and report the remaining blocker if the retry also fails.
- ### Exploitability Work
+ ## Single-finding drafting prompt
- The Exploitability Analysis section should be thoughtful and specific. It may include unsuccessful branches when they teach the reader something important.
- Useful lines of inquiry include:
+ Use this shape and supply the actual evidence:
- - how to maximize attacker control over corrupted data or control flow;
- - how allocator, scheduler, parser, cache, sandbox, or protocol behavior affects reliability;
- - how to groom state before the trigger and stabilize state afterward;
- - what information leaks, write gadgets, confused-deputy paths, or privilege boundaries might combine with the primitive;
- - what constraints make a stronger exploit unlikely.
+ ```text
+ Write one self-contained vulnerability disclosure report for <slug>.
- ### PoC Work
+ You own exactly one finding. Read references/report-format.md completely before drafting.
- Use the lab to build PoCs and run safe probes. For panic, wedge, corruption,
- data-loss, or LPE cases, prefer disposable VMs and state the risk in the report. If a PoC cannot safely be run, at least verify that it builds or that its build recipe is coherent, and explain the missing execution condition.
+ Inputs:
+ - Raw finding and rough report: <paths>
+ - Source root and privately pinned vulnerable revision: <path and revision; never put the local path in the report>
+ - Assessed release and verified affected versions: <release, first affected version, branches and gaps>
+ - Introducing and fixing changes: <verified history, release tags and backports>
+ - Relevant source paths, functions and claimed trigger: <details>
+ - Existing PoC, logs and negative controls: <paths or none>
+ - Fix or advisory, if directly available: <revision and paths or unknown>
+ - Attacker prerequisites and configuration: <known facts and unknowns>
+ - Named actors and usernames: <Alice/alice, Bob/bob, Mallory/mallory or Eve/eve as appropriate>
+ - Testing authorisation and disposable lab: <boundary>
+ - Report and PoC output directory: <directory>
- A strong final PoC should be easy for the reader to run:
+ Treat the supplied finding as a hypothesis. Inspect the exact source revision yourself. Trace the actual attacker-controlled entry point, the reported state change, existing checks and the real sink. Reopen any source excerpt that ends before the decisive line. Do not substitute a different event, object, revision or test harness for the claimed trigger.
- - place it under the report directory's `poc/` folder;
- - include a `Makefile`, script, container recipe, or exact build command;
- - include example commands from a clean checkout or unpacked report bundle;
- - include representative output from a successful run;
- - separate exploratory probes from the polished final PoC when both are kept;
- - include cleanup or reset instructions when the PoC changes system state.
+ Open with the actual attack in ordinary language and say what it is not. Name Mallory's legitimate starting credential or input, the separate service, owner or policy she crosses, and the concrete protected sink she reaches. Put the complete tested prerequisites near the beginning and distinguish defaults from configured features without guessing prevalence.
- ## Report Quality Bar
+ Trace when the vulnerable behaviour first appeared and inspect the relevant released versions, fixing change and backports. If the supplied checkout is shallow, obtain complete history or exact release archives when safely available rather than treating the gap as the answer. Write the report in terms of verified software versions; include a commit hash only when that specific change is important or a release number is unavailable. Clearly separate the earliest verified vulnerable version from an unproven first affected release, and identify unsampled patch releases or branch tips.
- Every accepted report must follow the guidance in `references/report-format.md`.
+ Before stating impact, challenge deployment assumptions, attacker privileges, cancellation, locks, cleanup, ordering, negative controls and alternative explanations. Say exactly which claims are established, which remain plausible and which the source contradicts. Correct the original notes when necessary. If the vulnerability does not hold, report the contradiction; do not manufacture a disclosure.
- The report should read like a complete story for a security engineer who has not seen the original notes. It should patiently walk the reader from the entry point to the vulnerable transition, the bad state, exploitation routes,
- PoC behavior, and the fix. Avoid filler, generic variant-analysis endings,
- and claims unsupported by source or experiment, but include thoughtful discussion and maintain a warm, professional attitude: the voice of one security researcher carefully explaining the work to another.
+ Use the user's requested language and locale, or their normal default when unstated, with a calm researcher-to-researcher voice. Use Alice for the legitimate owner, Bob for another legitimate user or intended recipient, Mallory for the active attacker and Eve for a passive observer, only when those roles fit. Carry the matching usernames through requests, shell commands, PoCs and output. Follow one cross-component causal story: first establish that the ordinary security policy is configured correctly, then show the shared state or failed check, the dependency behaviour it changes and the real protected sink. Explain what the software should do, what it actually does, why each important excerpt matters and what the evidence does not settle. Use "we" naturally to guide the walkthrough. Use "I" only to state the exact source review, builds, observations, experiments or limitations that actually occurred.
- An excellent report usually has a few recognizable traits:
+ Never call evidence a "witness". Instead, tell the reader what it actually is and what it proves: the request returning Alice's data to Mallory, the input triggering the failure, the captured output showing the result, the test exposing the bug, or the source lines containing the missing check. If an essential real code identifier contains that word, preserve the exact identifier and immediately explain what it represents in plain English.
- - The proof is layered. It establishes the actor, entry point, vulnerable check, bad transformation or state transition, sink, and fixed source shape in an order that feels easy to follow.
- - Exploitability is treated as research. The report names attacker-controlled values, useful primitives, realistic routes, constraints, fallbacks,
- reliability dependencies, and dead ends that teach something.
- - The PoC section separates diagnostic probes from the strongest exploit or demonstration path, gives a safe-first run order, and includes representative output.
- - Remediation explains the invariant to restore, then gives minimal fixes,
- deeper structural hardening where useful, and regression tests that exercise the real vulnerable path.
- - The language is precise, calm, and conversationally professional. It should not read like a terse scanner finding, a marketing advisory, or a pile of disconnected notes.
- - The voice sounds like a researcher writing to peers. First-person plural carries the reader through the substantive source, exploitability, and PoC reasoning rather than appearing once as decoration. First-person singular gives an honest account of actual source review, validation work, failed attempts, and limits.
- - The prose explains why each important transition matters. A complete set of headings, snippets, and conclusions is not enough when the connective reasoning remains implicit.
+ Follow the required report headings. Make the impact no broader than the demonstrated primitive. Discuss realistic stronger routes and useful dead ends only as clearly qualified analysis. Never guess affected versions, prevalence, CVSS, reliability, patch status or runtime results.
- Before accepting a report, ask whether it reaches the excellent bar:
+ Include a real PoC only when available or safely and explicitly authorised. Separate exact source review, inspected PoC code, syntax or build checks, actual runs, preserved records, offline evidence verification, source-confirmed but unexecuted releases and expected-but-unobserved behaviour. A convenience reproducer assembled from a real fixture is not an executed exploit unless it was actually run. Include observed output only when observed; otherwise label the expected result and explain the missing execution condition. Use repository- or report-relative paths and commands. Never copy a local absolute path into the report, PoC, build recipe, screenshots, logs or output.
- - Can a reader understand the affected component and threat model without the original notes?
- - Does the report prove the vulnerable path from source and cite the exact functions, files, and revisions that matter?
- - Are code snippets chosen because they illuminate the story, not because the report needed decoration?
- - Does every snippet include the decisive line or branch it is meant to prove,
- rather than cutting off just before the vulnerability?
- - Does the exploitability analysis explore multiple realistic paths,
- including constraints and dead ends that sharpen the conclusion?
- - Is there a high-quality final PoC with build/run commands and example output, or a clear reason why execution was not authorized or safe?
- - Does the remediation explain the invariant that must be restored and show a plausible minimal patch or defensive pattern?
- - Does the report use a natural "we" voice through the walkthrough and include a truthful "I" account of what the author validated or could not test?
- - Does the prose patiently connect the evidence, or does it still read like a technically correct but lightweight scanner expansion?
+ Before returning, reread the report against the exact source, release history, PoC and fix. Remove generic filler, unsupported certainty, repeated commit hashes, jargon, inconsistent actor names, repetitive proof labels, token first-person phrases, local absolute paths and claims the artefacts cannot support.
+ ```
- ## Validation
+ For a rewrite, give the replacement worker the original evidence and precise failed checks, not merely the previous prose:
- Review the completed report set directly after drafting and after any rewrite.
- Check every report against `references/report-format.md`, then run relevant project checks:
+ ```text
+ The previous draft incorrectly or inadequately handled <specific source, trigger, impact, validation or voice failures>. Re-establish each disputed claim against the pinned revision and original artefacts. Rewrite the explanation rather than adding qualifiers or first-person phrases to an unsupported narrative.
+ ```
- - `rg` for forbidden provenance terms and TODO markers;
- - `rg -n '\b(we|We|I|our|Our|us)\b' <report>` as a quick signal for missing researcher voice, followed by a manual read for natural usage;
- - `make -n` in every `poc/` directory (may need to run on the appropriate target system; doesn't necessarily need to build on whichever system the report is being written on);
- - source commands used in the reports, when feasible;
- - a parity check against the original report directory when rewriting.
+ ## Source and exploitability standard
- Do not hand off until validation passes or the remaining failures are explicitly explained to the user.
+ Prove the vulnerability in causal order. Establish the named actor and controlled input, show the real reachable entry point, explain what the software should prevent, carry the relevant value or object through each meaningful step, identify the check or behaviour that fails, and demonstrate the resulting effect at the real sink. In a cross-component finding, show the normal per-component protection first, then the shared key or state, the receiving library's decision and the downstream effect; explain why each excerpt changes the outcome. Quote only short, exact snippets that contain the decisive line. Cite the repository-relative path, function and verified release without repeatedly attaching commit hashes. Explain both what an excerpt proves and the material question it leaves open.
- A report with no natural first-person walkthrough, or no truthful singular account of the validation basis and limits, fails validation and must be rewritten. A mechanical pronoun match does not make an impersonal report pass.
+ Compare a real fix only after verifying that it addresses the same vulnerable behaviour and actually prevents the reported attack. Distinguish a proposed defensive patch from an upstream fix. Establish introduction, affected-version boundaries, fixed releases and backports using inspected source history and released code; explicitly flag missing release history.
+
+ Explore stronger exploitation as research, not advertising. Discuss allocator or protocol behaviour, attacker-controlled bytes, timing, identity, configuration, useful primitives and meaningful dead ends when relevant. Distinguish a possible interleaving from production reliability, a bad state from a usable exploit, and local control from a real privilege or tenant boundary crossing.
+
+ Use a diagram or state table only when it clarifies a genuinely difficult object lifetime, ownership boundary or event sequence. Do not add visual material, theory or variants to make a simple finding look more impressive.
+
+ ## Report acceptance
+
+ Read `references/report-format.md` and the finished report yourself. Accept it only when:
+
+ - a new reader can understand the component, the named actors and the relevant security boundary;
+ - the verified release, configuration, attacker prerequisites and affected-version history are accurately scoped;
+ - the source establishes the same trigger sequence and security failure described in the report;
+ - every excerpt is exact, attributed to a repository-relative source path and verified software version, necessary and explained;
+ - source proof, inference, reported claims and runtime observation remain distinguishable;
+ - meaningful guards, negative controls and alternative explanations are addressed;
+ - impact, exploitation reliability, affected versions and deployment prevalence are no stronger than the evidence;
+ - the PoC, commands, output and cleanup instructions reflect real artefacts and actual validation;
+ - positive and negative controls rule out the important benign explanations and isolate any tested interim mitigation;
+ - the proposed fix explains in plain English what the code must do differently and suggests relevant regression coverage;
+ - the narrative sounds like a thoughtful human researcher, not a scanner, marketing copy or a checklist;
+ - each supporting observation is identified in concrete language, without calling unexplained evidence a "witness";
+ - Alice, Bob, Mallory and Eve are used only in their appropriate roles, with consistent example usernames;
+ - release numbers carry the explanation, and commit hashes appear only when they add specific value;
+ - `we` genuinely carries the explanation and `I` accurately describes performed work and its limits;
+ - the report and every distributed PoC, script, build file and output contain no local absolute paths, internal provenance, placeholder text or fabricated detail.
+
+ Validate front matter and Markdown formatting with the repository's plugin authoring validator. Search every distributable report, PoC, build file, script and captured output for local macOS, Linux and Windows absolute paths, including user-home, temporary, checkout and `file://` paths; remove every match before delivery. Run relevant real PoC build or dry-run checks only when they exist, are safe and are supported by the target environment. When a disclosure package also contains an advisory, validate the one direct technical report through an isolated temporary validation directory or link rather than misclassifying the advisory or changing the final package layout. Re-run any supplied offline evidence verifier and ensure generated bytecode or local-path leakage does not enter the package. A word search can help identify accidental provenance or missing researcher voice, but neither a pronoun count nor required headings can establish factual accuracy.