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.
A command line tool that glance over package dependencies.
Input source is reading from stdin
.
cat package-lock.json | npx pkg-fence <...>
npm
from package-lock.json
or npm-shrinkwrap.json
deno-info
from deno info npm:<pkg>
(otherwise)
one name per line
0
for empty results1
for anything matched--all
--lodash
: pkg naming starts by lodash.
or equals to lodash
--nolyfill
: list of names from https://github.com/SukkaW/nolyfill (1.0.34)--relief
: list of names from https://github.com/es-tooling/module-replacements (2.5.0)
--relief-native
--relief-micro
--relief-preferred
to specify addition names:
--extra foo,bar
--extra foo --extra bar
to ignore some names:
--ignore foo,bar
--ignore foo --ignore bar
invert the search result
executable only
npx pkg-fence
bun x pkg-fence
pnpm dlx pkg-fence
yarn dlx pkg-fence
deno run npm:pkg-fence
executable, multi ESM exports, Typing
deno run jsr:@imcotton/pkg-fence
Does not differentiate between dev or non-dev dependencies.
npm ls ...
or npm why ...
to make further inspectionResults are unordered, possible in duplications.
sort
, uniq
, or grep
etc...AGPLv3
FAQs
A command line tool that glance over package dependencies.
We found that pkg-fence 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.
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.