Hayabusa medium test sigma

Private Keys Reconnaissance Via CommandLine Tools

Adversaries may search for private key certificate files on compromised systems for insecurely stored credential

View Source

Detection Logic

{
  "process_creation": {
    "EventID": 4688,
    "Channel": "Security"
  },
  "selection_cmd_img": [
    {
      "NewProcessName
| endswith": "\\cmd.exe"
    },
    {
      "OriginalFileName": "Cmd.Exe"
    }
  ],
  "selection_cmd_cli": {
    "CommandLine
| contains": "dir "
  },
  "selection_pwsh_img": [
    {
      "NewProcessName
| endswith": [
        "\\powershell.exe",
        "\\pwsh.exe"
      ]
    },
    {
      "OriginalFileName": [
        "PowerShell.EXE",
        "pwsh.dll"
      ]
    }
  ],
  "selection_pwsh_cli": {
    "CommandLine
| contains": "Get-ChildItem "
  },
  "selection_findstr": [
    {
      "NewProcessName
| endswith": "\\findstr.exe"
    },
    {
      "OriginalFileName": "FINDSTR.EXE"
    }
  ],
  "selection_ext": {
    "CommandLine
| contains": [
      ".key",
      ".pgp",
      ".gpg",
      ".ppk",
      ".p12",
      ".pem",
      ".pfx",
      ".cer",
      ".p7b",
      ".asc"
    ]
  },
  "condition": "process_creation and (selection_ext and (all of selection_cmd_* or all of selection_pwsh_* or selection_findstr))"
}

False Positives

  • ⚠ Unknown

Field Validations

Loading…

Comments (0)

Loading comments...