mcp-hayabusa: Command for Claude Code

.claude/commands/investigate-endpoint.md

investigate-endpoint is a command for Claude Code from omeryemba/mcp-hayabusa. It costs 28 tokens per session (915 once invoked), scanned A, original, MIT.

A command workflow for investigating a specific computer using security-log searches and Hayabusa analysis, then mapping findings to MITRE ATT&CK, a framework for describing attacker behavior.

In plain words
What is it for?
Investigating a named endpoint over a chosen time range, analyzing EVTX security logs when available, and correlating results with SIEM data.
Why use it?
It organizes endpoint evidence into one defensive investigation and avoids proceeding without a required hostname or valid log path.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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/commands/investigate-endpoint.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 investigate-endpoint

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/omeryemba/mcp-hayabusa/investigate-endpoint"><img src="https://agentmods.dev/badge/commands/omeryemba/mcp-hayabusa/investigate-endpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 915 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.00028 $0.00915
Opus 5 $0.00014 $0.00458
Sonnet 5 $0.00006 $0.00183
Haiku 4.5 $0.00003 $0.00092

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

Security

Grade A, and why

investigate-endpoint 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 10d 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-endpoint.md · 112 lines

How it starts

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

Workflow

You are performing a defensive security investigation of a specific endpoint.

Input

Arguments: $ARGUMENTS

Parse as:

  1. Hostname (required) — the first argument. If it's missing, stop and ask the user for a hostname before doing anything else.
  2. Timerange (optional) — e.g. 2026-07-01..2026-07-31, 24h, 7d.
  3. EVTX path (optional) — a filesystem path to .evtx evidence for this endpoint.

If only one optional argument is given, check whether it resolves to an existing filesystem path: if so, treat it as the EVTX path; otherwise treat it as the timerange. If two are given, the first is the timerange and the second is the EVTX path.

Example:

/investigate-endpoint WIN-CLIENT01 7d C:\logs\WIN-CLIENT01

Steps

  1. Confirm the hostname was supplied; stop and ask if not.

  2. If an EVTX path was given, confirm it exists and contains at least one .evtx file before running any Hayabusa tool. If it doesn't, tell the user and continue with SIEM-only analysis rather than fabricating evidence.

  3. Query SIEM data for the hostname (and timerange, if given), if a SIEM MCP tool or resource is configured in this environment. Analyse the results and extract:

    • suspicious processes
    • users
    • IP addresses
    • files
    • commands
    • authentication activity

    If no SIEM integration is available, say so explicitly in the output rather than silently skipping this step.

  4. If an EVTX path was given, use the Hayabusa MCP tools:

    • scan_evtx, hayabusa_log_metrics, hayabusa_computer_metrics for a first-pass overview
    • hayabusa_search, hayabusa_json_timeline, hayabusa_pivot_keywords_list, hayabusa_logon_summary to dig into anything suspicious

    Look for the same categories as the SIEM step (processes, commands, users, authentication activity, persistence indicators) so the two sources are directly comparable.

  5. Correlate SIEM and Hayabusa findings for the same hostname/timerange. The same process, user, or IP appearing in both sources strengthens confidence; a finding present in only one source should be flagged as unconfirmed by the other, not silently merged into one line.

Read the full file on GitHub · 112 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. 10d ago First seen · 112 lines · 28 tokens per session scan A 7a6d86409b3b

Subscribe to this mod's changes

investigate-endpoint is a command published in the GitHub repository omeryemba/mcp-hayabusa (0 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 915 once invoked, about $0.0001 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.