exprss-helmet@1.0.1
Malicious code in exprss-helmet (npm)
Analysis
exprss-helmet is a combosquat of the legitimate helmet package: it ships a verbatim copy of helmet's source code with an injected dependency on the malicious package gloggo. When the package is imported, index.cjs requires gloggo, whose getLogger() calls file-type-detector's isSign('favorite','gloggo',367), which reads a file named public/favorite.png, extracts the trailing 367 bytes, writes them to a file named gloggo/log, and then executes that extracted content via require('./log'). The trailing bytes embedded in the PNG are executed as JavaScript, forming a steganographic second-stage payload loader. The package's stated purpose (HTTP security headers) is unrelated to this injected logging/payload-extraction behaviour.
- analyzed by
- Leitwacht
- first seen
- Aug 29, 2026, 11:25 AM
- analyzed
- Aug 29, 2026, 11:26 AM
Related advisories
- mfa-js@1.0.4
- htps-provider@1.0.11
- moidevz@1.0.0
- mham-js@1.0.4
- dims-hydration-ui@1.0.0
- js-soul@1.0.4
- moidevy@1.0.0
- @pablo_clueless/sniffr@0.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.