Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

newtunnpm

newtun is a confirmed malicious npm package (MAL-2026-13733) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in newtun (npm)

MAL-2026-13733
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall newtun

What this malware does

The newtun CLI opens a plaintext WebSocket to the hardcoded server pull.7ii.win:7999 and hands the remote peer complete control of the installer's host. On TERM_OPEN messages the client calls pty.spawn(shell,...) and pipes server-supplied bytes (base64-decoded) directly into term.write(), giving the remote server an interactive PTY shell as the process user. SCRIPT_LIST/POLICY_SCRIPTS messages pass server-controlled string content to child_process.exec() and return stdout/stderr/exit code back over the same socket. FILE_REQUEST messages dispatch fs.readdirSync / readFileSync / writeFileSync / unlinkSync / rmSync / renameSync / mkdirSync against server-supplied paths, with file contents shipped back base64-encoded (up to 10MB per read) — allowing the operator to exfiltrate ~/.ssh, ~/.aws, and other installer secrets and to plant or delete files anywhere the process user can write. Every 5 seconds the client also sends MONITOR frames carrying hostname, OS type/release, arch, Node version, CPU/memory/load, uptime, and /proc/net/dev RX/TX rates; the initial authenticate frame carries os.hostname(), os.type/release/arch, and process.version. An UPGRADE control message causes the client to run npm update -g newtun and relaunch, letting the remote server swap the globally installed binary for any future published version without user interaction. The transport is unauthenticated plain ws:// so any on-path party can also drive these primitives.

Malicious versions

22 flagged
1.0.01.0.11.0.21.0.31.0.81.0.111.0.121.0.131.0.141.0.151.0.161.0.171.0.181.0.191.0.201.0.211.0.221.0.231.0.241.0.251.0.261.0.27

Indicators of compromise (SHA-256)

10824263dc9e32215d3e220d20b6de089f684d53f71b2574f181c98daae0abf4
adc90e76cf26bdb3145704cfb477f3a5215670556d03ff2959dde595a8bb0598
b607f8c68e609c5cdd110266221d162b74f804210d537866f32a416ffc53d956
250220a094a1f5602311f6e852e02110a606e099bc58981bbfe423daf07f60cf
54a3c9472294a912f954c8660d904752aab0c5c07ba662bf65e66e99f01ba7d7
bfc53f84f3fdc42574b025a376f29630faf5d5a6db55e9bc1191624ef4255f86
bfe1f5dbf1f2889230487c5d57840d826ec0783ecada63469b1134cbec7d7abb
d9178e3713e40cdd7a4b31dcdc6e82e2febedad348145dc7e20531a96b57e680
feed96ac1b104b441cbb5bffe48e7f830882bcb379155eaea8605bc6272b9e13
6fc10f37d7ac7e45368f970a5a479612a70bf9fafea0896aa0406ef9e76ee57c
9a1248a5a71f269da11a6c21266b850a510fd28bd967226e6e8c1ec98a17f07f
afc61cd45471791e81e7219dc417c5553357589bba81b24774514d1e0e06a3fd
13b0697d9e7fd93da6a8a5fc611ea13d6ad3885b05e9707eee12dd8d5cb52553
29ffdd16abfc0bfa179e4ee663c6dc3ade18914fc8eda8389eb5da44cbd8a1c6
2a533a6a01df200b7fe2aa9e16275f9e8e08f8e631dd621a22ecda41bf4d29f2
6864bfd4c408771ad2f8a8cb718f3bb29edcc2986fb3fcf09cb77b36ab06453d
8be97e3384f529f6b3cc412e1e207bb36022d23604b83a09b0768f0e66c5ba14
987e887581aae8d08d592490642a4089c72bd19b15b7f18089088758c441f42d
a02551d7887d5d855587c96e21458f02aa15268d0bbf6d07df966408acb70362
a0caa8712aa6037e1bfa9cf5ec3a9da52fecebdd4afcc5b26e18740fb562c2c7
a0deb6bf2b7444c801814b65d3758e84e25f0a9d72038d5ddc0b95289a61a83c
aa9de12f8c7eedf554ee25df6fc0a9377470180b18396c3258371bc5fc27db74

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for newtun (22 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging newtun across your stack and pipelines.

  2. If you installed it — respond

    newtun is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If newtun was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks newtun before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. newtun on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.8, 1.0.11, 1.0.12, 1.0.13, and 14 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-017346IN-MAL-2026-017336IN-MAL-2026-017339IN-MAL-2026-017330IN-MAL-2026-017337IN-MAL-2026-017334IN-MAL-2026-017342IN-MAL-2026-017351IN-MAL-2026-017338IN-MAL-2026-017345IN-MAL-2026-017344IN-MAL-2026-017332IN-MAL-2026-017343IN-MAL-2026-017335IN-MAL-2026-017340IN-MAL-2026-017348IN-MAL-2026-017333IN-MAL-2026-017350IN-MAL-2026-017349IN-MAL-2026-017347IN-MAL-2026-017331IN-MAL-2026-017341

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks newtun-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

newtun (npm) malicious package — MAL-2026-13733 | O3 Security