Research ·

Code that AI agents vibe-code is secure in only 16–25% of tasks

What happened

Alibaba released the Last Secure Code Benchmark: 450 tasks across seven languages, built from 150 real-world vulnerabilities. The agent gets only a description of the functionality, with no mention of security. The best model, Claude Fable 5, produced code that both works and is secure in just 25.1% of tasks. The other five agents tested scored between 16.4% and 24.7%, even though 73.6–91.3% of their solutions were functionally correct.

Why it matters

If you build apps with Claude Code, "it works" doesn't mean "it's secure." Explicitly ask for authorization checks, input validation and Supabase RLS (row-level access rules for tables) in your prompt or project rules, then run a separate security review.

Sources

More from this brief