AI & ML
The Illusion of Safety: Multi-Tier Verification of AI vs. Human C++ Code
arXiv cs.SE0 views
arXiv:2607.00107v4 Announce Type: replace Abstract: As large language models (LLMs) are increasingly deployed for systems programming, their ability to generate secure C++ code remains a critical concern. Yet most security evaluations of AI-generated code rely on static analysis alone, which flags warnings without confirming runtime violations or reasoning about untested paths. This study investigates whether C++ code generated by open-weight LLMs is measurably less safe than human-written code, and whether common verification tools agree on the risk. We introduce VULBENCH-CPP, a benchmark of 8,918 C++ programs from three open-weight LLMs (Gemma 3 27B IT, LLaMA 3.3 70B Instruct, Qwen 2.5 Coder 32B Instruct) and human authors across 851 competitive-programming tasks. Each program is annotated by four verification tiers: functional testing, static analysis (cppcheck, clang-tidy), dynamic analysis (ASan/UBSan), and bounded model checking (ESBMC). Under static analysis the two look equally safe, but this is misleading. Accounting for the correlation among solutions to a shared task, we find that code from these models is roughly twice as likely as human code to trigger a confirmed runtime violation, even after controlling for code length and test pass-rate. Furthermore, bounded model checking disagrees with the sanitizers in direc- tion, flagging human code more often among the programs it can decide. The overall results suggest that different verification tiers flag different programs, and no single tier is sufficient. We release the benchmark, harness, and annotated results
Source:https://arxiv.org/abs/2607.00107PreviousAgentic Model CheckingNextAiFlow: Construction-to-Retirement Conformance for Versioned LLM Services
Related posts
Moat: Your OpenRouter Replacement
0Hacker News
People Think AI Just Agreed With Me. In Reality, I Spent Six Months Arguing With It Until We Had to Settle It in Lean 4.
0dev.to Watercooler
Invasão à 1Password expõe dados cadastrais, mas não cofres de senhas
0dev.to GitHub
OpenCodeReview: Revisão de Código Eficiente com IA
0dev.to GitHub
Data Operations Career Path: Skills, Real Day-to-Day Work, and How to Build a Proof-of-Work Portfolio
0dev.to Data
Our Cost Price Workbook Gave Every Product Missing From a Supplier's List the Price of the Product Above It
0dev.to Data