---
title: "Comment by Ahmet Özel on \"AI-Generated Code Security Study 2026: Tests Pass, Exploits Still Work\" | Hashnode"
description: "That CASE-Bench gap—74.0% passing functional tests while only 18.4% resisted a working exploit—quantifies a blind spot every team using coding agents needs to a"
url: "https://hashnode.com/posts/ai-generated-code-security-study-2026-tests-pass-exploits-still-work/6b06461bc20dc5c2d24a992b/comment/6b066f24226caede0feda3d8"
---

[Discussion](https://hashnode.com/posts/ai-generated-code-security-study-2026-tests-pass-exploits-still-work/6b06461bc20dc5c2d24a992b)

Comment [AI-Generated Code Security Study 2026: Tests Pass, Exploits Still Work](https://hashnode.com/posts/ai-generated-code-security-study-2026-tests-pass-exploits-still-work/6b06461bc20dc5c2d24a992b)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 25](https://hashnode.com/posts/ai-generated-code-security-study-2026-tests-pass-exploits-still-work/6b06461bc20dc5c2d24a992b/comment/6b066f24226caede0feda3d8)

That CASE-Bench gap—74.0% passing functional tests while only 18.4% resisted a working exploit—quantifies a blind spot every team using coding agents needs to account for. Functional test suites verify the happy path, and since 71% of agent search queries targeted functional code while only 9% looked for security concepts, existing validators and access policies never even entered context in most runs.

Seeing secure output nearly double from 12.6% to 24.8% when annotated safeguards were supplied in context—versus barely moving to 13.9% with a generic security reminder—shows that automated context injection of auth and validation modules beats prompt admonitions.
