Discovery (TA0007)(external, opens in a new tab or window)
Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:process where host.os.type == "windows" and event.type == "start" and (?process.Ext.token.integrity_level_name : "System" or ?winlog.event_data.IntegrityLevel : "System") and ( process.name : "whoami.exe" or ( process.name : "net1.exe" and not process.parent.name : "net.exe" and not process.args : ("start", "stop", "/active:*") ) ) and process.parent.executable != null and not (process.name : "net1.exe" and process.working_directory : "C:\\ProgramData\\Microsoft\\Windows Defender Advanced Threat Protection\\Downloads\\") and not process.parent.executable : ("C:\\Program Files\\Microsoft Monitoring Agent\\Agent\\MonitoringHost.exe", "C:\\Program Files\\Dell\\SupportAssistAgent\\SRE\\SRE.exe", "C:\\Program Files\\Obkio Agent\\main.dist\\ObkioAgentSoftware.exe", "C:\\Windows\\Temp\\WinGet\\defaultState\\PostgreSQL.PostgreSQL*\\postgresql-*-windows-x64.exe", "C:\\Program Files\\Obkio Agent\\main.dist\\ObkioAgentSoftware.exe", "C:\\Program Files (x86)\\SolarWinds\\Agent\\Plugins\\JobEngine\\SWJobEngineWorker2.exe") and not (process.parent.executable : "C:\\Windows\\Sys?????\\WindowsPowerShell\\v1.0\\powershell.exe" and process.parent.args : ("C:\\Program Files (x86)\\Microsoft Intune Management Extension\\*.ps1", "Agent\\Modules\\AdHealthConfiguration\\AdHealthConfiguration.psd1'")) and not (process.parent.name : "cmd.exe" and process.working_directory : "C:\\Program Files\\Infraon Corp\\SecuraAgent\\")
Install detection rules in Elastic Security
Detect Account Discovery Command via SYSTEM Account in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).