Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / ENUMERATION

Local System Enumeration

This note documents detection patterns related to Local System Enumeration within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects enumeration binaries and command lines.
Sysmon1Process creationCriticalBest source for enumeration lineage and hashes.
Sysmon11File createMediumOutput files created during scripted enumeration.
PowerShell4104Script block loggingCriticalCaptures PowerShell-based local recon.
Sysmon3Network connectionMediumUseful if local recon followed by external reporting.
Sysmon22DNS queryLowRarely needed unless tool reaches external host.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Burst of native recon commandswhoami, hostname, systeminfo, tasklistCriticalCommon first-stage operator behavior.
Privilege checkswhoami /priv /groupsCriticalOften precedes escalation.
Service / process listingtasklist, sc queryHighLocal target mapping.
Patch enumerationsysteminfo, wmic qfeHighPrivesc preparation.
Local user/group inspectionnet user, net localgroupHighPrivilege mapping.
Scripted recon bundleMany commands in short spanCriticalStrong operator automation clue.

Common Tools

ToolUsage
whoami.exeIdentity / privileges
hostname.exeHost identification
systeminfo.exeSystem details / patch level
tasklist.exeProcess listing
net.exeUser / group enumeration
sc.exeService inspection
wmic.exeOS / patch / hardware info
PowerShellFull local recon

Relevant Artifacts

  • Security Event ID 4688
  • Sysmon Event ID 1
  • Sysmon Event ID 11
  • PowerShell 4104
  • Prefetch:
    • WHOAMI.EXE
    • SYSTEMINFO.EXE
    • TASKLIST.EXE
    • NET.EXE
    • WMIC.EXE
  • Amcache / ShimCache
  • MFT / USN if outputs written
  • EDR process tree

MITRE ATT&CK References

  • T1082 System Information Discovery
  • T1033 System Owner/User Discovery
  • T1057 Process Discovery
  • T1007 System Service Discovery

Decision Tree

  1. Which recon command executed?

    • Single command
    • Burst sequence
  2. Parent process suspicious?

    • Shell
    • PowerShell
    • Remote execution source
  3. Output captured?

    • Redirected file
    • Clipboard
    • Archive
  4. Follow-up activity?

    • Privilege escalation
    • Credential access
    • Lateral movement
  5. Expand:

    • Adjacent recon
    • Network recon
    • Persistence setup
  6. Scope:

    • Single host recon
    • Automated toolkit
    • Multi-host spread

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4688
| where NewProcessName has_any ("whoami.exe","systeminfo.exe","tasklist.exe","hostname.exe","net.exe","wmic.exe")
| project TimeGenerated, Computer, Account, CommandLine
Sysmon
| where EventID == 1
| where Image has_any ("\\whoami.exe","\\systeminfo.exe","\\tasklist.exe","\\net.exe")
| project TimeGenerated, Computer, Image, ParentImage

EQL

process where process.name in ("whoami.exe","systeminfo.exe","tasklist.exe","hostname.exe","net.exe","wmic.exe")
sequence by host.name with maxspan=3m
  [ process where process.name == "whoami.exe" ]
  [ process where process.name == "systeminfo.exe" ]

Sigma

title: Local System Enumeration Detection
id: 4c7e2a91-local-enum
status: experimental
description: Detects common local reconnaissance commands
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: security
detection:
  selection:
    NewProcessName|endswith:
      - '\whoami.exe'
      - '\systeminfo.exe'
      - '\tasklist.exe'
      - '\hostname.exe'
      - '\net.exe'
      - '\wmic.exe'
  condition: selection
fields:
  - NewProcessName
  - CommandLine
falsepositives:
  - Administrative diagnostics
level: medium
tags:
  - attack.discovery

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Process monitoringAlert on recon burstsCriticalStrong early signal
Parent-child analysisIdentify remote sourceHighDistinguish admin vs attacker
PowerShell loggingCapture scripted reconHighStrong visibility
Baseline admin toolsKnow normal usageHighReduce false positives
EDR sequence analyticsDetect recon chainsCriticalBetter than single-command alerts