security
БесплатноЗапускает вложенные скриптыНе проверенReviews code and designs through a security lens: threat models, findings that trace a path from a trust boundary to a sink, secret handling and dependency…
от crewrig★ 24 звезды на GitHubОб этом скилле
Security
A review looks for the next realistic exploit; it does not walk a checklist of every weakness class. Two threats with a credible exploit path get fixed, twenty generic ones get skimmed past, so spend the effort on the first kind.
Rules whose reason is not obvious
- No traced path, no finding. Read the function end to end, then follow the data from the untrusted input to the sink. A "potential" issue with no path costs the author time and costs you credibility, so leave it out. When no test covers the threat path, say so in the
Fix:line and name the test to add: the fix has no regression guard otherwise. - Review security-adjacent modules (payment, personal data, audit log) even when the diff looks harmless. The stakes come from the module, not from the hunk.
- Reserve
BLOCKERfor what must be fixed before merge, such as a credential leak, remote code execution or an authentication bypass. A reader triages by severity, so an inflated scale is ignored.
| Severity | Meaning |
|---|---|
BLOCKER |
Fix before merge: leaked credential, code execution, authentication or authorization bypass. |
HIGH |
Exploitable with real impact; fix before release. |
MED |
Exploitable only under extra conditions, or with limited impact; schedule it. |
LOW |
Hardening with a small gain. |
INFO |
An observation that needs no action. |
- Never echo a secret, in a finding or in the transcript: both are persisted copies. Show evidence with the value masked, at most four characters followed by asterisks (
sk_l****). - Rotation is part of the finding. Deleting the line does not revoke a key that sits in the history, so treat a secret as compromised the moment it reached a store that is not secret-grade, and put "rotate the exposed key" and "read it from an environment variable or a secret store" in the
Fix:line. - Flag a diff that adds
.env,credentials.json,*.pemor a file under a vault path: such files hold secrets by convention. - Dependencies. Read the changelog between the current and the target version. On a minor or patch bump, look at transitive changes and licence drift; on a major bump, name the breaking changes and require a migration note.
dep-audit.tsreports advisories but not whether the code reaches the affected path, so reachability is your judgement: say whether the vulnerable function is called.
Report format
Write the findings as a numbered list, one block each:
1. [SEV] <one-line summary>
Where: <file:line>
Threat: <what an attacker would do>
Evidence: <code or trace, secrets masked>
Fix: <concrete recommendation>
[SEV]is one of the five severities above.Where:is<file>:<line>or<file>:<first>-<last>, a line of the whole file in the checkout, so that a reader can open it. A value may continue on indented lines.- When the input is a diff, cite the path of the post-image from the
+++header without itsa/orb/prefix, and a line of the new-file side of the hunk. A path that exists only in the diff cannot be opened. - A clean review is the line
No findings.followed by anExamined:line that names what you read, with file and line.security-finding.tsrequires theNo findings.line (and rejects it beside a finding) but does not read theExamined:line: that one is for the reader, who sees what the clean verdict covers. - A threat model opens with one line that names the trust boundary, then lists the threats in the same format. For a design with no code, cite the design document and a line of it in
Where:; when the design exists only in the conversation, write it to a file next to the report and cite that, sincesecurity-finding.tsaccepts only a real file and line.
Scripts
Run node scripts/<name>.ts from the skill directory, or give the full path from elsewhere. None of them writes a file of your project.
| When | Command | Exit codes |
|---|---|---|
| Before handing over a report | node scripts/security-finding.ts [--root <checkout>] <report.md or -> (add --json for a structured result) |
0 well formed. 1 a defect: each message names the fix, and the finding number where it has one, so correct the report and run again. 2 usage error. 3 the report or --root cannot be read. |
| A change touches dependencies, or the user asks for an audit | node scripts/dep-audit.ts [--root <dir>] [--ecosystem npm|pip] [--fail-on low|moderate|high|critical] [--timeout <seconds>] |
0 audited, nothing at or above --fail-on. 1 a vulnerable dependency. 2 usage error. 3 not audited. |
| Reviewing CI definitions for exposed secrets | node scripts/check-secrets-exposure.ts --platform <github|gitlab> <file-or-dir> |
0 clean or nothing to scan. 1 a finding or a missing target. 2 usage error, including a missing --platform. |
security-finding.ts checks the shape of the report and that every Where: resolves to a real file and line. It does not ch
Установить security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл security?
Reviews code and designs through a security lens: threat models, findings that trace a path from a trust boundary to a sink, secret handling and dependency audits, then checks its own report with bundled scripts. Use when asked for a threat model, attack surface or trust boundary analysis, or a review of authentication, authorization, session handling, secrets, a credential leak, cryptography, deserialization, input validation or SSRF, or for a dependency audit, a CVE check or a dependency upgrade review. Not for authoring or hardening GitHub Actions workflows or GitLab pipelines (github-actions, gitlab-ci), applying a fix (developer), pull request verdicts (pr-reviewer), pull request descriptions (pr-logbook) or design alternatives (architect).
Как установить скилл security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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