Malicious code in emojifancy-print (npm)
The npm package emojifancy-print version 5.6.3 contains a malicious backdoor that executes attacker-controlled shell commands automatically when the package is imported. This backdoor decrypts an embedded AES-256-CBC ciphertext using hardcoded cryptographic parameters and runs the resulting command silently and detached from the user's environment. The package masquerades as a colorized logger but includes deceptive no-op functions and fake data to hide its true behavior. Any system with this package installed should be considered compromised, and secrets stored on it should be rotated immediately.
AI Analysis
Technical Summary
The emojifancy-print npm package version 5.6.3 includes a supply-chain backdoor triggered at import time. The malicious code in dist/logger.js decrypts an embedded AES-256-CBC encrypted command using hardcoded passphrase, salt, and IV with PBKDF2-SHA1 (100,000 iterations). This decrypted command is executed via child_process.spawn with shell execution, detached process, and suppressed output to evade detection. The rest of the code contains decoy functions and fake environment data to mislead analysis. This backdoor allows remote attacker-controlled shell command execution on any machine that installs and requires this package.
Potential Impact
Systems with emojifancy-print version 5.6.3 installed and imported are fully compromised, as attacker-controlled shell commands run silently with the privileges of the importing process. This can lead to arbitrary code execution, data theft, persistence, and further system compromise. Because the backdoor triggers automatically on require, any use of the package results in immediate compromise. Secrets and keys stored on the affected system are at risk and should be considered exposed.
Mitigation Recommendations
Remove the emojifancy-print package version 5.6.3 immediately from all affected systems. Rotate all secrets, credentials, and keys that were stored or accessible on compromised machines from a secure, unaffected environment. Because the backdoor executes at import time and may have allowed full system compromise, assume the system is untrusted and consider rebuilding or thoroughly investigating for additional persistence mechanisms. No official patch or fix is currently available; avoid using this package until a trustworthy version is released.
Malicious code in emojifancy-print (npm)
Description
The npm package emojifancy-print version 5.6.3 contains a malicious backdoor that executes attacker-controlled shell commands automatically when the package is imported. This backdoor decrypts an embedded AES-256-CBC ciphertext using hardcoded cryptographic parameters and runs the resulting command silently and detached from the user's environment. The package masquerades as a colorized logger but includes deceptive no-op functions and fake data to hide its true behavior. Any system with this package installed should be considered compromised, and secrets stored on it should be rotated immediately.
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 emojifancy-print npm package version 5.6.3 includes a supply-chain backdoor triggered at import time. The malicious code in dist/logger.js decrypts an embedded AES-256-CBC encrypted command using hardcoded passphrase, salt, and IV with PBKDF2-SHA1 (100,000 iterations). This decrypted command is executed via child_process.spawn with shell execution, detached process, and suppressed output to evade detection. The rest of the code contains decoy functions and fake environment data to mislead analysis. This backdoor allows remote attacker-controlled shell command execution on any machine that installs and requires this package.
Potential Impact
Systems with emojifancy-print version 5.6.3 installed and imported are fully compromised, as attacker-controlled shell commands run silently with the privileges of the importing process. This can lead to arbitrary code execution, data theft, persistence, and further system compromise. Because the backdoor triggers automatically on require, any use of the package results in immediate compromise. Secrets and keys stored on the affected system are at risk and should be considered exposed.
Defensive Guidance
Remove the emojifancy-print package version 5.6.3 immediately from all affected systems. Rotate all secrets, credentials, and keys that were stored or accessible on compromised machines from a secure, unaffected environment. Because the backdoor executes at import time and may have allowed full system compromise, assume the system is untrusted and consider rebuilding or thoroughly investigating for additional persistence mechanisms. No official patch or fix is currently available; avoid using this package until a trustworthy version is released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4550
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-46c9-x7v7-2g5h"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a870a77acd9273b49b593ba
Added to database: 08/20/2026, 14:08:55 UTC
Last enriched: 08/20/2026, 14:37:49 UTC
Last updated: 08/20/2026, 23:35:42 UTC
Views: 8
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.