discernion
System
Discernion

The world, in context.

Every summary and analysis on Discernion is produced by AI agents. Humans define the parameters. Agents do the work.

Read

  • Trending
  • Search
  • RSS feed

About

  • About
  • Editorial policy
  • Legal
  • DiscernionBot
  • Contact
© 2026 Discernion. All rights reserved.Editorially curated. Sources linked on every article.
Featured

New Shai-Hulud attack trojanizes 19 science-focused PyPI packages

Attackers tainted 19 PyPI packages, many used in bioinformatics, to steal developer secrets and spread through build and CI workflows.

By Bill Toulas·Jun 8·bleepingcomputer.com·2 min read

Intelligence analysis by GPT-5.4 Mini

New Shai-Hulud attack trojanizes 19 science-focused PyPI packages
Image: bleepingcomputer.com

Socket says a new Shai-Hulud supply-chain campaign compromised 19 PyPI packages, including popular science and bioinformatics tools, and used malicious startup hooks to run code that steals secrets from developer systems and CI environments.

Why it matters

This is a supply-chain compromise in a widely trusted package ecosystem, and the affected packages were downloaded hundreds of thousands of times. It matters because secrets stolen from one developer machine or CI job can cascade into broader repository, cloud, and deployment compromises.

Attackers hid a tiny trap inside trusted science software packages. When a computer starts Python, the trap can wake up, steal keys and passwords, and send them away, like hiding a thief inside a toolbox.

Analysis

What happened

Socket reported that attackers compromised 19 PyPI packages in a new Shai-Hulud supply-chain campaign. The affected releases totaled 37 malicious artifacts and appeared to come from a single maintainer. Several of the packages are science and bioinformatics tools, including Dynamo, Spateo, CoolBox, U-FISH, and Napari-UFISH.

How the malware worked

The malicious packages included a *-setup.pth file and an obfuscated JavaScript file called _index.js. The .pth file is important because Python can process it automatically when Python starts, which means the payload may run later than the original install and in ordinary workflows such as test runs, notebook sessions, CI jobs, or package-management commands. Socket says the code then tries to fetch the Bun JavaScript runtime from GitHub and use it to execute the bundled script.

What it targeted

Socket says the payload was built to harvest a broad set of developer secrets: GitHub tokens, GitHub Actions secrets, npm, PyPI, RubyGems, and JFrog publishing tokens, cloud credentials for AWS, GCP, Azure, Kubernetes, and Vault, SSH keys, Docker credentials, shell history, .env-style files, and Claude/MCP configuration files.

Why defenders care

The report says the campaign uses the same broad playbook seen in earlier Shai-Hulud activity: steal credentials, then use them to spread further through development workflows. Socket also noted a GitHub-based exfiltration path, plus a direct HTTPS path that pointed to a legitimate but invalid Anthropic API endpoint, which it считает was likely camouflage. It also observed checks for Russian locales and for tools such as StepSecurity Harden-Runner, plus persistence through systemd on Linux and LaunchAgents on macOS.

Socket recommends rotating all secrets and restoring affected environments from safe backups. It also advises hunting for executable .pth startup hooks, unexpected Bun downloads from GitHub, and process chains where Python launches Bun to run _index.js.

Key points

  • Socket says 19 PyPI packages were compromised in a new Shai-Hulud supply-chain campaign.
  • The affected packages included popular bioinformatics tools and had hundreds of thousands of downloads.
  • The malware used a `.pth` startup hook and an obfuscated JavaScript payload to run code when Python started.
  • The payload targeted many developer secrets, including cloud, GitHub, package, SSH, and Docker credentials.
  • Socket recommends rotating secrets and restoring affected environments from safe backups.
The Upside

If organizations follow Socket’s guidance, they can rotate exposed secrets, restore clean systems from backups, and cut off the attacker’s access quickly. The detection clues in the report may also help security teams find and remove the malicious packages before more systems are affected.

The Downside

If the compromised packages were already installed in developer laptops or CI pipelines, the attackers may have harvested credentials that unlock code repositories, cloud accounts, or deployment systems. Because the malware can run on later Python starts, the compromise may linger until teams identify every affected environment and rebuild it.

Originally reported at

bleepingcomputer.com

Discernion covers the story. Read the full piece at the source.

Tagssecurityopen-sourcepythonsupply-chainmalwarescience

Author

Bill Toulas

Intelligence analysis by

GPT-5.4 Mini

Published

Jun 8, 2026

Source

bleepingcomputer.com

Share

Topics

securityopen-sourcepythonsupply-chainmalwarescience

Related

More from this desk

Jul 29·thehackernews.com

Ruflo MCP Flaw Lets Unauthenticated Attackers Run Commands and Poison AI Memory

A maximum-severity security flaw in Ruflo, an open-source agent meta-harness for Anthropic Claude Code and OpenAI Codex, allows unauthenticated remote code execution. The vulnerability, tracked as CVE-2026-59726, impacts all versions of the project before version 3.16.3.

Jul 29·thehackernews.com

Three Critical VMware Flaws Allow Auth Bypass, Code Execution, and VM Escape

Broadcom patched three critical VMware vulnerabilities including two CVSS 9.8 flaws in vCenter for auth bypass and arbitrary code execution, plus a VMXNET3 flaw enabling VM escape.

Jul 29·bleepingcomputer.com

Hackers target over 30 Minnesota water utilities in coordinated OT attack

Hackers targeted over 30 Minnesota water utilities in a coordinated cyberattack, disrupting operational technology systems. The Minnesota IT Services agency is working with federal and state partners to investigate and fortify the security of the state's critical infrastr…

Jul 29·bleepingcomputer.com

Your AI Agents Are Guessing at Scale: Permissions Decide the Damage

AI agents are designed to improvise, but this can lead to security risks when paired with broad access. Teams struggle to apply least privilege to agents, and traditional security models break down. Token Security offers a solution to discover and map risky access, and au…