Malicious code in es6-codify (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e7ae2aa828c8ed2c3ec71480536fd07d9c19f3c698c3b095eafb41206ff3a75f) The package advertises itself as a small ES6 string/array/object utility library, but both entrypoints (dist/index.cjs and the ESM build) execute a top-level call on require/import that opens an HTTPS POST to the hardcoded host j5dcw95v-3000.inc1.devtunnels.ms at path /post-d. The request body is a JSON blob containing the full process.env of the importing process, together with process.cwd(), process.version, and process.argv. Any environment variable held by the installer at the moment this package is loaded (CI secrets, cloud credentials, tokens, database URLs) is transmitted to the attacker-controlled Microsoft dev-tunnel host. The exfiltration fires unconditionally on module load and is duplicated across the CJS and ESM entrypoints so it triggers regardless of how the package is resolved. There is no network functionality in the advertised API, so the network I/O has no benign explanation. ## Source: ghsa-malware (b254a2963094593aae850663d576f1cd6126f45cb4b217b05c373461dc05e7c0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The es6-codify package, advertised as a small ES6 utility library, includes malicious code in its entrypoints (dist/index.cjs and the ESM build) that performs an HTTPS POST request to a hardcoded attacker-controlled host. This request transmits a JSON payload containing the full process environment variables, current working directory, Node.js version, and command-line arguments. The exfiltration triggers immediately upon module import or require, regardless of the module system used. There is no legitimate network functionality in the package, confirming the network activity is unauthorized data exfiltration.
Potential Impact
Sensitive environment variables and runtime information are leaked to an attacker-controlled server whenever the package is loaded. This can lead to compromise of secrets such as cloud credentials, tokens, and database URLs, potentially enabling further attacks on the victim's infrastructure or data.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and replace the es6-codify package from their projects. Avoid using this package and audit dependencies for malicious code. Monitor for any unauthorized access using leaked credentials. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Malicious code in es6-codify (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e7ae2aa828c8ed2c3ec71480536fd07d9c19f3c698c3b095eafb41206ff3a75f) The package advertises itself as a small ES6 string/array/object utility library, but both entrypoints (dist/index.cjs and the ESM build) execute a top-level call on require/import that opens an HTTPS POST to the hardcoded host j5dcw95v-3000.inc1.devtunnels.ms at path /post-d. The request body is a JSON blob containing the full process.env of the importing process, together with process.cwd(), process.version, and process.argv. Any environment variable held by the installer at the moment this package is loaded (CI secrets, cloud credentials, tokens, database URLs) is transmitted to the attacker-controlled Microsoft dev-tunnel host. The exfiltration fires unconditionally on module load and is duplicated across the CJS and ESM entrypoints so it triggers regardless of how the package is resolved. There is no network functionality in the advertised API, so the network I/O has no benign explanation. ## Source: ghsa-malware (b254a2963094593aae850663d576f1cd6126f45cb4b217b05c373461dc05e7c0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The es6-codify package, advertised as a small ES6 utility library, includes malicious code in its entrypoints (dist/index.cjs and the ESM build) that performs an HTTPS POST request to a hardcoded attacker-controlled host. This request transmits a JSON payload containing the full process environment variables, current working directory, Node.js version, and command-line arguments. The exfiltration triggers immediately upon module import or require, regardless of the module system used. There is no legitimate network functionality in the package, confirming the network activity is unauthorized data exfiltration.
Potential Impact
Sensitive environment variables and runtime information are leaked to an attacker-controlled server whenever the package is loaded. This can lead to compromise of secrets such as cloud credentials, tokens, and database URLs, potentially enabling further attacks on the victim's infrastructure or data.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and replace the es6-codify package from their projects. Avoid using this package and audit dependencies for malicious code. Monitor for any unauthorized access using leaked credentials. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10062
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9768715ace435825c9
Added to database: 07/10/2026, 09:25:43 UTC
Last enriched: 07/10/2026, 10:11:04 UTC
Last updated: 07/27/2026, 17:32:19 UTC
Views: 36
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
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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.