{"id":"MAL-2026-17719","summary":"Malicious code in @brick-v2/tour (npm)","details":"@brick-v2/tour is a dependency confusion package published to npm on 2026-10-09 by the account s4yhii__, targeting the internal @galicia-toolkit-* / @brick-v2 package namespaces with inflated versions (e.g. 999.0.x). Early versions resolve \u003chostname\u003e.\u003ctag\u003e.dc.oob.s4yhii.com via DNS to beacon the victim's hostname. Later versions run `node index.js` from a preinstall hook, which loads a bundled native addon (prebuilds/\u003cplatform\u003e-\u003carch\u003e/metrics.node, Linux and Windows builds). The addon forks a detached process that collects hostname, username, OS/arch, cwd and the full values of CI/cloud secrets from environment variables (NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, SYSTEM_ACCESSTOKEN, AZURE_DEVOPS_EXT_PAT and others) and sends them as JSON via HTTP POST /native to oob.s4yhii.com:9999.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aabec40c085d56f59b4ca696eefe600f450a03284df0d77f562d861fed091bee)\nThe package presents itself as an Angular-style module exposing forRoot/createLogger stubs and a version field, but these exports are no-ops. The real behavior is in a bundled prebuilt native addon at prebuilds/linux-x64/metrics.node and prebuilds/win32-x64/metrics.node. package.json declares `\"preinstall\": \"node index.js || true\"`, and index.js loads the platform-specific metrics.node via `require(path.join(__dirname,'prebuilds', os.platform()+'-'+os.arch(),'metrics.node'))`, so the native addon is executed automatically on `npm install` and again on `require()`. The native binary reads a broad set of credential-grade environment variables and host identifiers — AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, GITHUB_TOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN, SYSTEM_ACCESSTOKEN, NPM_TOKEN, NODE_AUTH_TOKEN, AZURE_DEVOPS_EXT_PAT, plus hostname, username, cwd, OS and arch — and POSTs them as JSON (template `{\"src\":\"native\",\"pkg\":\"%s\",...}`) to `oob.s4yhii.com` at path `/native` over HTTP/1.0. The `|| true` in the preinstall hook suppresses errors so the install appears to succeed silently. The Angular-shaped JS wrapper, the generic `tour` package name, and the `metrics.node` filename function as a cover story disguising a credential stealer.\n","modified":"2026-10-12T05:30:05.954920370Z","published":"2026-10-09T00:00:00Z","database_specific":{"iocs":{"files":[{"note":"Loader: DNS hostname beacon to *.dc.oob.s4yhii.com, or loads the native exfiltration addon (run via preinstall).","paths":["index.js"],"source":"PACKAGE_ARCHIVE"},{"note":"Native addon that exfiltrates host info and CI/cloud secret env vars to oob.s4yhii.com:9999.","paths":["prebuilds/linux-x64/metrics.node","prebuilds/win32-x64/metrics.node"],"source":"PACKAGE_ARCHIVE"}],"urls":["http://oob.s4yhii.com:9999/native"],"domains":["oob.s4yhii.com"]},"malicious-packages-origins":[{"versions":["999.0.1"],"id":"IN-MAL-2026-021311","import_time":"2026-10-09T13:46:18.983865466Z","modified_time":"2026-10-09T13:39:20Z","sha256":"780830761df5ae1144c409b83bf8bf645927b5ea3dc19173e24c94025c00660b","source":"amazon-inspector"},{"versions":["999.0.3"],"id":"IN-MAL-2026-021288","import_time":"2026-10-09T13:46:17.100944565Z","modified_time":"2026-10-09T13:35:50Z","sha256":"aabec40c085d56f59b4ca696eefe600f450a03284df0d77f562d861fed091bee","source":"amazon-inspector"},{"id":"IN-MAL-2026-021294","import_time":"2026-10-09T13:46:17.591352095Z","modified_time":"2026-10-09T13:36:46Z","sha256":"f0509f4c0900d40265940d62fa6122c69940a8d101ddb73ed572ea8b1ef6b150","source":"amazon-inspector","versions":["999.0.2"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/tour/v/999.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/tour/v/999.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/tour/v/999.0.2"},{"type":"WEB","url":"https://www.npmjs.com/package/@brick-v2/tour"}],"affected":[{"package":{"name":"@brick-v2/tour","ecosystem":"npm","purl":"pkg:npm/%40brick-v2/tour"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["999.0.1","999.0.3","999.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@brick-v2/tour/MAL-2026-17719.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"cf72775bb361ce3bc4dc4334055b5a70b1b29870e77353231b11a1bb3d927885ebae9a","path":"prebuilds/linux-x64/metrics.node","sha256":"3f8833d49735dfdfe9bdef504bbb53ff069cb48a3953d9af08659d1c5560cf26"},{"path":"package.json","sha256":"81743667bd97d73aeeb0359560acd5317625c412199771ecc65ebad6519c37ab","tlsh":"70c080345531241304c59be45c63490606d70c7f4005b0040b57542443dd63728fd33d"}],"package_integrity":[{"filename":"tour-999.0.1.tgz","hashes":{"sha1":"04a443031d1ae1262211dd016e28c025b01da590","sha512_sri":"sha512-x71YWX2LxfMIoj4MBVOfQ9GVtyNfEtzDscElWU1w0+agY7ixowgbzR793Q8lWBet8OIUiENGRrCuf+7Zhaa1ag=="}}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}