跳到正文
Skillpedia
安全6.5k · #14045

supplychain-overview

它能做什么

这份目录指向关于软件依赖和构建系统攻击的指南。适合想检查其软件包来源和构建输入的安全团队。

适用场景

  • ✓当公司使用私有软件包仓库,并想检查它们如何解析名称时。
  • ✓当你想找出公共文件中出现的内部软件包名称时。
  • ✓当团队需要审查第三方代码带来的构建流水线风险时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/supplychain/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/supplychain/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们使用私有 npm 软件包。请帮我检查是否有内部软件包名称出现在我们的公开文件中?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体在锁定文件和其他公开文件中查找内部软件包名称,然后加载匹配的指南,检查各仓库如何解析这些名称。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Supply-Chain Exploitation — Category Overview

This is a routing skill for supply-chain attack research. Sub-skills cover specific techniques against the dependency, build, and distribution layers.

Sub-Skills

Sub-Skill Covers When to Load
dep-confusion Public-registry impersonation of private package names, scoped-package abuse (@org/pkg), internal-name OSINT (lockfiles, GitHub Actions, Dockerfiles, error pages) Target uses private npm/PyPI/RubyGems/Cargo registries and you've discovered internal package names in public artifacts

Surface Discovery

# Lockfiles often expose private package names that aren't on public registry
grep -hE '"name":|"@.+/' package-lock.json yarn.lock pnpm-lock.yaml | sort -u
# pip
grep -E '^[a-z0-9_-]+' requirements.txt
# go.mod
grep '^\s*[a-z0-9./_-]\+\s' go.mod
# Maven
grep -A1 '<artifactId>' pom.xml | grep -v '^--$'

Decision Notes

  • Always confirm scope authorization in writing before publishing any package, even a benign one, to a public registry. Some bounty programs explicitly disallow public-registry submissions.
  • Use a beacon-only payload (DNS callback, HTTPS GET) for confirmation; never ship code that mutates the target environment without an explicit follow-up authorization.
  • Real damage from confusion attacks is usually post-install scripts (postinstall, setup.py install) — focus PoCs on benign callbacks, not RCE.
  • For build-pipeline poisoning (workflow injection, branch protection bypass) see /skills/standard/exploit/ad/SKILL.md (CI-as-AD-equivalent paths) and the broader threat-modeling under /skills/shared/opsec/SKILL.md.
常见问题

什么是依赖混淆?

就是一个公共软件包与某个私有软件包同名,并被错误地安装。

名称从哪里泄露?

目录指出,锁定文件常常会暴露并未发布到公共仓库的私有软件包名称。

它是否建议发布软件包?

它指出,发布到公共仓库之前,需要先获得书面的范围授权。

详情

作者的原始描述

Supply-chain attack category — dependency confusion, typosquatting, package-registry abuse, build-pipeline poisoning, SBOM manipulation.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14045
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能