{"id":"MAL-2026-5559","revision":"d7f3aabacfae41b78fad54dda26fd113","records":[{"revision":"d7f3aabacfae41b78fad54dda26fd113","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5559","aliases":["GHSA-85ph-3qr8-3q2q"],"title":"Malicious code in solana-dev-tools (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (059c5a74392811a397d3868092b7bcc84fbfac9d2f3de1c69a6421cdf756b652)\nOn `npm install`, the package's postinstall hook (`node install.js`) executes a multi-stage attack against the installer's machine. It reads ~/.config/solana/id.json, ~/.solana/id.json, ~/.ssh/id_rsa, ~/.aws/credentials, project-local.env files, and bulk-scrapes process.env keys matching KEY|SECRET|MNEMONIC|PRIVATE|TOKEN|PASSWORD|RPC|AWS|NPM|GITHUB|CI|DEPLOY. The collected secrets are POSTed to api.telegram.org/bot<base64-decoded-token>/sendMessage. When any Solana keypair byte array is recovered, the script reconstructs the Keypair, queries mainnet-beta balance via api.mainnet-beta.solana.com, and issues a SystemProgram.transfer of the full balance minus 5000 lamports to the hardcoded attacker pubkey D4hGgKKaBFZV1NUTWvYRwbpu8HHr3qmDfHyKCTLqbaE7. The script also installs a `@reboot sleep 90 && node <install.js>` crontab entry for persistence across reboots. A sandbox-evasion routine inspects /.dockerenv, the AWS metadata IP 169.254.169.254, presence of strace/tcpdump, hex-style hostnames, and the presence of socket-security/snyk/npm-audit dependencies to suppress persistence in analysis environments while still attempting exfiltration. The package's stated purpose (\"Solana development CLI tools\") is a cover story; it impersonates legitimate Solana developer tooling.\n","state":0,"publishedAt":"2026-06-11T03:10:25+00:00","modifiedAt":"2026-09-01T11:31:01.6655168+00:00","affected":[{"ecosystem":"npm","name":"solana-dev-tools","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/solana-dev-tools/v/1.0.0","https://github.com/advisories/GHSA-85ph-3qr8-3q2q"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5559","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5559","identifiers":["MAL-2026-5559","GHSA-85ph-3qr8-3q2q"]},"retained":false,"historicalAffected":[]}],"coverage":[]}