Communitygithub.com

위협 헌팅 & 탐지 엔지니어링

블루팀의 위협 헌팅, Sigma/YARA 기반 탐지 엔지니어링, SIEM 쿼리 설계 및 침해 탐지 검증에 사용됩니다.

위협 헌팅 & 탐지 엔지니어링란 무엇인가요?

이 스킬은 블루팀 운영자와 보안 분석가가 위협 헌팅(hypothesis-driven) 및 탐지 엔지니어링을 체계적으로 수행할 수 있도록 설계된 전문 가이드입니다. 주요 기능으로 Sigma/YARA 규칙 작성, SIEM(ELK, Splunk) 쿼리 설계, osquery를 활용한 엔드포인트 헌팅, Atomic Red Team을 통한 탐지 검증(실험실 환경 전용)을 지원합니다. 핵심 워크플로는 가설 설정 → 쿼리 및 이상 탐지 → 규칙화 → 검증의 4단계로 구성되며, 가설 기반 접근을 강조하여 무분별한 알람을 방지합니다. 특히 'malware-analysis' 스킬과는 샘플 IOC를 실제 탐지 규칙으로 전환하고, 'digital-forensics' 스킬과는 사건 아티팩트를 기반으로 수평적 헌팅을 수행하는 연계 지점을 명확히 정의합니다. 이 스킬은 반드시 사전 승인된 데이터 소스(SIEM, EDR 내보내기) 범위 내에서만 사용해야 하며, 무단 프로덕션 환경에서의 공격 시뮬레이션을 금지합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaoxuya520/reverse-skill/tree/main/skills/threat-hunting

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

위협 헌팅 & 탐지 엔지니어링은(는) 무엇을 하나요?

ACTION REQUIRED(읽은 후 즉시 실행)

  1. NOW: 블루팀/헌팅 권한 및 데이터 소스 범위 확인 (SIEM, EDR 내보내기)
  2. NOW: 데이터 조회 전 가설(hypothesis) 명확히 설정, 무분별한 알람 방지
  3. NEXT: 도구 및 데이터 접근 방식 결정
  4. ACT: 가설 → 쿼리 → 검증 → 규칙화

적용 시나리오

  • 위협 헌팅 (가설 기반)
  • Sigma / YARA 탐지 엔지니어링
  • 알람 튜닝, 오탐 분석
  • malware-analysis/와의 연계: 샘플 IOC → 본 스킬로 탐지 규칙화
  • digital-forensics/와의 연계: 사건 아티팩트 → 수평적 헌팅

워크플로

1. 가설 설정

예: 공격자가 living-off-the-land 기법으로 횡적 이동
→ 데이터 소스: Sysmon 1/3/10, Windows Security 4624/4648
→ 성공 기준: 비정상 부모 프로세스 또는 드문 계정 로그 소스 발견

2. 쿼리 및 스태킹

□ 기준선: 정상 관리자 활동 시간대 및 호스트
□ 이상: 새 서비스, 인코딩된 PowerShell, 비정상 아웃바운드
□ 연관: 동일 계정 다중 호스트 단기간 로그인

3. 규칙화

# Sigma 골격은 malware-analysis 참조; 본 스킬 강조 사항:
# - 오탐 범위
# - 데이터 소스 필드 매핑
# - 대응 플레이북 링크

4. 검증

□ 원자 테스트 (Atomic Red Team)는 반드시 승인된 실험실에서만 수행
□ 과거 로그 재생하여 재현율 검증

도구 체인

도구용도
Sigma CLI / sigmac규칙 변환
YARA파일/메모리
SIEM (ELK/Splunk 등)쿼리
osquery엔드포인트 헌팅
Atomic Red Team탐지 검증 (실험실)

참고

  • references/hunting-loop.md
  • ../malware-analysis/references/yara-sigma-rules.md
  • ../digital-forensics/

라우팅 컨텍스트

상위: MASTER R27
하위: 침해 확인 → forensics; 악성 샘플 → malware-analysis
MUST NOT: 무단 프로덕션 환경에서 공격 시뮬레이션 실행 금지

작업 완료 자가 점검

  • 명확한 가설과 결론이 있는가?
  • 규칙에 오탐과 데이터 소스가 명시되었는가?
  • 체크리스트 확인 완료?

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

apk-reverse

在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。

attack-chain

Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.

binary-diff

|

binary-ninja-reverse

Use for authorized binary analysis in Binary Ninja, including HLIL/MLIL/LLIL inspection, strings/imports/exports, cross-references, types, patch review, Python API automation, and optional Binary Ninja MCP or localhost HTTP integration.

browser-automation

|

browser-extension-reverse

Use for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery.

case-review

Reviews a reverse-skill case package for scope readiness, Evidence to Finding to Path traceability, work item coverage, timeline references, and optional artifact hash integrity before report handoff.

cloud-k8s

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

code-audit

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

ctf-sandbox

Thin PRIMARY for CTF / AWD / 靶场 multi-type orchestration. Hands off to the sidecar CTF-Sandbox-Orchestrator. Use when the user says CTF, AWD, 靶场, or 比赛题 and no more specific pwn/APK/IDA route already won.

database-security

Use for authorized database security assessment covering PostgreSQL/MySQL/MSSQL/Mongo/Redis exposure, authz, UDF/command paths, and misconfiguration review.

diagram-generator

generate, refine, validate, and render diagrams from natural language, notes, code snippets, schemas, tables, or existing diagram source. use for flowcharts, swimlanes, sequence diagrams, state diagrams, er diagrams, class diagrams, architecture/c4-style diagrams, dependency graphs, gantt charts, mind maps, user journeys, sankey-style flows, org charts, network graphs, and other visual models. supports mermaid by default, graphviz dot for complex graph layout, plantuml for uml-heavy engineering diagrams, and svg output when direct markup is more reliable.

digital-forensics

Use for authorized digital forensics including memory dumps, disk timelines, PCAP investigation, artifact triage, and IR evidence preservation.

docs-generator

|

dotnet-reverse

.NET / C# 二进制逆向。当目标是 .NET assembly(PE 头含 CLR、.exe/.dll 托管程序)、C# 编译产物(含 NativeAOT)、红队 Sharp* 工具(Rubeus / SharpHound / SharpHound 等)、.NET 混淆程序(ConfuserEx / SmartAssembly / Babel / Eazfuscator)、.NET loader / info-stealer / 套壳 malware 时使用。优先用 dnSpyEx + de4dot,需要 AI 直接操作时联动 dnSpy MCP。不用于纯 native 二进制(走 reverse-engineering / ida-reverse)。

edr-bypass-re

|

email-security

Use for authorized email security review including phishing analysis, header authentication (SPF/DKIM/DMARC), BEC patterns, and mailbox token abuse research.

firmware-pentest

|

ghidra-reverse

Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.

관련 스킬