Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@beuluis/hook-cli
Advanced tools
A small hook cli
·
Report Bug
·
Request Feature
·
A small hook cli that can be used with for example husky.
I know that most of this stuff is already solved by some awesome tools. So this is really just a CLI playground for me.
npm i -D @beuluis/hook-cli
Add script to package.json
{
"scripts": {
"hook-cli": "hook-cli"
}
}
start using the hooks in .husky
npm run hook-cli -- [command] [...]
Runs a package audit and collects the results
Option | Description | Type | default |
---|---|---|---|
-m , --package-manager | The package manager you want to use | yarn , npm | npm |
-l , --audit-level | The severity of the vulnerabilities what the script will report | info , low , moderate , high , critical | critical |
-n , --no-fail | If true only prints warning messages and do not exit with not zero code | boolean | false |
-p , --prod | If true only run audit for prod dependencies and skip dev ones | boolean | false |
npm run hook-cli -- checkForVulnerabilities
npm run hook-cli -- checkForVulnerabilities --package-manager yarn
npm run hook-cli -- checkForVulnerabilities --audit-level low
npm run hook-cli -- checkForVulnerabilities --no-fail
npm run hook-cli -- checkForVulnerabilities --prod
npm run hook-cli -- checkForVulnerabilities -l high -m yarn -n -p
Print help page for command
npm run hook-cli -- [command] --help
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Luis Beu - me@luisbeu.de
FAQs
A small hook cli that can be used with for example husky
The npm package @beuluis/hook-cli receives a total of 24 weekly downloads. As such, @beuluis/hook-cli popularity was classified as not popular.
We found that @beuluis/hook-cli 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.