forensics-hunt
БесплатноБез исполняемых скриптовНе проверенThreat hunt using Sigma rules against log sources
от jmagly★ 233 звезды на GitHubОб этом скилле
/forensics-hunt
Perform structured threat hunting by executing Sigma detection rules against collected log sources. Supports targeted rule selection or full rule set execution. Outputs matched detections with evidence context and MITRE ATT&CK annotations.
Usage
/forensics-hunt [options]
Arguments
| Argument | Required | Description |
|---|---|---|
| --rules | No | Rule IDs to run, comma-separated, or all (default: all) |
| --target | No | Target hostname to scope the hunt |
| --logs-path | No | Path to collected logs directory (default: .aiwg/forensics/acquisition/logs/) |
| --output | No | Output path (default: .aiwg/forensics/analysis/hunt-findings.md) |
| --severity | No | Minimum rule severity to execute: low, medium, high, critical (default: medium) |
| --since | No | Only evaluate log entries after this timestamp |
| --format | No | Output format: markdown (default), json, sigma-results |
| --list-rules | No | List available rules without executing |
Behavior
When invoked, this command:
Discover Log Sources
- Locate collected logs at specified or default path
- Identify log types: auth, syslog, journal, audit, application
- Map log formats to compatible Sigma field mappings
- Validate log file integrity against acquisition checksums
Load Sigma Rules
- Load rules from
@$AIWG_ROOT/agentic/code/frameworks/forensics-complete/sigma/ - Filter by
--rulesselection or severity threshold - Resolve rule dependencies and required fields
- Report rules skipped due to missing log sources
- Load rules from
Execute Detections
- Run each applicable rule against relevant log sources
- Apply field mappings to normalize log formats
- Filter by
--sincetimestamp if provided - Track match counts and false positive indicators
Detection Categories
Category Example Rules Authentication ssh-brute-force-success,password-spray,invalid-user-spikesPrivilege Escalation sudo-to-root,suid-execution,new-root-sessionPersistence cron-modification,new-systemd-unit,authorized-key-addedLateral Movement internal-ssh-from-new-host,ssh-agent-forwardingDefense Evasion log-deletion,audit-tampering,history-clearedExfiltration large-outbound-transfer,curl-to-external,dns-exfilC2 reverse-shell-indicators,beaconing-intervals,tunnel-trafficResult Enrichment
- Extract matching log lines as evidence
- Provide context window (5 lines before/after match)
- Link detections to MITRE ATT&CK technique IDs
- Score detection confidence (HIGH/MEDIUM/LOW) based on rule quality
Hunt Summary
- Count detections by severity and category
- Identify accounts, IPs, and processes involved
- Generate prioritized finding list
- Recommend follow-up investigation steps
Examples
Example 1: Full rule set, all logs
/forensics-hunt
Example 2: Specific rules against a target
/forensics-hunt --rules ssh-brute-force-success,sudo-to-root --target web01
Example 3: High and critical severity only
/forensics-hunt --severity high
Example 4: Hunt recent log entries
/forensics-hunt --since 2026-02-26T18:00:00Z --severity medium
Example 5: List available rules
/forensics-hunt --list-rules
Example 6: JSON output for SIEM import
/forensics-hunt --severity high --format json
Output
Artifacts are saved to .aiwg/forensics/analysis/:
.aiwg/forensics/analysis/
├── hunt-findings.md # Human-readable detection results
├── hunt-findings.json # Machine-readable results
└── rule-execution-log.yaml # Which rules ran, match counts, errors
Sample Output
Threat Hunt: web01-2026-02-27
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Log sources: auth.log, syslog, journal, audit.log (140.6 MB)
Rules loaded: 47 applicable (of 63 total, 16 skipped: missing sources)
Executing rules...
[HIGH ] ssh-brute-force-success MATCH (1 event)
[HIGH ] sudo-to-root MATCH (2 events)
[CRITICAL] cron-modification MATCH (1 event)
[HIGH ] reverse-shell-indicators MATCH (1 event)
[MEDIUM] invalid-user-spikes MATCH (847 events)
[MEDIUM] curl-to-external MATCH (3 events)
[LOW ] failed-su-attempts no match
[LOW ] password-spray no match
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Detection Summary:
CRITICAL: 1 HIGH: 3 MEDIUM: 2 LOW: 0
Total detections: 6 rules matched across 855 events
--- ssh-brute-force-success (HIGH, T1110.001) ---
Match: 2026-02-26 22:29:01 Accepted publickey for deploy from 185.220.101.42 port 51823
Context: Following 847 failed attempts (22:14:33-22:29:00) from same IP
Confidence: HIGH
--- cron-modification (CRITICAL, T1053.003)
Установить forensics-hunt в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл forensics-hunt?
Threat hunt using Sigma rules against log sources
Как установить скилл forensics-hunt?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл forensics-hunt запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic