Malicious node-ipc npm Versions Steal Developer Credentials via DNS

· Original article ↗

Summary

Researchers identified malicious node-ipc versions 9.1.6, 9.2.3 and 12.0.1 that reportedly steal developer and cloud credentials and exfiltrate archives through DNS TXT queries after a maintainer account was compromised.

Key points

  • Versions 9.1.6, 9.2.3 and 12.0.1 contain malicious code that runs automatically through the node-ipc.cjs CommonJS entrypoint.
  • The malware fingerprints systems and collects cloud, developer, infrastructure, database and other credentials, along with sensitive files and secrets.
  • It compresses stolen data and exfiltrates it through DNS TXT queries, using sh[.]azurestaticprovider[.]net as a bootstrap resolver and sending data to bt[.]node[.]js.
  • Socket estimated that exfiltrating a 500 KB compressed archive could generate about 29,400 DNS TXT requests.
  • The malware skips files larger than 4 MiB and avoids .git and node_modules directories; it does not establish persistence or download secondary payloads.
  • The compromise appears to involve an external actor taking over the inactive maintainer account “atiertant.”
  • Developers should remove the affected versions, rotate exposed credentials and secrets, and inspect lockfiles and npm caches.

Article Details

Attack Vectors
  • A supply-chain attack introduced credential-stealing malware in node-ipc versions 9.1.6, 9.2.3, and 12.0.1 on npm.
  • The malware executes automatically when applications load the package's CommonJS entrypoint, node-ipc.cjs.
  • The malware collects cloud, developer, SSH, Kubernetes, Docker, database, and other credentials and sensitive local files, then exfiltrates compressed data through DNS TXT queries.
Defensive Notes
  • Remove node-ipc versions 9.1.6, 9.2.3, and 12.0.1.
  • Rotate potentially exposed secrets and credentials.
  • Inspect lockfiles and npm caches for affected versions.

Indicators of compromise

TypeIndicatorContext
DOMAINsh[.]azurestaticprovider[.]netFake Azure-themed domain used as a bootstrap resolver in the malware's DNS exfiltration operation.

MITRE ATT&CK

Products

Related Articles