# GHSA-CXH8-F5QG-3JMP: Malicious code in @brick-v2/form (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-10-09
- Modified: 2026-10-12

## Affected versions

- @brick-v2/form (npm): 999.0.1
- @brick-v2/form (npm): 999.0.3
- @brick-v2/form (npm): all versions

## Description

## Source: amazon-inspector (61727d51587469176de52cbc3c82a53b4572ecfc6c7f7b4c7edf534950b0f536)
The 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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9a014eb4a5aff1fdf09a5678f9104227cff82a87/osv/malicious/npm/@brick-v2/form/MAL-2026-17716.json))

## References

- https://github.com/ossf/malicious-packages/blob/9a014eb4a5aff1fdf09a5678f9104227cff82a87/osv/malicious/npm/@brick-v2/form/MAL-2026-17716.json
- https://www.npmjs.com/package/@brick-v2/form/v/999.0.1
- https://www.npmjs.com/package/@brick-v2/form/v/999.0.3
- https://github.com/ossf/malicious-packages/blob/4bbe4252bb93453d5d180c366a3ae56a13e444c8/osv/malicious/npm/@brick-v2/form/MAL-2026-17716.json
- https://www.npmjs.com/package/@brick-v2/form
- https://github.com/advisories/GHSA-cxh8-f5qg-3jmp

Page: https://cve.now/GHSA-CXH8-F5QG-3JMP

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
