Windows API reference
NetSessionEnum
Lists sessions established with a server, revealing logged-on users and client names.
- Library
- Netapi32.dll
- Category
- Enumeration, Lateral Movement
- Suspicion
- high
- MITRE ATT&CK
- T1049 System Network Connections Discovery
Detection summary
NetSessionEnum has no reviewed Sysmon/ETW event; correlate SMB/network activity with the surrounding discovery behavior.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Use Sysmon 3 for network connections and Sysmon 17/18 for named pipes where applicable, plus EDR SMB/API telemetry. The enum call itself is not recorded.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1049: System Network Connections Discovery
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Task managers, EDR agents, installers, backup tools and inventory software.
Related APIs
- NetShareEnum — Netapi32.dll
- NetWkstaUserEnum — Netapi32.dll