跳到正文
Skillpedia
安全35k · #8318

performing-supply-chain-attack-simulation

它能做什么

这个工具用于模拟和检测软件供应链攻击。它会检查恶意的或名称相似的软件包,测试私有软件包是否可能与公共软件包混淆,并验证已安装软件包的安全性。

适用场景

  • ✓审计项目的依赖安全性时。
  • ✓测试软件包仓库的安全性时。
  • ✓处理与软件包相关的安全事件时。

技能链接

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-supply-chain-attack-simulation/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“帮我检查一下我的 Python 项目有没有供应链攻击的风险。”

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

工作原理

工具会用相似度指标把软件包名称与热门软件包进行比对,检查私有软件包是否可能与公共软件包混淆,并扫描已安装的软件包是否存在已知漏洞。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Performing Supply Chain Attack Simulation

Overview

Software supply chain attacks exploit trust in package registries through typosquatting (registering names similar to popular packages), dependency confusion (publishing higher-version public packages matching private names), and compromised package distribution. This skill detects these attack vectors by computing Levenshtein distance between package names and popular PyPI packages, verifying package integrity via SHA-256 hash comparison, scanning for known CVEs with pip-audit, and testing dependency resolution order for confusion vulnerabilities.

When to Use

  • When conducting security assessments that involve performing supply chain attack simulation
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.

Key Detection Areas

  1. Typosquatting — compare package names against top PyPI packages using edit distance thresholds
  2. Dependency confusion — check if internal package names exist on public PyPI with higher version numbers
  3. Hash verification — download packages and verify SHA-256 digests match published hashes
  4. Vulnerability scanning — audit installed packages against OSV and PyPA advisory databases
  5. Metadata anomalies — flag packages with suspicious author emails, missing homepages, or very recent first upload dates

Output

JSON report with risk scores per package, detected attack vectors, hash verification results, and CVE findings.

常见问题

什么是 typosquatting 攻击?

指攻击者注册一个与热门软件包名称非常相似的包,希望开发者因为打错字而误装恶意软件包。

什么是“依赖混淆”?

指攻击者在公共仓库中发布一个与公司内部软件包同名、但版本号更高的软件包。如果配置不够安全,你的系统可能会下载攻击者的包,而不是你们自己的包。

SHA-256 哈希校验有什么用?

它通过比对唯一的标识码(哈希值),确保你下载的软件包与开发者发布的完全一致,防止软件包被篡改。

详情

作者的原始描述

Simulates and detects software supply chain attacks: typosquatting detection via Levenshtein distance against popular PyPI package names, dependency confusion testing against private registries, SHA-256 package hash verification, and known-CVE scanning with pip-audit. Use when auditing a project's dependencies for malicious or confused packages, or when assessing package-registry supply-chain risk

repo: mukul975/Anthropic-Cybersecurity-Skills

热度

GitHub 星标
35k
排名
#8318
许可证
Apache-2.0
更新时间
2026/8/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能