Attacker Compromises AI Coding Assistant, Spreads Shai-Hulud Worm to 100 Repositories

Published:

Cyber Warriors Conclave — nine editions, one cyber safe nation

Mandiant has reported that an attacker hijacked an active AI coding-assistant session at an unnamed software-as-a-service provider, subsequently spreading the Shai-Hulud worm across approximately 100 internal code repositories. This incident highlights the vulnerabilities associated with AI-assisted development tools.

According to Mandiant’s September 2026 report, the attacker initially poisoned software recommended by the AI assistant, which was then accepted by the developer. This led to the theft of repository secrets and source code for the company’s products. The report does not specify when the intrusion occurred or how the attacker gained control of the coding-assistant session.

Details of the Attack

After the compromised recommendation was accepted, the attacker utilized the developer’s active session to install an infostealer via a poisoned PyPI package. Additionally, GitHub OAuth tokens were stolen, allowing the attacker to deploy the self-spreading Shai-Hulud worm across the internal repositories.

The attacker also poisoned a package within the company’s official namespace, leading to a second infection when another employee inadvertently pulled the compromised version. Mandiant has previously documented the use of AI in cyberattacks, noting a shift in 2025 from using generative AI for efficiency to employing large language models in active attacks.

Recommendations for Protection

To mitigate risks associated with AI-assisted development, Mandiant recommends implementing the following controls:

  • Verify AI-recommended third-party dependencies against cryptographic checksums and approved allowlists.
  • Ensure that raw API keys, long-lived OAuth tokens, and other sensitive information are not easily accessible to extensions.
  • Route dependency traffic through controlled internal repositories.

Recent attacks linked to the Shai-Hulud family have also targeted developer tools and credentials. In August, a related Keyv-linked npm worm compromised hundreds of packages, while a later analysis revealed a Shai-Hulud variant scanning for credentials across various developer systems and tools.

These incidents underscore the evolving threat landscape and the need for robust security measures in software development environments.

Follow Cyber Warriors Middle East for further global cybersecurity developments.

Cyber Warriors Conclave Chapter X — Beyond the Ballroom

Related articles

Recent articles

NASA’s subscale flight lab supports advanced aerospace research and testing

NASA's Dale Reed Subscale Flight Research Laboratory at the Armstrong Flight Research Center in Edwards, California, is advancing aerospace research through innovative testing methods....

Flock’s Manufacturing Origins Under Scrutiny Amid Growing Backlash Against Surveillance Technology

Flock, a company known for its license plate cameras, is facing scrutiny over the origins of its manufacturing amid a growing backlash against surveillance...

AMOS Stealer Malware Targets macOS Users Through Malicious Toolkit Installations

Executive Summary Recent research has highlighted the emergence of AMOS stealer malware, which specifically targets macOS systems. This malware, first advertised on Telegram in April...

Infoblox Research Reveals 1.7 Million Chinese Casino Domains Linked to Cybercrime and Fraud

Infoblox Threat Intel has uncovered a staggering 1.7 million Chinese-language casino domains that are linked to various forms of cybercrime, including illegal gambling and...