
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@ericcornelissen/lregexp
Advanced tools
Transparently create linear-time (non-backtracking) regular expressions.
This library exports a drop-in replacement for the built-in RegExp.
npm install @ericcornelissen/lregexp
import RegExp from "@ericcornelissen/lregexp";
new RegExp("[linear]{6}");
Backtracking regular expressions can take exponential time to evaluate, leading to the dreaded ReDoS vulnerability. Linear-time regular expressions avoid this by not backtracking.
Not all regular expression constructs are valid in a linear-time regular expression and this library won't tell you your regular expression is incompatible unless you run it with the non-backtracking engine, in which case it throws an error.
FAQs
Transparently create linear-time regular expressions
The npm package @ericcornelissen/lregexp receives a total of 207 weekly downloads. As such, @ericcornelissen/lregexp popularity was classified as not popular.
We found that @ericcornelissen/lregexp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.