
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
cleanup-deps
Advanced tools
Easy detection of useless dependencies in your package.json file.
npx cleanup-deps@latest
inside your project root directory.
| Option | value | Default | Description |
|---|---|---|---|
--path | <path> | pwd | path to directory contains your package.json file. |
--config | <path> | pwd | path to config file |
You can create config file to customize the behavior of the tool.
npx cleanup-deps@latest --config ./config.cleanup-deps.mjs
mjs is important. Only ESM modules are supported.
Example of config file:
// config.cleanup-deps.mjs
import { createConfig, declareValidation } from './index.js';
export default createConfig({
packageJsonPath: '..',
validateFn: declareValidation({
'yargs': {
minimalNodeVersion: '0.0.0',
message: 'test',
validUntil: new Date(),
}
})
})
createConfigWrapper for config object for better IDE support. Example of usage you can see above. Arguments:
packageJsonPath - path to package.json file. Default: process.cwd()validateFn - function that will be called for each dependency. Please see createValidationFn for more details.declareValidationHelper function to declare validation rules for specific package. Example of usage you can see above. Arguments:
minimalNodeVersion - minimal node version for which package is deprecated.message - message that will be shown if package is deprecated.validUntil [Optional] - date until package is valid. If date is expired, package will be marked as deprecated.createValidateFnHelper function to create validate function for specific package. Should return validDep or invalidDep.
Example of usage you can see in declareValidation file
mergeValidateFnHelper function to merge validate functions.
You can use --config option to declare config file with validUntil for specific package.
For example:
// config.cleanup-deps.mjs
import { createConfig, declareValidation } from './index.js';
export default createConfig({
packageJsonPath: '..',
validateFn: declareValidation({
'object.assign': {
minimalNodeVersion: '0.0.0',
message: 'test',
validUntil: new Date('2030-01-01'),
}
})
})
After '2030-01-01' date, the package object.assign will be shown in the report. Before that the package will be undeprecated dep.
dependencies and devDependencies sections are supported.FAQs
Easy detection of useless dependencies in your package.json file
We found that cleanup-deps 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.