OX Security Report Finds AI-Generated Code Breaches Engineering Best Practices
OX Security has released research showing that AI-generated code violates key software engineering principles and undermines security, based on an analysis of over 300 open-source repositories.
23 Oct 2025
New research from OX Security reveals that AI-generated code often breaches core software engineering principles and weakens overall security, announced in a press release. The company analyzed more than 300 open-source repositories and identified ten recurring anti-patterns that contradict established best practices.
AI Programming Weekly covers stories like this, every Tuesday. Free.
The report describes the "Army of Juniors" effect, where AI coding tools produce code similar to that of competent but inexperienced developers—functional yet lacking architectural and security awareness. While the study found that AI-generated code does not contain more vulnerabilities per line than human-written code, it highlighted widespread structural and design flaws.
Among the ten critical anti-patterns identified are excessive commenting, over-specification, avoidance of refactoring, and the recurrence of previously fixed bugs. Some patterns, such as unnecessary comments and rigid adherence to coding conventions, appeared in up to 100% of the analyzed AI-generated code.
OX Security recommends that organizations adapt their workflows by embedding security instructions directly into AI coding processes and shifting human focus toward architecture and oversight. The report also calls for abandoning traditional code review as the primary security mechanism, arguing that it cannot scale to match the speed of AI-generated development.
Where this comes from
PR Newswire OX Report: AI-Generated Code Violates Engineering Best Practices, Undermining Software Security at ScaleIn this story
Industry analysis
2025 Global Business Services Agenda: Gen AI Takes Center Stage
This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.
Read moreYou may also like
Mend.io survey: half of security teams say their backlogs grew as AI writes more code 3 Dec 2026 Sonar survey: AI now writes 65% of committed code, and 76% of developers can't verify it fast enough 12 Nov 2026 ENISA: frontier AI models found 220 potential security flaws in EU institutions' open-source code 13 Nov 2026 UK AI Security Institute publishes primer on AI being used to build AI 30 Nov 2026 GAO says AI magnifies cyberattacks and sets out 16 policy options for AI in cyber defence 20 Nov 2026 81% of software teams merged AI code they did not fully understand, TestMu survey finds 13 Nov 2026Daily AI Brief: the AI news that matters, in your inbox.