AI Security
Researchers improve LLM-based exploit generation with new validation pipeline for Java vulnerabilities
A new framework called PoC-Gym combines static and dynamic analysis to generate more reliable proof-of-concept exploits from security vulnerability descriptions.
Large language models are increasingly being applied to cybersecurity tasks, including the automatic generation of proof-of-concept (PoC) exploits from vulnerability descriptions. However, existing LLM-assisted approaches often fail to reliably confirm whether a generated exploit actually triggers the intended vulnerability, making their results unreliable.
The Problem with Current Approaches#
When LLMs generate exploits, they commonly rely on simple validation signals—such as console output, newly created files, or observable runtime effects—to determine whether an exploit works. The fundamental challenge is that these signals don't guarantee the vulnerability was actually triggered. A program might produce the expected output without ever reaching the vulnerable code path, leading to false positives that waste security researchers' time.
PoC-Gym's Multi-Layer Validation#
Researchers have proposed PoC-Gym, an iterative pipeline designed to generate more trustworthy exploits for Java security vulnerabilities. Rather than relying on surface-level signals alone, the system combines multiple verification techniques:
- Customized prompts tailored to specific CVEs
- Static code traces that map the intended vulnerability location
- Coverage-based feedback that tracks which code paths the exploit actually exercises
Each generated PoC candidate passes through multiple validation gates: checking that execution completes without error, detecting success signals, and—critically—confirming the exploit reaches the actual sink point identified in the static trace.
Evaluation Results#
Testing PoC-Gym on 20 Java CVEs across 338 runs revealed both progress and limitations. Of the generated candidates, 116 passed the system's runtime validation checks, and 65 survived post-hoc validation against ground-truth vulnerable locations, collectively covering 12 of the 20 CVEs. When compared to FaultLine, an earlier approach, PoC-Gym showed improvements: across 14 overlapping CVEs, the best PoC-Gym configuration succeeded on 8, while FaultLine reported success on 5.
However, the research also uncovered a significant problem: many exploits that appear valid at runtime fail when checked against actual vulnerable code locations. This gap highlights the difficulty of the problem and points toward areas where future work can improve reliability.

