ir

ir is a command for Claude Code from mukul975/Threatswarm. It costs 15 tokens per session (860 once invoked), scanned A, original, MIT.

An incident-response command workflow for investigating events such as a system compromise, ransomware, data theft, insider misuse, or malware. Incident response is the process of examining a security event, and IOCs are clues such as suspicious files, addresses, or domains.

In plain words
What is it for?
It helps start an investigation, identify the incident type and affected system, create evidence folders, and collect details for further analysis.
Why use it?
It organizes evidence collection, investigation focus, timelines, and suspicious indicators during a security investigation.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps start an investigation, identify the incident type and affected system, create evidence folders, and collect details for further analysis.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mukul975/threatswarm/ir
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mukul975/Threatswarm

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 ir

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mukul975/threatswarm/ir"><img src="https://agentmods.dev/badge/commands/mukul975/threatswarm/ir.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 860 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.00015 $0.00860
Opus 5.5 $0.00006 $0.00344
Sonnet 5.5 $0.00003 $0.00172
Haiku 4.5 $0.00002 $0.00086

Measured 1mo ago against content hash 57c939520338, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ir 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 1mo 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/ir.md · 87 lines

What it actually says

Run incident response workflow for: $ARGUMENTS

Parse $ARGUMENTS: incident type is one of [compromise, ransomware, data-exfil, insider, malware, unknown] Optional second argument: affected system IP or hostname.

  1. IR Kickoff:

    ═══════════════════════════════════════════════════
    INCIDENT RESPONSE START
    Type:      $ARGUMENTS
    Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)
    Operator:  $(whoami)
    ═══════════════════════════════════════════════════
    

    Create directories:

    mkdir -p evidence/$(date +%Y%m%d)/IR_$(date +%H%M%S)/{volatile,memory,logs,artifacts,iocs,timeline}
    IR_DIR=evidence/$(date +%Y%m%d)/IR_$(date +%H%M%S)
    
  2. Type-Specific Checklist:

    compromise: Focus on initial access vector, persistence, lateral movement, credential theft ransomware: Focus on initial infection vector, encryption scope, shadow copy deletion, C2 communication data-exfil: Focus on data accessed, exfiltration method, destination IPs/domains insider: Focus on privileged access abuse, data downloads, account activity timeline malware: Focus on malware family identification, persistence, C2, affected hosts

  3. Invoke dfir Agent: Delegate full triage with:

    • Incident type context
    • Volatile data capture first (processes, network, users)
    • Persistence mechanism hunting
    • Memory acquisition guidance (avml/LiME)
    • Log collection and analysis
    • Evidence directory: $IR_DIR
  4. System Snapshot: Capture current state:

    # Snapshot current processes, network, users
    ps auxf > $IR_DIR/volatile/processes_$(date +%s).txt
    ss -tulnp > $IR_DIR/volatile/network_$(date +%s).txt
    who > $IR_DIR/volatile/users_$(date +%s).txt
    
  5. IOC Extraction: Extract all IOCs to $IR_DIR/iocs/:

    • IP addresses from logs and network connections
    • Domain names from DNS and web logs
    • File hashes of suspicious executables
    • Registry keys (Windows), cron entries (Linux)
    • Malware indicators (mutex names, persistence paths)
  6. Threat Hunt Integration: Invoke threat-hunter agent to find lateral movement:

    • Look for other systems the attacker may have reached
    • Correlate IOCs across available log sources
  7. Timeline Build: Write UTC-ordered timeline to $IR_DIR/timeline/timeline.md:

    | UTC Timestamp | Event | Source | ATT&CK TTP | Significance |
    |---------------|-------|--------|------------|--------------|
    
  8. Output Deliverables:

    ═══ IR DELIVERABLES ════════════════════════════
    immediate_actions.md  — Containment steps
    timeline.md           — UTC event timeline
    iocs.txt              — Indicators of compromise
    evidence_manifest.txt — Chain of custody log
    ════════════════════════════════════════════════
    
    Next: Share IOCs with security team
    Next: Brief stakeholders using immediate_actions.md
    
  9. Write Evidence Manifest to $IR_DIR/evidence_manifest.txt:

    Chain of Custody — $ARGUMENTS — $(date -u +%Y-%m-%dT%H:%M:%SZ)
    Operator: $(whoami)
    Files collected:
    [list all files with sha256 hashes]
    
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. 1mo ago First seen · 87 lines · 15 tokens per session scan A 57c939520338

Subscribe to this mod's changes

ir is a command published in the GitHub repository mukul975/Threatswarm (91 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 860 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other commands, from other repositories

recon

Run full recon pipeline on a target — subdomain enum (Chaos API + subfinder), live host discovery (dnsx + httpx), URL crawl (katana + waybackurls + gau), gf pattern classification, nuclei scan. Outputs to recon/ / directory. Usage: /recon target.com.

elementalsouls/Claude-BugHunter · 65 tokens

hunt

Active vulnerability hunting. Two-track dispatcher — asks Red Team vs WAPT, hands off to hunt-dispatch skill and sibling commands. Usage: /hunt target.com | /hunt .target.com | /hunt targets.txt [--vuln-class X] [--source-code P] [--chrome].

elementalsouls/Claude-BugHunter · 63 tokens

token-scan

Meme coin and token security scan — checks for rug pull vectors (hidden mint, honeypot, fee manipulation, LP lock bypass, authority retention, bonding curve exploits, fake renounce, sandwich amplification). Manual 8-class grep audit (with an optional automated scanner if present). Usage: /token-scan [--chain solana].

elementalsouls/Claude-BugHunter · 79 tokens

autopilot

Run autonomous hunt loop on a target — scope check → recon → rank surface → hunt → validate → report with configurable checkpoints. Usage: /autopilot target.com [--paranoid|--normal|--yolo].

elementalsouls/Claude-BugHunter · 49 tokens

triage

Quick 7-Question Gate triage on a finding before writing a report. Kills N/A submissions before they happen. Faster than /validate — for quick go/no-go decisions. Usage: /triage.

elementalsouls/Claude-BugHunter · 45 tokens

validate

Validate a finding — runs 7-Question Gate + 4-gate checklist. Kills weak findings before report writing. Prevents N/A submissions that hurt validity ratio. Usage: /validate.

elementalsouls/Claude-BugHunter · 41 tokens