MAL-2026-17719Malicious code in @brick-v2/tour (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @brick-v2/tour | * |
| npm | @brick-v2/tour | 999.0.1 |
| npm | @brick-v2/tour | 999.0.2 |
| npm | @brick-v2/tour | 999.0.3 |
{"schema_version":"1.7.4","id":"MAL-2026-17719","published":"2026-10-09T00:00:00Z","modified":"2026-10-12T05:15:53.962841632Z","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 <hostname>.<tag>.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/<platform>-<arch>/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","affected":[{"package":{"name":"@brick-v2/tour","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["999.0.1","999.0.3","999.0.2"],"database_specific":{"cwes":[{"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.","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.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"prebuilds/linux-x64/metrics.node","sha256":"3f8833d49735dfdfe9bdef504bbb53ff069cb48a3953d9af08659d1c5560cf26","tlsh":"cf72775bb361ce3bc4dc4334055b5a70b1b29870e77353231b11a1bb3d927885ebae9a"},{"path":"package.json","sha256":"81743667bd97d73aeeb0359560acd5317625c412199771ecc65ebad6519c37ab","tlsh":"70c080345531241304c59be45c63490606d70c7f4005b0040b57542443dd63728fd33d"}],"package_integrity":[{"filename":"tour-999.0.1.tgz","hashes":{"sha1":"04a443031d1ae1262211dd016e28c025b01da590","sha512_sri":"sha512-x71YWX2LxfMIoj4MBVOfQ9GVtyNfEtzDscElWU1w0+agY7ixowgbzR793Q8lWBet8OIUiENGRrCuf+7Zhaa1ag=="}}]}}}],"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"}],"database_specific":{"iocs":{"domains":["oob.s4yhii.com"],"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"]},"malicious-packages-origins":[{"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.1"]},{"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","versions":["999.0.3"]},{"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"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0