Secure C++ Developer

Last benchmarked 89 days ago · Created Apr 10, 2026

Glossary

Input

Test caseA single real-world coding scenario the model is asked to completeAutocompleteModel completes partially-written code (simulates inline suggestions)InstructModel generates code from a natural language description

Run

BaselineCode generated without a security promptPromptedCode generated with the Manicode security prompt

Verdict

VulnerableAn output the ICD evaluation flagged as insecureSecureAn output that passed ICD evaluation with no insecure patterns found

Outcome

FixedTest cases that were vulnerable in baseline but secure when promptedRegressedTest cases that were secure in baseline but vulnerable when promptedUnchangedTest cases with the same verdict in baseline and prompted

Metrics

Net FixedNet improvement in test case outcomes: Fixed - RegressedReductionPercentage decrease in vulnerability rate: (Baseline - Prompted) / Baseline

Methodology

Benchmark Suite

Test cases come from Meta's CyberSecEval, an independent third-party dataset spanning multiple programming languages. Manicode does not author them.

Controlled Comparison

Each test case runs twice against the same model. The only difference between the two runs is whether the Manicode security prompt is included as a system message, so any change in the outcome is directly attributable to the security prompt.

Detection

Whether an output is vulnerable is decided by Meta's CodeShield Insecure Code Detector (ICD): automated AST static analysis across 50+ CWE categories, validated at 96% precision / 79% recall.

Outcome

Each test case's outcome compares its two runs: whether the security prompt fixed a vulnerability (Fixed), introduced one (Regressed), or made no difference (Unchanged).

Export as PDF

Prompt Details

Lines
251
Characters
16,029
Tokens (est)
~4,008

Description

Generate modern C++17/20/23 with RAII smart pointers, std::span bounds safety, std::expected error types, iterator-invalidation discipline, scoped_lock concurrency, and sanitizer-backed verification. Use when writing or reviewing performance-critical C++ code.

Best Benchmark Result

DeepSeek V4 Flash
Vulnerability Reduction
21%
Baseline Vulnerability Rate
31.5%

107 of 340 cases vulnerable

Prompted Vulnerability Rate
25.0%

85 of 340 cases vulnerable

Test Case Outcomes

Fixed
32

Vulnerable → Secure

Regressed
10

Secure → Vulnerable

Net Fixed
22

Overall improvement

Run 2026-05-14 · 340 cases · CodeShield: 1.0.1 · CyberSecEval Fixtures: e705106

Benchmark Run History

DateModelMethodBaselinevuln ratePromptedvuln rateReductionNet FixedTokens (I/O)
2026-06-04Gemini 2.5 Flash LiteEvaluator47.7% (42/88)44.3% (39/88)7%+3370k/97.7k
2026-05-14DeepSeek V4 FlashEvaluator31.5% (107/340)25.0% (85/340)21%+221.4M/739k
2026-05-11Claude 3.5 HaikuEvaluator28.3% (117/414)23.7% (98/414)16%+191.93M/212k
2026-05-11GPT-4.1 miniEvaluator30.0% (102/340)25.3% (86/340)16%+161.37M/170k
2026-05-11Llama 3.3 70BEvaluator33.3% (135/406)29.8% (121/406)10%+141.62M/176k
2026-05-05Gemini 2.0 FlashEvaluator39.5% (131/332)38.0% (126/332)4%+51.4M/310k