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

DHCP

This note documents detection patterns related to DHCP Activity within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
DHCP-Client50058Lease obtainedCriticalStrongest direct DHCP assignment evidence.
DHCP-Client50036Lease renewedHighConfirms continued network presence.
DHCP-Client50024Interface initializationHighAdapter prepared for DHCP negotiation.
DHCP-Client50010Address conflict / issueMediumDuplicate IP or abnormal network behavior.
DHCP-Client50062Lease expiredHighLease ended or adapter disconnected.
System4201Network adapter connectedHighLink established before DHCP negotiation.
System4202Network adapter disconnectedHighLink dropped after lease activity.
Sysmon3Network connectionHighActivity following lease assignment.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
New lease shortly before attackIP assigned before suspicious activityCriticalStrong timeline anchor.
Lease on unknown subnetUnexpected network presenceCriticalTravel, rogue AP, VPN, hotspot.
Rapid lease changesAdapter switching / roamingHighWi-Fi movement or tethering.
Lease with public hotspot DHCPMobility evidenceHighStrong travel indicator.
Missing expected leaseStatic IP / anti-forensicsMediumRequires alternate artifacts.
DHCP immediately before VPNPre-tunnel local network evidenceHighImportant in remote intrusion cases.

Common Tools

ToolUsage
ipconfig /allLive lease details
netsh interface ip show configInterface lease inspection
Registry ExplorerLease recovery from registry
Event ViewerDHCP logs
EvtxECmdDHCP event parsing
KAPEDHCP artifact collection

Relevant Artifacts

  • Event Log:

    • Applications and Services Logs → Microsoft → Windows → DHCP-Client → Operational
  • Registry:

    • HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID}
  • Important values:

    • DhcpIPAddress
    • DhcpServer
    • LeaseObtainedTime
    • LeaseTerminatesTime
    • SubnetMask
    • DefaultGateway
  • Additional:

    • SRUM network usage
    • NetworkList profiles
    • WLAN logs
    • DNS cache
    • ARP cache

Registry Interpretation

Registry ValueMeaningForensic ValueNotes
DhcpIPAddressAssigned IP addressCriticalCore lease evidence
DhcpServerDHCP serverCriticalShows source of assignment
LeaseObtainedTimeLease startCriticalStrong timeline anchor
LeaseTerminatesTimeLease expiryHighDefines network session window
DefaultGatewayRouting contextHighIdentifies local environment

MITRE ATT&CK References

  • T1016 System Network Configuration Discovery
  • T1049 System Network Connections Discovery
  • T1021 Remote Services

Decision Tree

  1. Lease present?

    • Registry
    • DHCP event logs
  2. Which interface?

    • Wi-Fi
    • Ethernet
    • VPN
    • USB tethering
  3. Which subnet?

    • Corporate
    • Home
    • Public
    • Unknown
  4. Timeline:

    • Lease obtained
    • Lease renewed
    • Lease expired
  5. Follow-up:

    • DNS
    • Browser
    • Authentication
    • Lateral movement
  6. Scope:

    • Single adapter
    • Multiple interfaces
    • Movement between networks

Example Detection Templates

KQL

Event
| where EventLog == "Microsoft-Windows-DHCP-Client/Operational"
| where EventID in (50058,50036,50024,50062)
| project TimeGenerated, Computer, EventID, RenderedDescription

EQL

any where event.code == "50058"
sequence by host.name with maxspan=10m  
  [ any where event.code == "50024" ]  
  [ any where event.code == "50058" ]

Sigma

title: DHCP Lease Obtained
id: dhcp-lease-obtained-01
status: experimental
description: Detects DHCP lease assignment events
author: Vergil
date: 2026-03-11
logsource:
  product: windows
  service: dhcp-client
detection:
  selection:
    EventID:
      - 50058
  condition: selection
fields:
  - EventID
  - Computer
falsepositives:
  - Normal network join
level: low
tags:
  - attack.discovery

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
DHCP loggingKeep DHCP Operational enabledCriticalPrimary visibility
Lease auditingReview unusual subnet assignmentsHighDetect rogue environments
Unknown subnet alertingAlert on external DHCP rangesCriticalStrong movement indicator
Adapter monitoringTrack interface changesHighImportant in mobile systems

Investigator Notes

  • Registry lease values often survive longer than event retention.

  • DHCP timestamps frequently anchor full incident timelines.

  • Lease evidence becomes strongest when chained with WLAN + DNS + Security logon.

  • Static IP systems may have no DHCP evidence.

  • Always correlate lease with adapter GUID.