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

.claude/commands/investigate-evtx.md

investigate-evtx is a command for Claude Code from Pirate-Kitty/hayabusa-mcp-security-scanner. It costs 36 tokens per session (1,838 once invoked), scanned A, original, MIT.

An investigation command for Windows Event Log files, whose EVTX format stores records such as logins, process starts, and other system events.

In plain words
What is it for?
Use it to scan an EVTX file with Hayabusa, map findings to MITRE ATT&CK techniques, and record related investigations.
Why use it?
It turns scan results into a dated, linked investigation note and checks severity before scanning.

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/investigate-evtx.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 investigate-evtx

README.md
[![agentmods](https://agentmods.dev/badge/commands/pirate-kitty/hayabusa-mcp-security-scanner/investigate-evtx/github.svg)](https://agentmods.dev/commands/pirate-kitty/hayabusa-mcp-security-scanner/investigate-evtx)
Your own site
<a href="https://agentmods.dev/commands/pirate-kitty/hayabusa-mcp-security-scanner/investigate-evtx"><img src="https://agentmods.dev/badge/commands/pirate-kitty/hayabusa-mcp-security-scanner/investigate-evtx/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 investigate-evtx

Your own site · 80×15
<a href="https://agentmods.dev/commands/pirate-kitty/hayabusa-mcp-security-scanner/investigate-evtx"><img src="https://agentmods.dev/badge/commands/pirate-kitty/hayabusa-mcp-security-scanner/investigate-evtx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,838 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.00036 $0.01838
Opus 5 $0.00018 $0.00919
Sonnet 5 $0.00007 $0.00368
Haiku 4.5 $0.00004 $0.00184

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

Security

Grade A, and why

investigate-evtx 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/investigate-evtx.md · 91 lines

How it starts

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

Investigate the EVTX file at $1 and write an Obsidian-compatible investigation note under investigations/.

1. Parse arguments

  • evtx_path = $1. If empty, stop immediately and report: Usage: /investigate-evtx <evtx-path> [severity]. Make no tool calls.
  • severity_arg = $2 (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. 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 to step 7 to write a minimal note recording that the scan ran and found nothing at min_severity, and suggest re-running with a lower severity value.

4. Resolve MITRE ATT&CK tags per finding

scan_evtx findings do not carry ATT&CK tags directly — only a RuleID. For each unique RuleID across the findings:

  • Read the MCP resource detection://rules/{RuleID} via ReadMcpResourceTool to get that rule's full YAML text.
  • Parse the YAML tags: list. Keep only entries matching ^attack\.t\d{4}(\.\d{3})?$ (case-insensitive), and normalize each to Txxxx or Txxxx.xxx form (e.g. attack.t1070.001T1070.001).
  • If the rule has no tags matching that pattern (this is a real, expected case — do not treat it as an error), record "no ATT&CK tags for this rule" for that RuleID. Never invent or guess a technique ID.
  • If the resource lookup fails for a given RuleID (e.g. unknown identifier), record "could not resolve tags for RuleID <id>" and continue with the rest.

Read the full file on GitHub · 91 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 · 91 lines · 36 tokens per session scan A d4b9026e7a9c

Subscribe to this mod's changes

investigate-evtx is a command published in the GitHub repository Pirate-Kitty/hayabusa-mcp-security-scanner (0 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 1,838 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-08-31.