{"id":"MAL-2026-14298","summary":"Malicious code in emoji-prints-fancy (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (163576a0a8b626c88261c8cc54c5049d981015c80145ad36e2710fff5014afbe)\nThe package advertises itself as a colorized logger, but dist/index.js requires./logger, which at module load AES-256-CBC-decrypts a hardcoded ciphertext using a hardcoded passphrase, salt and IV (pbkdf2Sync with sha1, 100000 iterations) and passes the resulting plaintext to child_process.spawn with { shell: true, windowsHide: true, stdio: 'ignore' } via a _resolveConfig -\u003e _runSystemTask path invoked by a top-level _warmConfigCache() call. Multiple decoy helpers (_checkResources, _registerToken, _semverCompare, _emitEvent, _poolBucket) surround the payload path and provide no functionality, and the AES layer serves only to conceal the executed command from static inspection. Any consumer that installs and require()s or imports this package silently executes the concealed shell command on the installer's host with output suppressed.\n\n## Source: ghsa-malware (72e262f2593034b4c44657cfe9ab96295c5085e2aa249aa239f06a08e9c1e7a5)\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","aliases":["GHSA-m523-mggx-3fgr"],"modified":"2026-09-22T03:45:06.641786581Z","published":"2026-08-19T10:10:54Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-19T10:11:38.751696821Z","modified_time":"2026-08-19T10:10:54Z","sha256":"163576a0a8b626c88261c8cc54c5049d981015c80145ad36e2710fff5014afbe","source":"amazon-inspector","versions":["5.6.4"],"id":"IN-MAL-2026-018419"},{"id":"GHSA-m523-mggx-3fgr","import_time":"2026-09-22T03:30:07.735291292Z","modified_time":"2026-09-22T03:17:07Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"72e262f2593034b4c44657cfe9ab96295c5085e2aa249aa239f06a08e9c1e7a5","source":"ghsa-malware"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/emoji-prints-fancy/v/5.6.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m523-mggx-3fgr"}],"affected":[{"package":{"name":"emoji-prints-fancy","ecosystem":"npm","purl":"pkg:npm/emoji-prints-fancy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["5.6.4"],"database_specific":{"indicators":{"package_integrity":[{"filename":"emoji-prints-fancy-5.6.4.tgz","hashes":{"sha512_sri":"sha512-HSHvT88zyxVVAVXMOlEfPF6MVpyCrOl26nFyKpoBb65K8EdLGO3DUFEeTtjnWn/k996q5llNE9YuVz32TsONvw==","sha1":"c8c44367b4ccacef8d0e476ec8fbc12e3757ea47"}}],"evidence_files":[{"tlsh":"8a8165c639a6a0a38af09a914a57a019fd6515332717d2f4f6ecf1890f7a714c1e3d8c","path":"dist/logger.js","sha256":"ea5c561d7f8729f83de3ba6004891ba57ae7a6b00ed96f08ea47c95d00899be6"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/emoji-prints-fancy/MAL-2026-14298.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}