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

Black Friday 2026 gaming laptop deals: the biggest price cuts from Alienware, Acer, Asus, and more
0TechRadar

Dyson Black Friday deals: save on Airwrap hair stylers, Nurovi vacuums, and HushJet air purifiers
0TechRadar

CFO success with AI starts with a strategy overhaul
0TechRadar

Best Black Friday air fryer deals: save on top-rated Ninja fryers
0TechRadar

UK SMBs are now using more AI than their American counterparts
0TechRadar

Why UK enterprise is struggling to turn AI investment into results
0TechRadar