
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
npm-malice-audit
Advanced tools
Audits npm packages for any known-malicious package names.
npm install npm-malice-audit -g
This is a CLI tool, so it is invoked from the command line.
You must provide a manifest of packages. A manifest is an array of npm package names and can be provided in two ways:
Use this if you want to check multiple packages without installing them.
First, the tool will look for an npm-malice-audit.json
file with contents like this:
[
"foo",
"bar"
]
Use this if you want to check the dependencies of a project you have installed/cloned locally.
Second, the tool will look for a package.json
file and use all of its dependencies
, devDependencies
, peerDependencies
, and optionalDependencies
as the package manifest.
If a non-empty manifest is found, a report similar to the following will be produced:
$ npm-malice-audit
---------
| async |
---------
Audited 673 packages.
Completed in 79.481 seconds.
Found 0 malicious packages in the tree!
----------
| lodash |
----------
Audited 1 packages.
Completed in 0.202 seconds.
Found 0 malicious packages in the tree!
-----------------
| npm-remote-ls |
-----------------
Audited 405 packages.
Completed in 42.203 seconds.
Found 0 malicious packages in the tree!
= SUMMARY ==============================
Audited 1079 total packages.
Completed audit in 121.899 seconds.
Found a total of 0 malicious packages!
You may also see an = ERRORS =
section above the = SUMMARY =
. This includes messages logged when there are problems looking up packages.
Note: Large packages with many dependencies can take a long time to resolve due to the need for many requests - patience is a virtue!
FAQs
Audits npm packages for any known-malicious package names.
We found that npm-malice-audit 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.