{"id":"MAL-2026-12813","summary":"Malicious code in twilio-functions (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ea71d301e90ede6f86f259e827a1cb61ad0b4b0166b70281bdf7896f726eea31)\nOn npm install, the package's postinstall script executes index.js, which collects host identifiers (os.hostname(), os.userInfo().username, os.homedir(), process.cwd(), os.platform(), os.arch(), and selected environment variables) and POSTs them as JSON to a hardcoded webhook.site collection URL (https://webhook.site/42ce0f0e-a0a0-41b5-b157-1c0f918e064f). On network error, the code falls back to a DNS callback against an interactsh-style subdomain at 2b22ede784d5.oast.fun. Package metadata (name `twilio-functions` mimicking the Twilio SDK namespace, version 99.99.99, empty description) is consistent with a typosquat / dependency-confusion lure whose only on-install effect is the outbound reconnaissance beacon.\n","modified":"2026-09-09T03:30:13.458098589Z","published":"2026-08-05T13:11:02Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["99.99.99"],"id":"IN-MAL-2026-014915","import_time":"2026-08-05T14:19:42.628789599Z","modified_time":"2026-08-05T13:11:02Z","sha256":"ea71d301e90ede6f86f259e827a1cb61ad0b4b0166b70281bdf7896f726eea31"},{"sha256":"6602f58eea853e7f54985f3ccdd0df0af7d1a28cf44b10bb9d74d95cf215243a","source":"reversing-labs","versions":["99.99.99","99.99.100"],"id":"RLMA-2026-06530","import_time":"2026-09-01T11:17:35.037932896Z","modified_time":"2026-08-24T17:14:45Z"},{"sha256":"b01ab445192a68dae67534500aaee6784bbf16e4aacdea5a3afda9f0cd444ee4","source":"amazon-inspector","versions":["99.99.100"],"id":"IN-MAL-2026-019786","import_time":"2026-09-09T03:21:53.504566447Z","modified_time":"2026-09-09T02:45:44Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/twilio-functions/v/99.99.99"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/twilio-functions/v/99.99.100"}],"affected":[{"package":{"name":"twilio-functions","ecosystem":"npm","purl":"pkg:npm/twilio-functions"},"versions":["99.99.99","99.99.100"],"database_specific":{"cwes":[{"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."}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"1e53f49081bcfa36cb83abaa9fcfdec5b1ef99d515f40a766b0de9e1e5d03f09","tlsh":"5f1148f553f5ad700bb59384b18aac1553b3f01473079cf099d851652bd827425f26f9"},{"tlsh":"7bc08c342c21a72334ca0aaa08bb944922b24d2f410464080783245095a827748ff30d","path":"package.json","sha256":"bd5fcdfd18f721bb979b46956e7270f5af7f20f2c1dc7e0bd11d985005eae692"}],"package_integrity":[{"filename":"twilio-functions-99.99.99.tgz","hashes":{"sha1":"543b7139fd01197a8dc029adecfefafc0c110763","sha512_sri":"sha512-b468EPjrUHXVNIkPHEef4XKI5Xv1d933KY84TX9SIwYhLcvgJMnqO4oQeffvgQGco2DCYRwgeSdNInBgtxzHuw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/twilio-functions/MAL-2026-12813.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}