{"id":"MAL-2026-10937","revision":"227e7572385345778acb7a5dfa6208d5","records":[{"revision":"227e7572385345778acb7a5dfa6208d5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10937","aliases":[],"title":"Malicious code in twilio-serverless (npm)","description":"The twilio-serverless package is one of four byte-identical dependency-confusion squats of Twilio's npm namespace published by user 'yuva2210' (maintainer email charankumarj2004@gmail.com), all at the sentinel version 99.99.99 chosen to outrank any internal/private version and win resolution against a private registry. The npm description is empty and the package provides no legitimate functionality; the name mimics a plausible internal Twilio package so that a misconfigured resolver installs this public lookalike instead of the intended private dependency.\n\nThe package declares a postinstall hook (\"node index.js\") that executes automatically on a bare npm install with no consent gate. The bundled index.js payload (1,185 bytes, sha256 prefix c324d579006df4c5, identical across all four packages) performs environment reconnaissance: it collects the npm package name and version, os.hostname(), the OS username (os.userInfo().username), the home directory path (os.homedir()), the current working directory, os.platform(), os.arch(), NODE_ENV, and the CI flag. It serializes this to JSON and exfiltrates it via HTTPS POST to a hardcoded anonymous dead-drop at https://webhook.site/42ce0f0e-a0a0-41b5-b157-1c0f918e064f (the same collector UUID across all four packages). On request error the payload falls back to a redundant out-of-band callback to 2b22ede784d5.oast.fun over HTTP, ensuring the beacon lands even where HTTPS egress to webhook.site is blocked; errors on that path are swallowed.\n\nThe collected cwd/homedir/username/CI/NODE_ENV set is reconnaissance targeting internal build environments and their filesystem layout. All four packages (twilio-serverless, twilio-assets, twilio-deploy, twilio-internal) were published by the same maintainer with an identical payload and the same collector endpoint.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (04898e32caf2b456c8f454a78dc4556e1caf1c239c9170b602f9f5bad6f02003)\nThe package's postinstall hook executes index.js, which collects installer host identifiers (os.hostname(), os.userInfo().username, os.homedir(), process.cwd(), os.platform(), os.arch(), NODE_ENV, CI, package name/version) and POSTs them as JSON to a hardcoded webhook.site endpoint (webhook.site/42ce0f0e-a0a0-41b5-b157-1c0f918e064f), with a fallback GET to an interactsh subdomain (2b22ede784d5.oast.fun) for out-of-band DNS callback. The package name resembles Twilio's official serverless tooling and is published at version 99.99.99 with an empty description and no library functionality beyond the beacon — the shape of a typosquat / dependency-confusion probe that fingerprints internal build systems resolving to the public registry.\n","state":0,"publishedAt":"2026-07-20T00:00:00+00:00","modifiedAt":"2026-08-05T07:21:37.8529302+00:00","affected":[{"ecosystem":"npm","name":"twilio-serverless","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["99.99.99","99.99.100"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/twilio-serverless","https://www.npmjs.com/package/twilio-serverless/v/99.99.99","https://www.npmjs.com/package/twilio-serverless/v/99.99.100"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10937","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10937","identifiers":["MAL-2026-10937"]},"retained":false,"historicalAffected":[]}],"coverage":[]}