{"id":"MAL-2026-7026","summary":"Malicious code in tailwind-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7a6dd276f30733865042d929d52211583fa63323b5118d26e5cbe6219137f86d)\nPackage name 'tailwind-core' impersonates the legitimate 'tailwindcss' package, using a mimicked monorepo directory ('packages/tailwind-core') and reusing tailwindlabs/tailwindcss CI badges plus links to the real tailwindcss download counts in README. The bundled library entrypoints dist/lib.mjs and dist/lib.js contain a hidden async function invoked from the Tailwind plugin factory that fires when the compiler runs during a build. After a Date.now() gate set to approximately July 2026 (timestamp 17836416e5), the code collects host reconnaissance (os.hostname, os.homedir, os.platform, os.arch, os.cpus().length, os.totalmem), derives a stable equip_id hash, and registers the host with an attacker-controlled Google Apps Script deployment via an 'addNewEquipment' call. It then enters an infinite polling loop that mints Google OAuth access tokens from a hardcoded refresh token and client_id/client_secret embedded in the bundle, retrieves base64+JSON commands from https://script.googleapis.com/v1/scripts/AKfycbyjrAVcSQB2V6XNzgYK8J0gGyx0c_ZpC0y4rFzq1IGUPu7zx7guLszZDVlcsfDzXVz3QA:run, and executes them via new Function(...), yielding arbitrary remote code execution on every installer machine running builds after the activation date. The delayed-activation timestamp gate is a time-bomb designed to evade publish-time scanning.\n\n## Source: ghsa-malware (13f32ca9fa359af39fdc94870029079c18f805e941572fe607e6a5238b30a429)\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","aliases":["GHSA-m6r5-49q4-pv25"],"modified":"2026-07-09T16:32:02.438775179Z","published":"2026-07-09T02:51:12Z","database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","import_time":"2026-07-09T03:23:17.648126138Z","sha256":"13f32ca9fa359af39fdc94870029079c18f805e941572fe607e6a5238b30a429","versions":["4.3.2","4.3.1","4.3.0","0.0.0"],"modified_time":"2026-07-09T02:51:12Z","id":"GHSA-m6r5-49q4-pv25"},{"source":"amazon-inspector","versions":["4.3.2"],"modified_time":"2026-07-09T15:28:45Z","sha256":"7a6dd276f30733865042d929d52211583fa63323b5118d26e5cbe6219137f86d","import_time":"2026-07-09T16:20:40.994482706Z","id":"IN-MAL-2026-009103"},{"source":"amazon-inspector","import_time":"2026-07-09T16:20:48.611728427Z","sha256":"7d9aca3eea1a57d29f07fe1c7cfd9d561c6bb194605124590ef068739ca71986","versions":["4.3.1"],"modified_time":"2026-07-09T15:39:53Z","id":"IN-MAL-2026-009179"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m6r5-49q4-pv25"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-core/v/4.3.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tailwind-core/v/4.3.1"}],"affected":[{"package":{"name":"tailwind-core","ecosystem":"npm","purl":"pkg:npm/tailwind-core"},"versions":["4.3.2","4.3.1","4.3.0","0.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-core/MAL-2026-7026.json","indicators":{"evidence_files":[{"sha256":"09bc0f29072b002ddb309f09d2ae8a60efe59757aec6100883be030af82c7774","tlsh":"9d51221ac6e58e6335d62af578aa4261a37294074a143f05b68f015c0fccadf52bf3de","path":"package.json"},{"path":"dist/lib.mjs","tlsh":"123429757343503f5bff42c810ea5014a66e2b72864c449af256d66b23f5abc0ae3f39","sha256":"414df87a2d4ab7807977b05c397c090d0172df9299eb6f2d9413d451f487cad1"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","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."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}