--- name: reap-10-vulnerability-research description: REA prompt pack: Vulnerability research (5 ready-to-paste prompts). Use when doing reverse-engineering investigation of vulnerability research with REA (rea.tools) via an AI coding agent. --- # REAP — 10. Vulnerability research Part of REAP (REA Investigation Prompts). Replace everything in ; keep each request focused on one feature. Demand file/function/address evidence and separate facts from hypotheses. ### Trust-boundary audit ```text Use REA to review the security of . Prioritize trust boundaries, untrusted input, privileged operations, credential storage, IPC, file handling and command execution. For each possible vulnerability, present: - the input origin and the sensitive operation; - the code path and existing checks; - preconditions and impact; - evidence and uncertainties; - a proposal for controlled validation. Do not classify a hypothesis as a confirmed vulnerability without sufficient evidence. ``` ### Sink hunt from untrusted input ```text Use REA on . List every place untrusted data enters (network sockets, files, IPC, command-line, clipboard, URL handlers) and follow each source to dangerous sinks: memcpy/strcpy with unchecked length, system/exec, dynamic loading, deserialization, path concatenation. For each source→sink path give the function chain with addresses and state which validation exists in between. ``` ### Patch diffing (1-day to incomplete-fix hunting) ```text Use REA to compare and of . Diff the security-relevant functions: what check was added, where else in the binary the same pattern exists without the fix, and whether the fix covers every caller of the vulnerable routine. Report candidate incomplete-fix locations with function/address evidence, clearly labeled as hypotheses until validated in a controlled environment. ``` ### Crash triage to root cause ```text Use REA to investigate this crash in . Available evidence: Relate the error to the functions involved, formulate hypotheses and indicate which evidence supports each one. Propose the smallest experiment needed to distinguish the hypotheses and validate the cause. ``` ### How is my data handled? ```text I am allowed to analyse . Use REA to find where it stores or sends . Show the code paths, say whether the data is encrypted at rest and in transit, and list concrete risks with evidence. ``` ---