---
title: "Comment by Linkjob AI on \"AI-Generated Code Security Study 2026: Tests Pass, Exploits Still Work\" | Hashnode"
description: "The detail that stuck with me is that agents only surfaced the existing safeguard in roughly a third of runs, and that just putting it in context nearly doubled"
url: "https://hashnode.com/posts/ai-generated-code-security-study-2026-tests-pass-exploits-still-work/6b06461bc20dc5c2d24a992b/comment/6b0799f63376efb70dc6266d"
---

[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)

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

The detail that stuck with me is that agents only surfaced the existing safeguard in roughly a third of runs, and that just putting it in context nearly doubled secure output. It makes me think a short "security map" in the repo, pointing to where validation and access checks live, might do more than any prompt reminder. I'm curious whether the authors saw a difference between tasks where the safeguard sat in the same module versus somewhere far away in the codebase.
