{"id":"MAL-2026-15813","revision":"0c5235fc8d744a48ad174809fbdeace7","records":[{"revision":"0c5235fc8d744a48ad174809fbdeace7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15813","aliases":[],"title":"Malicious code in bt2-api-gateway-node-js (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1e7b3146f31802aabbf0fcf530d3581e85274664be041a9c7ef12dfb3eb1713b)\nbt2-api-gateway-node-js@999.0.1 runs a postinstall-triggered IIFE in index.js that reads installer-owned secrets from disk — ~/.ssh private keys, ~/.aws/{credentials,config,sso/cache}, ~/.azure, gcloud ADC, ~/.kube/config, ~/.docker/config.json, gh hosts.yml, ~/.netrc, ~/.npmrc, ~/.pypirc, ~/.gem/credentials, ~/.cargo/credentials, ~/.pgpass, ~/.my.cnf, and vercel/netlify/supabase/firebase tokens — and sweeps process.env for TOKEN/KEY/SECRET/PASSWORD and AWS/AZURE/GITHUB/STRIPE variables. The collected data is JSON-serialized, base64-encoded, and POSTed to two hardcoded destinations: the Telegram Bot API (api.telegram.org/bot<token>/sendMessage) and http://2.26.82.63:8888/collect over plain HTTP. Execution aborts if NODE_ENV=test, CI=true, JEST_WORKER_ID or VITEST is set, or /.dockerenv exists, and is delayed by a randomized 5–15 second setTimeout to evade CI and sandbox observation. The version number (999.0.1) and package name are consistent with a dependency-confusion lure targeting an internal 'bt2-api-gateway' package.\n\n## Source: ossf-package-analysis (e3a3256b290402643d8dc39967ec2724fdbc490105a0581a1e3c1b2d96faee3e)\nThe OpenSSF Package Analysis project identified 'bt2-api-gateway-node-js' @ 999.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","state":0,"publishedAt":"2026-09-01T17:16:24+00:00","modifiedAt":"2026-09-03T06:45:05.6437804+00:00","affected":[{"ecosystem":"npm","name":"bt2-api-gateway-node-js","ranges":[],"versions":["999.0.1","999.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bt2-api-gateway-node-js/v/999.0.1","https://www.npmjs.com/package/bt2-api-gateway-node-js/v/999.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15813","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15813","identifiers":["MAL-2026-15813"]},"retained":false,"historicalAffected":[]}],"coverage":[]}