MAL-2026-12221Malicious code in tailwind-custom-forms (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | tailwind-custom-forms | * |
| npm | tailwind-custom-forms | 0.5.2 |
{"schema_version":"1.7.4","id":"MAL-2026-12221","published":"2026-08-05T09:05:24Z","modified":"2026-08-25T15:32:18.331110561Z","aliases":["GHSA-4mgg-vhf5-9r79"],"summary":"Malicious code in tailwind-custom-forms (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0a94fe37df5952bc2326d9f0a759cf89d7105f47790fc71dc4731d87ec67a7f2)\nThe package impersonates @tailwindcss/forms: package.json declares the name `tailwind-custom-forms` while the repository field points at `github.com/tailwindlabs/tailwindcss-forms` and src/index.js contains a verbatim copy of that legitimate plugin. Appended after `module.exports = forms;` is `eval(atob('<large base64 blob>'))`, which decodes and executes on any `require('tailwind-custom-forms')`. The decoded payload reconstructs the module names `http`, `https`, `zlib`, `url`, and `child_process` from `\\u` escapes to hide its imports, uses `child_process.spawn`, and builds outbound HTTP requests with keep-alive agents to hosts resolved at runtime from Ethereum JSON-RPC endpoints (`eth.blockscout.com/api`, `1rpc.io/eth`, `eth.drpc.org`, `ethereum-rpc.publicnode.com`, `eth-mainnet.public.blastapi.io`) keyed off the hardcoded ETH address `0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a`, calling paths `/0x/cls` and `/0x/ls`. On-chain records act as a rotating dispatcher so the operator can update C2 hosts without republishing the package. Requiring this module executes attacker-controlled code on the installer's machine.\n\n## Source: ghsa-malware (3cb82ba15d4c2b620291d5a55882dabedb703d26b992536363a4c3ab72544a7d)\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","affected":[{"package":{"name":"tailwind-custom-forms","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.5.2"],"database_specific":{"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"}],"indicators":{"evidence_files":[{"path":"src/index.js","sha256":"47ce2da0014e4946fe38333dab062eefcdf627eb2d55b681c0cc0920566c1414","tlsh":"6492a5965212372fef17883af9cb9b9c23345071a3ec1b80e057d8756bc9a84755aa0f"},{"path":"package.json","sha256":"94bdbbf2780fffd9e4a319671bb8abcadd9e70ce71449962da7b3b090fdb0235","tlsh":"1521c826cd140e7701e0293596f9118372a7a463895cfc193386c19c8f8d6bfe0fa09f"}],"package_integrity":[{"filename":"tailwind-custom-forms-0.5.2.tgz","hashes":{"sha1":"a486e81c28189214c1a78595d195ba2caf22cedb","sha512_sri":"sha512-GQ4E6UQIh2iGL1Owhm3LTKz47qFOjOtWoxoD8dlsrbuF/q/5VbDdWgXhxUxfOIyyVQA9pExqMWuikg8Q83YJKg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-custom-forms/v/0.5.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4mgg-vhf5-9r79"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014540","import_time":"2026-08-05T09:28:23.654684155Z","modified_time":"2026-08-05T09:05:24Z","sha256":"0a94fe37df5952bc2326d9f0a759cf89d7105f47790fc71dc4731d87ec67a7f2","source":"amazon-inspector","versions":["0.5.2"]},{"id":"GHSA-4mgg-vhf5-9r79","import_time":"2026-08-25T15:30:22.774358993Z","modified_time":"2026-08-25T15:00:34Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3cb82ba15d4c2b620291d5a55882dabedb703d26b992536363a4c3ab72544a7d","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0