Spacebar Campaigns

HTE-002 SB-07 Attack Traffic Emulation Event

Log ID:
HTE-002
Source:
sb07_attack_traffic.ps1
Representative Path:
C:\ProgramData\HanguelADAgent\traffic\sb07_attack_traffic.ps1
Collection:
Script emits JSON to SOC collector / Logstash
Current Status:
스크립트 작성 완료. 수동 실행 후 ELK 캡처 필요
Primary Use:
안전한 attack telemetry로 sequential correlation rule 검증

공격 행위 요약

이 스크립트는 LSASS dump, loader 실행, Mimikatz 실행을 하지 않는다. 대신 PMS patch 실행, AD/DC discovery, credential artifact 발견, WinRM/C$ 접근 가능 상태를 이벤트로 만들어 SIEM 룰이 정상적으로 묶이는지 검증한다.

대표 event.action

attack_traffic_run_started
pms_patch_downloaded
pms_patch_executed
system_user_context
system_ipconfig
domain_controller_discovery
dc_srv_dns_lookup
dc_port_probe_445
dc_port_probe_5985
dc_cred_xml_discovered
dc_cred_xml_imported
dc_winrm_whoami
dc_c_admin_share_access
attack_traffic_run_completed

주요 필드

필드의미예시
log.idemulation log IDHTE-002
hanguel.classification분류suspicious, attack
event.action공격 흐름 행위dc_cred_xml_discovered
threat.technique.idMITRE techniqueT1552

원본 로그 기준 검증 포인트

공격 emulation 단계실제 원본 로그에서 대응되는 단서검증 의미
PMS patch 실행patch.ps1, nt authority\system, Task Schedulersupply-chain 실행 흐름 검증
AD/DC discoverynltest, _ldap._tcp.dc._msdcs, 10.60.20.10내부 AD 구조 파악 행위 검증
credential artifactC:\ProgramData\HanguelPMS\dc_cred.xmlcredential file discovery 검증
DC 접근Invoke-Command, \\10.60.20.10\C$, dc_winrm_whoami원격 관리/관리 공유 접근 검증
loader staginghgl_loader.exe, hgl_payload.enc, HanguelLoaderDiagDC loader chain artifact 검증

Analyst Hunting KQL

이 로그는 안전한 BAS 검증 이벤트다. 실제 사고 분석에서는 아래처럼 공격 행위의 원본 단서를 먼저 찾고, emulation tag는 rule 검증에만 사용한다.

host.name:"hanguel-win01" and message:(*patch.ps1* or *nltest* or *dc_cred.xml* or *Invoke-Command* or *\\\\10.60.20.10\\C$*)
host.name:("hanguel-win01" or "hanguel-dc01") and message:(*hgl_loader.exe* or *hgl_payload.enc* or *HanguelLoaderDiag* or *hgl_diag.bin*)
message:(*patch.ps1* and *nt authority\\system*) or message:(*dc_cred.xml* and (*Invoke-Command* or *C$*))

Validation Pivot

log.id:"HTE-002" or event.action:("pms_patch_executed" or "domain_controller_discovery" or "dc_cred_xml_discovered" or "dc_winrm_whoami" or "dc_c_admin_share_access")