用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill sigma-hunting命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| namespace | aiwg |
| name | sigma-hunting |
| description | Apply Sigma rules against log sources for threat hunting; convert rules to Elasticsearch, Splunk, and grep queries |
| tools | Bash, Read, Write, Glob, Grep |
| platforms | ["all"] |
Applies Sigma detection rules against collected log sources to identify threat activity. Supports the bundled forensics-complete Sigma rule library and custom rules. Converts Sigma rules to backend-specific queries for Elasticsearch, Splunk, and grep, enabling hunting across both real-time platforms and offline log files.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
Sigma provides a vendor-neutral rule format for expressing detection logic. Writing backend-specific queries for every log source and SIEM is time-consuming and error-prone. This skill translates Sigma rules to the appropriate query format for the available tooling, applies them against collected logs, and reports matches with ATT&CK technique context.
When triggered, this skill:
Identify available rule sources:
agentic/code/frameworks/forensics-complete/sigma/.aiwg/forensics/sigma/custom/sigma --version 2>/dev/nullIdentify target log sources and backends:
logsource categories to available sources:
category: process_creation → syslog, auditd logs, or EDR telemetrycategory: network_connection → firewall logs, VPC flow logs, Zeek conn.logcategory: webserver → nginx/Apache access logsproduct: linux → auth.log, syslog, journalproduct: windows → Windows Event Log exports (.evtx or JSON)Select applicable rules:
logsource compatibility with available sourcestags: attack.t1059*medium, high, critical rules onlyConvert rules to grep (offline log files):
selection keywords to extended grep patterns:
grep -Ei 'pattern1|pattern2' /var/log/auth.log
condition: selection and not filter by piping through a second grep with -vConvert rules via sigma-cli (when available):
sigma convert -t elasticsearch -f lucene rules/sigma/linux/ > hunt-queries.txt
sigma hunt
hunt for T1078
sigma rules --backend elasticsearch --output hunt-queries.txt
.aiwg/forensics/findings/<hostname>-sigma-hunt.md.aiwg/forensics/sigma/converted/.aiwg/forensics/evidence/sigma-hits.txtsigma_hunting:
bundled_rules_path: agentic/code/frameworks/forensics-complete/sigma/
custom_rules_path: .aiwg/forensics/sigma/custom/
default_severity_filter:
- medium
- high
- critical
default_backend: grep
available_backends:
- grep
- elasticsearch
- splunk
sigma_cli_path: sigma
sigma convert -t splunk rules/sigma/linux/ > hunt-spl.txt
Execute hunts and collect matches:
Triage matches:
ioc-extraction skillApply custom rules:
.yml files from .aiwg/forensics/sigma/custom/Write hunt report:
.aiwg/forensics/findings/<hostname>-sigma-hunt.md基于 SOC 职业分类