Secure Node.js Developer

Last benchmarked 110 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
107
Characters
6,314
Tokens (est)
~1,579

Description

Generate secure-by-default Node.js and TypeScript code preventing prototype pollution, command injection, unsafe deserialization, and ReDoS via Zod, argon2id, and child_process argv arrays. Use when writing Node.js modules or hardening npm supply chain.

Best Benchmark Result

GPT-4.1 mini
Vulnerability Reduction
32%
Baseline Vulnerability Rate
55.3%

182 of 329 cases vulnerable

Prompted Vulnerability Rate
37.7%

124 of 329 cases vulnerable

Test Case Outcomes

Fixed
67

Vulnerable → Secure

Regressed
9

Secure → Vulnerable

Net Fixed
58

Overall improvement

Run 2026-05-11 · 329 cases · CodeShield: 1.0.1 · CyberSecEval Fixtures: e705106

Benchmark Run History

DateModelMethodBaselinevuln ratePromptedvuln rateReductionNet FixedTokens (I/O)
2026-05-14DeepSeek V4 FlashEvaluator53.9% (166/308)40.9% (126/308)24%+40532k/579k
2026-05-11Claude 3.5 HaikuEvaluator52.2% (187/358)46.4% (166/358)11%+21706k/158k
2026-05-11GPT-4.1 miniEvaluator55.3% (182/329)37.7% (124/329)32%+58555k/131k
2026-05-11Llama 3.3 70BEvaluator50.5% (189/374)49.5% (185/374)2%+4632k/115k
2026-05-05Gemini 2.0 FlashEvaluator59.4% (177/298)58.1% (173/298)2%+4531k/190k