Threat hunt

From backbay-labs/clawdstrike · View interactive version

Threat hunt is an AI agent skill from the GitHub repository backbay-labs/clawdstrike. Threat hunting and security event investigation

How to use this skill

Skill file

Threat Hunt

<trigger>

This skill activates when the user or conversation involves:

</trigger>

Investigation Workflow

Follow this structured approach when investigating security events:

1. Establish Timeline

Call clawdstrike_timeline to get a chronological view of recent events:

2. Query and Filter

Use clawdstrike_query to drill into specific criteria:

3. Correlate Events

Run clawdstrike_correlate to detect patterns across events:

4. Check IOCs

Use clawdstrike_ioc to check indicators against threat intelligence:

5. Generate Report

Call clawdstrike_report to produce a structured investigation summary:

MITRE ATT&CK Quick Reference

Common techniques to look for in agent security events:

| Technique | ID | Indicators |

|-----------|------|------------|

| Command and Scripting Interpreter | T1059 | Shell commands with encoded payloads, eval/exec usage |

| File and Directory Discovery | T1083 | Enumeration of sensitive directories |

| Exfiltration Over Web Service | T1567 | Egress to uncommon domains after file reads |

| Credential Access | T1552 | Access to .env, .ssh, credential files |

| Defense Evasion | T1562 | Attempts to modify security config or disable guards |

| Persistence | T1546 | Modifications to shell profiles, cron, startup files |

| Privilege Escalation | T1548 | sudo/chmod/chown commands, setuid changes |

MITRE Technique to MCP Tool Mapping

Use this table to select the right investigation tool for each technique:

| MITRE Technique | ID | Primary MCP Tool | Investigation Approach |

|-----------------|----|------------------|----------------------|

| Command and Scripting Interpreter | T1059 | clawdstrike_query | Filter by action_type=shell, look for encoded payloads or eval/exec |

| File and Directory Discovery | T1083 | clawdstrike_timeline | Broad timeline scan for sequential file reads across sensitive dirs |

| Exfiltration Over Web Service | T1567 | clawdstrike_correlate | Correlate file reads followed by egress to uncommon domains |

| Credential Access | T1552 | clawdstrike_query | Filter by action_type=file targeting .env, .ssh, credential paths |

| Defense Evasion | T1562 | clawdstrike_query | Filter for policy modification attempts or guard config changes |

| Persistence | T1546 | clawdstrike_ioc | Check shell profile, cron, and startup file modifications |

| Privilege Escalation | T1548 | clawdstrike_query | Filter by action_type=shell for sudo, chmod, chown, setuid |

Incident Classification

Classify incidents using these severity levels:

| Classification | Criteria | Response |

|---------------|----------|----------|

| P1 - Critical | Active exploitation, data exfiltration confirmed, credential compromise | Immediate remediation, revoke credentials, isolate affected sessions |

| P2 - High | Blocked exploit attempt, repeated policy violations, suspicious lateral movement | Investigate within current session, tighten policy, monitor for recurrence |

| P3 - Medium | Single denied action matching known TTP, anomalous but unconfirmed activity | Log for review, verify policy coverage, check for related events |

| P4 - Low | Informational anomaly, policy audit events, benign tool misuse | Document in report, no immediate action required |

Response Guidelines

When this skill is active:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.