Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
check-packages
Advanced tools
Readme
CLI tool to check your npm dependencies against a list of allowed/forbidden packages.
To use it in your project:
$ npm install --save-dev check-packages
To use it globally:
$ npm install --global check-packages
It requires Node.js (v6 or higher).
$ check-packages <checklist.json> [options]
The content of the checklist file must be an array of package names (with optional semver ranges), e.g.:
[
"react",
"react-dom",
"redux@>=1.0.0-rc.0 <1.0.1",
"react-redux@^2 <2.2 || > 2.3"
]
By default check-packages
uses the checklist path packages-whitelist.json
(respectively packages-blacklist.json
when called with option --blacklist
),
but you can also call check-packages
with a different checklist path as
first argument, e.g.:
$ check-packages "./config/whitelisted-dev-dependencies.json" --dev
Option | Alias | Description |
---|---|---|
topLevelOnly | Checks only direct dependencies listed in the top level package.json (equivalent to depth=0 ).Note: You cannot use topLevelOnly together with depth . | |
depth | Max depth of the dependency tree analysis (default: inifity). Note: You cannot use depth together with topLevelOnly . | |
blacklist | black | Interpret content of checklist as blacklist. |
development | dev | Analyze the dependency tree for devDependencies. |
production | prod | Analyze the dependency tree for dependencies. |
verbose | Lists unallowed dependencies. | |
exitCode | Exit code in case of unallowed dependencies. Default: 1 | |
version | v | Displays the version number. |
help | h | Displays the help. |
$ check-packages
$ check-packages --blacklist
$ check-packages my-whitelist.json --dev --depth=10
$ check-packages my-whitelist.json --dev --topLevelOnly --verbose
$ check-packages my-blacklist.json --prod --blacklist
MIT © Christian Kühl
FAQs
CLI tool to check your npm dependencies against a list of allowed/forbidden packages.
The npm package check-packages receives a total of 1,732 weekly downloads. As such, check-packages popularity was classified as popular.
We found that check-packages 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.