mcp-hayabusa: Instructions file for Claude Code

CLAUDE.md

mcp-hayabusa CLAUDE.md is an instructions file for Claude Code from omeryemba/mcp-hayabusa. It costs 4,790 tokens per session, scanned B, original, MIT.

A set of Claude Code instructions for mcp-hayabusa, an MCP server that lets AI clients use Hayabusa to analyze Windows event-log files. Hayabusa is a forensic and threat-hunting command-line tool for .evtx files.

In plain words
What is it for?
Use it when installing, testing, or modifying mcp-hayabusa, its event-log analysis tools, or its read-only Sigma detection-rule and ATT&CK coverage resources.
Why use it?
It explains what the server exposes and how it works: the server runs a local Hayabusa program and converts its results into structured tool responses. This prevents agents from assuming the server parses logs itself.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is omeryemba/mcp-hayabusa's own configuration. It tells Claude Code how to work on mcp-hayabusa 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 mcp-hayabusa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to omeryemba/mcp-hayabusa. 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/omeryemba/mcp-hayabusa/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/omeryemba/mcp-hayabusa

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 mcp-hayabusa CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/omeryemba/mcp-hayabusa/claude-md/github.svg)](https://agentmods.dev/instructions/omeryemba/mcp-hayabusa/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/omeryemba/mcp-hayabusa/claude-md"><img src="https://agentmods.dev/badge/instructions/omeryemba/mcp-hayabusa/claude-md/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 mcp-hayabusa CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/omeryemba/mcp-hayabusa/claude-md"><img src="https://agentmods.dev/badge/instructions/omeryemba/mcp-hayabusa/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,790 This file is loaded in full into every session.
When invoked 4,790 The same file — it is already loaded in full.
Security scan B 2 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.04790 $0.04790
Opus 5 $0.02395 $0.02395
Sonnet 5 $0.00958 $0.00958
Haiku 4.5 $0.00479 $0.00479

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

Security

Grade B, and why

mcp-hayabusa CLAUDE.md scanned grade B with 2 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 9d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

**MCP callers are trusted.** Anyone who can call a tool on this server can already run arbitrary commands as the OS account it's running under (that's what it means to be able to drive an MCP client at all). This server

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- `config_critical_systems` has no `-o` file option at all — hayabusa only prints to stdout — and drops into an interactive confirm prompt when it finds a match, which can't be answered non-interactively. `_run` guards a
CLAUDE.md · 100 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

An MCP (Model Context Protocol) server that wraps the Hayabusa CLI — a Rust-based Windows event log (.evtx) forensic timeline generator and threat hunting tool. It exposes Hayabusa's analysis commands (detection timelines, keyword search, event/computer/logon metrics, pivot keyword extraction, base64 extraction, critical-system detection) as MCP tools so an LLM client (Claude Desktop, Claude Code, etc.) can run them directly against .evtx files. See the README's Tools table for the full list. It also exposes a set of read-only MCP resources for browsing the installed Sigma detection rule set and its ATT&CK technique/tactic coverage, independent of any .evtx file — see the README's Resources table.

The server itself does no log parsing — it shells out to a locally installed hayabusa binary and parses its output (mostly CSV/JSONL, plus plain text for the one subcommand that has no file-output option) into bounded, structured MCP tool results. Two things are the exception, reading hayabusa's local Sigma rule YAML files directly instead of shelling out: the get_hayabusa_rules tool (see below) and everything in knowledge.py behind the hayabusa:// resources (see below).

Commands

# Install (editable, with test deps)
pip install -e ".[dev]"

# Run the server (stdio transport — meant to be launched by an MCP client, not run interactively)
mcp-hayabusa
python -m mcp_hayabusa

# Tests
pytest
pytest tests/test_hayabusa.py::test_csv_timeline_parses_and_truncates  # single test

# Lint / typecheck
ruff check .
mypy          # checks src/mcp_hayabusa (see [tool.mypy] in pyproject.toml)
mypy tests    # tests aren't covered by the mypy config's default package selection

Architecture

Four-module core under src/mcp_hayabusa/:

  • config.py — resolves the path to the hayabusa binary: HAYABUSA_BIN env var if set, otherwise searched on PATH. Raises HayabusaNotFoundError if neither works. Every subprocess call goes through this.
  • hayabusa.py — the actual CLI wrapper. Most public functions (csv_timeline, json_timeline, search, eid_metrics, computer_metrics, log_metrics, extract_base64, and others) follow the same shape:
    1. Validate the target path exists (_require_existing_path) — every other user-supplied path-like argument (rules_dir on csv_timeline/json_timeline/get_hayabusa_rules) is routed through the same function before use, for the same reason. See "Security / trust boundary" below for what this validation does and deliberately does not do.
    2. Build a hayabusa <subcommand> argv list (never through a shell — no shell-injection surface).
    3. Write output to a temp file (hayabusa requires -o <file> for structured results; it won't stream them to stdout), then parse that file.
    4. Return a dict with total_rows/records, a max_rows-bounded slice, a truncated flag, the exact command that was run (for debuggability), and a trimmed stderr_summary.

Read the full file on GitHub · 100 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. 9d ago First seen · 100 lines · 4,790 tokens per session scan B fa2a2b4e981c

Subscribe to this mod's changes

mcp-hayabusa CLAUDE.md is an instructions file published in the GitHub repository omeryemba/mcp-hayabusa (0 stars, last pushed 1mo ago), licensed MIT. It adds 4,790 tokens to every session, about $0.0239 per session on Opus 5. A static security scan graded it B with 2 findings (unrestricted tool access, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens