
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
behavioral-captcha
Advanced tools
This is a simple behavioral captcha for node.js. (Based on @napi-rs/canvas)
npm install behavioral-captcha
import { createSelectionCaptchaGenerator } from 'behavioral-captcha'
/*
const config = {
size: { width: 300, height: 240 },
thumbSize: { width: 150, height: 40 },
textColors: ['#000', '#333', '#666', '#999', '#ccc', '#fff'],
thumbTextColors: ['#000', '#333', '#666', '#999', '#ccc', '#fff'],
fontSize: [30, 38],
thumbFontSize: [24, 30],
length: [5, 7],
checkLength: [2, 4],
thumbBackgroundColor: '#fff',
chars: defaultcChars,
fonts: ['Arial', { path: 'SomeFont.ttf', name: 'SomeFont' }],
backgroundImages: ['image1.jpg', 'image2.jpg'],
angles: [[0, 15]],
quality: 80
}
*/
const generator = await createSelectionCaptchaGenerator()
const captcha = await generator.generate()
/*
{
image: Buffer,
thumb: Buffer,
dots: Array<{ x: number, y: number }>,
}
*/
console.log(captcha)
console.log(await generator.verify([[13, 67], [78, 143]], captcha.dots)) // true
Shirasawa
FAQs
A behavioral captcha generator for NodeJS.
The npm package behavioral-captcha receives a total of 0 weekly downloads. As such, behavioral-captcha popularity was classified as not popular.
We found that behavioral-captcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.