Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in @mastra/longmemeval

Malware was discovered in the npm package @mastra/longmemeval. Systems with this package installed or running are considered fully compromised, with potential for complete system takeover.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with the package installed or running
Ecosystems
Attack vectors
Affected entities
  • @mastra/longmemeval

A critical malware incident was identified in the npm package @mastra/longmemeval. According to the GitHub Advisory (GHSA-7x3v-wg29-8m8v), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory indicates that the malicious code grants outside entities full control of affected systems. All secrets and keys stored on compromised computers should be rotated immediately from a different, unaffected computer.\n\nWhile the package should be removed, the advisory notes that full system compromise may have occurred, meaning removal of the package alone may not eliminate all malicious software that was installed as a result of the initial compromise.

Indicators of compromise

Packages
  • @mastra/longmemeval

Remediation

  • Immediately remove the @mastra/longmemeval package from all systems
  • Rotate all secrets, API keys, and credentials from a different, unaffected computer
  • Perform a full security audit and malware scan of any system that had this package installed
  • Review system logs and access logs for any unauthorized activity during the period the package was installed
  • Consider full system reimaging if complete compromise is suspected
  • Monitor for any signs of persistent malware or unauthorized access

Sources

  1. GitHub Advisory GHSA-7x3v-wg29-8m8v · GitHub Advisory Database

Cite this entry

"Malware in @mastra/longmemeval." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 17, 2026; last updated June 20, 2026. https://supplychainattack.org/incident/malware-in-mastra-longmemeval-z2qw87

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. 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
  2. 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
  3. 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
  4. 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