Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in type-atob (npm)

0
Critical
Published: 07/10/2026 (07/10/2026, 18:35:43 UTC)
Source: GCVE Database
Product: type-atob

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a69dbe06ae711c652bace745ae01fe11b2472c8d3b9891b02828cab9bfa8f653) The package advertises itself as a pino-style logger (exports `module.exports.pino = middleware`, keywords `fast/logger/stream/json`, pino-like file layout under lib/) but its name and behavior are unrelated to logging. When the module is loaded via require(), its middleware factory spawns a detached node child process (`spawn('node', [script,...], { detached: true, stdio: 'ignore' })`, followed by `child.unref()`) running lib/caller.js. lib/caller.js fetches a JSON document from https://json.extendsclass.com/bin/49b93b00acf1 with https://jsonkeeper.com/b/XRGF3 as fallback, extracts the `cookie` field from the response, and executes it via `new Function.constructor('require', s)` with `require` passed in, granting the fetched code full Node module access. Additional endpoints are hidden as base64-encoded strings in a fake `process` stub inside lib/caller.js and lib/const.js (`DEV_API_KEY` decoding to https://jsonkeeper.com/b/XRGF3 and https://jsonkeeper.com/b/4NAKK). The remote content is attacker-mutable paste-style hosting, and the detached/unref/stdio-ignored spawn shape conceals the loader from the parent process. ## Source: ghsa-malware (2d262a3857feff058e3cdeb0d223d1961e0dc01e29e31933c673f36b35b1b88c) 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

npmghsa
type-atob
Affected versions
=3.3.7

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

AILast updated: 07/11/2026, 09:48:12 UTC

Technical Analysis

The 'type-atob' npm package version 3.3.7 masquerades as a pino-style logger but contains malicious functionality. Upon requiring the module, it spawns a detached Node.js child process running a script that fetches JSON data from attacker-controlled paste hosting services. It extracts a 'cookie' field from the JSON response and executes it as JavaScript code with full access to Node's require function, enabling arbitrary code execution. Additional attacker-controlled endpoints are embedded as base64-encoded strings within the package. The detached and stdio-ignored child process conceals this malicious loader from the parent process, leading to a fully compromised system once the package is installed or running.

Potential Impact

Any system with 'type-atob' version 3.3.7 installed or running is considered fully compromised. The attacker gains full control over the host environment, including the ability to execute arbitrary code with Node.js privileges. This compromises all secrets and keys stored on the system, necessitating immediate rotation from a secure environment. Removing the package does not guarantee removal of all malicious artifacts or backdoors introduced by the attacker.

Mitigation Recommendations

No official patch or fix is currently available for this malicious package. The recommended mitigation is to immediately remove 'type-atob' version 3.3.7 from all affected systems. Additionally, all secrets, keys, and credentials stored on compromised systems should be rotated from a separate, secure environment. Due to the nature of the compromise, a full system investigation and potential rebuild may be necessary to ensure complete remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-10174
Osv Schema Version
1.7.4
Aliases
["GHSA-w8g3-2xjv-6vf6"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a520eb168715ace438f4fe0

Added to database: 07/11/2026, 09:36:49 UTC

Last enriched: 07/11/2026, 09:48:12 UTC

Last updated: 07/21/2026, 11:50:21 UTC

Views: 20

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses