detection-engineer
БесплатноБез исполняемых скриптовНе проверенCreate detection rules and hunting queries from malware analysis findings. Use when you need to write Sigma rules for SIEM, Suricata rules for network IDS…
Об этом скилле
Detection Engineer
Transform malware analysis findings into production-ready detection rules, hunting queries, and operationalized IOCs.
Note: YARA rules are authored in the
malware-report-writerskill, not here. This skill covers Sigma rules, Suricata/Snort rules, and hunting queries.
Execution Model
- Start from the evidence, not from the user's memory. Read
analysis_state.md,procmon_summary.txt,sysmon_summary.txt, and the tshark exports yourself; every rule below is derived from a specific observed behavior or network artifact, and you cite it in the rule'sdescription/reference. - Locate skill files. Scripts and reference files ship in this skill's directory. Set
R="${CLAUDE_PLUGIN_ROOT:-<dir containing this SKILL.md>}"once (when installed as a plugin$CLAUDE_PLUGIN_ROOTis set; otherwise it is this skill folder). Your working directory is the user's analysis workspace, so prefix every script path below with$R, e.g.python3 "$R"/scripts/ioc_extract.py. - Write rules to files:
detections/sigma/<name>.yml,detections/suricata/<name>.rules,detections/hunting/<platform>.txt,detections/iocs.csv|.json. Create the directories. - Test what you can, say what you couldn't. Run
sigma checkandsuricata -T(below) when installed; otherwise writestatus: experimentaland note "untested" in the state file. Never claim a rule is validated without output to show. - Defang with the bundled script:
python3 scripts/ioc_extract.py <evidence files>(repo root) produces the deduplicated, defanged list;--format csv|jsonfeeds the export formats;--refangrestores live values for rule bodies. - UUIDs:
python3 -c "import uuid; print(uuid.uuid4())"per Sigma rule. SIDs: 1000000+ and unique across the engagement. - Ask the user only for: target SIEM/EDR platforms, deployment constraints (noise tolerance, log sources actually collected), and sharing scope (TLP).
When to Use This Skill
Use this skill when you need to:
- Write Sigma rules for SIEM detection (Splunk, Elastic, QRadar)
- Create Suricata/Snort rules for network IDS/IPS
- Generate hunting queries for EDR platforms
- Defang IOCs for safe documentation and sharing
- Convert IOCs to standard formats (STIX, OpenIOC, CSV)
- Assess IOC confidence levels and volatility
- Create detection logic from behavioral analysis
- Write threat hunting hypotheses
IOC Management & Defanging
Why Defang IOCs?
Problem: Live IOCs in reports can be:
- Accidentally clicked (execute malware)
- Automatically crawled by bots
- Trigger security tools (email filters, DLP)
Solution: Defang (neutralize) IOCs for safe sharing.
Defanging Patterns
# URLs
http://malicious.com/payload.exe
→ hxxp://malicious[.]com/payload[.]exe
https://evil.tk/login
→ hxxps://evil[.]tk/login
# Domains
malicious.com
→ malicious[.]com
c2-server.example.org
→ c2-server[.]example[.]org
# IPs
192.168.1.100
→ 192[.]168[.]1[.]100
10.0.0.50
→ 10[.]0[.]0[.]50
# Email addresses
[email protected]
→ attacker[@]evil[.]com
[email protected]
→ phishing[@]malware[.]tk
# File paths (optional)
C:\Windows\System32\malware.exe
→ C:\Windows\System32\malware[.]exe
Automated Defanging
Bundled script (preferred — no install):
python3 scripts/ioc_extract.py evidence/*.txt evidence/*_summary.txt # defanged, deduplicated, typed
python3 scripts/ioc_extract.py --format csv evidence/*.txt > detections/iocs.csv
python3 scripts/ioc_extract.py --refang detections/iocs_defanged.txt # live values for Suricata/Sigma bodies
Tool: ioc-fanger (Python)
# Install
pip install ioc-fanger
# Defang
echo "http://malicious.com" | fanger --defang
# Output: hxxp://malicious[.]com
# Refang (restore for testing)
echo "hxxp://malicious[.]com" | fanger --fang
# Output: http://malicious.com
Manual sed/awk:
# Defang URLs and domains
echo "http://malicious.com/payload.exe" | sed 's/http:/hxxp:/g; s/\./[.]/g'
# Defang IPs
echo "192.168.1.100" | sed 's/\./[.]/g'
# Defang emails
echo "[email protected]" | sed 's/@/[@]/g; s/\./[.]/g'
IOC Confidence & Volatility Assessment
| IOC Type | Confidence | Volatility | Reasoning |
|---|---|---|---|
| File Hash (SHA256) | High | Static | Unique to sample, won't change |
| Mutex Name | High | Static | Hardcoded in malware |
| PDB Path | High | Static | Compilation artifact |
| Registry Key | High | Static | Persistence mechanism |
| Certificate Hash | High | Static | Code signing certificate |
| IP Address | Medium | Dynamic | Can change (DGA, fast-flux, hosting) |
| Domain (C2) | Medium | Dynamic | May rotate frequently |
| URL Path | Low-Medium | Dynamic | Often dynamic or timestamped |
| User-Agent | Low | Dynamic | Common strings, high FP rate |
| File Path | Medium | Static | May vary by environment |
| **Process |
Установить detection-engineer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл detection-engineer?
Create detection rules and hunting queries from malware analysis findings. Use when you need to write Sigma rules for SIEM, Suricata rules for network IDS, defang IOCs for safe sharing, or convert analysis findings into actionable detection content for SOC teams and threat hunters.
Как установить скилл detection-engineer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл detection-engineer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic