AntiAgent Aims to Hinder AI-Based Vulnerability Detection in JavaScript

Paper / preprint arXiv cs.CR · Reported findings, not independently verified by us.

The researchers behind AntiAgent present a method that changes JavaScript programs before release to make vulnerabilities harder for AI agents to detect. In tests involving four detection agents, the approach reduced the number of vulnerabilities found by 52.0 to 60.7 percent.

To develop the method, the team examines altered versions of programs with known vulnerabilities. It traces how an agent analyzes each version and uses variants where the agent misses or misreports a vulnerability as the basis for reusable transformation rules. For a new program, AntiAgent divides the work between a language model and those rules, so the changes can be adapted to the program.

The evaluation covers real-world JavaScript applications and four agents, including Claude Code and Codex. AntiAgent reduced detection counts more than both the JS-Obfuscator obfuscator and the LLM-based transformation method FPA on every tested agent. The transformed programs passed all project tests, which the researchers present as an indication that semantics are preserved; passing tests is not a formal proof of complete equivalence.

The paper also reports that the rules remained effective for vulnerability types absent from the corpus and for programs written in Python. The original paper provides further details on the method and evaluation: Original paper on arXiv

🇬🇧 https://arxiv.org/abs/2611.25718v1

Leave a Comment

The weekly brief: selected developments, projects and videos