Hub
Endpoint

Windows PowerShell

PowerShell classic and operational channels — engine lifecycle, script block logging, module invocations, pipeline execution, and provider starts. Includes obfuscated command detection and suspicious script patterns.

Quick Start

uv tool install eventum-generator
git clone https://github.com/eventum-generator/content-packs.git
cd content-packs
eventum generate \
  --path generators/windows-powershell/generator.yml \
  --id pslog \
  --live-mode true

Event Types

Event IDDescriptionFrequencyCategory
4104Script Block Logging~30%process
4103Module Logging — cmdlet invocation~30%process
400Engine State → Available~8%process
403Engine State → Stopped~8%process
600Provider Started~8%process
800Pipeline Execution Details~8%process
4105Script Block Invocation Start~4%process
4106Script Block Invocation Stop~4%process

Realism Features

  • Session correlation — Engine start (400) produces sessions consumed by engine stop (403)
  • Script block correlation — 4104 produces block IDs referenced by 4105/4106 invocation events
  • ~15% of script blocks flagged as warning level (encoded commands, reflection APIs, crypto)
  • 30 cmdlets with realistic frequency weights (Get-Process, Get-Service dominate)
  • Host application variety — powershell.exe (55%), pwsh.exe (20%), PSRemoting (15%), ISE (10%)
  • 120-host fleet with per-host record IDs and correlation pools

Sample Output

{
  "@timestamp": "2026-02-22T17:04:03+00:00",
  "event": {
    "category": [
      "process"
    ],
    "code": "4104",
    "kind": "event",
    "module": "powershell",
    "provider": "Microsoft-Windows-PowerShell"
  },
  "powershell": {
    "file": {
      "script_block_id": "948808fd-...",
      "script_block_text": "Restart-Service -Name Spooler -Force"
    }
  },
  "user": {
    "domain": "CONTOSO",
    "name": "mjohnson"
  },
  "winlog": {
    "channel": "Microsoft-Windows-PowerShell/Operational",
    "event_id": "4104"
  }
}

Parameters

ParameterDefaultDescription
domainCONTOSOActive Directory domain name
fqdn_suffixcontoso.localFQDN suffix
domain_sidS-1-5-21-3457937927-...Domain SID prefix
agent_version8.17.0Winlogbeat version

Related Generators