Quick reference de los Event IDs más usados en caza de amenazas en Windows, organizados por categoría MITRE ATT&CK.
Aplicables a tus índices win_security, win_sysmon, win_powershell, win_defender, win_tasks, win_wmi, win_rdp.
🔐 Autenticación y sesiones (win_security)
EID
Significado
Ejemplo SPL
4624
Logon correcto
index=win_security EventCode=4624
4625
Logon fallido
index=win_security EventCode=4625
4626
Logon user/IP info (raro)
4634
Logoff (Logon Type específico)
4647
User initiated logoff
4648
Explicit credentials (runas)
index=win_security EventCode=4648
4672
Special privileges assigned a new logon (admin)
4634
Logoff
4675
SIDs filtered
4720
User account created
index=win_security EventCode=4720
4722
User account enabled
4724
Password reset attempt
4726
User account deleted
4732
Member added to security-enabled local group
4738
User account changed
4740
Account locked out
4767
Account unlocked
4776
NTLM authentication attempted
4778
Session reconnected (RDP)
4779
Session disconnected (RDP)
Logon_Type cheatsheet (campo en 4624/4625)
Code
Tipo
2
Interactive (local)
3
Network (SMB, etc.)
4
Batch (scheduled task)
5
Service
7
Unlock (lock screen)
8
NetworkCleartext (IIS basic auth)
9
NewCredentials (runas /netonly)
10
RemoteInteractive (RDP)
11
CachedInteractive (offline DC)
12
CachedRemoteInteractive
13
CachedUnlock
⚙️ Procesos y servicios (win_security + win_sysmon)
Windows Security
EID
Significado
4688
Process created (con CommandLine si IncludeCommandLine=1 ya activo)
4689
Process terminated
7045
Service installed (positivo de instalación de servicio)
7036
Service stopped
7034
Service crashed
7040
Service start type changed (e.g., Defender disabled)
index=win_sysmon EventID=22 QueryName="*malicious.example*"| stats dc(Image) as procs, values(Image) by QueryName
"¿Quién leyó lsass?"
index=win_sysmon EventID=10 TargetImage="*lsass.exe"| stats count by SourceImage,GrantedAccess| sort -count
"¿Qué sesiones RDP han habido?"
index=win_rdp EventCode=21| table _time User SourceNetworkAddress SessionID
"¿Nuevas tareas programadas?"
index=win_tasks EventCode=200 OR EventCode=106| table _time TaskName ActionName User
"ScriptBlocks PowerShell sospechosos"
index=win_powershell EventCode=4104| search ScriptBlockText="*IEX*" OR ScriptBlockText="*FromBase64String*" OR ScriptBlockText="*DownloadString*"| table _time ScriptBlockText Path
"Procesos cuya ParentImage no es habitual”
index=win_sysmon EventID=1| where NOT match(ParentImage,"(?i)(explorer.exe|svchost.exe|cmd.exe|powershell.exe|winlogon.exe|services.exe|smss.exe|csrss.exe|taskhostw.exe|spoolsv.exe|MsMpEng.exe|wininit.exe|lsass.exe|RuntimeBroker.exe|sihost.exe|ctfmon.exe|ServiceHub.exe)")| stats count by Image,ParentImage| sort -count
📝 Books / docs suggested
Triaging Forward: The Blue Teamer’s Digital Forensic Handbook (Jack Cabirso)
Splunk Security Essentials docs
SANS SEC555: SIEM with Tactical Threat Hunting (caro)
Cyber Threat Intelligence técnicas (blogs Active Countermeasures)