Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

gl0bal01от gl0bal01★ 56 звёзд на GitHub24 установки в других каталогах

Об этом скилле

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-writer skill, 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's description/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_ROOT is 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 check and suricata -T (below) when installed; otherwise write status: experimental and 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|json feeds the export formats; --refang restores 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить detection-engineer с