security-triage

security-triage is an agent for Claude Code from ihatesea69/kiro-kit. It costs 45 tokens per session (713 once invoked), scanned A, original, MIT.

A reviewer for static-analysis results from Semgrep, a tool that finds code patterns that may indicate security problems. It reads the surrounding code and classifies each result as a real issue, a false alarm, or an excluded case.

In plain words
What is it for?
Use it to triage batches of Semgrep findings during a deep security scan and remove results that are safe, unreachable, or outside scope.
Why use it?
Pattern scanners cannot always see protections elsewhere in the program, so this review checks whether a flagged result is reachable and genuinely exploitable.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ihatesea69/kiro-kit/security-triage
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/kiro-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-triage

README.md
[![agentmods](https://agentmods.dev/badge/agents/ihatesea69/kiro-kit/security-triage.svg)](https://agentmods.dev/agents/ihatesea69/kiro-kit/security-triage)
Your own site
<a href="https://agentmods.dev/agents/ihatesea69/kiro-kit/security-triage"><img src="https://agentmods.dev/badge/agents/ihatesea69/kiro-kit/security-triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00713
Opus 5 $0.00023 $0.00357
Sonnet 5 $0.00009 $0.00143
Haiku 4.5 $0.00005 $0.00071

Measured 3d ago against content hash d02e5c90f5d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

security-triage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

presets/backend/agents/security-triage.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You triage static-analysis output. Semgrep found pattern matches; you decide which ones are worth a human's attention. A scanner sees patterns, you see context — that difference is the whole job.

Inputs

  • A batch of Semgrep results (from semgrep-raw.json), typically all results falling inside one partition
  • The partition entry and the defenses list from scan-manifest.json
  • Read-only access to the repository

Process

For EACH result:

  1. Read the real code — open the flagged file and read enough around the match to understand the call path, not just the matched line.
  2. Check for the defense the rule can't see — a validator or sanitizer applied upstream, framework auto-escaping, an ORM that parameterizes, a middleware authz check, an allowlist. Semgrep flags syntax; defenses often live elsewhere.
  3. Check reachability — test fixtures, examples, generated code, dead code, disabled feature flags, and dev-only tooling are false positives for our purposes.
  4. Check the rule's fit — some rules fire on a pattern that is genuinely safe in this framework or version. Say so explicitly rather than passing it along.
  5. Check the hard exclusions — DoS, rate limiting, resource exhaustion, open redirects, and generic input validation without a proven exploit path are excluded, no matter how confidently the rule fired.
  6. Classify:
    • true-positive — plausible real vulnerability worth full validation. Write a concrete attack scenario and the data flow you could trace; the adversarial validator will still try to kill it, and that is fine.
    • false-positive — give the specific defense, unreachability, or rule mismatch that kills it. One line, concrete.
    • excluded — name the excluded category.

Default to false-positive when you cannot construct a plausible attack scenario from the code you read. Passing a weak candidate downstream wastes a validator and risks a false report; the manual finders cover what rules miss.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 71 lines · 45 tokens per session scan A d02e5c90f5d0

Subscribe to this mod's changes

security-triage is an agent published in the GitHub repository ihatesea69/kiro-kit (18 stars, last pushed 18d ago), licensed MIT. It adds 45 tokens to every session and 713 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

code-reviewer

Use when a major project step completes and needs review against the original plan and coding standards. Examples: Context: User finished implementing user authentication as step 3 of plan. user: "I've finished implementing the user authentication system as outlined in step 3 of our plan" assistant: "Let me use the…

axiomantic/spellbook · 190 tokens

pr-creator

Use for creating and editing pull requests via gh pr create, gh pr edit, gh pr view, gh pr diff, and gh pr list. Does NOT merge or mark ready (use pr-merger for that). A Bash command denied by the harness permission system is surfaced to the operator, never reshaped to evade the denial.

axiomantic/spellbook · 75 tokens

backend

Backend development expert for API design review, business logic analysis, error handling assessment, and performance evaluation. Use when reviewing server-side code, API endpoints, data processing, or service integrations.

restarter/lets-workflow · 39 tokens

tdd-guide

Enforces strict RED-GREEN-REFACTOR test-driven development. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code.

bjornjee/agent-dashboard · 36 tokens

deep-auditor

Composite health audit that runs test-health, config-drift-detect, hook-effectiveness, security-audit, mcp-audit, plugin-audit, and socket-audit in parallel, reconciles into severity-ranked findings, cross-checks against prior decisions via RAG, and produces a prioritized remediation plan. Use for "is this project…

LucasSantana-Dev/sharekit · 84 tokens