Hayabusa low test sigma

Local Accounts Discovery

Local accounts, System Owner/User discovery using operating systems utilities

View Source

Detection Logic

{
  "process_creation": {
    "EventID": 4688,
    "Channel": "Security"
  },
  "selection_other_img": [
    {
      "NewProcessName
| endswith": [
        "\\whoami.exe",
        "\\quser.exe",
        "\\qwinsta.exe"
      ]
    },
    {
      "OriginalFileName": [
        "whoami.exe",
        "quser.exe",
        "qwinsta.exe"
      ]
    }
  ],
  "selection_other_wmi": {
    "CommandLine
| contains
| all": [
      "useraccount",
      "get"
    ],
    "NewProcessName
| endswith": "\\wmic.exe"
  },
  "selection_other_cmdkey": {
    "CommandLine
| contains": " /l",
    "NewProcessName
| endswith": "\\cmdkey.exe"
  },
  "selection_cmd": {
    "CommandLine
| contains
| all": [
      " /c",
      "dir ",
      "\\Users\\"
    ],
    "NewProcessName
| endswith": "\\cmd.exe"
  },
  "filter_cmd": {
    "CommandLine
| contains": " rmdir "
  },
  "selection_net": {
    "CommandLine
| contains": "user",
    "NewProcessName
| endswith": [
      "\\net.exe",
      "\\net1.exe"
    ]
  },
  "filter_net": {
    "CommandLine
| contains": [
      "/domain",
      "/add",
      "/delete",
      "/active",
      "/expires",
      "/passwordreq",
      "/scriptpath",
      "/times",
      "/workstations"
    ]
  },
  "condition": "process_creation and ((selection_cmd and not filter_cmd) or (selection_net and not filter_net) or 1 of selection_other_*)"
}

False Positives

  • ⚠ Legitimate administrator or user enumerates local users for legitimate reason

Field Validations

Loading…

Comments (0)

Loading comments...