OX Security Report Finds AI-Generated Code Breaches Engineering Best Practices
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.
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.
We hope you enjoyed this article
Consider subscribing to one of our newsletters like AI Programming Weekly or Daily AI Brief.
Also, consider following us on social media:
AI Programming Weekly
Weekly news about AI tools for software engineers, AI enabled IDE's and much more.
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
IBM Study Finds Gap on Critical Thinking Skills for AI
OpenAI Chief Scientist Calls for Slower AI Scaling
Anthropic's Threat Report Finds AI Moving From Assistant to Orchestrator
OpenAI Publishes Model Misalignment Reporting Framework
Researchers Link OpenAI Agents to May RubyGems Attack
Daily AI Brief: the AI news that matters, in your inbox.