Because language models generate code by reproducing the most common programming idioms, forty percent of Copilot’s output contains common security vulnerabilities.
Evidence
There’s plenty of evidence to show that the stuff that text generation machines spit out is not worth reading—or compiling, in the case of the code generation tools like GitHub Copilot. An initial security audit of that tool has shown that, because of the way language models are trained, generated code is uniquely vulnerable to common cybersecurity attacks. Researchers found in testing that 40 percent of Copilot-generated computer programs were vulnerable to some of the most common cybersecurity weaknesses. This is because code generation is made possible due to the repetition of the most common programming idioms in the training data. Those are not the most secure. — Emily M. Bender, Alex Hanna, The AI Con- How to Fight Big Tech’s…, 155
Categorization
- SEED: Angle: ‘Your AI coding assistant is teaching you to write insecure code’ — the training objective (reproduce common idioms) is structurally opposed to the security objective (avoid widespread but dangerous patterns).
- XREF: Connects to the reader’s interest in AI as a con: the tool sells itself as productivity but silently offloads risk onto users.
- factual_claims: It provides a specific audited statistic (40 percent of generated programs vulnerable) plus the mechanism that produces it.