TL;DR: AI is accelerating code volume, supply chain exposure, and secret leakage faster than human review capacity can scale, according to LEGIT Security, while Gartner warns that prompt injection and vibe coding are already creating measurable appsec exposure. The practical issue is not AI novelty but governable control loss across code generation, model inputs, and third-party dependencies.
Editorial analysis by NHI Mgmt Group, based on content published by LEGIT Security: “The Risks of AI-Generated Software Development”.
By the numbers:
- Through 2029, over 50% of successful cybersecurity attacks against AI agents will exploit access control issues, using direct or indirect prompt injection as an attack vector.
Key questions
Q: What breaks when AI-generated code is reviewed without security gates?
A: What breaks is the assumption that a clean-looking diff is a safe diff.
Q: Why does prompt injection create risk in AI tools that inspect source code or malware samples?
A: Prompt injection is risky because the model may follow attacker-written instructions inside the sample instead of analysing the sample as untrusted data.
Q: What do teams get wrong about securing AI coding assistants?
A: Teams often focus on code output and ignore the agent boundary, where file reads, tool outputs, and external content shape the next action.
Practitioner guidance
- Constrain AI code generation to controlled environments Keep AI-assisted coding inside sandboxes or non-production pipelines until you can verify outputs, dependencies, and execution boundaries.
- Inventory the identities used by coding assistants Map every token, service account, API key, and delegated credential used by assistants and coding agents.
- Block untrusted context from privileged actions Separate prompt ingestion, retrieval sources, and execution permissions so an assistant cannot turn attacker-controlled content into tool use.
Bottom line: AI-generated code is widening application security exposure because review capacity, provenance checks, and dependency validation do not scale at the same speed as code generation.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
AI-generated code is now an application governance problem, not only a developer productivity problem. The central issue is that code creation is outpacing the review, validation, and dependency controls built for human-paced change. That creates a control gap across SDLC, AppSec, and identity governance, because code production is now intertwined with delegated machine activity. Practitioners should treat AI-assisted development as a governed software supply chain, not as a pure tooling choice.
A few things that frame the scale:
- Breaches involving third parties rose to 48% of all breaches, a 60% increase on the previous year, according to Verizon's 2026 Data Breach Investigations Report.
A question worth separating out:
Q: Should organisations allow AI-generated code into production without extra controls?
A: No. Production use should depend on sandboxing, dependency validation, secret scanning, and execution boundaries that are specific to AI-assisted workflows. Without those controls, AI-generated code can amplify supply-chain exposure and introduce vulnerabilities faster than human review can reliably catch them.
👉 Read our full editorial: AI-generated code expands appsec risk faster than human review