Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in kit-map-vim (npm)

The npm package kit-map-vim contained malicious code that spawned a RedShell remote-access implant (dist/internal/calc-math.dat) on import, enabling command execution, credential theft, persistence, and data exfiltration. The package was identified and reported by OpenSSF.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system importing kit-map-vim; potential for widespread compromise given npm's reach
Ecosystems
Attack vectors
Affected entities
  • kit-map-vimnpm package containing malicious ELF binary

The npm package kit-map-vim was found to contain malicious code disguised as a native math accelerator. Upon import, the package's dist/index.mjs unconditionally spawns a Linux x86_64 ELF binary (dist/internal/calc-math.dat) as a detached child process after performing a SHA-256 self-check.\n\nThe ELF binary is a RedShell remote-access implant that beacons to hardcoded C2 infrastructure at 217.60.77.63 over plain HTTP. The implant provides extensive command handlers for downloading and executing additional ELF binaries and shellcode from the C2 server, including in-memory execution via memfd_create/fexecve to avoid disk artifacts.\n\nThe malware establishes persistence by installing a masquerading systemd user unit named 'svc-update.service' with automatic restart. It offers SOCKS5 proxy and TCP port-forwarding capabilities, and includes built-in commands to enumerate users, environment variables, processes, and network configuration. The implant can harvest SSH keys and credentials from ~/.ssh and credential stores, and exfiltrate arbitrary filesystem paths via a chunked POST handler to the C2 server.\n\nThe package's stated purpose (day-math functionality) has no legitimate need for a native binary, confirming the malicious intent. The incident was identified and credited to OpenSSF's malicious-packages project.

Indicators of compromise

Packages
  • kit-map-vim
IPs
  • 217.60.77.63

Remediation

  • Immediately remove kit-map-vim from all environments and dependency trees
  • Audit all systems that imported kit-map-vim for signs of compromise, including process execution logs, network connections to 217.60.77.63, and presence of svc-update.service
  • Check for unauthorized SSH keys, credential store modifications, and filesystem access logs
  • Review network traffic for beacons to 217.60.77.63 and related C2 endpoints
  • Regenerate all credentials and SSH keys on affected systems
  • Monitor for in-memory execution artifacts and memfd_create syscalls
  • Use npm audit to identify and remove the package from dependency chains

Sources

  1. GitHub Advisory GHSA-vg67-m7mw-25cg · GitHub Advisory Database

Cite this entry

"Malicious code in kit-map-vim (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 12, 2026; last updated August 12, 2026. https://supplychainattack.org/incident/malicious-code-in-kit-map-vim-npm-1ofjn0

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 epic-common-node (npm)

    The npm package epic-common-node was found to contain malicious code. The package has been identified and reported through GitHub Security Advisory GHSA-m36g-mhjr-ww2c.

    npmCompromised package
  2. containedcritical

    Malicious code in epic-common (npm)

    The npm package epic-common was found to contain malicious code. The package was identified by Amazon Inspector and reported through the OpenSSF malicious packages database.

    npmCompromised package
  3. containedcritical

    Malware in leb128x

    The npm package leb128x was found to contain malware that grants full system compromise to attackers. Any computer with this package installed or running should be considered fully compromised and all secrets and keys rotated immediately from a different machine.

    npmCompromised package
  4. containedcritical

    Malicious code in checkout-desktop-total (npm)

    The npm package checkout-desktop-total contained malicious code that executes a hidden loader on import, downloading and running platform-specific native payloads from attacker-controlled Cloudflare Workers hosts or reconstructing them via DNS TXT records under wel1.ru. Any system that imported this package should be considered compromised.

    npmCompromised package