Skip to main content

Overview

The WindowsEventForwarding command enumerates Windows Event Forwarding (WEF) configuration from the registry. WEF allows centralized collection of event logs from multiple systems to a collector server. Understanding WEF configuration reveals what events are being forwarded and to where, indicating the organization’s logging and monitoring posture.

Syntax

Remote Execution

Output

Returns WEF configuration:
  • WEF enabled/disabled status
  • Subscription configurations
  • Collector server addresses
  • Event log sources being forwarded
  • Subscription status

Use Cases

  • Determine if logs are centrally collected
  • Identify collector servers (potential high-value targets)
  • Understand monitoring visibility
  • Assess detection capabilities
  • Plan operations to minimize logged events

Example Output

Example when not configured:

Remote Execution

This command supports remote execution using the -computername parameter.

Detection Considerations

Low detection risk - reads WEF registry configuration.
  • Registry Access: Queries HKLM\SOFTWARE\Policies\Microsoft\Windows\EventLog\EventForwarding
  • WMI Activity: Remote execution generates WMI events
  • Event Logs: Registry access may be logged if auditing enabled

WEF Architecture Understanding

Source Computer (Event Forwarder):
  • Sends events to collector
  • Configured via subscriptions
  • Uses WinRM protocol (HTTP/HTTPS)
Collector Server:
  • Receives forwarded events
  • Aggregates logs centrally
  • Typically SIEM or log server
Subscription Types:
  • Source-initiated: Computers contact collector
  • Collector-initiated: Collector pulls from computers
Common Ports:
  • HTTP: 5985
  • HTTPS: 5986

Critical Events Often Forwarded

Security Events:
  • 4624 - Successful logon
  • 4625 - Failed logon
  • 4648 - Explicit credential logon
  • 4688 - Process creation
  • 4672 - Special privilege assigned
  • 4720 - User account created
  • 4732 - Member added to security group
PowerShell:
  • 4104 - Script block logging
  • 4103 - Module logging
Sysmon:
  • 1 - Process creation
  • 3 - Network connection
  • 7 - Image loaded
  • 10 - Process access