{"id":"MAL-2026-17718","summary":"Malicious code in @brick-v2/table (npm)","details":"@brick-v2/table 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 (1fdd2bc5b913543c62603b366fb4e1261407f63541e4b01ff7e0052e522523e0)\n@brick-v2/table presents a trivial Angular-style logger/table shim (forRoot/createLogger/version no-ops) while index.js unconditionally side-loads prebuilds/\u003cplatform\u003e-\u003carch\u003e/metrics.node on require(). The native addon reads credential-shaped environment variables from the installer — AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, GITHUB_TOKEN, NPM_TOKEN, NODE_AUTH_TOKEN, SYSTEM_ACCESSTOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN — along with hostname, uid, cwd, OS, arch, and release, and POSTs them as JSON over raw HTTP/1.0 to the hardcoded host oob.s4yhii.com at path /native. The native code calls fork+setsid to detach the exfil process so it survives after the host process exits. The destination is not first-party, is not caller-configurable, and the cover-story naming (package name unrelated to behavior, 'metrics.node' filename, _METRICS_PKG env var) disguises the stealer as telemetry. The version number 999.0.2 is implausibly high for the package name, consistent with a dependency-confusion lure.\n","modified":"2026-10-12T05:30:05.895018784Z","published":"2026-10-09T00:00:00Z","database_specific":{"iocs":{"files":[{"paths":["index.js"],"source":"PACKAGE_ARCHIVE","note":"Loader: DNS hostname beacon to *.dc.oob.s4yhii.com, or loads the native exfiltration addon (run via preinstall)."},{"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":[{"sha256":"14cde1c957f1744198b621bbe4f643ebec8ce12715bba3d7b0ac95f4695a7ad3","source":"amazon-inspector","versions":["999.0.3"],"id":"IN-MAL-2026-021289","import_time":"2026-10-09T13:46:17.176174154Z","modified_time":"2026-10-09T13:36:01Z"},{"id":"IN-MAL-2026-021299","import_time":"2026-10-09T13:46:18.073226517Z","modified_time":"2026-10-09T13:37:33Z","sha256":"1fdd2bc5b913543c62603b366fb4e1261407f63541e4b01ff7e0052e522523e0","source":"amazon-inspector","versions":["999.0.2"]},{"sha256":"289c5a11091bb1a39a200214859ff7fd3c8fe3d2824b5ca5d5ea0030ddcace0a","source":"amazon-inspector","versions":["999.0.1"],"id":"IN-MAL-2026-021312","import_time":"2026-10-09T13:46:19.056547419Z","modified_time":"2026-10-09T13:39:28Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/table/v/999.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/table/v/999.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/table/v/999.0.1"},{"type":"WEB","url":"https://www.npmjs.com/package/@brick-v2/table"}],"affected":[{"package":{"name":"@brick-v2/table","ecosystem":"npm","purl":"pkg:npm/%40brick-v2/table"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["999.0.3","999.0.2","999.0.1"],"database_specific":{"cwes":[{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"table-999.0.3.tgz","hashes":{"sha1":"0843309b4c612104d40c39a8170b25e36c9f6bb2","sha512_sri":"sha512-DjjrKQ9Cs1Og/W6p/k0K+wpSM3H6OOdPbIwEGE0YRJLqCDwYBzyz9zv4VAqwYVX6Ia3a1HHey5avI4WWnc3DYA=="}}],"evidence_files":[{"sha256":"cb1f098fbee6dfae8ebfdba07446d8fef1745080ed3bb5fc6579c4e854bfae10","tlsh":"a472211eb669ca3fc4988334288bc67461f17470bb33e2133b9157bb2d9168c4675f46","path":"prebuilds/linux-x64/metrics.node"},{"tlsh":"a2f09ed97fa9b35a626676a8d56f015564ffc4f0042dbac4c448c9e127b0d480e63dfc","path":"index.js","sha256":"656bffb1e99d97b0a6faee3c254e680bd7fb219f44b7400f8d2ab3266e345cd1"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@brick-v2/table/MAL-2026-17718.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}