font-huge@2.5.3
Malicious code in font-huge (npm)
Analysis
font-huge@2.5.3 is a trojanized package that poses as a font library but functions as a remote code execution downloader. When imported, the exported getPlugin() function fetches a JSON payload from hxxps://svganchordev[.]net/icons/107 and executes the 'credits' field of the response via new Function() with full Node.js globals (require, process, Buffer, console, setTimeout, Promise). The package bundles dependencies for credential theft (@primno/dpapi for Windows DPAPI extraction), system fingerprinting (node-machine-id), C2 communication (socket[.]io-client), and local database access (sqlite3, better-sqlite3). The README describes a font collection API that does not exist in the code.
- analyzed by
- Leitwacht
- first seen
- Jul 13, 2026, 06:05 PM
- analyzed
- Jul 13, 2026, 06:06 PM
Related advisories
- auth-gen-next@1.7.13
- font-hub@1.5.2
- svg-fetcher@2.4.1
- cookie-sign@2.3.5
- babel-preset-lib-client@4.9.11
- kuaishou@99.9.9
- chai-as-doc@2.3.5
- polymarket-mcp-v2@2.1.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.