← Latest papers
🤖 AI

AVIATOR: Towards AI-Agentic Vulnerability Injection Workflow for High-Fidelity, Large-Scale Code Security Dataset

This paper introduces AVIATOR, the first AI-agentic framework that utilizes a coordinated workflow of specialized agents, tool-based analysis, and iterative self-correction to generate high-fidelity, large-scale vulnerability datasets, which significantly outperform existing injection techniques and substantially improve the performance of deep learning-based vulnerability detection models.

Original authors: Amine Lbath, Massih-Reza Amini, Aurelien Delaitre, Vadim Okun

Published 2026-03-19
📖 4 min read☕ Coffee break read

Original authors: Amine Lbath, Massih-Reza Amini, Aurelien Delaitre, Vadim Okun

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a security guard (an AI) how to spot a pickpocket in a crowded city. To do this, you need to show the guard thousands of examples of pickpockets in action.

The problem? Real pickpockets are rare, and the ones we do know about are often messy, hard to label, or don't look like the "perfect" criminals we want to teach the guard. If you train the guard on bad examples, they might start arresting innocent people or missing the real thieves.

Enter AVIATOR.

Think of AVIATOR not as a single robot, but as a highly organized construction crew led by a master architect. Its job is to build "fake" pickpockets (software vulnerabilities) inside safe buildings (secure code) so the security guard can learn to spot them.

Here is how AVIATOR works, broken down into simple concepts:

1. The Old Way: The "Sticker" Approach

Previous methods of creating these fake vulnerabilities were like taking a safe building and just sticking a "Danger" sign on a random wall, or using a stamp to paste a pre-made "broken window" sticker onto a door.

  • The Problem: These stickers often don't fit. They look fake. Sometimes they break the building's structure. The security guard learns to spot the stickers, not the actual flaws.
  • The Result: The guard gets confused, misses real threats, or gets too many false alarms.

2. The AVIATOR Way: The "Master Architect" Crew

AVIATOR changes the game by using AI Agents. Instead of one robot trying to do everything at once, AVIATOR breaks the job down into a team of specialists, working like a human security expert would.

Here is the crew's workflow:

  • The Detective (Code Understanding): First, an agent reads the code like a detective reading a blueprint. It understands how the building works, where the doors are, and how people move through it.
  • The Librarian (Information Loader): This agent pulls up a file on exactly what kind of "flaw" needs to be created (e.g., "a loose floorboard" or "an unlocked back door").
  • The Reverse Engineer (Vulnerability Analyst): This agent looks at the safe code and asks, "What is preventing a break-in here?" It identifies the security guards (checks and balances) that are currently working.
  • The Saboteur (The Injector): This is the main worker. Using the info from the others, it carefully removes a specific guard or loosens a bolt. Crucially, it doesn't just smash the wall; it makes the break-in look like something a real human hacker would do. It uses a "cheat sheet" (Retrieval-Augmented Generation) of real-world break-ins to make sure the edit looks authentic.
  • The Quality Control Team (Validation): This is where AVIATOR shines. Before the "broken" building is sent to the security guard, a whole team checks it:
    • The Diff Checker: "Did you actually change anything, or did you just move a chair?"
    • The Static Analyzer: A robot tool that scans the code to ensure the building didn't collapse (syntax errors).
    • The Fixer: If the Saboteur made a mistake, the Fixer tries to repair it or try again.

3. Why This Matters (The Results)

Because AVIATOR uses this "team of experts" approach instead of a single robot guessing:

  • It's More Realistic: The fake vulnerabilities it creates look and act exactly like real ones. It's like training the guard with actors who are actually pickpocketing, not just people holding signs.
  • It's Smarter: It can create a huge variety of flaws (133 different types!), whereas older methods could only make a few simple ones.
  • It's Cheaper and Faster: It costs 4.3 times less to run than the previous best method.
  • The Guard Gets Better: When the security guard (the AI vulnerability detector) was trained on AVIATOR's fake data, it got significantly better at spotting real threats. It found more bad guys (higher recall) without arresting innocent people (maintained precision).

The Bottom Line

Think of AVIATOR as a simulator for cyber-hacking. Instead of waiting for real hackers to break into systems to learn from them, AVIATOR builds a safe, controlled, and incredibly realistic training ground. It uses a team of AI specialists to craft perfect "what-if" scenarios, ensuring that the software defenders we train are ready for anything the real world throws at them.

In short: Old methods stamped fake flaws on code. AVIATOR builds realistic, complex, and diverse flaws so our AI defenders can learn the difference between a safe building and a broken one.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →