4697 A service was installed in the system.
Windows Security auditingSystem › Audit Security System Extensionchecked by code
In Microsoft Sentinel
- Windows Security Events via AMA · Security Events via Legacy Agent →
SecurityEvent✓ verified by VeriKQLSecurityEvent | where EventID == 4697 - Windows Forwarded Events →
WindowsEvent✓ verified by VeriKQLWindowsEvent | where Channel == "Security" | where EventID == 4697
ATT&CK
T1543T1543.003T1557.001T1569T1569.002
In Content Hub rules
Used by 1 Content Hub rule that filter for it the way the starter queries do: SecurityEvent 1 · WindowsEvent 0
Rules that filter for it1
In Sigma rules
22 SigmaHQ community rules name this event ID on this log.
- CosmicDuke Service Installation
- CobaltStrike Service Installations - Security
- Credential Dumping Tools Service Execution - Security
- HybridConnectionManager Service Installation
- Invoke-Obfuscation CLIP+ Launcher - Security
- Invoke-Obfuscation Obfuscated IEX Invocation - Security
- Invoke-Obfuscation STDIN+ Launcher - Security
- Invoke-Obfuscation VAR+ Launcher - Security
- Invoke-Obfuscation VAR++ LAUNCHER OBFUSCATION - Security
- Invoke-Obfuscation Via Stdin - Security
- Invoke-Obfuscation Via Use Clip - Security
- Invoke-Obfuscation Via Use MSHTA - Security
- Invoke-Obfuscation Via Use Rundll32 - Security
- Metasploit Or Impacket Service Installation Via SMB PsExec
- Meterpreter or Cobalt Strike Getsystem Service Installation - Security
- PowerShell Scripts Installed as Services - Security
- Service Installed By Unusual Client - Security
- Invoke-Obfuscation COMPRESS OBFUSCATION - Security
- Invoke-Obfuscation RUNDLL LAUNCHER - Security
- Remote Access Tool Services Have Been Installed - Security
- Windows Pcap Drivers
- Tap Driver Installation - Security
From Advanced Audit Policy Configuration (MicrosoftDocs/windowsserverdocs@ea29ceb, CC-BY-4.0).
Event names, messages and categories are © Microsoft, from Microsoft Learn's documentation sources, used under CC BY 4.0; each page links its source and the commit it was read at. Questions, groupings and notes are VeriKQL's own.