{"id":"MAL-2026-14303","summary":"Malicious code in x6842179305 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ca4cf1d317cc7c96f8007c983999e18529f2cb8dea5514dcc68f704c7bda5638)\nPackage x6842179305 ships a main entry (1.js) that invokes the `Function` constructor over a custom-encoded, keyed/XOR-decoded byte buffer, causing an opaque payload to execute whenever the module is required or imported. A sibling file (ui.js) contains a matching custom-alphabet decoder feeding another opaque byte stream. The runtime behavior of the decoded payload — including any network destinations, credential access, or filesystem writes — is not statically determinable because the code has no readable source form. The package name is a numeric burner-style identifier with no documented purpose, no README describing functionality, and no legitimate library shape (no exported API surface, no source tree). A Function()-constructor executor over a custom-encoded byte table on module load has no benign engineering rationale and matches the obfuscated-loader / dropper pattern used to hide install- or import-time payloads from static review.\n","modified":"2026-08-19T18:30:03.256425319Z","published":"2026-08-19T17:44:01Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-19T17:44:01Z","sha256":"21e4abc72b566010f36056a923127aceb70b5ef4bba919a6cced26d6ca662df2","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-018424","import_time":"2026-08-19T18:12:44.470953903Z"},{"modified_time":"2026-08-19T17:44:14Z","sha256":"ca4cf1d317cc7c96f8007c983999e18529f2cb8dea5514dcc68f704c7bda5638","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-018425","import_time":"2026-08-19T18:12:44.611632194Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/x6842179305/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/x6842179305/v/1.0.1"}],"affected":[{"package":{"name":"x6842179305","ecosystem":"npm","purl":"pkg:npm/x6842179305"},"versions":["1.0.0","1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/x6842179305/MAL-2026-14303.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"x6842179305-1.0.0.tgz","hashes":{"sha1":"c346cc6390fa616c4a23cc4440238bcae02b1c22","sha512_sri":"sha512-hURFKwl8ts2YC24rKq1Nu+h4aDmu4wMUbAJHdGerS6cwZzGAdPUuUijL8FLPxYYpdWUJlku7FT/t0JpVXi0wDw=="}}],"evidence_files":[{"tlsh":"14e4855b15e1346ae47eb7ca8e33ecbc40b24a730e176805752f74879f2c1e167e42a6","path":"1.js","sha256":"62eab048607b37e78c5813024f3394ec77716269e06332033b13d27749e81898"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}