Skip to content
InfoResearchPreprintLLM-specific

Hardening JavaScript Programs against LLM-Based Vulnerability Detection

Published
Record updated
View JSON

Summary

AntiAgent is a defense that transforms JavaScript programs before release to impede LLM-based vulnerability detection agents. It evolves a corpus of programs with known vulnerabilities, keeps versions where the agent misses or misreports the flaw, and extracts those transformations into reusable rules. In evaluation on real-world JavaScript applications against four detection agents, including Claude Code and Codex, it reduced detected vulnerabilities by 52.0-60.7%, while transformed programs passed all project tests.

Mitigation

AntiAgent: transform the program before release using transformation rules extracted from an evolved corpus, with the task split between an LLM and the rules to preserve program semantics.