Malware in @mastra/redis
Malware was discovered in the npm package @mastra/redis. Systems with this package installed or running should be considered fully compromised, requiring immediate rotation of all secrets and keys from a different computer.
- Disclosed
- Last updated
- Blast radius
- Any system with the package installed or running
- Ecosystems
- Attack vectors
- Affected entities
- @mastra/redis
A malware incident was identified in the npm package @mastra/redis, published as GitHub Advisory GHSA-wg7r-3q89-x9q4 on June 17, 2026.\n\nAny computer with this package installed or running is considered fully compromised. The advisory recommends immediate rotation of all secrets and keys stored on affected systems, performed from a different, uncompromised computer.\n\nWhile removal of the package is advised, the advisory notes that full control of the computer may have been granted to an outside entity, meaning removal of the package alone may not eliminate all malicious software introduced by the installation.\n\nUsers should treat any system that has run this package as potentially containing persistent malware and take appropriate incident response measures.
Indicators of compromise
- Packages
- @mastra/redis
Remediation
- Immediately rotate all secrets, keys, and credentials from a different, uncompromised computer
- Remove the @mastra/redis package from all affected systems
- Perform a full security audit and malware scan of any system that had this package installed or running
- Review system logs and network traffic for signs of unauthorized access or data exfiltration
- Consider the affected system(s) as potentially compromised and plan for full rebuild or forensic analysis
- Notify any services or systems that may have been accessed using credentials stored on affected computers
Sources
- GitHub Advisory GHSA-wg7r-3q89-x9q4 · GitHub Advisory Database
Cite this entry
"Malware in @mastra/redis." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 17, 2026; last updated June 20, 2026. https://supplychainattack.org/incident/malware-in-mastra-redis-1myicm
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in sme-rko-finance-front-operations-feed-impl (npm)
The npm package sme-rko-finance-front-operations-feed-impl contained malicious code that downloads and executes platform-specific binary payloads via Cloudflare Workers or DNS-based staging channels. The malware obfuscates child_process imports and executes on require(), making it active upon installation.
npmCompromised package - containedcritical
Malicious code in sme-rko-finance-front-operations-overnight (npm)
The npm package sme-rko-finance-front-operations-overnight contains malicious code that downloads and executes attacker-controlled binaries from Cloudflare Workers hosts on package require. The payload uses obfuscation techniques to evade static analysis and includes environment-based gating to reduce detection.
npmCompromised package - containedcritical
Malicious code in sme-rko-finance-front-payment-registers-operations-domain (npm)
The npm package sme-rko-finance-front-payment-registers-operations-domain contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure. The package uses obfuscated string construction to hide command-and-control domains and implements a DNS-TXT fallback channel for payload delivery.
npmCompromised package - resolvedcritical
Malicious code in sme-rko-finance-front-operations-providers (npm)
The npm package sme-rko-finance-front-operations-providers contained malicious code that downloads and executes platform-specific binaries from attacker-controlled Cloudflare Workers subdomains and DNS-TXT fallback channels upon require().
npmCompromised package