{"id":"MAL-2026-12508","revision":"e24436fcff6142129dc063d563e8b56b","records":[{"revision":"e24436fcff6142129dc063d563e8b56b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12508","aliases":[],"title":"Malicious code in @shiftmarkets/no-brainer-sdk (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3149c40a7290d16b0247a1128a3e25ba1614e87e5c7261e486ce2e826ac66987)\nThe package runs `node dist/recon.js` as a postinstall lifecycle script on every `npm install`. The script collects host reconnaissance from the installer machine — hostname, username, SUDO_USER, homedir, cwd, network interface addresses (including internal/private IPs), CI indicators, npm lifecycle metadata, and the full list of environment variable names — and additionally filters those names against a credential-focused regex (AWS, GCP, GOOGLE, AZURE, NPM, NODE_AUTH, DOCKER, KUBE, VAULT, TOKEN, SECRET, KEY, PASS, CRED, GITHUB, GITLAB, SSH) to produce a `secretish_names` list. The JSON payload is POSTed over plain HTTP to the hardcoded bare-IPv4 endpoint http://138.68.108.20:80/cb, which is not a Shift Markets domain. The code labels itself as 'NON-SENSITIVE telemetry' but the destination is an unrelated bare IP and the installer never opted in. Enumerating which cloud/CI secret names exist on the host maps the target's credential inventory for follow-up attacks.\n","state":0,"publishedAt":"2026-08-05T13:09:44+00:00","modifiedAt":"2026-08-05T14:35:04.4783242+00:00","affected":[{"ecosystem":"npm","name":"@shiftmarkets/no-brainer-sdk","ranges":[],"versions":["1.0.18"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@shiftmarkets/no-brainer-sdk/v/1.0.18"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12508","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12508","identifiers":["MAL-2026-12508"]},"retained":false,"historicalAffected":[]}],"coverage":[]}