[Paper Review] I Can't Believe It's Not a Valid Exploit
The paper introduces PoC-Gym, a framework using LLMs guided by static analysis traces to generate Java PoC exploits, and reveals high apparent success rates that collapse under post-hoc validation, with 71.5% of PoCs deemed invalid upon manual inspection.
Recently Large Language Models (LLMs) have been used in security vulnerability detection tasks including generating proof-of-concept (PoC) exploits. A PoC exploit is a program used to demonstrate how a vulnerability can be exploited. Several approaches suggest that supporting LLMs with additional guidance can improve PoC generation outcomes, motivating further evaluation of their effectiveness. In this work, we develop PoC-Gym, a framework for PoC generation for Java security vulnerabilities via LLMs and systematic validation of generated exploits. Using PoC-Gym, we evaluate whether the guidance from static analysis tools improves the PoC generation success rate and manually inspect the resulting PoCs. Our results from running PoC-Gym with Claude Sonnet 4, GPT-5 Medium, and gpt-oss-20b show that using static analysis for guidance and criteria lead to 21% higher success rates than the prior baseline, FaultLine. However, manual inspection of both successful and failed PoCs reveals that 71.5% of the PoCs are invalid. These results show that the reported success of LLM-based PoC generation can be significantly misleading, which is hard to detect with current validation mechanisms.
Motivation & Objective
- Assess whether static analysis guidance improves PoC generation for Java vulnerabilities when using LLMs.
- Systematically validate generated PoCs against ground-truth vulnerability locations to detect false positives.
- Understand limitations of current LLM-based PoC generation pipelines and the effectiveness of execution-level validation.
- Compare PoC-Gym against prior systems (e.g., FaultLine) in real-world CVEs.
- Identify failure modes and propagation of errors through LLM-driven PoC generation.
Proposed method
- Develop PoC-Gym, a pipeline with prompt construction, PoC generation by an LLM, and execution-based validation with feedback.
- In prompts, fuse vulnerability context (CVE/CWE), static dataflow traces from CodeQL/IRIS, and repository metadata to steer PoC generation.
- Validate PoCs via compilation, execution, and an AspectJ-instrumented sink check to determine [VULN] signal and sink reachability.
- Evaluate with 20 real-world Java CVEs (CWE-Bench-Java), using multiple LLMs (Claude Sonnet 4, GPT-5 Medium, gpt-oss-20b) under with/without trace settings.
- Perform post-hoc analysis comparing dynamic traces to ground-truth sinks, and conduct manual inspections of PoCs.

Experimental results
Research questions
- RQ1Does static source–sink trace guidance improve the success rate of PoC generation when using LLMs?
- RQ2How valid are the PoCs that pass automated validation when checked against ground-truth vulnerability locations?
- RQ3What proportion of 'successful' PoCs are actually exploiting the intended vulnerability path (false positives)?
- RQ4Do execution-level validation methods reduce false positives compared to output-based checks alone?
- RQ5What are the common failure modes in LLM-driven PoC generation pipelines for Java vulnerabilities?
Key findings
- Using static analysis guidance yields a 21% higher PoC generation success rate than the prior baseline, FaultLine.
- Post-hoc analysis reveals that 71.5% of successful PoCs are invalid upon manual inspection.
- Without trace information, automated validation can yield up to 85% apparent success, but ground-truth validation drastically reduces this.
- Trace guidance reduces the discrepancy between initial success and ground-truth validity but does not eliminate invalid PoCs.
- PoC-Gym achieves up to 8/14 post-hoc success with Claude Sonnet 4 across CWE-Bench-Java projects, outperforming FaultLine's 5/14 in the same set.
- A substantial fraction of failures arise from propagated LLM errors, mislabeling CVEs, and reliance on surface signals rather than actual vulnerability reachability.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.