Hayabusa medium test sigma

Potential Registry Reconnaissance Via PowerShell Script

Detects PowerShell scripts with potential registry reconnaissance capabilities. Adversaries may interact with the Windows registry to gather information about the system credentials, configuration, and installed software.

View Source

Detection Logic

{
  "ps_script": {
    "EventID": 4104,
    "Channel": [
      "Microsoft-Windows-PowerShell/Operational",
      "PowerShellCore/Operational"
    ]
  },
  "selection": {
    "ScriptBlockText
| re": "(Get-Item
| gci
| Get-ChildItem).{1,64}-Path.{1,64}\\\\(currentcontrolset\\\\services
| CurrentVersion\\\\Policies\\\\Explorer\\\\Run
| CurrentVersion\\\\Run
| CurrentVersion\\\\ShellServiceObjectDelayLoad
| CurrentVersion\\\\Windows\\winlogon)\\\\"
  },
  "condition": "ps_script and selection"
}

False Positives

  • ⚠ Due to the nature of the script block, the matching of the string could sometimes result in a false positive. Use this rule to hunt for potential malicious or suspicious scripts.

Field Validations

Loading…

Comments (0)

Loading comments...