Skip to content
Security
Command

/hunt

Run an ATT&CK-based threat hunt with a specific hypothesis

From plugin
threatswarm
976 skills27 agents6 commands
> /plugin marketplace add mukul975/Threatswarm
> /plugin install threatswarm@threatswarm

Command definition

hunt.md
description: Run an ATT&CK-based threat hunt with a specific hypothesis
allowed-tools: Bash, Read, Write, Grep, Glob

Run threat hunt with hypothesis: $ARGUMENTS

Parse $ARGUMENTS for: hypothesis text, optional timeframe (e.g., "last 7 days"), affected systems.

1. **Hunt Setup**:

   ═══════════════════════════════════════════════
   THREAT HUNT START
   Hypothesis: $ARGUMENTS
   Timestamp:  $(date -u +%Y-%m-%dT%H:%M:%SZ)
   Log dir:    evidence/$(date +%Y%m%d)/hunt/
   ═══════════════════════════════════════════════

Create: `mkdir -p evidence/$(date +%Y%m%d)/hunt/{hypotheses,queries,findings}`

2. **Map Hypothesis to ATT&CK**: Identify relevant TTPs from the hypothesis:

  • PowerShell / script execution → T1059.001, T1059.003
  • Lateral movement → T1021.001 (RDP), T1021.002 (SMB), T1021.006 (WinRM)
  • Credential dumping → T1003.001 (LSASS), T1003.003 (NTDS)
  • Persistence → T1547.001 (Run Keys), T1053.005 (Scheduled Task)
  • C2 beaconing → T1071.001 (HTTP/S), T1071.004 (DNS)
  • Data exfiltration → T1041 (exfil over C2), T1048 (exfil via protocol)

3. **Invoke `threat-hunter` Agent**: Delegate with:

  • Full hypothesis text from $ARGUMENTS
  • ATT&CK TTP mapping
  • Available log sources (auth.log, syslog, nginx access, Windows Event Logs, pcaps)
  • Timeframe context

4. **Query Execution**: The threat-hunter agent runs ATT&CK-aligned queries:

  • Linux auth log pattern matching
  • Web server log anomaly detection
  • Network traffic analysis (if pcaps available in evidence/)
  • Windows Event Log correlation (if accessible)

5. **Cross-Source Correlation**: Correlate findings across log sources:

  • Match IP addresses across auth, web, and network logs
  • Timeline reconstruction of suspicious activity
  • Confidence scoring per finding

6. **Write Hunt Report**: Output to `evidence/$(date +%Y%m%d)/hunt/hunt_report.md`:

  • Hypothesis tested
  • Queries run with results
  • Confirmed/likely/possible findings
  • IOCs extracted (IPs, domains, hashes)
  • Recommended follow-up hunts

7. **Print Summary**:

   ═══ HUNT RESULTS ═══════════════════
   Hypothesis: [text]
   ATT&CK TTPs: [T1234, T1235...]
   Findings Confirmed: X
   Findings Possible:  X
   IOCs Extracted:     X
   Report: evidence/$(date +%Y%m%d)/hunt/hunt_report.md
   ════════════════════════════════════

If no evidence/ files exist and no log access is configured, output:

⚠ No log sources found. Configure log paths or run recon first.
Available: /var/log/auth.log, /var/log/nginx/access.log, pcap files in evidence/
Read more
@mukul975
Ships withthreatswarm

27 scope-enforced AI agents that run the full pentest kill-chain (recon → exploit → post-ex → DFIR → report) as a one-command Claude Code plugin. Backed by 754 MITRE-mapped skills.

975 skills27 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
97
Star history of mukul975/Threatswarm on GitHub, a chart by star-history.com

Other commands on threatswarm.

attack

attack

Command

Route an attack vector to the appropriate specialist agent — usage: /project:attack <target> <vector>

@mukul975@mukul975Install Command
engage

engage

Command

Start a new engagement for a target — verifies scope, creates evidence directories, and launches recon agent

@mukul975@mukul975Install Command
ir

ir

Command

Incident response workflow — triage, evidence collection, timeline, and IOC extraction

@mukul975@mukul975Install Command
pwned

pwned

Command

Post-exploitation workflow after getting shell access — privesc, credential harvest, lateral movement

@mukul975@mukul975Install Command

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

ironclaw12d13k
@nearai@nearaiInstall Command
audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

@trailofbits@trailofbitsInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@awarexone@awarexoneInstall Command