{"id":"MAL-2026-17524","summary":"Malicious code in tailwindcss-forms-styles (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (587d9a389f35a8ec2d3ed714c90f7daa43feb6875f4ce2e4280f5ce19569d895)\nThe package name tailwindcss-forms-styles mimics the legitimate @tailwindcss/forms plugin, and its src/index.js copies that plugin's code verbatim as cover. Above the cover code, a top-level IIFE joins a ~140-element base64 string array, atob()-decodes it, and eval()s the result. The decoded loader queries public Ethereum RPC/Blockscout endpoints for the most recent transaction sent by hardcoded address 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a, parses two IPv4 addresses out of the transaction recipient field, downloads an XOR-encoded JavaScript payload from staging URLs of the form http://\u003cip\u003e:443/0x/cls and http://\u003cip\u003e:443/0x/ls, and executes it via eval and a detached spawn('node', ['-e',...]) child process. Because the IIFE runs at module load, any consumer that performs require('tailwindcss-forms-styles') triggers remote code execution on the installer, with the command-and-control endpoint resolved dynamically from the blockchain so the C2 can be rotated without changing the package.\n","modified":"2026-10-04T23:45:18.504903753Z","published":"2026-10-04T23:25:12Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-10-04T23:40:45.329549096Z","modified_time":"2026-10-04T23:25:12Z","sha256":"587d9a389f35a8ec2d3ed714c90f7daa43feb6875f4ce2e4280f5ce19569d895","source":"amazon-inspector","versions":["0.5.1"],"id":"IN-MAL-2026-020952"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwindcss-forms-styles/v/0.5.1"}],"affected":[{"package":{"name":"tailwindcss-forms-styles","ecosystem":"npm","purl":"pkg:npm/tailwindcss-forms-styles"},"versions":["0.5.1"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwindcss-forms-styles/MAL-2026-17524.json","indicators":{"evidence_files":[{"path":"src/index.js","sha256":"0bca0654b9db9263dba6eb6e135a036c2a2d1fe424bfb42eecb2b91f0b63425e","tlsh":"a3a25b2be313023f7e3b4c6596d9bdc8220e644a65f016c1f45d66b54fca9c968bb30d"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-fhE9kQHbFVK+FM+mWrOH8yFZcBBjPsS8J4nuLdUlyv5cPV6IOOqiQH6AcD4qHgi/CS3KnHeLBCMIgDnGJmT5xw==","sha1":"511ab891bbc884f2f0a75096a9cde2c73ece94dd"},"filename":"tailwindcss-forms-styles-0.5.1.tgz"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}