Header image

AI coding agent deletes 48,000 files due to mishandled Windows junctions

An AI coding agent has caused a catastrophic incident, deleting approximately 48,000 live files and corrupting a Git object database. The incident highlights the risks of using AI tools on production code without proper safeguards, according to Tech Radar.

The AI agent was tasked with repairing software used for analyzing historical stock-options data. While most tasks were completed successfully, one job involving the rebuilding of a testing environment went awry. The AI failed to recognize Windows junctions, which are pointers to separate file locations, as mere links. Instead, it treated them as actual folders and followed them into the live working files, leading to the deletion of around 48,000 unintended files in under two minutes. 

The incident also severely damaged the project's Git repository, rendering file history unrecoverable. The developer community reacted strongly on Reddit, criticizing the lack of remote backups and emphasizing the importance of using version control systems like GitHub before allowing AI to interact with production code.

Source: Tech Radar

Kelley Damore
Kelley Damore Chief Content Officer CyberRisk Alliance

Kelley Damore is Chief Content Officer at CyberRisk Alliance, where she leads content strategy across the company’s digital brands, research, communities and live events serving CISOs and security practitioners. At CyberRisk Alliance, she is focused on delivering 365-day engagement, trusted journalism and actionable insights to help security leaders navigate an increasingly complex threat landscape.

Kelley Damore
Kelley Damore Chief Content Officer CyberRisk Alliance

Kelley Damore is Chief Content Officer at CyberRisk Alliance, where she leads content strategy across the company’s digital brands, research, communities and live events serving CISOs and security practitioners. At CyberRisk Alliance, she is focused on delivering 365-day engagement, trusted journalism and actionable insights to help security leaders navigate an increasingly complex threat landscape.

Upcoming Events

No events found.