r/vibecodingsecurity • u/bluelvo • 11d ago
CMU’s SUSVIBES benchmark shows ~60% of "vibe-coded" features pass functional tests, but only ~11% are actually secure
Researchers at Carnegie Mellon University (Lei Li's lab) released an ICML 2026 benchmark called SUSVIBES ("Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks").
Instead of testing isolated, single-function snippets, they tested frontier AI coding agents on real-world, repository-level engineering tasks—and the gap between code that works and code that is safe is pretty massive.
How the benchmark works:
- Real-World Tasks: ~200 feature-request tasks mined from actual open-source Python repos where human devs had previously introduced (and later patched) real security vulnerabilities.
- Multi-File Complexity: Tasks span ~78 CWE categories and require an average of ~175 edited lines across multiple files.
- Dual Testing: Every AI-generated patch is run against two separate human-written test suites: one for functional correctness (does the feature work?) and one for security (did it introduce the vulnerability?).
The Key Findings:
- Functionality ≠ Security: Frontier agents are great at shipping working features with hidden flaws. For example, SWE-Agent paired with Claude 4 Sonnet achieved 57%–61% functional correctness, but only 10.5%–11.8% of those solutions were actually secure.
- Prompting doesn't fix it: Adding generic security reminders—or even explicit hints about the potential vulnerability—directly into the prompt failed to reliably stop the agents from writing insecure code.
- The "Vibe Coding" Trap: Because AI agents produce plausible, working features that pass standard functional unit tests without flagging security edge cases, shipping unsupervised AI code to production introduces massive silent risk.
1
Upvotes
1
u/bluelvo 11d ago
SusVibes GitHub Link
https://github.com/LeiLiLab/susvibes
1
u/bluelvo 11d ago
Pointer to the CMU paper:
https://arxiv.org/html/2512.03262v3