TL;DR: 31.4% of AI-generated submissions in a coding tournament still contained vulnerabilities even when security-focused participants were trying to win, according to Symbiotic Security research, with path traversal making up 56.5% of flaws and zero-vulnerability code sometimes losing on functionality. The data shows why secure generation needs scanning in the loop, not just better prompting.
Editorial analysis by NHI Mgmt Group, based on content published by Symbiotic Security: “We Ran The Worlds 1st Secure Coding Tournament. Here's What the AI Actually Produced.”.
By the numbers:
- 31.4% of all submissions contained at least one vulnerability.
- 53 players competed across 6 rounds and 102 evaluated submissions.
- Path traversal accounted for 56.5% of all vulnerabilities found.
Key questions
Q: What should teams do first when AI-generated code affects security tooling?
A: Start by treating the code as an untrusted change until a human reviewer confirms the control objective, the test coverage covers failure cases and the release gate requires explicit approval.
Q: Why do AI coding tools still create security risk even when developers use security-aware prompts?
A: AI coding tools can still produce insecure output because prompt discipline does not guarantee secure implementation.
Q: How do security teams know whether generated code is actually safe to ship?
A: They should look for policy compliance before commit, not just scan results after commit.
Practitioner guidance
- Implement generation-time static analysis for coding agents Scan AI-generated code before it is committed so insecure patterns are blocked while the agent is still producing output, not after a pull request is opened.
- Add security policy checks to prompt and response workflows Define forbidden patterns for shell execution, path traversal, unsafe file access, and unauthorised network calls, then reject outputs that violate those rules.
- Separate security scoring from functional acceptance Require code to meet both secure coding thresholds and problem-completion thresholds so a safe but incomplete answer cannot silently replace a complete but vulnerable one.
Bottom line: AI code generation still emits exploitable patterns even when users are trying to write secure code, which makes downstream review alone an insufficient safeguard.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
AI code generation creates a new control point problem, not just a code quality problem. The article shows that vulnerabilities can appear even when users are trying to be secure and the generated code is being scanned automatically. That means the governance question shifts from 'can reviewers catch it later' to 'what is blocking unsafe output at generation time.' For teams using coding agents, the security model has to move upstream into the creation loop.
A few things that frame the scale:
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap, according to the State of Secrets in AppSec.
A question worth separating out:
A: The agent becomes a non-human identity with a direct path into code and infrastructure decisions. If its permissions are broad, any vulnerability it generates can carry privileged access paths, making the blast radius much larger than a normal code defect would create.
👉 Read our full editorial: Secure AI code generation still needs runtime scanning and guardrails