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.
通过编程式api完成npm包的发布、git release、git tag的自动生成
yarn add cli-pkg
属性名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
runAt | 日志打印的前缀 | string | -- | cli-pkg |
pkgName | 设置仅当package.json中的name与此匹配时执行脚本 | string | -- | -- |
registry | npm包发布的地址 | string | -- | https://registry.npmjs.org/ |
firstCall | 调度顺序 | string | 见下 | "createTag" |
packageManage | 执行命令的包管理器 | string | "pnpm" | "yarn" |
allowedBranch | 限制执行脚本的分支 | array | -- | ["main"] |
ignoreGitChangeFiles | 设置跳过git clean检查的文件 | array | -- | ["yarn.lock","package-lock.json","pnpm-lock.yaml","yarn-error.log",] |
createRelease
createTag
publishNpm
config
success
before:publish
after:publish
before:tag
after:tag
before:release
after:release
在unplugin-router中,实现的流程为:先发布npm,再创建git tag,最后生成git release
FAQs
npm包辅助工具
We found that cli-pkg 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.