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.
curl -O https://raw.githubusercontent.com/omeryemba/mcp-hayabusa/master/CLAUDE.mdgit clone --depth 1 https://github.com/omeryemba/mcp-hayabusaWrote 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.
[](https://agentmods.dev/instructions/omeryemba/mcp-hayabusa/claude-md)<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.
<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>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.
| Model | Per session | Once 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 |
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 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 thehayabusabinary:HAYABUSA_BINenv var if set, otherwise searched onPATH. RaisesHayabusaNotFoundErrorif 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:- Validate the
targetpath exists (_require_existing_path) — every other user-supplied path-like argument (rules_dironcsv_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. - Build a
hayabusa <subcommand>argv list (never through a shell — no shell-injection surface). - Write output to a temp file (hayabusa requires
-o <file>for structured results; it won't stream them to stdout), then parse that file. - Return a dict with
total_rows/records, amax_rows-bounded slice, atruncatedflag, the exact command that was run (for debuggability), and a trimmedstderr_summary.
- Validate the
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.
- 9d ago First seen · 100 lines · 4,790 tokens per session scan B fa2a2b4e981c
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.
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.
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.
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).
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).
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.
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.