Curated AI coding rules cut code security risk more than model choice
Secure Code Warrior, a company that sells AI governance and secure-coding training, released the second wave of its AI Trust Index on 17 November. It tested more than 30 models from OpenAI, Anthropic, Google, Alibaba, Mistral and others, building more than 15,000 apps and 41.3 million lines of code. This time the models ran inside a harness[1], the setup of prompts, rules and tools that developers use day to day. The models produced between 0.24 and 3.66 vulnerabilities per 1,000 lines of code, a 15-fold gap between the best and worst performers.
Vague security instructions made little difference, while curated rule sets cut measured risk by up to 70%. On the lower-risk half of models, curated rules cut risk by 54% on average, and on the higher-risk half by 34%. Rules, system prompts[2] and harness configuration sit with the team and can be changed without a procurement cycle.
Price did not predict safety. With no rules applied, GPT 6 Luna had a mean risk score of 19.4 at $0.10 a run, while Claude Opus 5.5 scored 43.6 at $8.17 a run. Fifteen different models ranked first, or tied for first, in at least one of the 11 frameworks tested, so the article advises testing models on your own stack. It also notes that the findings come from the company's own benchmark, so they should be checked against your own codebase.
Read the original leaddev.comDiscussion
Sources
-
LeadDev
Your CLAUDE.md shapes code security more than your model choice, according to a 30-model benchmark


