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 interface for Jora (a JSON query language)
npm i -g jora-cli
> jora -h
Usage:
jora [query] [options]
Options:
-h, --help Output usage information
-i, --input <filename> Input file
--no-color Suppress color output
-o, --output <filename> Output file (outputs to stdout if not set)
-p, --pretty [indent] Pretty print with optionally specified indentation (4 spaces by default)
-q, --query <query> Jora query
-s, --sandbox Output data and query in sandbox
-v, --version Output version
Then you can do this wonderful requests in terminal
# get a single field, e.g. version
jora version <package.json
# get all top level dependencies count
jora -i package.json -q '(dependencies.keys() + devDependencies.keys()).size()'
# find packages with more than a single version
npm ls --json | jora "
..(dependencies.entries().({ name: key, ...value }))
.group(=>name, =>version)
.({ name: key, versions: value })
.[versions.size() > 1]
";
jora-cli
takes a valid JSON and produce a valid JSON as a result. However, jora
language could produce some values that incompatable with JSON, such values are transforming:
NaN
, Infinity
and -Infinity
are converting to null
, that's a behaviour of JSON.stringify()
undefined
null
when a result of query (top level) or an element of an arrayundefined
as a value are eliminatingMIT
1.5.1 (July 29, 2021)
FAQs
Command line interface for Jora
We found that jora-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.