N-Day-Bench – Can LLMs find real vulnerabilities in real codebases?
TL;DR Highlight
On 47 post-cutoff real vulnerabilities, GPT-5.4 led five LLMs with an 83.93 average score.
Who Should Read
Backend or security developers who want to add LLM agents to code security review and compare models on vulnerability discovery.
Core Mechanics
- Tests use vulnerabilities disclosed after cutoff
- N-Day-Bench asks models to find real N-Days disclosed after their knowledge cutoff.
- All models get the same harness and context, leaving no room for reward hacking, per the site.
- Cases and models refresh monthly
- Test cases are updated every month.
- Models are upgraded to their latest versions and checkpoints.
- Latest run accepted 47 of 1000 advisories
- 1000 advisories were scanned.
- 47 were accepted and 953 skipped.
- GPT-5.4 has the top average score
- openai/gpt-5.4 scored 83.93, z-ai/glm-5.1 80.13, and anthropic/claude-opus-4.6 79.95.
- moonshotai/kimi-k2.5 scored 77.18 and google/gemini-3.1-pro-preview 68.50.
- All traces are public
- Anyone can browse the run traces.
- Average findings per model range from 0.91 to 1.23.
Community Reactions
- Opinion that judging only sees the final summary
- One commenter said GPT 5.4 failed to find the specified file, gave up after 9 steps, and was marked missed.
- They said Claude Opus 4.6 also never found the file, used all 24 steps, hallucinated a report, and still got excellent.
- They argued the judge must review every step, not just the final output.
- Doubts about LLM judging
- A commenter criticized that the Judge LLM produces the whole score in one pass with no server-side recomputation of weights.
- They said calling this a conscious trade-off sounded like an LLM giving a bogus reason.
- Another asked whether results are manually validated.
- Requests to widen the evaluation
- One commenter suggested adding cases with no vulnerabilities to measure false positives.
- Several asked for open models such as Gemma, GPT-OSS, and Qwen.
- A provider serving Qwen3.5 122B A10B offered about a month of free API access.
- Calls to open-source the harness
- A commenter said public traces are not enough and the whole harness should be open source to be trusted.
- Another asked how results published after the vulnerability are filtered if internet search is allowed.
How to Apply
- Run one of your own past bugs through a model
- Today, give a model a file with a past CVE plus only sink hints and ask for a vulnerability report.
- Use the prompt below and never include the patch.
- Judge results by reading the trace
- Before trusting an automatic score, check step by step whether the model actually found the file.
- If it never found the file but still wrote a report, label it a hallucination.
- Mix in safe samples to measure false positives
- Add safe code to your evaluation set.
- Track separately how often models report vulnerabilities in it.
- Compare candidate models in the same harness
- Run models with the same tools, step limit (e.g. 24 steps), and inputs.
- Treat the original ranking as a reference and recheck on your own code.
Try It
# Paste into Claude or ChatGPT (a simplified version of the N-Day-Bench setup: sink hints only, no patch)
You are a security code reviewer. Find vulnerabilities using only the code and sink hints below. Do not use any patch or outside information.
[Code]
{{code}}
[Sink hints]
{{dangerous function or location}}
Rules:
1. Trace the call path from source to sink step by step.
2. Write only what the code supports. If you cannot find a file or function, say 'not found'.
3. Answer in this format.
- Vulnerability type:
- Location (file:line):
- Source→sink path:
- Exploitability and impact:
- Quoted evidence code:
- Confidence (low/medium/high) and possible overclaimingTerminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles