Malicious code in tailwind-form-templates (npm)
The npm package tailwind-form-templates version 0.7.4 contains malicious code that executes remote commands on the host installing the package. It masquerades as the legitimate @tailwindcss/forms package but appends an obfuscated payload that dynamically fetches commands from an attacker-controlled server, using Ethereum blockchain transactions to rotate the command-and-control endpoint. This results in a full remote code execution channel on the installer system.
AI Analysis
Technical Summary
The tailwind-form-templates npm package (version 0.7.4) is a malicious package impersonating the legitimate @tailwindcss/forms library. Its source code includes an eval(atob(...)) payload that runs on require(), which decodes obfuscated strings and dynamically requires http/https and child_process modules. Upon import, it queries Ethereum public RPCs and eth.blockscout.com/api for transactions from a hardcoded wallet address. It extracts an attacker-controlled IPv4 address from a transaction's 'to' field, fetches an XOR-encrypted command from that IP via a custom header, and executes the command using eval and a detached Node.js process. This creates a remote code execution backdoor on the host installing the package, with the command-and-control endpoint dynamically controlled via on-chain Ethereum transactions (EtherHiding pattern). The malicious code is grafted onto a legitimate library to evade detection.
Potential Impact
This malicious package enables full remote code execution on any system that installs it, allowing attackers to execute arbitrary commands with the privileges of the installing user. The dynamic and obfuscated nature of the payload, combined with the use of Ethereum blockchain transactions to control the command-and-control server, makes detection and mitigation more difficult. This poses a critical risk to the confidentiality, integrity, and availability of affected systems.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing the tailwind-form-templates package version 0.7.4 and verify the authenticity of npm packages before installation. Remove any instances of this package from systems and conduct a thorough investigation for potential compromise. Monitor for suspicious network activity related to Ethereum RPC queries or unexpected outbound connections. Check vendor advisories or npm security notices for updates or official guidance.
Malicious code in tailwind-form-templates (npm)
Description
The npm package tailwind-form-templates version 0.7.4 contains malicious code that executes remote commands on the host installing the package. It masquerades as the legitimate @tailwindcss/forms package but appends an obfuscated payload that dynamically fetches commands from an attacker-controlled server, using Ethereum blockchain transactions to rotate the command-and-control endpoint. This results in a full remote code execution channel on the installer system.
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 tailwind-form-templates npm package (version 0.7.4) is a malicious package impersonating the legitimate @tailwindcss/forms library. Its source code includes an eval(atob(...)) payload that runs on require(), which decodes obfuscated strings and dynamically requires http/https and child_process modules. Upon import, it queries Ethereum public RPCs and eth.blockscout.com/api for transactions from a hardcoded wallet address. It extracts an attacker-controlled IPv4 address from a transaction's 'to' field, fetches an XOR-encrypted command from that IP via a custom header, and executes the command using eval and a detached Node.js process. This creates a remote code execution backdoor on the host installing the package, with the command-and-control endpoint dynamically controlled via on-chain Ethereum transactions (EtherHiding pattern). The malicious code is grafted onto a legitimate library to evade detection.
Potential Impact
This malicious package enables full remote code execution on any system that installs it, allowing attackers to execute arbitrary commands with the privileges of the installing user. The dynamic and obfuscated nature of the payload, combined with the use of Ethereum blockchain transactions to control the command-and-control server, makes detection and mitigation more difficult. This poses a critical risk to the confidentiality, integrity, and availability of affected systems.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing the tailwind-form-templates package version 0.7.4 and verify the authenticity of npm packages before installation. Remove any instances of this package from systems and conduct a thorough investigation for potential compromise. Monitor for suspicious network activity related to Ethereum RPC queries or unexpected outbound connections. Check vendor advisories or npm security notices for updates or official guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13923
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a7cd443bf8831d53918707c
Added to database: 08/12/2026, 20:14:59 UTC
Last enriched: 08/12/2026, 20:27:27 UTC
Last updated: 09/25/2026, 15:44:40 UTC
Views: 90
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.