{"id":"MAL-2026-11212","revision":null,"records":[{"revision":"2b9d6f43424b48499b2e7e20656875c0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11212","aliases":["GHSA-c5ch-4w75-vcw7"],"title":"Malicious code in @goodjavascript/dotenv (npm)","description":"@goodjavascript/dotenv@1.0.0 (published 2025-03-22T09:05:32Z, replaced by an npm 0.0.1-security holding stub 2026-07-30T22:47:55Z — approximately 16 months live) is a two-file package that impersonates the API of the widely used dotenv configuration loader while running a command-and-control implant.\n\nThe published tarball contains only package.json (164 bytes) and index.js (840 bytes); unpacked size 1004 bytes. There is no scripts block, so there is no install hook — the implant is triggered at runtime, when the module is imported. The package declares a single runtime dependency, systeminformation@^5.25.11.\n\nindex.js exports { config: () => {} }, a no-op stub matching real dotenv's config() entry point, so a caller doing require('@goodjavascript/dotenv').config() observes no error and no effect.\n\nAt module load the file registers setInterval(..., 10000).unref(). The .unref() prevents the timer from holding the Node event loop open, so a host process still exits normally and the implant does not hang builds or short-lived scripts.\n\nThe beacon uses a bare global fetch and the package declares no engines constraint, so the network activity below occurs on Node runtimes that expose a global fetch (Node 18 and later). On each 10-second tick:\n\n1. systeminformation.getStaticData() collects a full static host profile (OS, hardware, network, UUIDs).\n2. The entire profile is POSTed as JSON to http://45.9.148.93/get/<system.uuid.os> — plain HTTP, hardcoded IPv4, no TLS. The OS UUID in the path serves as a per-host identifier.\n3. The response is parsed as JSON. If the field res.cute is present, it is treated as JavaScript source and executed: vm.createContext(ctx) followed by new vm.Script(res.cute).runInContext(ctx), where ctx is { res: <callback>, ...global }. Spreading global into the context gives the delivered code access to the host's Node globals. This is arbitrary remote code execution under the operator's control.\n4. Delivered code may call res(data) — the callback exposed as the context's res property — to POST results back to http://45.9.148.93/re/<system.uuid.os> with body { re: res.cuteId, data }, where res.cuteId correlates the result to the issued task.\n\nClassification: remote access trojan / staged remote-code-execution loader with host reconnaissance exfiltration. Trigger: runtime, on import — there is no install script. The code is not obfuscated.\n\nThe registry has since stripped the package metadata and replaced all content with an 0.0.1-security holding stub, so the tarball is no longer retrievable from npm or from the common mirrors (npmmirror, unpkg, yarn, Skypack, esm.sh, jspm, or jsDelivr file bodies). The analysed bytes were recovered from Software Heritage, which archived the package on 2025-11-04 while it was still published, and were verified independently: the recovered index.js has sha256 a5666532c367714568c5d112300e41d3c3fd6b8665c94f2bb98f5d74fc4d2d6c, matching the per-file sha256 recorded in jsDelivr's flat manifest for 1.0.0. Both sources are linked below.\n\nAt the time of writing, the address 45.9.148.93 does not appear in any other report in this repository.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (27bc0fba7c8305959e897341bc7487fdeb7cd478f89f715f2a36c98a9cdd12ba)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","state":0,"publishedAt":"2026-07-30T22:47:58+00:00","modifiedAt":"2026-08-03T05:19:36.2767006+00:00","affected":[{"ecosystem":"npm","name":"@goodjavascript/dotenv","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-c5ch-4w75-vcw7","https://www.npmjs.com/package/@goodjavascript/dotenv","https://archive.softwareheritage.org/browse/release/7f86f9ba0e8d621eda44b4412560d85ddf83fc83/","https://data.jsdelivr.com/v1/package/npm/%40goodjavascript%2Fdotenv@1.0.0/flat"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11212","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11212","identifiers":["MAL-2026-11212","GHSA-c5ch-4w75-vcw7"]},"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-23T12:25:38.3858409+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T12:25:38.3858409+00:00","lastSuccessAt":"2026-11-23T12:25:38.5925898+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.59259+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-e0474ecdd1dd034df26f6498aad3fe02582afc82fa78d21d9858b0a85325cb21","complete":true,"records":430618,"lastAttemptAt":"2026-11-23T12:25:37.6251781+00:00","lastSuccessAt":"2026-11-23T12:25:37.5663199+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:37.6251781+00:00","snapshotPublishedAt":"2026-11-23T11:30:07+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-839ba126593245bd8641a64afc2e2642","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T12:35:18.6984334+00:00","lastSuccessAt":"2026-11-23T12:35:18.694+00:00","error":"247 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T12:35:18.694+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13705,"expectedIdentifiers":13976,"failedIdentifiers":247},{"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-23T12:25:38.3858409+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T12:25:38.3858409+00:00","lastSuccessAt":"2026-11-23T12:25:38.5933337+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.593334+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-93e5580208494f94820efc1fb6fd9471","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T12:25:40.0629638+00:00","lastSuccessAt":"2026-11-23T12:25:40.059+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:40.059+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13976,"expectedIdentifiers":13976,"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-23T12:25:38.2508855+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.2508855+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-23T12:25:37.7829703+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:37.7829703+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-9035327876399d833ccd89428db993d67e1ee675265fd15c191a68c5fa77f5a4","complete":true,"records":3216,"lastAttemptAt":"2026-11-23T12:25:38.3509395+00:00","lastSuccessAt":"2026-11-23T10:27:16.8439398+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.3509395+00:00","snapshotPublishedAt":"2026-11-23T09:49:12+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-eff9dfb7fcad562c432f16aeb11b612e17ad078a4a4304d91b73dafe94cec5c7","complete":true,"records":232881,"lastAttemptAt":"2026-11-23T12:25:38.1500978+00:00","lastSuccessAt":"2026-11-23T11:27:05.0429339+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.1500978+00:00","snapshotPublishedAt":"2026-11-23T10:48:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}