Wednesday, October 14, 2026

Shai-Hulud Malware Campaign Abuses 23 PyPI Packages in Developer-Focused Attack

A rapidly evolving supply chain campaign dubbed “Shai-Hulud” is targeting developers through malicious Python packages. Researchers have identified 23 newly weaponised PyPI artefacts, expanding the scope of the ongoing Mini Shai-Hulud, Miasma, and Hades malware operations.

The latest findings highlight a shift in attacker tradecraft, combining multiple delivery techniques to compromise developer environments, CI/CD pipelines, and scientific computing workflows.

Shai-Hulud Malware Campaign

Security researchers from Socket report that this new wave builds on previously documented malicious PyPI packages but introduces more advanced execution mechanisms.

Unlike earlier variants that relied heavily on Python startup hooks, the new campaign incorporates native extensions and modular payload delivery, enabling improved evasion and flexibility.

The attackers are actively experimenting with package themes, including bioinformatics libraries and AI/MCP tooling, to increase infection surface among high-value developer targets.

The campaign now spans multiple delivery branches. One technique continues to abuse .pth startup hooks, which allow malicious code to execute automatically when Python initializes.

These hooks download the Bun JavaScript runtime and execute an obfuscated _index.js payload. A second, stealthier approach embeds malicious logic within compiled .abi3.so native extensions, enabling execution at import time.

This method is particularly effective in bioinformatics packages, where compiled extensions are common and often escape scrutiny during code review.

A third notable variant involves the langchain-core-mcp package, which introduces a split-loader technique. Instead of bundling the malicious JavaScript payload, the package deploys a .pth loader that searches Python’s sys.path for an external _index.js file.

This decoupling of loader and payload enables attackers to bypass traditional detection mechanisms that rely on identifying both components within the same package artifact. It also suggests potential staged infections where multiple packages or environments contribute to full payload execution.

Shai-Hulud Malware Campaign Abuses 23 PyPI Packages (Source: socket)
Shai-Hulud Malware Campaign Abuses 23 PyPI Packages (Source: socket)

The underlying payload follows the Hades malware pattern, leveraging heavily obfuscated JavaScript executed via Bun. Once triggered, it targets sensitive developer assets, including API tokens, cloud credentials, SSH keys, container configurations, and package registry secrets.

Environments such as CI/CD runners are particularly at risk, as compromised credentials can enable further supply chain attacks, including malicious package publishing and infrastructure access.

An additional layer of sophistication is observed in the malware’s anti-analysis techniques. The _index.js payload includes misleading comment blocks designed to disrupt AI-based security analysis tools. These comments attempt to trigger false interpretations or safety filters, delaying detection and complicating automated triage workflows.

The campaign disproportionately targets bioinformatics and AI development ecosystems. Malicious versions of legitimate scientific packages such as embiggen, ensmallen, and pyphetools indicate deliberate targeting of research environments, while typosquatting packages like rsquests and tlask aim to capture unsuspecting developers through naming confusion.

Indicators of Compromise (IOCs) associated with this campaign include the following:

IndicatorTypeDescription / Context
[email protected]Malicious PyPI packagePart of newer Shai-Hulud / Hades PyPI wave, delivers JavaScript stealer payload
[email protected]Malicious PyPI packageBioinformatics-themed package trojanized in this campaign
[email protected]Malicious PyPI packageBioinformatics package using trojanized native extensions
[email protected]Malicious PyPI packageBioinformatics / genomics-themed package abusing .abi3.so loader
[email protected]Malicious PyPI packageMCP-themed package tied to Mini Shai-Hulud activity
[email protected]Malicious PyPI packageNewer MCP-themed variant in same PyPI wave
[email protected]Malicious PyPI packageUses .pth startup hook, searches sys.path for external index.js payload
[email protected]Malicious PyPI packageSame loader family, updated artifact
[email protected]Malicious PyPI packageMalicious memory-related package in this campaign
[email protected]Malicious PyPI packageStreamlit-themed package used as delivery vehicle
[email protected]Malicious PyPI packageNewer malicious version in same family
[email protected]Malicious PyPI packageOpenAI/MCP-themed package targeting AI developers
[email protected]Malicious PyPI packageFollow-on malicious version
[email protected]Malicious PyPI packageOrchestration-themed package abused in this wave
[email protected]Malicious PyPI packageTargets scientific / phenotyping workflows
[email protected]Malicious PyPI packageBioinformatics-focused package with embedded payload
[email protected]Malicious PyPI packageTrojanized scientific package using native extension trigger
[email protected]Malicious PyPI packageMCP server–style package delivering Hades payload
[email protected]Typosquatted packageLookalike of Flask ecosystem packages
[email protected]Typosquatted packageLookalike of requests library targeting Python developers
[email protected]Malicious PyPI packageTokenization/MCP-themed package linked to campaign
[email protected]Malicious PyPI packageNewer malicious version of same package
[email protected]Typosquatted packageFlask-themed typosquat designed to capture developer installs
langchain_core-setup.pthMalicious filePython startup hook used by langchain-core-mcp loader
langchain_core_mcp-1.4.2-py3-none-any.whlMalicious wheelMalicious langchain-core-mcp artifact
langchain_core_mcp-1.4.3-py3-none-any.whlMalicious wheelUpdated malicious wheel variant
os.path.join(d,”index.js”)Code patternPayload discovery logic scanning sys.path for index.js
s.run([_b,”run”,_j],check=False)Code patternBun-based execution call for discovered JavaScript payload
Bun/1.3.14User-AgentObserved upload UA for langchain-core-mcp PyPI activity
ensmallen_haswell.abi3.soMalicious native moduleTrojanized .abi3.so extension executing payload at import
ensmallen_core2.abi3.soMalicious native moduleAdditional trojanized native extension in bioinformatics cluster
.abi3.so paired with index.jsSuspicious layoutImport-time execution pattern requiring review
SHA256: 6d332f814f15f19758d65026bbfd0a8c4…File hash (SHA256)Malicious langchain_core_mcp-1.4.2 wheel hash
SHA256: 6506d31707a39949f89534bf9705bcf8…File hash (SHA256)Malicious langchain_core-setup.pth file hash
thebeautifulmarchoftimeString / C2 markerFallback C2 discovery string used by malware
thebeautifulsnadsoftimeString / C2 markerAlternate fallback C2 discovery string
/tmp/.sshu-setup.jsFile pathSSH propagation script location
/var/run/docker.sockHost artifactLegitimate Docker socket targeted for abuse
harden-runnerString / tool referenceLegitimate StepSecurity tool referenced/targeted by malware
step-securityString / tool referenceLegitimate StepSecurity identifier referenced/blocked
stepsecurityString / tool referenceAlternate StepSecurity identifier referenced/blocked
agent.stepsecurity.ioDomainLegitimate StepSecurity telemetry domain reportedly blocked
api.stepsecurity.ioDomainLegitimate StepSecurity API domain reportedly blocked
app.stepsecurity.ioDomainLegitimate StepSecurity app domain reportedly blocked

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Defenders are advised to audit Python environments for suspicious .pth files, unexpected native extensions, and unauthorized JavaScript execution.

Immediate actions should include removing affected packages, rotating exposed credentials, and reviewing CI/CD pipelines for anomalies. Monitoring sys.path abuse and Bun runtime downloads can also provide early detection signals.

This campaign underscores a broader trend in software supply chain attacks: increasing modularity, cross-language execution, and targeted ecosystem abuse. As threat actors continue refining these techniques, organizations must prioritize dependency security and runtime behavior analysis over static package inspection alone.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya
Divya
Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Hot this week

How To Access Dark Web Anonymously and know its Secretive and Mysterious Activities

What is Deep Web The deep web, invisible web, or...

How to Build and Run a Security Operations Center (SOC Guide) – 2023

Today’s Cyber security operations center (CSOC) should have everything...

Russian Hackers Bypass EDR to Deliver a Weaponized TeamViewer Component

TeamViewer's popularity and remote access capabilities make it an...

Web Server Penetration Testing Checklist – 2026

Web server pentesting is performed under three significant categories: identity,...

ATM Penetration Testing – Advanced Testing Methods to Find The Vulnerabilities

ATM Penetration testing, Hackers have found different approaches to...

Criminal IP to Showcase Threat Intelligence and AITEM at Security Days Fall 2026 Tokyo

Torrance, California, October 13th, 2026, CyberNewswire Criminal IP, developed by...

G2A.COM Reports 35% Growth in Security Software Orders, Outpacing VPN Growth

Amsterdam, Netherlands, October 13th, 2026, CyberNewswire Antivirus and security software...

Hackers Target Hundreds of French Supermarkets, Heating Refrigeration Systems to 50°C

Hundreds of French supermarkets experienced refrigeration disruptions after hackers...

Attackers Can Hijack npm Packages Without Stealing Developer Credentials

A flaw in npm’s Trusted Publishing mechanism could let...

Anthropic Warns AI Models Could Soon Self-Replicate Across Smart TVs and IoT Devices

Anthropic researchers have raised concerns that small artificial intelligence...

New macOS Malware Uses Fake System Prompts to Steal Passwords and Deploy RAT

A newly marketed macOS malware-as-a-service platform, ICMacOS, is using...

Hackers Exploit Citrix NetScaler Zero-Days to Deploy Modified Platypus Backdoor

Threat actors are exploiting two critical zero-day vulnerabilities in...

Related Articles

Recent News