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.
Command line tool for repacing all double quoted strings with single quoted strings in a file or directory. Usage: jsq fileOrDirectory [fileOrDirectory [..]]
Command line tool for transforming all double quote strings in JavaScript (.js) file(s) to single quoted strings
npm install jsq -g
jsq fileOrDirectory [fileOrDirectory [...]] [-v]
-v
will give you verbose output.
A file containing the code:
var y = "hello";
function x(){
return "hello\" I am a string's for sure";
}
Will contain this, after jsq
is run on it:
var y = 'hello';
function x(){
return 'hello" I am a string\'s for sure';
}
-v
parameter, should I worry?TLDR; No don't worry. Files are just skipped.
When in verbose mode jsq
prints an error for one of two reasons:
jsq
that would cause it to produce malformed JavaScript: The file is skipped.So basically, jsq
is just letting you know that some files are beeing skipped.
I created this tool because we where initially using both single quoted and double quoted strings in our JavaScript code on a project.
Then we decided that our coding-standard should be single-quotes JavaSctipt strings, but the codebase was a mix.
With jsq
I was able to clean up the entire project in a jiff.
FAQs
Command line tool for repacing all double quoted strings with single quoted strings in a file or directory. Usage: jsq fileOrDirectory [fileOrDirectory [..]]
The npm package jsq receives a total of 5 weekly downloads. As such, jsq popularity was classified as not popular.
We found that jsq demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.