Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
var strscan = require("strscan");
var scanner = strscan("hello world -> ", {
skipWhitespace: true
});
while(!scanner.eof()) {
scanner.nextChar();
if(scanner.isAZ()) {
var word = scanner.nextWord();
} else
if(scanner.cchar() == "-") {
var arrow = scanner.to(1);
}
}
returns true if the scanner is at the end
scans to the next character
returns the current char
returns true if the current char is A-Z
returns true if the current char is 0-9
returns true if the current char is A-Z 0-9
returns true if the current char matches the given regular expression
returns the next word
scans to the given position, and returns the buffer
returns a buffer from the current position to the given count, then rewinds
rewinds N characters
skips N characters
FAQs
lexical string analysis for javascript
We found that strscanner 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.