{"id":"MAL-2026-17716","summary":"Malicious code in @brick-v2/form (npm)","details":"@brick-v2/form 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 (61727d51587469176de52cbc3c82a53b4572ecfc6c7f7b4c7edf534950b0f536)\nThe package ships a tiny JavaScript stub at index.js that silently require()s a compiled native addon at prebuilds/linux-x64/metrics.node inside a try/catch that suppresses errors. On load, the addon reads a hardcoded list of credential-bearing environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS session token, GITHUB_TOKEN, NPM_TOKEN, NODE_AUTH_TOKEN, ACTIONS_RUNTIME_TOKEN, ACTIONS_ID_TOKEN_REQUEST_TOKEN, SYSTEM_ACCESSTOKEN) along with hostname, user, cwd, and OS/arch, and sends them as a JSON body via a raw TCP socket (gethostbyname/socket/connect/send) in a 'POST /native HTTP/1.0' request to the hardcoded external host oob.s4yhii.com. The addon also imports fork and setsid, consistent with detaching into a background process so the exfiltration channel survives beyond the host Node process. The compiled ELF is the entire payload; the JS wrapper exposes no form-related functionality matching the stated 'form module' description. The package manifest (scoped name @brick-v2/form, inflated version 999.0.1, UNLICENSED, minimal metadata) matches the dependency-confusion shape used to outrank an internal private-registry package of the same scope.\n","modified":"2026-10-12T05:30:05.925285841Z","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":[{"import_time":"2026-10-09T13:46:18.910158588Z","modified_time":"2026-10-09T13:39:12Z","sha256":"61727d51587469176de52cbc3c82a53b4572ecfc6c7f7b4c7edf534950b0f536","source":"amazon-inspector","versions":["999.0.1"],"id":"IN-MAL-2026-021310"},{"source":"amazon-inspector","versions":["999.0.3"],"id":"IN-MAL-2026-021291","import_time":"2026-10-09T13:46:17.332104249Z","modified_time":"2026-10-09T13:36:18Z","sha256":"a4c046851059a832d8777dacd92adf805b025e1796e9524bfcef6a274b44c68c"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/form/v/999.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@brick-v2/form/v/999.0.3"},{"type":"WEB","url":"https://www.npmjs.com/package/@brick-v2/form"}],"affected":[{"package":{"name":"@brick-v2/form","ecosystem":"npm","purl":"pkg:npm/%40brick-v2/form"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["999.0.1","999.0.3"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"prebuilds/linux-x64/metrics.node","sha256":"3f8833d49735dfdfe9bdef504bbb53ff069cb48a3953d9af08659d1c5560cf26","tlsh":"cf72775bb361ce3bc4dc4334055b5a70b1b29870e77353231b11a1bb3d927885ebae9a"},{"tlsh":"54f02ed53fa9b355a1777664d55b015668ffd4f0141db784c45cc4d026a198809738fc","path":"index.js","sha256":"437f6c81830bd7ac15efe3ef2928d92f59c450029b1bcc21d27db09504cd59c4"},{"tlsh":"afc08c30653164230dcaafe4eca38e064be70d6f4046b0141b97682842eda3328fe33c","path":"package.json","sha256":"eead62cf4bdc3f2e31ebec14126069652f172a4ab123e314927bd41796db8b09"}],"package_integrity":[{"filename":"form-999.0.1.tgz","hashes":{"sha512_sri":"sha512-NQePMrnOuyY7ydwtTaXdsV/jlxnXeWji7/Hxd+ZuZ8R5X2thFveS0sZTcvOkMyZ7X5gLyTeO1QS4619PDPg00w==","sha1":"aa98960f4c4081b1d51b78c1ca236115e624608a"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@brick-v2/form/MAL-2026-17716.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"}]}