惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
V
V2EX
Jina AI
Jina AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
量子位
L
LangChain Blog
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
腾讯CDC
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss

Forbes - Innovation

Why Do Humans Have Fingerprints? Hint: It’s Not What You Think Booking.com Confirms Data Breach, Reservation PIN Codes Changed Why Major News Sites Are Blocking The Internet Archive’s Wayback Machine iPhone Fold Release Date: New Report Details Frustrating Apple News Comet Tracker: How To See Pan-STARRS And Three Planets On Wednesday NYT Mini Crossword Today: Tuesday, April 14 Hints And Answers Today’s NYT Strands Hints, Spangram, Answers: Tuesday, April 14 (It’s A Little Unclear) Today’s Wordle #1760 Hints And Answer For Tuesday, April 14 Most Of The Microplastics In Urban Air Come From Tires Today’s Wordle #1759 Hints And Answer For Monday, April 13 NYT Mini Crossword Today: Monday, April 13 Hints And Answers NYT Pips Today: Hints, Answers And Walkthrough For Monday, April 13 The YC Chief Who Codes 10,000 Lines A Day Has A Simple Secret Samsung Expands One UI 8.5 Beta To More Galaxy Owners Why You Should Stop Using Your iPhone If It’s On This List Chamath Says Firms That Treat AI As A Strategy Hand Rivals Their Edge 3 Unexpected Habits Of Secure Couples, By A Psychologist The First Lamp That Folds Your Clothes Samsung’s Disappointing Price Update For Galaxy Phone Buyers 3 Subtle Signs Someone Is Falling In Love With You, By A Psychologist Do Mantis Shrimp See More Colors Than Humans? A Biologist Explains NYT Connections Answers Explained For Monday, April 13 (#1,037) NYT Connections Hints Today: Monday, April 13 Clues And Answers (#1,037) LEGO Luigi & Mach 8 (72050) Review: 2026’s Best Set Yet? Marc Andreessen Says AI Productivity Will Trigger A Hiring Boom 3D Printing Is The Ultimate Hack To Reduce Household Spending Apple iPhone Fold: Striking Design Revealed In Leaked Photos Apple Smart Glasses: New Leak Reveals A Major Design Twist To Beat Meta Tested: The AI Coming To The Rivian R2 Quordle Hints Today: Monday, April 13 Clues And Answers
What Happens When AI Trains On Insecure AI-Generated Code?
Anshu Bansal · 2026-06-15 · via Forbes - Innovation

Anshu Bansal is the founder/CEO of CloudDefense AI — a CNAPP that secures both applications and cloud infrastructure.

getty

​As the world of artificial intelligence (AI) evolves, organizations are rapidly adopting the next-generation AI models for faster development. However, a hidden feedback loop is hampering security. Next-gen AI models are training on AI-generated datasets filled with security flaws. As developers are increasingly relying on AI code editors, the public repositories are getting flooded with vulnerable code.

These repositories become the training data for modern LLMs, standardizing all the security flaws. This is referred to as the "Ouroboros Effect," causing AI models to poison themselves. This effect highlights the infinite renewal cycle of learning from the flawed data of previous AI models. Organizations need to break this loop and ensure the new AI-generated code is secure by design.

The Ouroboros Effect: AI Is Consuming Itself​

Ouroboros is represented as a serpent eating its own tail. In AI, this highlights the feedback loop of modern models that learn from previous AI models.

The AI-generated code may be syntactically accurate, but it hides many subtle flaws, such as poor encryption and missing input validation. As it keeps ingesting data from public repositories, the insecure patterns and security flaws are amplified.

The Ouroboros Effect mirrors model collapse, where synthetic data erodes the richness and nuances of human data. It was found that 45% of AI-generated code contains security flaws.​

The Impact Of The Ouroboros Effect

​While the next-gen AI models are shaping the future of application development, it is also having a serious impact on the security posture. Below are just a few examples of what this looks like.

Slopsquatting

This is where AI coding assistants and large language models frequently hallucinate about non-existent libraries to accomplish a task. Attackers monitor the hallucination activity of AI models and create fake packages on the public repositories to allow developers to use them.

Minimal Security Expertise

Nowadays, most junior developers leverage AI code editors for vibe coding, a high-velocity development practice. As they often have minimal experience with security basics, they're more likely to accept AI code suggestions without assessment.

Vulnerability Getting Normalized

A serious side effect of the Ouroboros Effect is that AI models are normalizing various security vulnerabilities. All the flawed code in public repositories teaches next-gen AI, standardizing the errors.

Repeated Vulnerabilities At Scale

As next-gen AI agents continuously learn from other AI models, it usually generates the same vulnerable code for different users. The application may be different, but the vulnerability remains the same throughout. Threat actors can track the identical vulnerable patterns in different apps to exploit them.

Evaporation Of Human Expertise

The reliance on AI agents for writing and explaining code is increasing. As a result, there's a real concern that the critical thinking capabilities of security analysts will erode. When an AI agent considers a function or code secure, the developers in the loop may believe it to be safer.

Breaking The Ouroboros Loop​

Minimizing the impact of the Ouroboros Effect means adopting key security strategies. Here are some examples of the proactive guardrails you can consider.

Maintaining Expert Vetted Datasets

Enterprises should prevent their AI agents from training on publicly available repositories, LLM models and other libraries. Security analysts must maintain clean datasets that are vetted by them and other security experts.

Considering Security First AI

Rather than relying on standard LLMs, organizations should shift to secure Model Context Protocol (MCP) servers. This can help ensure all the issues are fixed in real time before they are committed to the codebase.

Mandating A Zero-Trust Policy

Adopting a zero-trust policy for all AI-generated code and modern security scanning tools in the integrated development environment (IDE) will help to identify vulnerable code before they are accepted by developers. Mandate secure, prompt engineering techniques for every developer.

Ensuring AI Audits

Creating an AI agent that is trained on all security policies and requirements is more necessary than ever. Only then can it be utilized by security analysts to identify and mitigate synthetic vulnerabilities.

Involving Human Expertise

In the vibe coding era, teams must ensure that all the AI-generated code goes through a human security assessment. The internal AI models should be trained on human-generated data. Moreover, the AI-generated code should be tagged in the version control for review.

Key Takeaways​

If the recursive training of next-gen AI models isn't checked, it homogenizes and weakens the AI output. I recommend that organizations implement thorough security scans before committing AI-generated code. Additionally, maintain a clean, siloed dataset for training AI models for internal use, and involve human expertise for AI-generated code evaluation. Minimizing the use of AI models in high-priority security components can also help reduce the risk of propagating repeated vulnerabilities and insecure coding patterns across systems.

Organizations must shift before the flawed code threatens the security posture.​​


Forbes Technology Council is an invitation-only community for world-class CIOs, CTOs and technology executives. Do I qualify?