hbsig@0.3.2
Malicious code in hbsig (npm)
Analysis
This release is a trojanized build of an otherwise-legitimate HTTP-message-signature library. The published JavaScript modules are the genuine library code, but the package manifest adds a preinstall lifecycle hook ("preinstall": "./bin/install-deps") that runs automatically when the package is installed. Despite its script-like name, bin/install-deps is not a shell script: it is a ~976KB native Linux ELF x86-64 executable bundled inside the package. The binary is UPX-compressed, an anti-analysis packing technique used to obscure its true behaviour from static inspection. Installing the package therefore silently executes an opaque, packed native binary on the victim machine with the privileges of the install process. Bundling and auto-executing a packed native executable from an install hook is malicious dropper behaviour and serves no legitimate purpose for a signature library. The manifest additionally lists the package as a dependency of itself, a propagation/confusion pattern associated with self-replicating supply-chain worm activity. Do not install this version; treat any machine that installed it as compromised.
- analyzed by
- Leitwacht
- first seen
- Jun 9, 2026, 09:41 AM
- analyzed
- Jun 28, 2026, 06:36 AM
- weekly installs
- 559
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.