Hayabusa high stable sigma

Suspicious Eventlog Clearing or Configuration Change Activity

Detects the clearing or configuration tampering of EventLog using utilities such as "wevtutil", "powershell" and "wmic". This technique were seen used by threat actors and ransomware strains in order to evade defenses.

View Source

Detection Logic

{
  "process_creation": {
    "EventID": 1,
    "Channel": "Microsoft-Windows-Sysmon/Operational"
  },
  "selection_wevtutil_img": [
    {
      "Image
| endswith": "\\wevtutil.exe"
    },
    {
      "OriginalFileName": "wevtutil.exe"
    }
  ],
  "selection_wevtutil_cmd": {
    "CommandLine
| contains": [
      "clear-log ",
      " cl ",
      "set-log ",
      " sl ",
      "lfn:"
    ]
  },
  "selection_other_ps_img": {
    "Image
| endswith": [
      "\\powershell.exe",
      "\\powershell_ise.exe",
      "\\pwsh.exe"
    ]
  },
  "selection_other_ps_cmd": [
    {
      "CommandLine
| contains": [
        "Clear-EventLog ",
        "Remove-EventLog ",
        "Limit-EventLog ",
        "Clear-WinEvent "
      ]
    },
    {
      "CommandLine
| contains
| all": [
        "Eventing.Reader.EventLogSession",
        "ClearLog"
      ]
    },
    {
      "CommandLine
| contains
| all": [
        "Diagnostics.EventLog",
        "Clear"
      ]
    }
  ],
  "selection_other_wmi": {
    "Image
| endswith": [
      "\\powershell.exe",
      "\\powershell_ise.exe",
      "\\pwsh.exe",
      "\\wmic.exe"
    ],
    "CommandLine
| contains": "ClearEventLog"
  },
  "filter_main_msiexec": {
    "ParentImage": [
      "C:\\Windows\\SysWOW64\\msiexec.exe",
      "C:\\Windows\\System32\\msiexec.exe"
    ],
    "CommandLine
| contains": " sl "
  },
  "condition": "process_creation and (((all of selection_wevtutil_*) or (all of selection_other_ps_*) or selection_other_wmi) and not 1 of filter_main_*)"
}

False Positives

  • ⚠ Admin activity
  • ⚠ Scripts and administrative tools used in the monitored environment
  • ⚠ Maintenance activity

Field Validations

Loading…

Comments (0)

Loading comments...