npm · Malicious package advisory
Malwareokra-cloud-cdk
GHSA-7rq8-hfxr-pxhw
Malicious code in okra-cloud-cdk (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` okra-cloud-cdk is a dependency-confusion package: it takes a name that looks like an internal project, uses an inflated version (100.0.0) so it outranks private-registry versions, and runs `node setup.js || true` as a preinstall script on npm install. setup.js sends the hostname, username, working directory, OS, architecture, Node.js version and configured npm registry, with a per-package tracking token, in an HTTPS POST to `https://s85r5k14qk.execute-api.us-east-1.amazonaws.com/prod/hook`. The npm account amel10 published okra-cloud-cdk and 9 similar packages within two minutes on 2026-09-30, all with the same setup.js. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d24999f099af652e50d84fd923aa4cf90f12e3e1/osv/malicious/npm/okra-cloud-cdk/MAL-2026-17436.json)) **References:** - https://github.com/ossf/malicious-packages/blob/d24999f099af652e50d84fd923aa4cf90f12e3e1/osv/malicious/npm/okra-cloud-cdk/MAL-2026-17436.json - https://www.npmjs.com/package/okra-cloud-cdk - https://github.com/ossf/malicious-packages/blob/ae1ef40954ea15dd560720d58f647c9880afc699/osv/malicious/npm/okra-cloud-cdk/MAL-2026-17436.json - https://www.npmjs.com/package/okra-cloud-cdk/v/100.0.0 - https://github.com/advisories/GHSA-7rq8-hfxr-pxhw
Compromised versions (1)
- > 0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.