{"id":"MAL-2026-10940","revision":null,"records":[{"revision":"b3b81af4195240f0a094be274b874614","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10940","aliases":["GHSA-m3c7-2j38-rjh7"],"title":"Malicious code in chai-leaf (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (77cc7562a27df348fafc455124fd845dfc2e5774c42279ee6e3dd8f1cfb1f05b)\nchai-leaf@1.4.5's main entry index.js unconditionally requires./lib/config, which is a single 3,546,568-byte obfuscator.io-encoded file (20,721-entry string array with self-defending routines) that runs immediately on require(). The decoded string table inside lib/config.js contains literals for.ssh and.aws (installer credential directories) alongside axios, spawn, exec, Function, and require — the shape of a load-time credential stealer that reads secrets from the installer's home directory and exfiltrates via HTTP. package.json declares axios as a runtime dependency. The package presents itself with inconsistent cover stories: package.json describes it as vulnerability-management documentation while the README impersonates pino (badges, prose, and docs/api.md copied verbatim from pinojs/pino) and the lib/ tree mirrors pino's file names (proto.js, redaction.js, tools.js, transport.js, worker.js) with the extra obfuscated config.js that has no analog in real pino. The package name and README also allude to chai, unrelated to either declared purpose. A logger/chai plugin has no legitimate need for a multi-megabyte self-defending obfuscated blob that executes at import, and no legitimate need to reference ~/.ssh and ~/.aws.\n\n## Source: ghsa-malware (38312fd425c2921477fe6eecb5036500bcdbc1735dee43f3a84cfcbf2ba3002f)\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-21T00:47:19+00:00","modifiedAt":"2026-09-24T09:00:43.1341891+00:00","affected":[{"ecosystem":"npm","name":"chai-leaf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.4.5","1.4.7","1.4.6","1.4.8"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-m3c7-2j38-rjh7","https://www.npmjs.com/package/chai-leaf/v/1.4.5","https://www.npmjs.com/package/chai-leaf/v/1.4.7","https://www.npmjs.com/package/chai-leaf/v/1.4.6","https://www.npmjs.com/package/chai-leaf/v/1.4.8"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10940","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10940","identifiers":["MAL-2026-10940","GHSA-m3c7-2j38-rjh7"]},"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-12T17:18:53.3551573+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T17:18:53.3551573+00:00","lastSuccessAt":"2026-11-12T17:18:53.5098368+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:18:53.5098375+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-c64cc013e4ac327a566ebd7919181330aa5f66a956ac80541b59e61c9511ffa7","complete":true,"records":424746,"lastAttemptAt":"2026-11-12T17:16:18.2884716+00:00","lastSuccessAt":"2026-11-12T16:16:35.9151725+00:00","error":"AccessDenied (HTTP 403)","lastVerifiedAt":"2026-11-12T16:16:35.996916+00:00","snapshotPublishedAt":"2026-11-12T15:27:51+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-88e6245ba7dc4729a2344f78a2d37df7","complete":true,"records":13774,"lastAttemptAt":"2026-11-12T17:19:38.3951622+00:00","lastSuccessAt":"2026-11-12T17:19:38.384+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:19:38.384+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13827,"expectedIdentifiers":13827,"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-12T17:18:53.3551573+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-12T17:18:53.3551573+00:00","lastSuccessAt":"2026-11-12T17:18:53.5137452+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:18:53.5137465+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-053c822da76a4019981dc05530c81af1","complete":false,"records":13774,"lastAttemptAt":"2026-11-12T17:19:19.2511928+00:00","lastSuccessAt":"2026-11-12T17:19:19.245+00:00","error":"200 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-12T17:19:19.245+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13613,"expectedIdentifiers":13827,"failedIdentifiers":200},{"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-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-12T17:18:53.1888873+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:18:53.1888873+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+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-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-12T17:16:18.5164346+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:16:18.5164346+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+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-0d57668ba92a2918d0664e89ea91d467f8e6a2bc6330923eb883b74ac42a14ec","complete":true,"records":3125,"lastAttemptAt":"2026-11-12T17:18:53.2989437+00:00","lastSuccessAt":"2026-11-12T15:18:36.6112732+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:18:53.2989437+00:00","snapshotPublishedAt":"2026-11-12T14:48:37+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-bde599d85a9f7715a977e2ca25ddb66721130a1c4ff1699631218bc0243e1ab5","complete":true,"records":231717,"lastAttemptAt":"2026-11-12T17:18:53.040847+00:00","lastSuccessAt":"2026-11-12T17:18:51.4424333+00:00","error":null,"lastVerifiedAt":"2026-11-12T17:18:53.040847+00:00","snapshotPublishedAt":"2026-11-12T16:33:03+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}