Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

false-positive-gate

БесплатноБез исполняемых скриптовНе проверен

Use when you have a candidate security finding and before it goes in a comment - restate it as a crossed boundary, prove reachability, impact and a concrete…

makifbaysalот makifbaysal★ 123 звезды на GitHub

Об этом скилле

False-Positive Gate

Overview

Reviewers — language models especially — are biased toward seeing vulnerabilities and toward rating them higher than they are. A pattern that looks dangerous ("string concatenated into a query", "path from a variable") is a candidate, not a finding. Every false block costs a developer round-trip and teaches the team to skim your comments; that is how the real one gets missed.

Core principle: try to kill each finding before you write it. What survives an honest attempt is worth blocking on.

1. Restate the Claim

Write it in one sentence, concretely: "An unauthenticated caller can send name=../../etc/passwd to GET /export and read any file the server can read." Many candidates collapse here — you cannot name who sends what to where, or the sentence is obviously not true once written down.

The sentence must name six things: the lower-trust principal, the input or action they control, the control that was supposed to stop it, the boundary it crosses, the affected principal or resource, and the concrete result. A missing best practice, a guessed deployment behaviour, a generic parser crash or an effect on the attacker alone fills none of the last three.

2. Five Conditions — All Must Hold

  1. Reachability. The attacker controls the data at the source. Trace it: a value from config, an environment variable, a CLI flag, a constant, a server-generated id or an admin-only form is not attacker input for the user-facing threat model.
  2. Real impact. Reaching the sink produces code execution, privilege escalation, data disclosure or integrity loss for someone other than the attacker. A crash, a 500 or an ugly log line is a bug, not a vulnerability.
  3. A concrete exploit. You can write the request, the payload or a unit test that would demonstrate it. If you cannot, the confidence is below 0.8.
  4. The bounds hold. Length limits, type coercion, an integer parse, an enum switch, a regex anchor, a UUID format check — read them; one of them often makes the payload impossible.
  5. No environment control fully blocks it. A framework default (auto-escaping, parameter binding, CSRF middleware), a gateway rule visible in the repo, a network policy. Read it — "probably the WAF catches it" is not an argument either way.

3. Facts Outside the Repository

Proxy and ingress behaviour, CDN cache keys, IdP and broker policy, cloud IAM attachments, browser and OS settings are real controls. Read them when they are in the repository. When they are not and one of them decides the finding, neither dismiss it ("the gateway probably strips it") nor block on it ("nothing strips it"): if the rest of the trace is complete and the claim would be HIGH or CRITICAL, it becomes a non-blocking Needs validation note with the exact missing fact (source-visibility-needs-validation). Otherwise drop it.

4. Triage Dismissals

Drop the candidate when:

  • No threat model fits. You cannot complete "an attacker with [capability] can [action] → [impact]".
  • Exploit from the heavens. It needs a capability that already equals the impact: "an attacker who can edit the server's config file can make it run commands".
  • Not in actual usage. The vulnerable function has no caller reachable from input (grep_code the symbol) — unless this diff adds one.
  • Documented, intended behaviour. An admin tool that runs admin-supplied SQL; a CLI that reads the path its user gives it.
  • The cure is worse than the disease. Hardening that would break the feature for a theoretical gain.
  • A CVE number alone. An advisory against a library is evidence only when the vulnerable function or configuration is actually used here (supply-chain-and-dependency-review).
  • The requester's own authority. A user, job or agent doing what the requesting user is allowed to do is not a boundary crossing because a model or a queue executes it. It becomes one when attacker-controlled content causes the action and the user did not ask for it (llm-and-agent-security §3).

5. Do Not Strengthen the Effect

Report the effect the trace reaches, not the one it would be exciting to reach:

  • a crash or panic is not code execution; an out-of-bounds read is not a write;
  • ordinary per-request work is not a shared outage, and a slow query is not a denial of service;
  • a same-principal action is not privilege gain; reading your own data is not disclosure;
  • a reachable sink with a framework default you did not read is not yet a reachable sink.

If the strongest honest sentence is weaker than the category name suggests, the severity follows the sentence.

6. Self-Refute Pass (before anything blocks)

Name the attacker (who, with what access) and the victim (whose data or privilege). Then refute the finding if any is true:

  • Pre-existing. The vulnerable line has no + and the diff adds no new path into it. Off-diff findings must name the enabling + or - line, or
Полный SKILL.md на GitHub

Установить false-positive-gate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл false-positive-gate?

Use when you have a candidate security finding and before it goes in a comment - restate it as a crossed boundary, prove reachability, impact and a concrete exploit, apply triage dismissals, route out-of-repository facts to needs-validation, keep the effect no stronger than the trace, then the self-refute and verifier passes

Как установить скилл false-positive-gate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл false-positive-gate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить false-positive-gate с