security-hard-exclusions-and-precedents
Use when a candidate finding falls into a noisy category - the do-not-report list, the precedents that settle recurring edge cases, and the narrow exceptions…
от makifbaysal★ 123 звезды на GitHub
Установить security-hard-exclusions-and-precedents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Hard Exclusions and Precedents
Overview
Some categories produce far more noise than signal in a diff review, or are handled by another process. They are excluded up front so you never spend a finding — or a developer's revision — on them. Precedents settle the cases that come up every week, so two reviews of the same pattern reach the same answer.
Core principle: an exclusion is not a judgement that the issue is harmless; it is a judgement that this review is the wrong place for it.
1. Never Report
Availability and load
- Denial of service, resource exhaustion, memory or CPU blow-up, missing rate limiting, unbounded loops — except the narrow single-input cases in §4.
- Regex injection and ReDoS.
Hardening without a vulnerability
- Missing security headers, HSTS advice, TLS/HTTPS in local development, "should use a stronger setting" with no concrete attack.
- Missing input validation on a field that has no security effect.
- Missing audit logs; log spoofing / log injection.
Out of this review's scope
- Outdated libraries in general — dependency risk is judged by supply-chain-and-dependency-review, version by version.
- Memory-safety issues in memory-safe languages (Go, Java, Kotlin, C#, Rust safe code, Python, JS). Native code,
unsafeblocks, cgo and FFI are in scope (native-memory-safety-and-ffi). - Anything only in test files, fixtures, examples or documentation (Markdown, comments).
- Theoretical race conditions and timing issues without a demonstrated window and impact. A check-then-act race the attacker drives with two concurrent requests, for money, quota, a unique claim or a privilege, is not theoretical (business-logic-and-state-abuse §2).
- Secrets stored on disk with otherwise appropriate protection (a mounted secret file, an OS keychain).
- Pre-existing issues the diff did not introduce or enable.
Usually noise — only at very high confidence
- Open redirect, tabnabbing, XS-Leaks, prototype pollution: report only with a concrete chain to real impact (token theft via redirect in an OAuth flow, pollution reaching an auth decision or a
child_processoption).
2. Precedents
| Situation | Ruling |
|---|---|
| Logging a secret, token, password or session id | Vulnerability (CWE-532) |
| Logging a URL | Fine — unless the URL carries a token or credential in the query |
| UUIDv4 ids in URLs | Unguessable; enumeration is not the attack — the missing ownership check is |
| Values from environment variables, CLI flags, server config files | Trusted input |
| ORM query builders, parameterised SQL | Safe; raw/text()/string-built SQL is not |
| React, Vue, Angular, Svelte templates | Safe by default; only dangerouslySetInnerHTML, v-html, {@html}, bypassSecurityTrust*, direct DOM sinks count |
| Missing permission check in client-side JS/TS or a mobile UI | Not a finding — the server is the boundary; check the server |
| SSRF or path traversal in browser code | Not a finding — the browser is the attacker's own machine |
| SSRF where the attacker controls only the path, not host or scheme | Not reported |
Shell scripts and .ipynb notebooks |
Injection only with a specific untrusted-input path into them |
| GitHub Actions inputs | Only when an untrusted event (fork PR, issue, comment) can trigger them; workflow_dispatch inputs come from people with write access |
| Resource leaks (unclosed files, connections) | Bugs, not vulnerabilities |
| Crashes, panics, 500s | Bugs, unless the error path itself leaks data or fails open |
| Hard-coded non-secret config (project ids, hostnames, public client ids) | Fine |
Dev fallback such as os.environ.get("SECRET_KEY", "dev") |
Fine — unless production demonstrably runs without the variable set |
Publishable keys (Stripe pk_, Firebase web config, analytics write keys) |
Fine by design |
| Secret in a test fixture | Excluded when it is a dummy or a documented test key; a real production credential pasted into a test is still a live secret |
| "Internal" service, private network, "only other services call it" | Not authentication. Judge by who can reach it; if that is decided outside the repository, it is a needs-validation note |
| JSON Schema, protobuf, zod, Pydantic or a typed DTO on the input | Proves shape, not authority, provenance or safe values |
A tenant_id / owner_id column on the record |
Not isolation until a query, policy or key on this path enforces it |
| A secret reference (vault path, env var name, secret ARN, key id) | Not a disclosed secret |
| Missing cookie flags, missing MFA prompt, missing least privilege, missing pinning | Hardening, unless a concrete path uses the gap |
| A user installing a plugin, extension or script into their own app | Not a boundary |
| A file, token or config readable only by the same OS user | Not a finding — the attacker is the victim |
| Different responses that reveal whether a public account exists | Not a finding; an oracle on a protected pr |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security-hard-exclusions-and-precedents?
Use when a candidate finding falls into a noisy category - the do-not-report list, the precedents that settle recurring edge cases, and the narrow exceptions where an excluded category still counts
Как установить скилл security-hard-exclusions-and-precedents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-hard-exclusions-and-precedents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse 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…
xlsx
AnthropicUse 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…
pptx
AnthropicUse 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…