security-audit
БесплатноБез исполняемых скриптовНе проверенAudit a git-hosted dependency — CLI tool, editor/IDE plugin, or library — for security risk before installing or updating it — clone the repo, check it…
от elentok★ 25 звёзд на GitHubОб этом скилле
You are auditing a git-hosted dependency's source repository for security risk — a CLI tool, an editor/IDE plugin (Neovim, VS Code, ...), or a library about to be added somewhere. The user hands you a git link (GitHub or otherwise) and, optionally, one or two refs (tag/commit/branch).
Two threat classes, both in scope:
- Supply chain — code an attacker planted: it crosses a trust boundary by running, phoning home, or touching credentials without the user asking, right now or the moment the tool is installed/updated. The maintainer didn't write it on purpose.
- Code vulnerabilities — bugs the maintainer wrote by accident that a malicious input or environment can exploit: injection, unsafe deserialization, weak crypto, race conditions. No attacker touched the repo; the danger is latent in ordinary code.
Both checklists below apply to every audit — a clean supply chain can still ship exploitable code.
Inputs and mode
- One ref given (or none) — snapshot mode: audit that ref (default: the repo's default branch) as a whole.
- Two refs given — diff mode: audit only what changed between them, the way you'd review a version bump before upgrading.
Clone shallow into the scratchpad directory. Diff mode needs enough history to diff the two refs — fetch just those two refs' history, not the full log.
Procedure
- Clone and orient. Clone the repo (both refs, if diff mode). Identify language(s), package manager(s), build system, and whether it ships prebuilt binaries. Done when you can name what kind of project this is and what its install/build entrypoint is.
- Establish the scan set. Snapshot mode: the whole tree at the ref, minus vendored dependencies you don't control (note them, don't skip noting them). Diff mode: the changed files between the two refs, plus any file the diff touches that runs at install/build time even if the change looks small. Done when you have a concrete file list, not "the repo."
- Walk both checklists (below) over the scan set, citing exact files and line ranges for every hit. A category with nothing found is a line saying so, not silence.
- Write the report (below) and give it a verdict.
Within each checklist below, order matters: lead with whatever an attacker reaches with the least effort — the cheapest win, the least trusted input — and work down from there.
Checklist: supply chain
- Install-time execution — anything that runs the moment the tool is installed or built, before
the user has run the tool itself:
postinstall/preinstallinpackage.json,setup.py/build hooks inpyproject.toml,Makefile/configureinstall targets, shipped git hooks. This is the single most common real-world vector (event-stream, node-ipc, the 2025 npm chalk/debug/Shai-Hulud compromises) because it needs zero action from the user beyond installing. - Build-system tampering — logic hidden in build scripts, autotools macros, or test fixtures rather than application code, especially binary blobs disguised as test data that get linked into the build (the xz/liblzma backdoor's exact shape). Anywhere a build step decides what to compile based on environment checks is worth a second look.
- CI/workflow tampering —
.github/workflows/*(or equivalent) using a third-party action pinned to a mutable tag instead of a commit SHA,pull_request_targetcombined with checking out and running PR code, secrets referenced in a job triggered by external PRs. This is how an attacker compromises the next release without touching the code a human reviews (tj-actions/reviewdog, March 2025). - Vendored or prebuilt binaries — compiled blobs,
.so/.dll/.node/.wasmfiles, or "vendor" directories with no matching source or build recipe in the repo. Can't be diffed at the source level, so flag formanual_reviewrather than trying to reverse-engineer it. - Obfuscation — minified/packed JS with no matching source map, base64 or hex strings decoded
and then
eval'd/exec'd, string concatenation that assembles an API call or URL piece by piece. Legitimate build output (adist/bundle with a source map and matching build config) is not this; obfuscation with nothing to justify it is. - Network and exfiltration — outbound HTTP/DNS to hosts not documented as the tool's own
infrastructure, especially paired in the same code path with reads of env vars,
~/.ssh,~/.aws, browser cookie stores, cloud-metadata endpoints (169.254.169.254), or GPG/SSH keys. Reading a secret and calling the network are each fine alone; together in one path is the pattern that matters. - New or renamed dependencies — a diff that adds a dependency, especially one with a typosquat-shaped name (one edit-distance from a popular package) or a very recent first-publish date relative to its claimed popularity.
- Maintainer/commit anomalies — a burst of commits from an ac
Установить security-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security-audit?
Audit a git-hosted dependency — CLI tool, editor/IDE plugin, or library — for security risk before installing or updating it — clone the repo, check it against a supply-chain checklist and a code-vulnerability checklist, and report findings with a verdict.
Как установить скилл security-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic