Download Privacy Needle App

Type to search

Cybersecurity

AI Coding Assistant Hijack Spreads Shai-Hulud Worm Across Repositories

Share

An attacker hijacked an active AI coding assistant session at an unnamed software-as-a-service (SaaS) provider to deploy the Shai-Hulud worm across approximately 100 internal code repositories.

Mandiant reported that the breach began when the AI assistant recommended poisoned software, which was subsequently accepted by a developer. The attacker then leveraged the active session to install an infostealer via a poisoned Python Package Index (PyPI) package and stole GitHub OAuth tokens.

The intrusion resulted in the theft of repository secrets and source code for the company’s products. After the initial compromise, the attacker deployed the self-spreading Shai-Hulud worm across roughly 100 internal repositories. The attacker also poisoned a package within the company’s official namespace, leading to a second infection when another employee pulled the compromised version.

Evolution of AI-Driven Attacks

The incident highlights a shift in threat actor tactics. Mandiant noted that throughout 2025, attackers moved from using generative AI primarily to increase productivity to using large language models (LLMs) as active components in malware and attacks.

The Shai-Hulud malware family has been involved in several recent campaigns. In August, a Keyv-linked npm worm poisoned hundreds of packages and planted hooks for developer tools, including Claude Code and Visual Studio Code. A separate Shai-Hulud variant was also found scanning 469 locations for credentials across CI/CD tools, cloud configurations, and AI tool files.

Mitigating Risks in AI-Assisted Development

To defend against similar supply chain and session hijacking risks, Mandiant recommends three key controls for organisations using AI-assisted development:

  • Verify dependencies: Check all AI-recommended third-party dependencies against cryptographic checksums and approved allowlists.
  • Isolate secrets: Keep raw API keys, long-lived OAuth tokens, and other sensitive secrets out of the direct reach of AI extensions.
  • Control traffic: Route all dependency traffic through controlled internal repositories to prevent direct pulls from public registries.
Watch Our Latest Video
Stay ahead with expert insights on privacy, cybersecurity, artificial intelligence, data protection and compliance.
Privacy Needle AI | AI DPO Assistant & NDPA Compliance Software
Published: November 2, 2026
Daily Privacy News
Cybersecurity Updates
Data Protection Tips
GDPR & NDPA Explained
Tags:
Ikeh James Certified Data Protection Officer (CDPO) | NDPC-Accredited

Ikeh James Ifeanyichukwu is a Certified Data Protection Officer (CDPO) accredited by the Institute of Information Management (IIM) in collaboration with the Nigeria Data Protection Commission (NDPC). With years of experience supporting organizations in data protection compliance, privacy risk management, and NDPA implementation, he is committed to advancing responsible data governance and building digital trust in Africa and beyond. In addition to his privacy and compliance expertise, James is a Certified IT Expert, Data Analyst, and Web Developer, with proven skills in programming, digital marketing, and cybersecurity awareness. He has a background in Statistics (Yabatech) and has earned multiple certifications in Python, PHP, SEO, Digital Marketing, and Information Security from recognized local and international institutions. James has been recognized for his contributions to technology and data protection, including the Best Employee Award at DKIPPI (2021) and the Outstanding Student Award at GIZ/LSETF Skills & Mentorship Training (2019). At Privacy Needle, he leverages his diverse expertise to break down complex data privacy and cybersecurity issues into clear, actionable insights for businesses, professionals, and individuals navigating today’s digital world.

  • 1

You Might also Like

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Rating

This site uses Akismet to reduce spam. Learn how your comment data is processed.