# GHSA-3GR7-5653-7JXX: Malicious code in @galicia-toolkit-nestjs-20-lite/archetype (npm)

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

## Affected versions

- @galicia-toolkit-nestjs-20-lite/archetype (npm): 999.0.5
- @galicia-toolkit-nestjs-20-lite/archetype (npm): 999.0.2
- @galicia-toolkit-nestjs-20-lite/archetype (npm): 999.0.1
- @galicia-toolkit-nestjs-20-lite/archetype (npm): 999.0.3
- @galicia-toolkit-nestjs-20-lite/archetype (npm): all versions

## Description

## Source: amazon-inspector (524c80bfea6a1b22cb0a4784d2763ccf83099faab3816c9fcb1ce39bb8813152)
On `npm install`, this package runs `node index.js || true` as a `preinstall` script. `index.js` loads a platform-specific native addon from `prebuilds/<platform>-<arch>/metrics.node`. The Linux and Windows binaries contain the hardcoded host `oob.s4yhii.com` and a `POST /native HTTP/1.0` request line with a JSON template carrying `src`, `pkg`, `h` (hostname), `u` (username), `os`, `arch`, `rel`, `cwd`, and `e` (an environment-variable dictionary). The native code reads a hardcoded set of credential-bearing environment variables including AWS access keys, `GITHUB_TOKEN`, `NPM_TOKEN`, `NODE_AUTH_TOKEN`, Azure DevOps PAT, and GitHub Actions runtime/ID tokens, and ships them to that host over a raw socket (getaddrinfo/connect/send; WS2_32 on Windows). The Linux variant uses fork+setsid to detach the exfiltration process from the install. The shipped JavaScript is a stub exporting empty `forRoot`/`createLogger`, with no real functionality beyond loading the addon. The package name uses a scoped namespace that resembles an internal toolkit and is published at version 999.0.3, a version-overshoot pattern consistent with dependency-confusion targeting private registries.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9a014eb4a5aff1fdf09a5678f9104227cff82a87/osv/malicious/npm/@galicia-toolkit-nestjs-20-lite/archetype/MAL-2026-17728.json))

## References

- https://github.com/ossf/malicious-packages/blob/9a014eb4a5aff1fdf09a5678f9104227cff82a87/osv/malicious/npm/@galicia-toolkit-nestjs-20-lite/archetype/MAL-2026-17728.json
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.1
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.2
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.3
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype/v/999.0.5
- https://github.com/ossf/malicious-packages/blob/4bbe4252bb93453d5d180c366a3ae56a13e444c8/osv/malicious/npm/@galicia-toolkit-nestjs-20-lite/archetype/MAL-2026-17728.json
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/archetype
- https://github.com/advisories/GHSA-3gr7-5653-7jxx

Page: https://cve.now/GHSA-3GR7-5653-7JXX

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