Hayabusa medium test sigma

AgentExecutor PowerShell Execution

Detects execution of the AgentExecutor.exe binary. Which can be abused as a LOLBIN to execute powershell scripts with the ExecutionPolicy "Bypass" or any binary named "powershell.exe" located in the path provided by 6th positional argument

View Source

Detection Logic

{
  "process_creation": {
    "EventID": 1,
    "Channel": "Microsoft-Windows-Sysmon/Operational"
  },
  "selection_img": [
    {
      "Image
| endswith": "\\AgentExecutor.exe"
    },
    {
      "OriginalFileName": "AgentExecutor.exe"
    }
  ],
  "selection_cli": {
    "CommandLine
| contains": [
      " -powershell",
      " -remediationScript"
    ]
  },
  "filter_main_intune": {
    "ParentImage
| endswith": "\\Microsoft.Management.Services.IntuneWindowsAgent.exe"
  },
  "condition": "process_creation and (all of selection_* and not 1 of filter_main_*)"
}

False Positives

  • ⚠ Legitimate use via Intune management. You exclude script paths and names to reduce FP rate

Field Validations

Loading…

Comments (0)

Loading comments...