# GHSA-76RM-2C8X-H676: Malicious code in @galicia-toolkit-nestjs/archetype (npm)

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

## Affected versions

- @galicia-toolkit-nestjs/archetype (npm): 999.0.6
- @galicia-toolkit-nestjs/archetype (npm): 999.0.5
- @galicia-toolkit-nestjs/archetype (npm): 999.0.1
- @galicia-toolkit-nestjs/archetype (npm): all versions

## Description

## Source: amazon-inspector (63cdc34da85584342e27bc84d22c01a826c71020b7bf07987626cbe457e2e560)
The package ships a minimal index.js stub that loads a prebuilt native ELF addon at prebuilds/linux-x64/metrics.node on require(). The addon reads CI/CD and cloud credentials from the environment (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, GITHUB_REPOSITORY) along with host identifiers (hostname, uid/pwuid, cwd, uname) and POSTs them as JSON to oob.s4yhii.com via a raw socket (POST /native HTTP/1.0). The addon also imports fork and setsid from libc and detaches as a background process on load, giving the payload a lifetime beyond the Node parent. The scoped name combined with a 999.0.5 version and UNLICENSED metadata fits the dependency-confusion shape intended to beat an internal package's version during resolution, meaning any CI pipeline that resolves this scope will leak long-lived cloud, npm, and GitHub Actions tokens to an attacker-controlled out-of-band host.

---

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

## References

- https://github.com/ossf/malicious-packages/blob/9a014eb4a5aff1fdf09a5678f9104227cff82a87/osv/malicious/npm/@galicia-toolkit-nestjs/archetype/MAL-2026-17721.json
- https://www.npmjs.com/package/@galicia-toolkit-nestjs/archetype/v/999.0.1
- https://www.npmjs.com/package/@galicia-toolkit-nestjs/archetype/v/999.0.5
- https://www.npmjs.com/package/@galicia-toolkit-nestjs/archetype/v/999.0.6
- https://github.com/ossf/malicious-packages/blob/4bbe4252bb93453d5d180c366a3ae56a13e444c8/osv/malicious/npm/@galicia-toolkit-nestjs/archetype/MAL-2026-17721.json
- https://www.npmjs.com/package/@galicia-toolkit-nestjs/archetype
- https://github.com/advisories/GHSA-76rm-2c8x-h676

Page: https://cve.now/GHSA-76RM-2C8X-H676

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