
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.
Bluesocks is a lightweight lexer in Javascript
let { lexer, rule } = require('bluesocks');
let rules = {
default: [
rule("PERIOD1", /\./, "othercontext"), //push othercontext
rule("NOTPERIOD1", /[^\.]+/)
],
othercontext: [
rule("PERIOD2", /\./, "<"), //pop othercontext
rule("NOTPERIOD2", /[^\.]+/)
]
}
lex = lexer("This is a test. This is a test. This is a test.", "test", rules);
let token = lex.next();
while(!token.done) {
switch (token.value.type) {
case "PERIOD1":
console.log("We switched to default context");
break;
case "NOTPERIOD1":
console.log(`We found a non-period token: "${token.value.data}"`);
break;
case "PERIOD2":
console.log("We switched to othercontext");
break;
case "NOTPERIOD2":
console.log(`We found a non-period token: "${token.value.data}"`);
break;
}
token = lex.next();
}
FAQs
Bluesocks is a lightweight lexer for Javascript
The npm package bluesocks receives a total of 18 weekly downloads. As such, bluesocks popularity was classified as not popular.
We found that bluesocks demonstrated a not healthy version release cadence and project activity because the last version was released 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.