MAL-2026-10998 Malicious code in n8n-nodes-port-scanner (npm)
Malicious package
Published
MAL-2026-10998 is a malicious package: n8n-nodes-port-scanner (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-10998/ (Markdown: https://insights.sbomify.com/MAL-2026-10998/index.md)
- Package
- n8n-nodes-port-scanner
- Registry
- npm
What is MAL-2026-10998?
MAL-2026-10998 is a malicious package in n8n-nodes-port-scanner, published on 22 Jul 2026.
Official description
index.js executes a top-level IIFE at require-time that (1) runs hostname, hostname -I, id, ip route, ip neigh/arp and reads /etc/resolv.conf, opens a raw TCP socket to 103.27.109.184:8893, and writes the collected host identity and network configuration to that remote host; (2) spawns /bin/bash -i and pipes its stdin/stdout/stderr over a second TCP connection to 103.27.109.184:8893, granting the remote party an interactive shell on the installer's machine; and (3) enumerates internal subnets 172.17.0.0/24, 172.18.0.0/24, and 10.200.37.0/24 across ports 22, 80, 443, 3000, 5678, 8080, and 8443, including the open-port results in the exfil payload. The scanning behavior runs unconditionally when the module is loaded, against private networks the installer has not designated as targets, and its results are shipped to the same hardcoded bare-IP endpoint — the package's advertised 'port scanner' purpose is a cover for installer-side reconnaissance and remote access, not an operator-invoked pentest tool.
What should I do about MAL-2026-10998?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.