Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in clawtrl-wallet (npm)

The npm package clawtrl-wallet contained malicious code that reads environment variables and system information, spawns bash subprocesses, and makes outbound HTTPS requests—consistent with credential-stealing behavior. The package name appears designed to impersonate a legitimate wallet utility.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Unknown; depends on installation count and whether credentials were exfiltrated from affected systems.
Ecosystems
Attack vectors
Affected entities
  • clawtrl-walletnpm package containing malicious code designed to steal credentials and environment data

The npm package clawtrl-wallet was found to contain malicious code in its cli.js file. The code imports child_process, https, and os modules, then reads process.env and system information via os APIs (os.tmpdir and related functions), spawns bash subprocesses, and issues outbound HTTPS requests.\n\nThis behavior pattern—environment and system-data exfiltration paired with bash execution and external network communication—is consistent with credential and wallet-stealing malware rather than legitimate wallet library functionality. Legitimate wallet packages have no legitimate reason to shell out to bash or transmit environment contents off-host.\n\nThe package name itself suggests impersonation of a wallet utility, likely intended to deceive installers into running the malicious code. The malicious code was identified by Amazon Inspector and credited to the OpenSSF malicious-packages repository.

Indicators of compromise

Packages
  • clawtrl-wallet

Remediation

  • Immediately uninstall clawtrl-wallet from all systems where it was installed
  • Audit npm package.json and lock files for any references to clawtrl-wallet and remove them
  • Rotate all credentials and secrets that may have been exposed on affected systems
  • Review environment variables and system logs on affected machines for signs of unauthorized access
  • Use npm audit to check for other malicious packages in your dependency tree
  • Implement package verification and allowlisting policies to prevent installation of typosquatted or impersonated packages

Sources

  1. GitHub Advisory GHSA-fh5c-3w68-67m4 · GitHub Advisory Database

Cite this entry

"Malicious code in clawtrl-wallet (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 5, 2026; last updated August 5, 2026. https://supplychainattack.org/incident/malicious-code-in-clawtrl-wallet-npm-1yijox

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-models (npm)

    The npm package sme-rko-finance-front-operations-feed-models contained malicious code that downloads and executes attacker-controlled native binaries from remote servers upon package load. The malware uses obfuscation techniques including fragmented string arrays, platform-specific endpoints, and DNS TXT record fallbacks to evade detection.

    npmCompromised package
  2. resolvedcritical

    Malicious code in modern-localization (npm)

    The npm package modern-localization contained malicious code that fetches and executes arbitrary JavaScript from a remote jsonbin.io endpoint on server-side require, with no integrity verification. The payload is executed with full Node.js privileges via Function() or child_process.fork().

    npmCompromised package
  3. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-tax (npm)

    The npm package sme-rko-finance-front-operations-tax contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure on require. The package was identified and reported by OpenSSF's malicious-packages project.

    npmCompromised package
  4. resolvedcritical

    Malicious code in localization-fixer (npm)

    The npm package localization-fixer contained malicious code that fetches and executes arbitrary JavaScript from attacker-controlled jsonbin.io endpoints on package require, granting full Node.js capabilities to remote payloads.

    npmCompromised package