
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@signalapp/minimask
Advanced tools
A tiny & modern library for masking inputs.
npm install --save @signalapp/minimask
Setup an <input>
:
<input
id="creditCardNumber"
type="text"
inputmode="numeric"
autocomplete="cc-number"
placeholder="1234 1234 1234 1234"
size="20"
/>
Create a formatter:
export function creditCardNumberFormatter(input) {
let tokens = []
let digits = 0
for (let [index, char] of input.split("").entries()) {
// skip non-digits
if (!/\d/.test(char)) {
continue
}
// push digits
tokens.push({ char, index, mask: false })
digits++
// insert spaces when needed
if (digits === 4 || digits === 8 || digits === 12) {
tokens.push({ char: " ", index, mask: true })
}
// ignore any additional chars
if (digits >= 16) {
break
}
}
return tokens
}
Attach the formatter to the input:
import { minimask } from "minimask"
import { creditCardNumberFormatter } from "./formatters"
let input = document.querySelector("#creditCardNumber")
minimask(input, formatter)
Copyright 2025 Signal Messenger, LLC
Licensed under the AGPLv3
FAQs
Simple HTML input masking
The npm package @signalapp/minimask receives a total of 616 weekly downloads. As such, @signalapp/minimask popularity was classified as not popular.
We found that @signalapp/minimask demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.