Papers for

security tool developers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Large language models improve testing of security scanning tools

Combining LLM and Dynamic Analysis for Universal Testing of Static Application Security Testing Tools

Abstract: Static application security testing (SAST) tools help detect potential software vulnerabilities, but they themselves contain faults undermining reliability and usability. Automated testing can address these issues, yet current techniques suffer from limited program transformation diversity and lack mechanisms to verify generated variants, leading to reduced fault detection and high manual effort. We present LLM4SAST, the first universal framework detecting faults in SAST tools using large language models and dynamic feedback. Our key insight is leveraging LLMs to understand and transform code in diverse programming languages. We design novel metamorphic relations with transformations to guide variant generation, using an LLM to produce multi-language variants that satisfy these relations. To reduce erroneous variants and identify unique faults, we propose two heuristics: dynamic-feedback-driven selection and program-differencing-based clustering. For each metamorphic relation, a report-centric test oracle detects variants that fail tests and identifies underlying faults by differentially analyzing SAST reports of the seed program and its variants. LLM4SAST identified 66 unique faults across six SAST tools, with 32 confirmed or fixed after being reported to developers, demonstrating effectiveness. The proposed heuristics eliminate 47.8% of false positives, and LLM4SAST detects 3.4 times more faults while requiring only 39.8% of the variants compared to existing approaches.

Thu 15 OctCryptography and SecuritySoftware Engineering
The gist
Static security tools try to find bugs in software but often have their own bugs, making them less reliable. The authors created LLM4SAST, combining large language models and test feedback to generate many code variants across programming languages to better test these tools. Their method helps find more bugs in security scanners by checking differences in tool reports, reducing false alarms, and cutting down manual effort. They found dozens of real bugs in popular security tools, showing their approach works well.
Open → 2610.21309v1

P2patch improves software fixes by testing patches against new attacks

P2Patch: Exploit-Guided Vulnerability Repair

Abstract: Large language models are increasingly deployed as autonomous agents for automated program repair, patching software vulnerabilities through multi-step reasoning and tool use. Yet these systems typically validate a patch against the same evidence used to construct it -- a static alert, sanitizer trace, published exploit, or test suite. A patch that blocks that one piece of evidence can therefore look successful while remaining vulnerable to the same vulnerability with some variation. We present P2Patch, a generative adversarial repair system that treats each patch as a new attack target. Starting from a normalized vulnerability finding, an exploitation agent constructs a reproducing proof of vulnerability (PoV), a patching agent repairs the program, and the exploitation agent then attacks the patched program for a distinct same-vulnerability exploit. Every successful exploit becomes a permanent repair requirement, and the final patch must block all PoVs accumulated during the patching process, with construction-time PoVs kept strictly separate from held-out evaluation oracles. Across 101 C/C++ and Java CVE subjects, this adversarial loop surfaces a distinct confirmed exploit in 41% of runs after the patch has already blocked its original construction-time PoV. Against single-pass repair from the same finding using Claude Code, P2Patch raises held-out fix-closed coverage from 78.1% to 84.7% and beyond-upstream coverage from 42.1% to 62.5%. Under the same held-out oracles, it also certifies more attack paths as blocked than recent state-of-the-art agentic repair systems on overlapping subjects. These results show that adversarial testing and independent security oracles expose repair gaps that one-shot validation misses.

Wed 14 OctCryptography and SecurityArtificial IntelligenceSoftware Engineering
The gist
When fixing software bugs that cause security problems, it's not enough to block just the known attack. The authors developed P2Patch, a system that tries to break a fix by generating new attacks that exploit the same vulnerability in different ways. It repeats this process until no new attacks can break the patch, making the fix stronger and more reliable. Tests showed P2Patch finds hidden weaknesses that other automatic fixers miss, leading to safer software patches.
Open → 2610.20245v1

Industrial control systems audited for late recovery attack risks

RISK: Auditing Industrial Control Systems for Too-Late-to-Recover Vulnerabilities

Abstract: The security of industrial control systems (ICS) is important. Yet most ICS security efforts focus on the detection of ICS attacks, with much less attention to the recovery after detection. In this paper, we address this underexplored area by jointly auditing the detection and recovery of ICS. Specifically, we define the too-late-to-recover (TLTR) vulnerability, which allows an attack to drain the available recovery margin before being detected, such that the subsequent recovery procedure will fail to bring the ICS back to a safe state due to the insufficient margin. To audit an ICS for TLTR vulnerabilities, we develop RISK, an automated framework that discovers and validates possible TLTR attack scenarios. RISK holistically models and analyzes, statically and dynamically, the PLC control logic, attack detection policies, recovery procedures, and operational behaviors of an ICS to generate TLTR attack scenarios with concrete attack parameters. We evaluate RISK on three ICS testbeds as well as a real-world fertilizer production plant. Across the three testbeds, a total of 392 TLTR attacks are generated and confirmed, whereas only a small fraction of them can be discovered by existing ICS vetting tools. In the real-world plant, RISK identified a critical TLTR vulnerability which was validated by plant engineers.

Tue 29 SeptCryptography and Security
The gist
Industrial control systems manage important processes like factories and power plants, and it's crucial to keep them secure. Most security checks focus on spotting attacks, but this paper looks at what happens after an attack is detected: can the system still recover safely? The authors discovered a type of vulnerability where an attack can drain the system's ability to recover before it even gets noticed, making recovery impossible. They built a tool called RISK that automatically finds these hard-to-detect attack scenarios and tested it in labs and a real fertilizer plant, finding critical issues missed by other tools.
Open → 2609.38528v1