一键导入
dependency-supply-chain-analysis
Guidance for detecting supply chain attacks in dependency files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidance for detecting supply chain attacks in dependency files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Command execution guard. Must be used when a tool call executes an operating-system command through shell, terminal, process, task, exec, command, MCP, or computer-use command tools. Requires user confirmation for dangerous Linux, Windows, and macOS commands.
Script execution risk guard. Use when a tool call executes a script file or multi-line interpreter payload, or when command_execution_guard identifies a launcher command that points to a script. Focus on script content, hidden execution chains, and mismatch between user intent and script behavior.
Browser and web access risk guard. Use when tool calls open URLs, browse webpages, fetch web content, follow redirects, download web resources, or execute actions influenced by webpage content.
File and data exfiltration risk guard. Use when tool calls may move data outside trusted boundaries (network upload, external messaging, email attachment, cloud sync, or removable device transfer).
Sensitive file access and path abuse guard. Use when tool calls read/list/search filesystem paths and may touch credentials, system files, private documents, or high-impact configuration.
General guard for uncategorized tool risks and browser/web access safety. Use when a tool call does not cleanly match a specialized skill, or when webpage access/content can influence downstream tool behavior.
基于 SOC 职业分类
| name | dependency_supply_chain_analysis |
| description | Guidance for detecting supply chain attacks in dependency files |
| version | 1.0.0 |
| author | ClawSecbot |
| tags | ["scenario","supply-chain"] |
Load this skill when the target skill contains dependency configuration files — such as package.json, requirements.txt, go.mod, Gemfile, Cargo.toml, pom.xml, or any file that declares external packages. Supply chain attacks exploit the trust developers place in package managers.
When analyzing dependencies, think through these questions:
Typosquatting is a common attack where malicious packages have names similar to popular ones:
1 vs l, 0 vs o, - vs _lodash vs 1odash, requests vs requets, react vs raectFor any unfamiliar package name, consider whether it could be a typosquat of something well-known.
Package managers execute lifecycle scripts during installation. Check for:
preinstall, postinstall, prepare scripts in package.jsonnpm install, pip install, etc.In these hooks, look for:
Install hooks that make network requests or execute downloaded scripts are CRITICAL risks.
Look for dependencies from unusual registries:
Packages from non-standard sources bypass the security review of official registries.
Consider why a package is pinned to a specific version:
* or >=0.0.1 accepts anything)Simple skills should have simple dependencies:
Excessive or unrelated dependencies increase attack surface and may hide malicious packages.
If lockfiles exist (package-lock.json, yarn.lock, etc.), verify:
CRITICAL — Immediate concern:
HIGH — Requires investigation:
MEDIUM — Needs context: