Newly discovered npm package 'fezbox' employs QR codes to retrieve cookie-stealing malware from the threat actor's server. The package, masquerading as a utility library, leverages this innovative steganographic technique to harvest sensitive data, such as user credentials, from a compromised machine. While 2D barcodes like QR codes have conventionally been designed for humans, to hold marketing content or share links, attackers have found a new purpose for them: hiding malicious code inside the QR code itself. This week, the Socket Threat Research Team identified a malicious package, 'fezbox', published to npmjs.com, the world's largest open-source registry for JavaScript and Node.js developers. The illicit package contains hidden instructions to fetch a JPG image containing a QR code, which it can then further process to run a second-stage obfuscated payload as a part of the attack. At the time of writing, the package received at least 327 downloads, as per npmjs.com, before the registry admins took it down. BleepingComputer confirmed that the malicious payload primarily resides in the dist/fezbox.cjs file of the package (taking version 1.3.0 as an example). "The code itself is minified in the file. Once formatted, it becomes easier to read," explains Socket threat analyst Olivia Brown. The conditionals in the code check if the application is running in a development environment, as explained by Brown. "This is usually a stealth tactic. The threat actor does not want to ri...
NPM package caught using QR Code to fetch cookie-stealing malware
BleepingComputer
·Ax Sharma
·Published Sep 23, 2025
·Updated
Affected Software
1 affected component
npm fezbox
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses a newly discovered npm package named 'fezbox' that uses QR codes to deliver cookie-stealing malware.
2
What security implications are discussed in the article?
The article highlights the risks associated with using compromised npm packages that can secretly fetch malware, jeopardizing user data.
3
What products or software are affected by the 'fezbox' package?
The affected software is the npm package 'fezbox', which misrepresents itself as a utility library.
4
How does the 'fezbox' package operate to steal cookies?
It employs a steganographic technique by using QR codes to retrieve malicious payloads from a threat actor's server.
5
What precautions should developers take regarding npm packages like 'fezbox'?
Developers should thoroughly vet and monitor npm packages for security vulnerabilities and potential malware before use.