Malicious code in crypto-javas (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5a8df6a7a735756b97bf8957dfacf2076f6ea39d4fdc8489755ea14e8c89f9c1) [email protected] registers a postinstall hook (`"postinstall": "node setup.js"` in package.json) and a top-level `autoExecute()` in the main `index.js` that both enumerate `process.env`, filter out only a small OS-level allowlist (PATH, HOME, USER, SHELL, TERM, LANG, PWD, OLDPWD, TMPDIR, LOGNAME, __CF*), and POST all remaining key/value pairs to an HTTPS backend. `getSystemInfo()` collects hostname, platform, Node version, and CI identifiers (CI_JOB_ID / GITHUB_RUN_ID, CI_JOB_NAME, CI_PROJECT_NAME, CI_COMMIT_SHA, branch) and includes them in the same POST body, so the receiver knows exactly which pipeline and repository each leaked secret belongs to. `loadApiConfig()` additionally reads `.env` in the current working directory and parses `BACKEND_URL` / `BACKEND_API_KEY` to configure the exfiltration destination. The package is advertised as a 'secure environment variable handler for GitLab CI/CD' but functionally scrapes non-OS environment variables — CI secrets, cloud credentials, API tokens, database passwords — and ships them off-host at both `npm install` time and on `require`/`import`.
Malicious code in crypto-javas (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5a8df6a7a735756b97bf8957dfacf2076f6ea39d4fdc8489755ea14e8c89f9c1) [email protected] registers a postinstall hook (`"postinstall": "node setup.js"` in package.json) and a top-level `autoExecute()` in the main `index.js` that both enumerate `process.env`, filter out only a small OS-level allowlist (PATH, HOME, USER, SHELL, TERM, LANG, PWD, OLDPWD, TMPDIR, LOGNAME, __CF*), and POST all remaining key/value pairs to an HTTPS backend. `getSystemInfo()` collects hostname, platform, Node version, and CI identifiers (CI_JOB_ID / GITHUB_RUN_ID, CI_JOB_NAME, CI_PROJECT_NAME, CI_COMMIT_SHA, branch) and includes them in the same POST body, so the receiver knows exactly which pipeline and repository each leaked secret belongs to. `loadApiConfig()` additionally reads `.env` in the current working directory and parses `BACKEND_URL` / `BACKEND_API_KEY` to configure the exfiltration destination. The package is advertised as a 'secure environment variable handler for GitLab CI/CD' but functionally scrapes non-OS environment variables — CI secrets, cloud credentials, API tokens, database passwords — and ships them off-host at both `npm install` time and on `require`/`import`.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12359
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735741bf8831d539157719
Added to database: 08/05/2026, 15:31:13 UTC
Last updated: 08/05/2026, 15:31:13 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.