{"id":"MAL-2026-10942","revision":null,"records":[{"revision":"723bb7d0621f44eda07d3697be64cd56","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10942","aliases":[],"title":"Malicious code in aftermath-sui (npm)","description":"The aftermath-sui package was published to the npm registry by user 'jet0010001' (maintainer email bremagml0002@gmail.com) as part of a dependency-confusion / reconnaissance campaign impersonating the Aftermath Finance SDK (Aftermath Finance is a DeFi protocol on the Sui blockchain). The package was published at version 99.0.0 - an inflated version number characteristic of dependency-confusion attacks, intended to cause a misconfigured resolver to prefer this public lookalike over the intended private/internal dependency of the same name.\n\nThe package declares a preinstall hook (\"node setup.js || true\") that executes automatically at npm install time, before any application code runs. The bundled setup.js performs host reconnaissance and credential harvesting: it collects the machine hostname, the current OS username, the current working directory, the contents of /etc/hostname, and the output of 'git remote -v', and it enumerates process environment variables whose names match the pattern /key|secret|token|pass|auth|private|drone|gitea|sui|admin|deploy/i - capturing API keys, secrets, tokens, passwords, and Sui/deploy/CI credentials. The collected data is serialized to JSON and exfiltrated via an HTTPS POST to the hardcoded attacker-controlled endpoint https://2.25.140.71:8443/aftermath/npm-dep-conf, with TLS certificate verification disabled (rejectUnauthorized: false) so a self-signed listener is accepted. Errors are silently swallowed so the install appears to succeed. The published module code (index.js) is a benign stub exporting only { version: \"99.0.0\" }, consistent with a package built solely to deliver the install-time beacon.\n\nThe install-time payload is byte-for-byte identical across the campaign's packages (aftermath-finance, aftermath-sui, aftermathfi), all published by the same maintainer within seconds of each other and all beaconing to the same collector.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0157a24eb15337a04879abcb94a3293e67dc6cea5efce56541aaa7a43ab5cd53)\nThe package's preinstall script (setup.js, invoked via scripts.preinstall = 'node setup.js') runs automatically on npm install. It enumerates process.env and filters keys matching /key|secret|token|pass|auth|private|drone|gitea|sui|admin|deploy/i, and additionally collects os.hostname(), os.userInfo().username, process.cwd(), the contents of /etc/hostname, and the output of `git remote -v`. The collected JSON is POSTed to a hardcoded bare-IP endpoint at https://2.25.140.71:8443/aftermath/npm-dep-conf with TLS certificate verification disabled (rejectUnauthorized:false). The destination is a raw IP unrelated to any legitimate Aftermath Finance / Sui infrastructure, and the package name resembles the Aftermath Finance ecosystem, consistent with a typosquat targeting Sui/Aftermath developers.\n","state":0,"publishedAt":"2026-07-20T00:00:00+00:00","modifiedAt":"2026-07-28T14:37:18.9626646+00:00","affected":[{"ecosystem":"npm","name":"aftermath-sui","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["99.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/aftermath-sui","https://www.npmjs.com/package/aftermath-sui/v/99.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10942","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10942","identifiers":["MAL-2026-10942"]},"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}]}