top of page
perceptive_background_267k.jpg

Miasma Supply Chain Attack Compromises Red Hat npm Packages with Credential-Stealing Worm

Published:

1 June 2026 at 17:40:28

Alert date:

1 June 2026 at 19:03:21

Source:

thehackernews.com

Click to open the original link from this advisory

Supply Chain & Dependencies, Ransomware & Malware, Data Breach & Exfiltration

A new supply chain attack campaign called Miasma has compromised @redhat-cloud-services npm packages. The attack is described as a Mini Shai-Hulud campaign that uses install-time execution tactics to steal credentials and secrets from developer machines. The malware also delivers a self-propagating worm component. The campaign targets CI/CD environments and uses encrypted exfiltration methods. This represents a significant threat to the npm ecosystem and Red Hat cloud services users.

Technical details

A new Mini Shai-Hulud supply chain attack campaign codenamed Miasma compromised @redhat-cloud-services npm packages using obfuscated preinstall hooks. The malware collects GitHub Actions secrets, npm tokens, cloud credentials, Kubernetes and Vault material, SSH keys, Git credentials, and other sensitive files. It uses encrypted exfiltration to api.anthropic[.]com:443/v1/api with GitHub as fallback. The malware avoids execution on Russian-language systems, generates uniquely encrypted payloads for each infection, and includes privilege escalation, endpoint protection checks, and persistence mechanisms through SessionStart hooks and Visual Studio Code tasks.json injection. It targets cloud identities specifically for GCP and Azure, and can weaponize stolen credentials to further poison the software supply chain.

Mitigation steps:

Isolate hosts that have installed the affected versions
Remove the malicious versions
Rotate exposed credentials
Review for any signs of suspicious GitHub or npm activity
Audit the environment for persistence artifacts involving changes to configuration files (~/.claude/settings.json, .vscode/tasks.json, .github/workflows/codeql.yml, .github/setup.js)
Enforce strong access controls
For CI/CD systems: suspend affected workflow runs
Invalidate build artifacts produced during the exposure window
Review whether any release, container image, npm package, or deployment artifact was created after the malicious package was installed
Note that uninstalling the npm package or deleting node_modules should not be considered sufficient cleanup due to background execution and persistence mechanisms

Affected products:

@redhat-cloud-services/vulnerabilities-client
@redhat-cloud-services/tsc-transform-imports
@redhat-cloud-services/topological-inventory-client
@redhat-cloud-services/sources-client
@redhat-cloud-services/rule-components
@redhat-cloud-services/remediations-client
@redhat-cloud-services/rbac-client
Anthropic Claude Code
Microsoft Visual Studio Code

Related links:

Related CVE's:

Related threat actors:

IOC's:

api.anthropic[.]com:443/v1/api, GitHub repositories with description: Miasma: The Spreading Blight, Commit message: IfYouInvalidateThisTokenItWillNukeTheComputerOfTheOwner:<token>, package-updated.tgz, ~/.claude/settings.json, .vscode/tasks.json, .github/workflows/codeql.yml, .github/setup.js

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page