# GHSA-P5PM-8Q88-FJ6V: Malicious code in @galicia-toolkit-nestjs-20-lite/paas (npm)

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

## Affected versions

- @galicia-toolkit-nestjs-20-lite/paas (npm): 1.0.20
- @galicia-toolkit-nestjs-20-lite/paas (npm): 1.0.24
- @galicia-toolkit-nestjs-20-lite/paas (npm): 1.0.21
- @galicia-toolkit-nestjs-20-lite/paas (npm): 1.0.22
- @galicia-toolkit-nestjs-20-lite/paas (npm): all versions

## Description

## Source: amazon-inspector (fb9736fcd5112c468c10509da5d624384a70802de5e20b218ad2cbebe0c7a443)
The package declares scripts.preinstall `node index.js || true`, and index.js (also the main entry) require()s a platform-specific prebuilt native addon at prebuilds/<platform>-<arch>/metrics.node. The native binary reads a curated list of CI/cloud credential environment variables (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, AZURE_DEVOPS_EXT_PAT, and similar), together with hostname, user, OS/arch, and cwd (gethostname/getpwuid/uname/getcwd on Linux; GetUserNameA/GetComputerNameA/GetCurrentDirectoryA on Windows). The collected values are serialized as a JSON body (`{"src":"native","pkg":...,"e":{...}}`) and sent via a raw TCP socket as `POST /native HTTP/1.0` to the hardcoded host oob.s4yhii.com. The exported NestJS surface (forRoot/createLogger) is empty stub code with no real functionality, and a nested manifest at src/archetype/package.json contains the self-identifying marker `s4yhii-poc-2026-10-09` and contact `jesusitpro22@gmail.com`, matching the exfil host. The harmful code path fires automatically on `npm install` via preinstall and again on any require() of the package.

---

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/paas/MAL-2026-17730.json))

## References

- https://github.com/ossf/malicious-packages/blob/9a014eb4a5aff1fdf09a5678f9104227cff82a87/osv/malicious/npm/@galicia-toolkit-nestjs-20-lite/paas/MAL-2026-17730.json
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/paas/v/1.0.20
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/paas/v/1.0.21
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/paas/v/1.0.22
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/paas/v/1.0.24
- https://github.com/ossf/malicious-packages/blob/4bbe4252bb93453d5d180c366a3ae56a13e444c8/osv/malicious/npm/@galicia-toolkit-nestjs-20-lite/paas/MAL-2026-17730.json
- https://www.npmjs.com/package/@galicia-toolkit-nestjs-20-lite/paas
- https://github.com/advisories/GHSA-p5pm-8q88-fj6v

Page: https://cve.now/GHSA-P5PM-8Q88-FJ6V

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