SecurityBrief Asia - Technology news for CISOs & cybersecurity decision-makers
Asia
The hidden risks of AI-generated code that organisations are only beginning to understand

The hidden risks of AI-generated code that organisations are only beginning to understand

Thu, 26th Nov 2026 (Today)
Carl Andrews
CARL ANDREWS CEO Original Software

AI-assisted development has gone from experiment to standard practice faster than expected. Teams use it to write functions, scaffold applications, refactor old code and automate repetitive tasks. The productivity gains explain the pace of adoption.

What gets less attention is what organisations take on in return. A growing share of the code running in business-critical systems was not written by someone who can explain its logic or account for its edge cases. It was generated, approved and shipped faster than anyone could properly check it. That gap between production speed and validation is where most of the risk sits.

New risks, familiar causes

Much of the risk in AI-generated code isn't unfamiliar. Logic errors, insecure patterns and mismatched dependencies have always been part of software development. What's changed is the speed at which they appear, and that AI output often looks clean and confident even when it's wrong. Code that reads well can pass review without anyone catching the underlying problem.

There's also a maintainability question that doesn't get raised often enough. Code that works today must be understood and supported by a human team months or years from now, and AI-generated code doesn't always lend itself to that. Without a rationale for how something was built, teams inherit code they can patch but not necessarily improve.

Amazon's experience between December 2025 and March 2026 illustrates where this can lead. The retailer suffered at least four Sev-1 production incidents in that window, including one outage estimated to have cost 6.3 million lost orders. Internal documents reportedly linked the pattern to Gen-AI-assisted changes, while the Company's public statements attributed the incidents to user error rather than AI itself. Both can be true at once: AI-generated code doesn't remove human responsibility; it just makes it harder to locate.

Who is accountable for code no one wrote

In traditional development, responsibility is straightforward: a developer writes the code, a reviewer checks it, a team owns how it behaves in production. That chain gets harder to trace when code originates from an AI tool. A developer accepting a suggestion is not the same as a developer writing and fully reasoning through that code themselves. When something goes wrong, it is not always clear whether responsibility sits with the person who approved the suggestion, the team that deployed it, or the process that allowed it through.

Part of the problem is visibility. Many organisations don't have a reliable way of knowing how much of their codebase is AI-generated, or whether it has been tested to the same standard as everything else. Without that visibility, accountability is almost impossible to enforce.

Testing code you didn't write

Slowing down AI adoption isn't a realistic option, and the productivity case for using it is too strong. A more useful approach is to test AI-generated code with the same rigour applied to human-written code, if not more, because the usual signals reviewers rely on, such as a familiar style or a documented rationale, are often missing.

That rigour is harder to maintain than it sounds. In our own research among enterprise IT leaders, 75% said software updates are now happening faster than their teams can test them. Testing is already losing the race against delivery speed before AI is even factored in, which means AI-assisted development is widening a gap that was already there rather than creating an entirely new one.

Putting governance in place early

Before adoption increases further, leadership teams should have clear answers to a few basic questions. How much of the current codebase is AI-generated? Is there a defined policy for when AI-generated code needs additional review, and who is responsible for that decision? And, honestly, how confident is the organisation that its current testing would catch a critical issue before it reached production? In the same research, only 48% of IT leaders said they were fully confident it would. Setting governance now, including clear usage policies, minimum testing standards and defined accountability, is considerably easier than trying to introduce it after AI-generated code is already embedded across critical systems. 

The organisations that benefit most from AI won't necessarily be the ones using it most aggressively. They will be the ones that matched its speed with enough discipline to know exactly what they're deploying.