Malicious code in type-async (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d064750b4e3821d296d538ea749483e3f9cd54299645fc1c895e5c1af3639b5d) The package presents itself as pino (typosquat; README mirrors pino). The main entry `index.js` exports a middleware factory that, on invocation, spawns `lib/caller.js` as a detached Node child process. `lib/caller.js` performs an HTTPS GET against a remote JSON pastebin (https://json.extendsclass.com/bin/250fca079abb), extracts the `.cookie` field of the response, and passes it to `new Function.constructor("require", s)`, then invokes the resulting function with the host's `require` binding — giving whoever controls the pastebin arbitrary code execution on the machine that loaded the package, with full Node module access. Alternate payload URLs on jsonkeeper.com (https://jsonkeeper.com/b/XRGF3, https://jsonkeeper.com/b/4NAKK) are stored base64-encoded inside fake `process.env` objects in `lib/caller.js` and `lib/const.js` under a `DEV_API_KEY` key, obscuring the destination hosts from casual inspection. The fetched content is unpinned and mutable, the destinations are anonymous paste services unrelated to the package's advertised logging purpose, and the payload is executed with no integrity verification. ## Source: ghsa-malware (b9ed68b5cc814644d57fd51120b7ab2253190179ba6d18121e3786d227ec161b) 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 malicious type-async package (version 3.3.7) impersonates the pino package and exports a middleware factory that spawns a detached Node.js child process. This child process fetches a JSON payload from an untrusted, mutable remote pastebin URL, extracts a cookie field, and dynamically constructs and executes a function with the host's require context. The payload URLs are obfuscated in base64 within fake environment variables inside the package code. Because the fetched content is unpinned and executed without integrity verification, an attacker controlling the remote pastebin can execute arbitrary code on any system that installs this package version.
Potential Impact
Systems that install and run type-async version 3.3.7 are at risk of arbitrary code execution by attackers controlling the remote JSON payload. This can lead to full compromise of the host environment with access to all Node.js modules and capabilities. The malicious code is delivered via a typosquatting package, increasing the risk of accidental installation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately verify their dependencies to ensure type-async version 3.3.7 is not installed. Remove this package if found. Avoid installing packages with suspicious or typosquatting names. Monitor vendor advisories and trusted sources for updates or official fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in type-async (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d064750b4e3821d296d538ea749483e3f9cd54299645fc1c895e5c1af3639b5d) The package presents itself as pino (typosquat; README mirrors pino). The main entry `index.js` exports a middleware factory that, on invocation, spawns `lib/caller.js` as a detached Node child process. `lib/caller.js` performs an HTTPS GET against a remote JSON pastebin (https://json.extendsclass.com/bin/250fca079abb), extracts the `.cookie` field of the response, and passes it to `new Function.constructor("require", s)`, then invokes the resulting function with the host's `require` binding — giving whoever controls the pastebin arbitrary code execution on the machine that loaded the package, with full Node module access. Alternate payload URLs on jsonkeeper.com (https://jsonkeeper.com/b/XRGF3, https://jsonkeeper.com/b/4NAKK) are stored base64-encoded inside fake `process.env` objects in `lib/caller.js` and `lib/const.js` under a `DEV_API_KEY` key, obscuring the destination hosts from casual inspection. The fetched content is unpinned and mutable, the destinations are anonymous paste services unrelated to the package's advertised logging purpose, and the payload is executed with no integrity verification. ## Source: ghsa-malware (b9ed68b5cc814644d57fd51120b7ab2253190179ba6d18121e3786d227ec161b) 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 malicious type-async package (version 3.3.7) impersonates the pino package and exports a middleware factory that spawns a detached Node.js child process. This child process fetches a JSON payload from an untrusted, mutable remote pastebin URL, extracts a cookie field, and dynamically constructs and executes a function with the host's require context. The payload URLs are obfuscated in base64 within fake environment variables inside the package code. Because the fetched content is unpinned and executed without integrity verification, an attacker controlling the remote pastebin can execute arbitrary code on any system that installs this package version.
Potential Impact
Systems that install and run type-async version 3.3.7 are at risk of arbitrary code execution by attackers controlling the remote JSON payload. This can lead to full compromise of the host environment with access to all Node.js modules and capabilities. The malicious code is delivered via a typosquatting package, increasing the risk of accidental installation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately verify their dependencies to ensure type-async version 3.3.7 is not installed. Remove this package if found. Avoid installing packages with suspicious or typosquatting names. Monitor vendor advisories and trusted sources for updates or official fixes. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10164
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ec968715ace438f5fe7
Added to database: 07/11/2026, 09:37:13 UTC
Last enriched: 07/11/2026, 09:57:24 UTC
Last updated: 07/30/2026, 22:06:39 UTC
Views: 44
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.
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.