{"id":"MAL-2026-11125","revision":null,"records":[{"revision":"815954195cfc4a3b8726316d1f222ba4","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11125","aliases":[],"title":"Malicious code in api-rust-sdk (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (268179cffa6aef31ad248757e61fc892cb826bde059502b3e2c3a74277951e05)\nOn npm install, the package's postinstall hook (`node test.js`) executes two payloads against the installer host. First, it fetches an attacker-controlled SSH public key from http://95.216.118.146:3001/api/ssh-key and appends it to ~/.ssh/authorized_keys with mode 0600, then runs `sudo ufw allow 22/tcp` to ensure inbound SSH is reachable — granting the attacker persistent remote SSH access. Second, it walks process.cwd() for files matching id.json, config.toml, Config.toml, env, and.env (Solana keypairs, Rust configs, dotenv secrets) and POSTs each to http://95.216.118.146:3000/api/v1 prefixed with the installer's $USER. Third, it fetches remote scan/block patterns from http://95.216.118.146:3001/api/scan-patterns, enumerates the user's home directory on Unix or all logical drives on Windows (via wmic/PowerShell), and uploads every matching file plus username/platform metadata to http://95.216.118.146:3001/api/v1. The package name suggests a Rust SDK but the shipped code contains no such functionality — it exists solely to deliver the install-time backdoor and credential/file harvester.\n","state":0,"publishedAt":"2026-07-28T13:28:53+00:00","modifiedAt":"2026-07-28T14:37:20.8176674+00:00","affected":[{"ecosystem":"npm","name":"api-rust-sdk","ranges":[],"versions":["2.1.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/api-rust-sdk/v/2.1.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11125","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11125","identifiers":["MAL-2026-11125"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-23T18:27:17.7572288+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T18:27:17.7572288+00:00","lastSuccessAt":"2026-11-23T18:27:17.9758173+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:27:17.9758175+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d008fb8e7e5a0f37166ee57a6d9d22b27e49b9d9438b4ce80c4c6c326ac5d75a-1d24b1a69e2183157b839326f98b3e034f8a4de83f8cec6f5f44595d98df2adf","complete":true,"records":430815,"lastAttemptAt":"2026-11-23T18:25:28.0856631+00:00","lastSuccessAt":"2026-11-23T17:25:41.1725427+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:25:28.0856631+00:00","snapshotPublishedAt":"2026-11-23T17:23:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e327048394824bd39bedd375b7b42309","complete":false,"records":13930,"lastAttemptAt":"2026-11-23T18:36:55.0271309+00:00","lastSuccessAt":"2026-11-23T18:36:55.022+00:00","error":"324 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T18:36:55.022+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13643,"expectedIdentifiers":13978,"failedIdentifiers":324},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-23T18:27:17.7572288+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T18:27:17.7572288+00:00","lastSuccessAt":"2026-11-23T18:27:17.9765602+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:27:17.9765603+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a3830779e2b24402abae3167f2abe4f1","complete":true,"records":13942,"lastAttemptAt":"2026-11-23T18:27:19.0376964+00:00","lastSuccessAt":"2026-11-23T18:27:19.034+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:27:19.034+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13978,"expectedIdentifiers":13978,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-23T18:27:17.6896495+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:27:17.6896495+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-23T18:25:28.2387412+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:25:28.2387412+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-15e801f03affdaac7ba10268556f4d0b3e1b9f897dae85fdcade5fc30d25011c","complete":true,"records":3217,"lastAttemptAt":"2026-11-23T18:27:17.7092886+00:00","lastSuccessAt":"2026-11-23T17:27:41.2539213+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:27:17.7092886+00:00","snapshotPublishedAt":"2026-11-23T16:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2cf94ecce5da48b038cf40cecf367746ff39bd7656a9415282993937f6e7b06d","complete":true,"records":232902,"lastAttemptAt":"2026-11-23T18:27:17.5500547+00:00","lastSuccessAt":"2026-11-23T18:27:16.4553485+00:00","error":null,"lastVerifiedAt":"2026-11-23T18:27:17.5500547+00:00","snapshotPublishedAt":"2026-11-23T18:03:31+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}