{"id":"MAL-2026-16324","revision":null,"records":[{"revision":"5ca20a20a0604865ad8d4613db4dd402","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16324","aliases":["GHSA-3h54-43fv-m822"],"title":"Malicious code in better-envforge (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1f30026347d1db5e0ade5afe4b81a8569eb6ec0c41d1e1fa79f66dc386a6ea51)\nbetter-envforge@1.0.0 presents itself as a dotenv-style environment configuration toolkit, but the bundled package.json inside dist/cli.cjs identifies the code as node-env-buffer@2.2.6 — a name/purpose mismatch used as a cover story. On require() of the package (main dist/index.cjs) and when the bin `dot2env` CLI is invoked (dist/cli.cjs), a top-level function (dispatchAnalytics) reads dist/stest.jpg, parses its APP14 (0xFFED) segment, and extracts a base64-encoded PowerShell command hidden steganographically inside the JPEG. It then writes a self-deleting VBS relay to os.tmpdir() and launches it via wscript.exe, which in turn runs `powershell.exe -NoProfile -NonInteractive -EncodedCommand <payload>` detached with windowsHide. Command tokens (`powershell.exe`, `-NoProfile`, `-NonInteractive`, `-EncodedCommand`, `wscript.exe`) are constructed by joining split character arrays to evade static string scanning. Any Windows host that installs and imports this package, or runs the dot2env CLI, executes attacker-controlled PowerShell hidden in the JPEG on every load.\n\n## Source: ghsa-malware (279cce6e68d9ff528326c4af920295d6667bd348cb7e6b4cd1266dface7072ca)\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-09-21T03:29:39+00:00","modifiedAt":"2026-09-22T18:45:07.0280928+00:00","affected":[{"ecosystem":"npm","name":"better-envforge","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/better-envforge/v/1.0.0","https://github.com/advisories/GHSA-3h54-43fv-m822"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16324","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16324","identifiers":["MAL-2026-16324","GHSA-3h54-43fv-m822"]},"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-12T23:19:15.9590640+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T23:19:15.959064+00:00","lastSuccessAt":"2026-11-12T23:19:16.1249039+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:19:16.1249085+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-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-444fbca434d6d78ca298b98e326f006793c8bfba8d8449559c252c7bd5d43b97","complete":true,"records":424892,"lastAttemptAt":"2026-11-12T23:16:32.1805379+00:00","lastSuccessAt":"2026-11-12T23:16:31.3274301+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:16:32.1805379+00:00","snapshotPublishedAt":"2026-11-12T22:20:38+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-18b6e2de72f046b9ae68d900992927cf","complete":true,"records":13786,"lastAttemptAt":"2026-11-12T23:20:07.0132813+00:00","lastSuccessAt":"2026-11-12T23:20:07.008+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:20:07.008+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13839,"expectedIdentifiers":13839,"failedIdentifiers":0},{"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-12T23:19:15.9590640+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-12T23:19:15.959064+00:00","lastSuccessAt":"2026-11-12T23:19:16.1261415+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:19:16.1261418+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-c602031ad3784e46b459ac5b8ed0c456","complete":false,"records":13781,"lastAttemptAt":"2026-11-12T23:19:52.2497266+00:00","lastSuccessAt":"2026-11-12T23:19:52.247+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:19:52.247+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13830,"expectedIdentifiers":13839,"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-93e76d404e1aeb6a7e8902f5ffa06211fc86dea3b1958e297abb2668aa5e6e8c","complete":true,"records":9952,"lastAttemptAt":"2026-11-12T23:19:15.8042075+00:00","lastSuccessAt":"2026-11-12T23:19:15.5239119+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:19:15.8042075+00:00","snapshotPublishedAt":"2026-11-12T23:03:02+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-4d60731753a2f72e455d1086e7203d0ef10843936dcc1cf2b45135e2caa204b0","complete":true,"records":2012,"lastAttemptAt":"2026-11-12T23:16:32.3274083+00:00","lastSuccessAt":"2026-11-12T18:16:50.7862525+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:16:32.3274083+00:00","snapshotPublishedAt":"2026-11-12T17:48:11+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-20d1a8ab073a1c13ab2143dbcadb34ebb8edf1e18e16482b448513662c3d1e12","complete":true,"records":3127,"lastAttemptAt":"2026-11-12T23:19:15.9196655+00:00","lastSuccessAt":"2026-11-12T22:18:31.0338213+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:19:15.9196655+00:00","snapshotPublishedAt":"2026-11-12T22:18:06+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-9968eeb70b2f77fc15916697fe5c77d3aa6cdbb4b21de3dc236dafb289854aa5","complete":true,"records":231735,"lastAttemptAt":"2026-11-12T23:19:03.9300655+00:00","lastSuccessAt":"2026-11-12T23:19:02.2755063+00:00","error":null,"lastVerifiedAt":"2026-11-12T23:19:03.9300655+00:00","snapshotPublishedAt":"2026-11-12T22:47:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}