Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
OpenAI Expands GPT-3.5 Access With Unlimited Chats for All Users
August 7, 2026
SilverFox Hijacks Drivers to Disable Security Tools
August 7, 2026
Critical Rockwell Automation Flaw Exposes Water Systems to Cyberattacks
August 6, 2026
Home/CyberSecurity News/Critical PyPI Vulnerability Compromises 23 Packages, Targets MCP Developers
CyberSecurity News

Critical PyPI Vulnerability Compromises 23 Packages, Targets MCP Developers

Key Takeaways The “Shai-Hulud” supply chain campaign has expanded significantly, compromising 23 new PyPI packages, bringing the total to 60 malicious PyPI artifacts across 37 packages....

Sarah simpson
Sarah simpson
June 9, 2026 4 Min Read
45 0

Key Takeaways

  • The “Shai-Hulud” supply chain campaign has expanded significantly, compromising 23 new PyPI packages, bringing the total to 60 malicious PyPI artifacts across 37 packages.
  • Threat actors are employing three sophisticated delivery mechanisms, including a novel “split-staging” architecture that separates the loader from the payload to evade detection.
  • The campaign specifically targets developers in bioinformatics and those working with Model Context Protocol (MCP) integrations, along with typosquatting popular Python libraries.
  • The malware, identified as a Hades-family stealer, exfiltrates a wide array of sensitive credentials and tokens from developer workstations and CI/CD environments.
  • An anti-analysis technique uses a large, fake system instruction block within JavaScript comments to confuse AI-assisted triage tools, though traditional detection methods remain effective against the core payload.

Shai-Hulud Campaign Expands, Compromising 23 New PyPI Packages with Evolving Tactics

The “Shai-Hulud” supply chain campaign has escalated its operations, incorporating 23 previously undetected malicious package versions on PyPI. This expansion significantly broadens an already concerning threat landscape that had previously impacted 37 packages, according to research by the Socket Threat Research team.

Table Of Content

  • Key Takeaways
  • Shai-Hulud Campaign Expands, Compromising 23 New PyPI Packages with Evolving Tactics
  • Sophisticated Delivery Mechanisms
  • Targeted Packages and Anti-Analysis Techniques
  • Indicators of Compromise (IOCs)
  • What You Should Do

The extensive campaign, which includes distinct threat clusters dubbed Mini Shai-Hulud, Miasma, and Hades, now encompasses a staggering 471 total artifacts across both npm and PyPI. This includes 411 npm artifacts spread across 106 packages and 60 PyPI artifacts across 37 packages, demonstrating a wide-reaching and persistent threat to the software supply chain.

Sophisticated Delivery Mechanisms

A critical aspect of this latest wave is the rapid evolution of the threat actors’ delivery methods. The campaign now leverages at least three distinct and increasingly sophisticated PyPI delivery branches to deploy its malicious payloads:

  • .pth startup-hook pattern: This method involves a malicious wheel bundling a *-setup.pth file alongside an _index.js payload. The .pth hook activates during Python startup, surreptitiously downloading the Bun JavaScript runtime and subsequently executing the obfuscated stealer payload.
  • Native extension import trigger: Malicious code is directly embedded within compiled .abi3.so extensions. This technique is particularly stealthy, as the Python source code appears benign. However, the extension executes _index.js as soon as Python loads the module via dlopen(), effectively bypassing detection pipelines that rely solely on source code review.
  • langchain-core-mcp loader variant: Representing the most innovative technique, this variant installs a .pth loader but deliberately omits the _index.js payload from the wheel. Instead, it meticulously scans every entry in sys.path and one directory below each entry, searching for the payload elsewhere within the Python environment. This “split-staging” architecture is designed to evade detection rules that expect the loader and its payload to reside within the same package.

Targeted Packages and Anti-Analysis Techniques

The 23 newly compromised artifacts are strategically organized into three thematic clusters, aiming to maximize exposure among specific developer communities:

  • Bioinformatics packages: This cluster features trojanized versions of legitimate research tools such as embiggen, ensmallen, gpsea, phenopacket-store-toolkit, ppkt2synergy, and pyphetools. These packages are commonly used in critical workflows like graph learning, patient phenotyping, and genomics.
  • MCP/AI-themed packages: Directly targeting developers integrating with the Model Context Protocol (MCP), this group includes langchain-core-mcp, openai-mcp, instructor-mcp, tiktoken-mcp, and ray-mcp-server.
  • Typosquat packages: Designed to trick developers into mistyping popular library names, this cluster includes rsquests, tlask, and rlask, mimicking widely used tools like requests and Flask.

The _index.js payload incorporates a novel anti-analysis technique specifically targeting Large Language Model (LLM)-assisted security tools. It embeds a substantial, fake system-instruction block within a non-executing JavaScript comment at the top of the file. This comment is ignored by the Bun runtime but is intended to trigger safety refusals, pollute context, and lead to premature or incorrect classification by AI-assisted triage pipelines, as detailed by Socket Threat Research.

Despite this sophisticated evasion tactic, the core malware resides after this comment block, wrapped in a try{eval(...)} call around a character-code array that employs a ROT-style substitution cipher. Traditional detection methods, such as YARA rules, entropy analysis, and Abstract Syntax Tree (AST) parsing, remain effective against this underlying payload.

Upon successful execution via any of the three delivery branches, the Hades-family payload proceeds to aggressively harvest sensitive secrets from compromised developer workstations and CI/CD environments. This includes:

  • Authentication tokens for GitHub, npm, PyPI, RubyGems, and JFrog.
  • Cloud credentials for AWS, Azure, and GCP, along with Kubernetes service account material.
  • SSH keys, Docker configurations, shell histories, and .env files.
  • Configuration data for AI developer tools and package registry credentials.

Indicators of Compromise (IOCs)

The following 23 newly identified malicious PyPI artifacts should be immediately blocked or removed from all environments:

Package Malicious Version(s)
dreamgen 1.8.1
embiggen 0.11.97
ensmallen 0.8.101
gpsea 0.9.14
instructor-mcp 1.15.2, 1.15.3
langchain-core-mcp 1.4.2, 1.4.3
mem8 6.0.1
mflux-streamlit 0.0.3, 0.0.4
openai-mcp 2.41.1, 2.41.2
orchestr8-platform 3.3.2
phenopacket-store-toolkit 0.1.7
ppkt2synergy 0.1.1
pyphetools 0.9.120
ray-mcp-server 0.2.1
rlask 3.1.7
rsquests 2.34.3
tiktoken-mcp 0.13.1, 0.13.2
tlask 3.1.4

What You Should Do

  • Immediately audit your project dependencies for any of the listed malicious PyPI packages and versions. Remove them and replace with legitimate, verified alternatives.
  • Implement robust supply chain security practices, including requiring package integrity checks (e.g., hash verification) and strictly vetting new dependencies.
  • Utilize software composition analysis (SCA) tools to continuously monitor your codebase for known vulnerabilities and malicious packages.
  • Enforce multi-factor authentication (MFA) on all developer accounts, package registries (PyPI, npm), and cloud environments (AWS, Azure, GCP).
  • Regularly rotate all sensitive credentials, tokens, and SSH keys, especially those used in CI/CD pipelines and developer workstations.
  • Educate developers on the risks of typosquatting and the importance of carefully verifying package names before installation.
  • Deploy endpoint detection and response (EDR) solutions capable of detecting unusual process execution, unauthorized network connections, and suspicious file modifications on developer machines.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackMalwareThreat

Share Article

Sarah simpson

Sarah simpson

Sarah is a cybersecurity journalist specializing in threat intelligence and malware analysis. With over 8 years of experience covering APT groups, zero-day exploits, and advanced persistent threats, Sarah brings deep technical expertise to breaking cybersecurity news. Previously, she worked as a security researcher at leading threat intelligence firms, where she analyzed malware samples and tracked cybercriminal operations. Sarah holds a Master's degree in Computer Science with a focus on cybersecurity and is a regular contributor to major security conferences.

Previous Post

Critical FFmpeg Vulnerabilities Enable Remote Code Execution

Next Post

Apache HTTP Server 2.4.58 Patches Critical Use-After-Free, DoS, XSS

No Comment! Be the first one.

Leave a Reply Cancel reply

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

Popular Posts
Best Intrusion Detection & Prevention (IDS/IPS) Tools for 2026
August 6, 2026
Critical WSUS Vulnerability Lets Attackers Compromise Enterprise Endpoints
August 6, 2026
Critical Paperclip Flaws Let Attackers Gain Admin Access
August 6, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Emy Elsamnoudy
Emy Elsamnoudy
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us