type-atob@3.3.7
Malicious code in type-atob (npm)
Analysis
type-atob@3.3.7 is a trojanized clone of the pino logger library that downloads and executes arbitrary remote code. When the package's middleware export is called, it spawns a detached Node.js child process that fetches code from hxxps://json[.]extendsclass[.]com/bin/49b93b00acf1 via an HTTP GET request and executes it using the Function constructor. The C2 host is json[.]extendsclass[.]com and the specific resource path is /bin/49b93b00acf1. The fetched payload is passed to new Function("require", payload) and immediately invoked, giving the attacker full control over the Node.js runtime environment.
- analyzed by
- Leitwacht
- first seen
- Jul 10, 2026, 03:53 PM
- analyzed
- Jul 10, 2026, 03:55 PM
Related advisories
- testis-pack@1.0.0
- express-mongo-limit@2.0.1
- notifier-utils@1.3.7
- chai-as-staged@6.0.4
- chai-as-forgeted@9.24.6
- env-config-f281@1.0.0
- web-pool@2.3.5
- sort-btree@2.1.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.