hayabusa-mcp-security-scanner: Command for Claude Code

.claude/commands/triage.md

triage is a command for Claude Code from Pirate-Kitty/hayabusa-mcp-security-scanner. It costs 52 tokens per session (3,018 once invoked), scanned A, original, MIT.

A command for investigating EVTX files, which are Windows event-log files. It uses Hayabusa, maps findings to MITRE ATT&CK techniques, and records the result in Obsidian notes.

In plain words
What is it for?
Use it to scan an EVTX file, filter findings by severity, attach a case ID, create a triage note, and update reusable ATT&CK technique notes.
Why use it?
It gives security investigations a consistent process for validating inputs, assigning one severity outcome, and linking related evidence.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

This is Pirate-Kitty/hayabusa-mcp-security-scanner's own configuration. It tells Claude Code how to work on hayabusa-mcp-security-scanner itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hayabusa-mcp-security-scanner configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Pirate-Kitty/hayabusa-mcp-security-scanner. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Pirate-Kitty/hayabusa-mcp-security-scanner/main/.claude/commands/triage.md
Clone the repo
git clone --depth 1 https://github.com/Pirate-Kitty/hayabusa-mcp-security-scanner

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 triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/pirate-kitty/hayabusa-mcp-security-scanner/triage/github.svg)](https://agentmods.dev/commands/pirate-kitty/hayabusa-mcp-security-scanner/triage)
Your own site
<a href="https://agentmods.dev/commands/pirate-kitty/hayabusa-mcp-security-scanner/triage"><img src="https://agentmods.dev/badge/commands/pirate-kitty/hayabusa-mcp-security-scanner/triage/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for triage

Your own site · 80×15
<a href="https://agentmods.dev/commands/pirate-kitty/hayabusa-mcp-security-scanner/triage"><img src="https://agentmods.dev/badge/commands/pirate-kitty/hayabusa-mcp-security-scanner/triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,018 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00052 $0.03018
Opus 5 $0.00026 $0.01509
Sonnet 5 $0.00010 $0.00604
Haiku 4.5 $0.00005 $0.00302

Measured 11d ago against content hash 036899de06eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

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 11d 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.

.claude/commands/triage.md · 154 lines

How it starts

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

Triage the EVTX file at $1 and write an Obsidian-compatible triage note under investigations/triage/, syncing reusable ATT&CK technique notes under techniques/.

1. Parse arguments

  • evtx_path = $1. If empty, stop immediately and report: Usage: /triage <evtx-path> [severity] [case-id]. Make no tool calls.
  • severity_arg = $2 (may be absent).
  • case_id_arg = $3 (may be absent).

2. Resolve and validate severity BEFORE scanning

  • If severity_arg is present: trim whitespace and lowercase it, then check it is exactly one of informational, low, medium, high, critical.
    • No match → stop immediately, before calling any scan tool, and report: Invalid severity '<severity_arg>'. Must be exactly one of: informational, low, medium, high, critical.
    • Match → use the normalized value as min_severity.
  • If severity_arg is absent → min_severity = "medium" (the default).

3. Validate case_id BEFORE scanning

  • If case_id_arg is absent, case_id = null and this step is done.
  • If present: trim whitespace, then check the result matches exactly ^[A-Za-z0-9_-]{1,64}$.
    • No match (this covers path separators / \, traversal sequences .., shell metacharacters ; | & $ " ' * ? ( ) < > ~, whitespace, email addresses, or any other character outside letters/digits/hyphen/underscore) → stop immediately, before calling any scan tool, and report: Invalid case ID '<case_id_arg>'. Use only letters, numbers, hyphens, and underscores (max 64 characters).` Do not attempt to strip or sanitize the value and continue — reject and stop.
    • Match → use the trimmed value as case_id.

4. Scan

Call mcp__hayabusa-mcp__scan_evtx with evtx_path, the resolved min_severity, and output_format="full".

  • If the tool raises a file-not-found or Hayabusa-binary error, surface that error message verbatim, and add a note that evtx_path is resolved by the MCP server against its own process working directory (the repo root) — relative paths should be given relative to the repo root, or as absolute paths.
  • If the scan succeeds with zero findings, this is not a failure: continue through the remaining steps to write a minimal note with triage_outcome: insufficient evidence, and suggest re-running with a lower severity value.

Read the full file on GitHub · 154 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. 11d ago First seen · 154 lines · 52 tokens per session scan A 036899de06eb

Subscribe to this mod's changes

triage is a command published in the GitHub repository Pirate-Kitty/hayabusa-mcp-security-scanner (0 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 3,018 once invoked, about $0.0003 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-08-31.