Almost every intrusion pauses on its first host to ask the same questions: what is my IP address, which subnet am I on, where is the gateway, which DNS servers and domain do I belong to, and can I reach the internet. MITRE ATT&CK tracks this as T1016 System Network Configuration Discovery, a Discovery (TA0007) technique on ESXi, Linux, macOS, Network Devices and Windows, with two sub-techniques: T1016.001 Internet Connection Discovery and T1016.002 Wi-Fi Discovery. The commands involved are the same ones administrators run all day, so the defender's job is not to block them but to recognise when they appear in the wrong context, in the wrong order or from the wrong identity. This guide covers how adversaries use the technique, the telemetry and detection logic that work in practice, the controls that limit what the answers reveal, and how to test your coverage. It is written for detection engineers, SOC analysts and threat hunters. Discovery usually precedes lateral movement; see the Lateral Movement Guide for what follows.
Key takeaways
- Context is the signal, not the command.
ipconfigorip aon its own is noise; the same command spawned by a web server, an Office process, a service account or a fresh remote session is worth an alert. - Look for bursts. ATT&CK's detection strategy DET0195 asks you to cluster enumeration commands within short time windows; a chain of network, user and system queries within a minute is the pattern of a hands-on or scripted intruder.
- Network devices and hypervisors are in scope.
show ip routeon a router andesxcli networkon an ESXi host are the same technique, and they are invisible unless you collect device command accounting and ESXi hostd logs. - Wi-Fi discovery is credential theft in disguise. T1016.002 includes reading saved Wi-Fi profiles with keys in clear text, which turns a laptop compromise into network access.
- There is no ATT&CK mitigation to deploy. ATT&CK v20 maps no mitigations to T1016; your levers are telemetry, least functionality on servers and appliances, and segmentation that makes the answers less useful.
What the technique is
ATT&CK v20 (technique version 1.7) describes adversaries looking for details about the network configuration and settings, such as IP and MAC addresses, of the systems they access. It names built-in utilities as the usual means: Arp (S0099), ipconfig (S0100) and ifconfig (S0101), nbtstat (S0102) and route (S0103). On network devices the same information comes from the T1059.008 Network Device CLI through commands such as show ip route and show ip interface. On ESXi, ATT&CK gives esxcli network nic list (MAC addresses) and esxcli network ip interface ipv4 get (local IPv4 address) as examples.
The answers shape what the adversary does next: which subnets to scan, whether the host is domain-joined, whether there is a proxy, and whether command and control traffic can leave directly. Closely related techniques have their own pages: T1049 System Network Connections Discovery covers active connections (netstat-style output), T1018 Remote System Discovery covers listing other hosts, and cloud network inventory through provider APIs is T1580 Cloud Infrastructure Discovery.
| ID | Name | Platforms (v20) | What is collected | ATT&CK detection strategy |
|---|---|---|---|---|
| T1016 | System Network Configuration Discovery | ESXi, Linux, macOS, Network Devices, Windows | IP and MAC addresses, interfaces, routes, ARP cache, NetBIOS names, DNS and domain settings, proxy settings | DET0195 Behavioral Detection of System Network Configuration Discovery |
| T1016.001 | Internet Connection Discovery | ESXi, Linux, macOS, Windows | Whether the host can reach the internet, routes, redirectors and proxy servers, sometimes bandwidth | DET0357 Behavioral Detection of Internet Connection Discovery |
| T1016.002 | Wi-Fi Discovery | Linux, macOS, Windows | Saved Wi-Fi network names and passwords | DET0464 Behavioral Detection of Wi-Fi Discovery Activity |
How adversaries use it: real cases
ATT&CK v20 lists hundreds of procedure examples for T1016, which tells you how routine the technique is. A few show the range of contexts you need to cover.
- Living off the land on Windows: ATT&CK records that Volt Typhoon (G1017) executed
ipconfig,netsh interface firewall show allandnetsh interface portproxy show allto enumerate network topology and settings, citing the June 2023 joint cybersecurity advisory. Microsoft's May 2023 report on the same actor stresses that activity using normal sign-in channels and system binaries can only be found through behavioural monitoring. See the Volt Typhoon Threat Actor Profile. - Ransomware on hypervisors: Trellix's 2024 analysis of the RansomHouse tool MrAgent shows it building a host identifier from the hostname and the MAC address returned by
esxcli network nic list, reading the IPv4 address withesxcli network ip interface ipv4 get, and later disabling the ESXi firewall. The network details let operators track and reach each hypervisor before encryption. - Network devices: ATT&CK records the RedPenguin campaign (C0056), in which UNC3886 used Junos OS CLI queries to obtain interface details, and Salt Typhoon (G1045) discovering and modifying the network configurations of victim devices, citing CISA advisory AA25-239A.
- Agent-driven intrusions: ATT&CK v20 records that in the AI-orchestrated campaign it tracks as C0062 the adversary configured Claude Code to identify and gather system configurations of discovered devices. Our Anthropic GTG-1002 Campaign 2025 page describes agents mapping infrastructure and services in parallel, at machine speed, which compresses the discovery phase from hours into minutes and makes burst detection more important, not less.
- Ransomware affiliates: ATT&CK records Medusa Group (G1051) running
cmd.exe /c ipconfig /alland Scattered Spider (G1015) usingpingandnltestfor network reconnaissance. See the Scattered Spider Threat Actor Profile.
What to detect and where
DET0195 contains one analytic per platform. The table restates each analytic with its log source and the tuning fields ATT&CK marks as environment specific.
| Platform (analytic) | Behaviour | Log source in ATT&CK | Tune for |
|---|---|---|---|
| Windows (AN0559) | Built-in tools such as ipconfig, route and netsh, or PowerShell and WMI queries, enumerating IP, MAC, interface or routing configuration | Sysmon Event ID 1 (process creation); PowerShell events 4103 to 4106 | Known parent chains, unexpected or non-admin users, commands clustered in a short window |
| Linux (AN0560) | ifconfig, ip a or reads of /proc/net/ | auditd execve records | Command syntax variants, scripted versus interactive sessions |
| macOS (AN0561) | ifconfig, networksetup or system_profiler querying interfaces | Unified log process events | Scripted versus GUI use, repeated enumeration across interfaces |
| ESXi (AN0562) | esxcli network commands over SSH or hostd | ESXi hostd log | Internal versus remote sessions, depth of the command chain |
| Network devices (AN0563) | show ip interface, show arp, show route over SSH, Telnet or console | Device CLI command logging | Non-routine users, command frequency, transport type |
Three practical points make these analytics work:
- Collect the command line: Sysmon Event ID 1 records the full command line of the process and its parent, and a ProcessGUID that stays stable when Windows reuses process IDs. Without command lines,
netshused for Wi-Fi key retrieval andnetshused for diagnostics look identical. See the Sysmon Guide. - Turn on script block logging: PowerShell and WMI queries such as reading adapter configuration through CIM classes never start
ipconfig.exe. Script block logging writes Event ID 4104; Microsoft notes logged content can contain secrets and recommends Protected Event Logging. - Bring device and hypervisor logs in: network device command accounting and ESXi hostd logs are usually the gaps. See the Network Device Syslog and Configuration Change Detection Guide, the ESXi Logs Detection Guide and, for Linux, the Linux Logging and auditd for Defenders Guide.
Detection logic that holds up
The rules below are NHI Mgmt Group recommendations built on the DET0195 analytics. Each is described as logic, so you can express it in your own query language.
| Rule | Logic | Why it works | Expected noise |
|---|---|---|---|
| Suspicious parent | Network configuration utility whose parent is a web server worker, database engine, Office application, script host or remote management agent you do not use | Administrators open a shell first; exploited services and macros do not | Low once your management agents are excluded |
| Discovery burst | Three or more distinct discovery utilities (network, user, system, domain trust) from one parent or session within 60 seconds | Mirrors the TimeWindow tuning field in DET0195 and the chained behaviour in the procedure examples | Medium: inventory and support scripts; baseline them by hash and path |
| Service account shell | Interactive or command-shell execution of discovery utilities under a service account or workload identity | Service accounts run fixed binaries, not ad hoc shells; matches the UserContext field | Low |
| Wi-Fi key retrieval | netsh wlan show profile with the key=clear argument, or bulk profile enumeration | Directly maps to T1016.002 and DET0464; legitimate use is rare outside helpdesk | Low |
| Internet check from a server | A server tier host making external DNS or HTTP requests to IP-echo or connectivity check services, or tracert and ping to internet addresses | T1016.001 checks C2 reachability; servers behind a proxy rarely need it | Medium: patch and monitoring agents |
| Hypervisor and device enumeration | esxcli network or show routing and interface commands from an account or source address outside the platform team | Few people should ever log into these planes | Low |
Treat the output of these rules as a trigger for correlation rather than an incident: check what the same session did in the next 30 minutes (credential access, remote service use, new outbound connections). The T1087 and T1069 Account and Permission Group Discovery Defensive Guide covers the identity queries that usually sit in the same burst.
Where identity fits
Network configuration discovery is a host technique, but the account that runs it is often the best signal. Two non-human cases matter. First, service accounts and workload identities: a web application pool identity, a database service account or a CI runner suddenly spawning ipconfig, route print or ip route is almost always exploitation, because those identities run fixed code. Second, automation and AI agents: agents with shell tools legitimately run diagnostic commands, so give each agent its own identity, log its tool calls and baseline what it normally runs. The ATLAS counterpart for agent-side environment mapping is AML.T0089 Enterprise Environment Discovery.
Reducing what discovery reveals
ATT&CK v20 maps no mitigations to T1016 or its sub-techniques, because the information is needed for normal operation. The controls below are NHI Mgmt Group recommendations that reduce the value of the answers or make the activity easier to see.
| Control | Effect on T1016 | Notes |
|---|---|---|
| Segmentation and egress control | A host that learns its subnet still cannot reach much; direct internet checks fail and are logged at the proxy | Force server egress through an authenticated proxy; see the Network Segmentation Guide |
| Least functionality on servers and appliances | Removes shells and diagnostic tools from images that do not need them, so any execution stands out | Container images and appliances without shells; application control on high-value servers |
| Restrict management planes | Fewer accounts and source addresses can run esxcli or device show commands | Disable ESXi SSH when not in use; AAA with per-command accounting on devices; see the VMware ESXi Hardening Guide |
| Wi-Fi without shared keys | Saved profiles contain no reusable password to steal | Certificate-based 802.1X; see the 802.1X and EAP-TLS Enterprise Wi-Fi Guide |
| Deception | Decoy interfaces, hosts file entries or ARP entries pointing to monitored decoys turn discovery output into a tripwire | See the Deception Technology Guide |
How to test your coverage
- Confirm telemetry first: on one Windows, Linux and macOS test host, verify process creation with command lines, PowerShell 4104 and auditd execve events reach the SIEM, and that one ESXi host and one router send hostd and command accounting logs.
- Run benign emulation: in an authorised test, run the built-in utilities named in DET0195 from three contexts: an admin shell, a scheduled task under a service account, and a child of an Office or web server process. Open-source emulation libraries map tests to T1016; use them only on lab or approved hosts.
- Check each rule fires once, with context: the alert should name the parent, the user and the other commands in the burst.
- Baseline for two weeks in alert-only mode: record which scripts, agents and teams trigger each rule, and exclude by signed path and hash, not by command name.
- Promote and roll back safely: raise severity only for the low-noise rules first (suspicious parent, service account shell, Wi-Fi key retrieval); if alert volume spikes, revert the rule to alert-only rather than deleting it.
- Repeat after change: rerun the tests after EDR, Sysmon configuration or logging pipeline changes.
Measuring whether it works
- Percentage of servers and workstations sending process creation with full command lines (target: all in scope).
- Percentage of ESXi hosts and network devices sending hostd or command accounting logs to the SIEM.
- Number of excluded parent and path combinations per rule, reviewed quarterly (rising exclusions erode coverage).
- True positive rate of the discovery burst rule after tuning.
- Time from a discovery alert to an analyst checking the follow-on activity of the same session.
Common failure patterns
- Alerting on every ipconfig: the rule drowns the SOC within a day and is switched off. Alert on context and sequence instead.
- Process names only: without command lines and script block logs, PowerShell and WMI based discovery and
netshkey retrieval go unseen. - Ignoring the infrastructure planes: traditional host EDR agents generally cannot be installed on ESXi or network devices (check your vendor's support), and procedure examples from RansomHouse, Salt Typhoon and UNC3886 sit exactly there.
- Excluding by command name: an exclusion for "ipconfig from monitoring tools" written on the binary name also hides the attacker.
- Treating an alert as closed when nothing else happened: discovery is a precursor; a quiet session today may return tomorrow with valid credentials.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK v20 | T1016, T1016.001, T1016.002; tactic TA0007; DET0195, DET0357, DET0464 | Technique, sub-techniques and detection strategies |
| NIST SP 800-53 Rev 5 | SI-4 System Monitoring; AU-12 Audit Record Generation; AU-6 Audit Record Review, Analysis, and Reporting | Collect and analyse host, device and hypervisor telemetry |
| NIST SP 800-53 Rev 5 | CM-7 Least Functionality; SC-7 Boundary Protection | Remove unneeded tools; segment and control egress |
| NIST CSF 2.0 | DE.CM-01; DE.CM-09; DE.AE-02 | Monitor networks and computing; analyse adverse events |
| ISO/IEC 27001:2022 Annex A | A.8.15 Logging; A.8.16 Monitoring activities; A.8.22 Segregation of networks | Logging, monitoring and segmentation controls |
Practitioner checklist
- Collect process creation with full command lines and parent details on Windows, Linux and macOS.
- Enable PowerShell script block logging and protect the logs.
- Send ESXi hostd logs and network device command accounting to the SIEM.
- Build the suspicious parent, service account shell and Wi-Fi key retrieval rules first.
- Add a discovery burst rule that correlates network, user and system queries within a short window.
- Baseline in alert-only mode and exclude by signed path and hash, not by command name.
- Force server egress through a proxy and alert on direct internet connectivity checks.
- Run authorised emulation tests after every telemetry change.
Standards and references
- MITRE ATT&CK: System Network Configuration Discovery (T1016)
- MITRE ATT&CK: Internet Connection Discovery (T1016.001)
- MITRE ATT&CK: Wi-Fi Discovery (T1016.002)
- Microsoft: Sysmon
- Microsoft: about_Logging_Windows (PowerShell)
- Microsoft: Volt Typhoon targets US critical infrastructure with living-off-the-land techniques
- Trellix: RansomHouse am see
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
Related NHI Mgmt Group resources: Lateral Movement Guide · T1580 and T1619 Cloud Infrastructure and Storage Discovery Guide · T1087 and T1069 Account and Permission Group Discovery Defensive Guide · Sysmon Guide