{"id":"MAL-2026-7026","summary":"Malicious code in tailwind-core (npm)","details":"The npm package tailwind-core versions 4.3.1 and 4.3.2 contain remote code execution payloads hidden in the exported Tailwind-style runtime. The package root export reaches code that fingerprints the host, communicates with attacker-controlled Google Apps Script/Drive or Sheets resources, decodes remote instructions, and executes returned code through Function/AsyncFunction constructors. This behavior is unrelated to a Tailwind CSS utility package and exposes consuming projects to remote code execution and host/environment disclosure.\n\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-20T02:34:42.681166811Z","published":"2026-07-09T01:15:23Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-09T03:23:17.648126138Z","id":"GHSA-m6r5-49q4-pv25","modified_time":"2026-07-09T02:51:12Z","versions":["4.3.2","4.3.1","4.3.0","0.0.0"],"source":"ghsa-malware","sha256":"13f32ca9fa359af39fdc94870029079c18f805e941572fe607e6a5238b30a429"},{"import_time":"2026-07-09T16:20:40.994482706Z","id":"IN-MAL-2026-009103","modified_time":"2026-07-09T15:28:45Z","versions":["4.3.2"],"source":"amazon-inspector","sha256":"7a6dd276f30733865042d929d52211583fa63323b5118d26e5cbe6219137f86d"},{"sha256":"7d9aca3eea1a57d29f07fe1c7cfd9d561c6bb194605124590ef068739ca71986","import_time":"2026-07-09T16:20:48.611728427Z","id":"IN-MAL-2026-009179","modified_time":"2026-07-09T15:39:53Z","versions":["4.3.1"],"source":"amazon-inspector"}]},"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"},{"type":"WEB","url":"https://firewall.lpm.dev/npm/tailwind-core/v/4.3.2"}],"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":{"indicators":{"evidence_files":[{"tlsh":"9d51221ac6e58e6335d62af578aa4261a37294074a143f05b68f015c0fccadf52bf3de","path":"package.json","sha256":"09bc0f29072b002ddb309f09d2ae8a60efe59757aec6100883be030af82c7774"},{"sha256":"414df87a2d4ab7807977b05c397c090d0172df9299eb6f2d9413d451f487cad1","tlsh":"123429757343503f5bff42c810ea5014a66e2b72864c449af256d66b23f5abc0ae3f39","path":"dist/lib.mjs"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"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","cweId":"CWE-506"},{"cweId":"CWE-94","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component.","name":"Improper Control of Generation of Code"},{"description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","name":"Exposure of Sensitive Information to an Unauthorized Actor","cweId":"CWE-200"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tailwind-core/MAL-2026-7026.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"LPM Security Firewall","contact":["https://firewall.lpm.dev"],"type":"FINDER"}]}