Overview
The UdpConnections command enumerates all active UDP endpoints on the system, including local addresses, ports, and associated processes. UDP is connectionless, so unlike TCP there are no “established” connections, but this command reveals listening UDP sockets that may indicate DNS, DHCP, SNMP, or C2 communication channels.Syntax
This command does not support remote execution.
Output
Returns UDP endpoint information:- Local address and port
- Process ID (PID)
- Process name
- Service name (if applicable)
Use Cases
- Red Team
- Blue Team
- Identify UDP-based services
- Discover DNS, DHCP, or custom UDP services
- Locate potential C2 channels
- Find services for exploitation
- Map network services
Example Output
Remote Execution
Detection Considerations
Low detection risk - reads UDP endpoint table from system.
- API Calls: Uses GetUdpTable or similar networking APIs
- No Network Traffic: Local enumeration only
- EDR Telemetry: May be logged as process behavior
Common UDP Ports to Monitor
Standard UDP Services
Standard UDP Services
53 - DNS
67/68 - DHCP
123 - NTP
137/138/139 - NetBIOS
161/162 - SNMP
500/4500 - IPSec/IKE
5353 - mDNS
1900 - SSDP
Related Commands
- TcpConnections - Active TCP connections
- ARPTable - ARP cache entries
- DNSCache - DNS resolver cache
- Processes - Running processes
- WindowsFirewall - Firewall rules