Malicious code in emoji-prints-fancy (npm)
The npm package emoji-prints-fancy version 5.6.4 contains malicious code that decrypts a hardcoded ciphertext and executes the resulting shell command silently on the host system when the package is imported or required. The malicious payload is concealed using AES-256-CBC encryption with a fixed passphrase, salt, and IV, and is triggered during module load without user awareness. Several decoy helper functions are present to obfuscate the malicious execution path. This results in silent execution of arbitrary commands with suppressed output.
AI Analysis
Technical Summary
The emoji-prints-fancy npm package (version 5.6.4) masquerades as a colorized logger but includes malicious code in its dist/index.js file. Upon module load, it decrypts a hardcoded ciphertext using AES-256-CBC with a fixed passphrase, salt, and IV derived via pbkdf2Sync (sha1, 100000 iterations). The decrypted plaintext is then executed as a shell command via child_process.spawn with shell execution enabled and output suppressed. This execution path is invoked by a top-level _warmConfigCache() call and is obscured by multiple non-functional decoy helper functions. Any user installing and importing this package will unknowingly execute the concealed command on their system.
Potential Impact
Any system that installs and imports emoji-prints-fancy version 5.6.4 will silently execute an attacker-controlled shell command with the privileges of the importing process. The output of this command is suppressed, making detection difficult. This can lead to arbitrary code execution, potentially compromising the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or importing emoji-prints-fancy version 5.6.4. Consider removing this package from existing environments and replacing it with a trusted alternative.
Malicious code in emoji-prints-fancy (npm)
Description
The npm package emoji-prints-fancy version 5.6.4 contains malicious code that decrypts a hardcoded ciphertext and executes the resulting shell command silently on the host system when the package is imported or required. The malicious payload is concealed using AES-256-CBC encryption with a fixed passphrase, salt, and IV, and is triggered during module load without user awareness. Several decoy helper functions are present to obfuscate the malicious execution path. This results in silent execution of arbitrary commands with suppressed output.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The emoji-prints-fancy npm package (version 5.6.4) masquerades as a colorized logger but includes malicious code in its dist/index.js file. Upon module load, it decrypts a hardcoded ciphertext using AES-256-CBC with a fixed passphrase, salt, and IV derived via pbkdf2Sync (sha1, 100000 iterations). The decrypted plaintext is then executed as a shell command via child_process.spawn with shell execution enabled and output suppressed. This execution path is invoked by a top-level _warmConfigCache() call and is obscured by multiple non-functional decoy helper functions. Any user installing and importing this package will unknowingly execute the concealed command on their system.
Potential Impact
Any system that installs and imports emoji-prints-fancy version 5.6.4 will silently execute an attacker-controlled shell command with the privileges of the importing process. The output of this command is suppressed, making detection difficult. This can lead to arbitrary code execution, potentially compromising the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or importing emoji-prints-fancy version 5.6.4. Consider removing this package from existing environments and replacing it with a trusted alternative.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14298
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4a3acd9273b4925075e
Added to database: 08/19/2026, 13:50:27 UTC
Last enriched: 08/19/2026, 13:55:54 UTC
Last updated: 08/19/2026, 13:55:54 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.