← Latest papers
🤖 AI

Snyk VulnBench JS 1.0: Can LLMs Find the Same Bugs Twice?

This paper demonstrates that while agentic LLMs exhibit high stability when reproducing known vulnerabilities, their ability to discover new issues is highly inconsistent, suggesting that LLM-based security reviews should complement rather than replace deterministic static application security testing (SAST).

Original authors: Liran Tal, Johannes Kloos, Arsenii Rudich, Stephen Thoemmes, Manoj Nair

Published 2026-06-16
📖 4 min read☕ Coffee break read

Original authors: Liran Tal, Johannes Kloos, Arsenii Rudich, Stephen Thoemmes, Manoj Nair

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 have a very strict, rule-following security guard (let's call him SAST) and a brilliant, creative, but sometimes distracted detective (let's call her LLM). Both are hired to inspect the same small JavaScript building for hidden traps (vulnerabilities).

The paper "Snyk VulnBench JS 1.0" asks a simple but crucial question: If you send both of them to inspect the exact same building five times in a row, will they give you the exact same report every time?

Here is what they found, broken down into everyday concepts:

1. The Strict Guard vs. The Creative Detective

  • The Strict Guard (SAST): This tool is like a robot with a checklist. If the code hasn't changed, the robot gives the exact same report every single time. It never gets tired, never gets distracted, and never misses the same thing twice. In this study, it was 100% consistent.
  • The Creative Detective (LLM): This is an AI that can "think" and reason. It's great at spotting tricky, weird traps that a robot might miss. However, it's like a human: sometimes it's sharp, sometimes it's tired, and sometimes it sees things that aren't actually there.

2. The "Five Times" Test

The researchers sent the AI detective to inspect the code five times in a row. Here is what happened:

  • When the AI found a "known" trap: If the AI spotted a trap that the Strict Guard had already identified, it was very reliable. It found that same trap in almost every single run (85% of the time). It was consistent when it agreed with the rules.
  • When the AI found a "new" trap: This is where it got messy. The AI started reporting new, unique traps that the Strict Guard didn't see.
    • The Problem: Nearly half of these "new" reports were one-hit wonders. They appeared in only one of the five runs and then vanished.
    • The Analogy: Imagine the detective says, "I saw a ghost in the hallway!" on Monday. On Tuesday, she says, "No ghost." On Wednesday, she says, "Actually, it was just a coat rack." On Thursday, "Ghost!" again. If you are the building owner, you don't know if you should be scared or if she's just imagining things.

3. The "Noise" Factor

The study found that the AI's "extra" reports were very noisy.

  • The "One-Off" Reports: About 50% of the unique things the AI reported only happened once. If you ran the scan five times, you would get a completely different list of "extra" warnings depending on which run you happened to catch.
  • The Stable Reports: The things the AI and the Strict Guard agreed on were stable. They didn't change.

4. Bigger Doesn't Mean Better

The researchers tried different versions of the AI, including a "super-expensive" and "super-smart" version.

  • The Result: The most expensive, powerful AI did not do the best job. In fact, it was more expensive, used more computer power, and was less consistent than a cheaper, smaller version.
  • The Lesson: Just because you pay more for the "smartest" detective doesn't mean they will give you a more reliable report. Sometimes, the simpler, focused detective is more consistent.

5. Different Strengths, Different Blind Spots

The paper concludes that you shouldn't choose one over the other; you need both.

  • The Strict Guard is amazing at systematically checking every single pipe and wire for leaks (like checking for repeated data flows). It never misses the same leak twice.
  • The Creative Detective is great at spotting complex, weird patterns that look like a trap but might not be on a checklist (like spotting a suspicious-looking SQL injection that the guard missed).
  • The Catch: The detective sometimes misses the obvious, repeated leaks that the guard catches, and sometimes the detective gets confused by fake traps.

The Bottom Line

If you rely only on the AI detective, you might get a different security report every time you check, and you'll have to spend a lot of time figuring out which of its "ghosts" are real and which are just coat racks.

If you rely only on the Strict Guard, you might miss the tricky, creative traps.

The Best Strategy: Use the Strict Guard to catch the obvious, repeated leaks (because it never changes its mind), and use the Creative Detective to find the tricky, unusual stuff, but be prepared to double-check its "extra" findings because they might be flukes. They work best when they help each other, not when they try to replace each other.

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 →