The images in this article were generated with artificial intelligence. How we publish
Mandiant describes an attack where a malicious actor took control of an active session of an IA-based programming assistant hosted by a software provider as a service, and from that session introduced a malicious package that led to the deployment of the self-transportable worm known as Shai-Hulud in approximately 100 internal code repositories. Done confirmed: The intrusion allowed the theft of repository secrets and the company's product source code, and the initial vector included a recommendation of dependencies by the assistant containing poisoned software and was accepted by a developer.
Mandiant's September 2026 public report does not provide details about exactly when the intrusion occurred or about the concrete technique the attacker used to "kidnap" the assistant's active session. These gaps are important: without knowing whether the take-over was by filtered credentials, stolen tokens, a supplier failure, or a compromised extension, it is not possible to safely rebuild the entire attack chain. Confirmed: After the developer accepted the recommendation, the attacker used the active session to install an infostealer through a Handled PyPI package, and that action allowed GitHub's OAuth tokens to be stolen that facilitated lateral progression and worm expansion.

Technically, what is understood of the case is consistent with a developer-oriented supply chain: a coding wizard suggests a dependency, the developer installs it from its working environment, and the malicious package runs code that exfilters secrets stored on the computer or in the session (e.g., tokens stored in memory, configuration files or credentials in the environment). With these tokens the attacker can clone repositories, create commit or introduce artifacts into the internal ecosystem and, in this case, spread a mechanism of self-replication between repositories. Confirmed: Mandiant documents that the spread of Shai-Hulud was recorded in about 100 repositories and the placement of a committed version in the company's official namespace; a second developer who downloaded that version caused a second wave of infection.
What remains to be confirmed: Mandiant does not publish detailed forensic evidence in the open report on how the ability to control the assistant interface was obtained (for example, if the attacker compromised the developer's account, exploded a supplier's failure, used a malicious extension or intercepted traffic). There is also no public date for the incident, which makes it difficult to correlate logs or alerts with known campaigns. These absences force certain explanations to be treated as plausible assumptions and not as facts.
This case fits a trend that Mandiant had already identified: for 2025 several attackers began to incorporate generative models not only to accelerate tasks, but as an active part of attacks and malware. The firm advises specific controls for IA-assisted development environments: verify cryptographic hashes and alllists of units suggested by attendees; keep out of the reach of extensions and automations long-term tokens and raw keys; and channel unit downloads through internally controlled repositories. These recommendations are practical and technical: applying them reduces injection and exfiltration vectors from development environments.
What this means for development and security equipment: first, programming assistants have become a component of the attack surface. If an assistant (or the supporting chain) can influence which packages are installed in development environments, an attacker controlling the interface can induce malicious facilities with the simple gesture of an accepted "suggestion." Second, tokens and secrets recoverable from developer machines remain the critical asset: stealing OAuth or PATs opens wide doors to repositories and CI / CD. Third, developer-oriented worms (such as the Shai-Hulud family) demonstrate that the goal is not only to sabotage an isolated machine, but to move quickly through dependencies and repositories to maximize access and impact.
Specific and actionable measures which should immediately implement technical and responsible security equipment:
- Validate third party recommendations: do not install packages suggested by assistants without verifying their integrity. Compare signatures and checksums with official sources and restrict facilities to a security approved allowlist.
- Forging use of internal repositories and tested artifacts: configure development tools to solve default dependencies from internal registrations (Artifactory, Nexus, GitHub Package Registry) that act as cache and filter of external content.
- Remove exposure of secrets to extensions: move credentials to secret mechanisms with rotation and temporary access (secret managers, vaults) and prevent extensions or plugins from having direct reading of configuration files with long-term tokens.
- Reduce tokens life and privileges: favour short-term tokens and minimum permits (principle of less privilege). Revocate and rotate tokens detected as potentially exposed; audit OAuth use from PIs and unusual agents.
- Control extension / plug-ins policy and impose corporate approval: limit allowed extensions on IDEs and attendees, apply remote code execution block without revisions and disable unnecessary capabilities (e.g., local command execution from extension).
- Telemetry and detection: monitor package facilities, access to repositories and creation of atypical repositories; alert in case of multiple clones / comms repeated between private repos and mass activity in hooks. Make forensic repository scans for automated changes or persistence vectors.

- Supply chain practices: require signed packages, SLSA or source equivalents for external units and enable CI policies that block unsigned or unverified devices.
For individual developers and technical managers, the official platform security and unit management guides are useful resources: for example, PyPI security documentation and GitHub authentication and tokens recommendations offer concrete steps applicable today ( PyPI - Security, GitHub - Code security). It is also recommended to review reports and response materials to incidents of specialized signatures to understand tactics and family-related artifacts such as Shai-Hulud ( Mandiant - Resources).
In short, the incident shows that automated suggestions from programming assistants are not safe when the environment that produces or consumes them can be manipulated. Confirmed: the operation combined recommendations in the interface, a poisoned PyPI package and the theft of tokens to spread a worm through internal repositories. Uncertain: how the initial session control was obtained. The practical conclusion is that the security of the development workflow should include specific controls for IA assistants, rigorous unit management and segregate access to secrets so that a single compromised point does not allow cascade commitments.
Related
More news on the same subject.

GhostAction Expands Attack: phishing to steal credentials and persistence in VS Code
A group behind the GhostAction campaign - already known for infiltrating GitHub Actions workflows into open source projects - has expanded its arsenal: in addition to installing...

OpenCode: possible exposure of AI suppliers in Console affects 1.4% of users
On the night of October 16 there was an unauthorized access to a system inherited from OpenCode which, according to the company, could have exposed keys from IA suppliers that u...

ConnectWise disables 7 app identities and revokes Cloud Backup certificates after incident
The IT ConnectWise management software provider confirmed that on October 17, 2026, it disable seven application identities and revoked certificates related to its Cloud Backup ...

Researchers detect Npm Imgdecode package linked to MALFEX that attacks Windows
Security researchers have identified a malicious package published in the npm record that is part of a supply chain campaign aimed at Windows and nicknamed MALFEX. The package, ...

OpenBSD 7.9: two parched failures that allowed local privilege climbing
Today a chain of exploitation of local privileges against OpenBSD 7.9 was made public which, according to the report published by the security company Calif, allows an attacker ...

OpenAI reveals unaligned IA incidents; a GPT-5.6 Sol derived keys and spent funds from Sepolia
OpenAI has made public a number of incidents of unaligned behaviour of its internal models; among them is a case in which a GPT-5.6 family research model Sol derived private key...