{"id":"MAL-2026-6311","revision":null,"records":[{"revision":"d86e0edf92d64f9393e68a8b75f38d25","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-6311","aliases":["GHSA-j2pw-qr45-rpjm"],"title":"Malicious code in @thymelab/logfx (npm)","description":"@thymelab/logfx (malicious version 2.15.5, published by thymelab-v0et8w@wshu.net) is a trojanized npm package belonging to the wshu.net credential-stealer campaign. The campaign published trojanized look-alike utility packages across 12+ scopes whose publisher accounts all follow the pattern <scope>-<6 random chars>@wshu.net, with every scope created on June 4, 2026 in a ~40-minute burst. This package masquerades as a logger and ships real, working utility code so it passes a glance, while bundling a much larger malicious payload at dist/bootstrap.js. package.json declares a postinstall hook (\"node dist/bootstrap.js\") that runs the payload automatically on npm install. The payload is heavily obfuscated with javascript-obfuscator (hex-named identifiers, a while (!![]) array-rotation IIFE, base64+RC4 string decoding, control-flow flattening, and runtime-decrypted module resolution to stay out of the static module graph). At runtime it is a Chromium browser credential stealer: it reads Chromium Cookies and Login Data and decrypts saved passwords protected by AES-256-GCM (the v10/v11 app-bound key schemes), then exfiltrates them over HTTPS using a spoofed Mozilla/5.0 user agent. Malicious payload dist/bootstrap.js SHA-256: 4e927f22ad04f4ac9b487ae11412fc2a55210188789ac29f3a47ad77931907a5.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (edce595ab99f7bcc5404f8c1222a1d8f5a7cbbb1fc6cd6e02aabddaf19526839)\n@thymelab/logfx@2.15.5 ships a postinstall hook (`postinstall: node dist/bootstrap.js`) that runs a 282KB obfuscator.io-packed script on every `npm install`. The decoded control flow performs HTTPS GETs to a runtime-decrypted URL, AES-256-GCM-decrypts the response using an embedded key, sha256-verifies, stages files into `os.tmpdir()`, chmod's them, and re-spawns them via `process.execPath` using `child_process.spawn` with detached/unref'd handles. The script disables itself when `--inspect`/`--debug` are present (anti-analysis). The destination URL and decryption key are not pinned plaintext — they are decrypted at runtime, giving the publisher a mutable, attacker-controlled execution channel into every installer. Independently, `dist/logfx.js` is a near-verbatim copy of the `unjs/consola` logger and `package.json.repository`/`bugs.url` falsely point to `github.com/unjs/consola`, impersonating that project; an appended IIFE wraps the exported `withTag` API to call `require('./bootstrap').runPrepare()`, so the dropper also detonates when a consumer simply imports the package and uses its documented API. The combination of opaque obfuscation, runtime-decrypted remote URL, tmpdir staging with execPath respawn, anti-debug guard, and import-time trigger is a hostile install-time dropper, not a logging utility.\n\n## Source: ghsa-malware (08f3559a1cc7db65d7283866af8fccef230f7abf56b8439b81fc79efbf35742c)\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-06-22T12:00:00+00:00","modifiedAt":"2026-08-13T22:15:20.4592331+00:00","affected":[{"ecosystem":"npm","name":"@thymelab/logfx","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["2.15.3","2.15.6","2.15.5","2.15.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@thymelab/logfx/v/2.15.3","https://www.npmjs.com/package/@thymelab/logfx/v/2.15.6","https://www.npmjs.com/package/@thymelab/logfx/v/2.15.5","https://www.npmjs.com/package/@thymelab/logfx/v/2.15.4","https://safedep.io/wshu-net-npm-credential-stealer-campaign/","https://www.npmjs.com/package/@thymelab/logfx","https://github.com/advisories/GHSA-j2pw-qr45-rpjm"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-6311","license":"OSV · upstream source license applies","key":"osv:MAL-2026-6311","identifiers":["MAL-2026-6311","GHSA-j2pw-qr45-rpjm"]},"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-22T02:35:14.4530558+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T02:35:14.4530558+00:00","lastSuccessAt":"2026-11-22T02:35:14.6146729+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.6146746+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-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-6fbb544332252ce7f6ab5219558f5fc70ebc81aa87ab539e2ae3685083dfe86f","complete":true,"records":430368,"lastAttemptAt":"2026-11-22T02:35:13.7783233+00:00","lastSuccessAt":"2026-11-22T02:35:13.7495544+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:13.7783233+00:00","snapshotPublishedAt":"2026-11-22T01:28:54+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-a1a626974f664243a4d36094f9e924dc","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T02:49:52.6704452+00:00","lastSuccessAt":"2026-11-22T02:49:52.666+00:00","error":"139 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T02:49:52.666+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13502,"expectedIdentifiers":13975,"failedIdentifiers":139},{"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-22T02:35:14.4530558+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T02:35:14.4530558+00:00","lastSuccessAt":"2026-11-22T02:35:14.6158261+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.6158264+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-5676e481221a4eb3bb45efe15be10127","complete":false,"records":13939,"lastAttemptAt":"2026-11-22T02:35:39.8108386+00:00","lastSuccessAt":"2026-11-22T02:35:39.807+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:39.807+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13475,"expectedIdentifiers":13975,"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-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T02:35:14.4054693+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.4054693+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+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-22T02:35:13.9197439+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:13.9197439+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-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T02:35:14.4180995+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.4180995+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+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-51ee6316df1f127212a04a5d14e44bd5b8320ce3e4eef0c5252608edb6cd3602","complete":true,"records":232850,"lastAttemptAt":"2026-11-22T02:35:14.2967832+00:00","lastSuccessAt":"2026-11-21T23:27:19.9062791+00:00","error":null,"lastVerifiedAt":"2026-11-22T02:35:14.2967832+00:00","snapshotPublishedAt":"2026-11-21T23:18:21+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}