Join our Newsletter — 33% off our NHI Course
Home› Guides› T1016 System Network Configuration Discovery: Detecting Network Mapping…
Guide SOC & Detection Engineering

T1016 System Network Configuration Discovery: Detecting Network Mapping on Hosts and Devices

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 12 November 2026 13 min read
On this page

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. ipconfig or ip a on 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 route on a router and esxcli network on 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.

IDNamePlatforms (v20)What is collectedATT&CK detection strategy
T1016System Network Configuration DiscoveryESXi, Linux, macOS, Network Devices, WindowsIP and MAC addresses, interfaces, routes, ARP cache, NetBIOS names, DNS and domain settings, proxy settingsDET0195 Behavioral Detection of System Network Configuration Discovery
T1016.001Internet Connection DiscoveryESXi, Linux, macOS, WindowsWhether the host can reach the internet, routes, redirectors and proxy servers, sometimes bandwidthDET0357 Behavioral Detection of Internet Connection Discovery
T1016.002Wi-Fi DiscoveryLinux, macOS, WindowsSaved Wi-Fi network names and passwordsDET0464 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 all and netsh interface portproxy show all to 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 with esxcli 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 /all and Scattered Spider (G1015) using ping and nltest for 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)BehaviourLog source in ATT&CKTune for
Windows (AN0559)Built-in tools such as ipconfig, route and netsh, or PowerShell and WMI queries, enumerating IP, MAC, interface or routing configurationSysmon Event ID 1 (process creation); PowerShell events 4103 to 4106Known 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 recordsCommand syntax variants, scripted versus interactive sessions
macOS (AN0561)ifconfig, networksetup or system_profiler querying interfacesUnified log process eventsScripted versus GUI use, repeated enumeration across interfaces
ESXi (AN0562)esxcli network commands over SSH or hostdESXi hostd logInternal versus remote sessions, depth of the command chain
Network devices (AN0563)show ip interface, show arp, show route over SSH, Telnet or consoleDevice CLI command loggingNon-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, netsh used for Wi-Fi key retrieval and netsh used 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.

RuleLogicWhy it worksExpected noise
Suspicious parentNetwork configuration utility whose parent is a web server worker, database engine, Office application, script host or remote management agent you do not useAdministrators open a shell first; exploited services and macros do notLow once your management agents are excluded
Discovery burstThree or more distinct discovery utilities (network, user, system, domain trust) from one parent or session within 60 secondsMirrors the TimeWindow tuning field in DET0195 and the chained behaviour in the procedure examplesMedium: inventory and support scripts; baseline them by hash and path
Service account shellInteractive or command-shell execution of discovery utilities under a service account or workload identityService accounts run fixed binaries, not ad hoc shells; matches the UserContext fieldLow
Wi-Fi key retrievalnetsh wlan show profile with the key=clear argument, or bulk profile enumerationDirectly maps to T1016.002 and DET0464; legitimate use is rare outside helpdeskLow
Internet check from a serverA server tier host making external DNS or HTTP requests to IP-echo or connectivity check services, or tracert and ping to internet addressesT1016.001 checks C2 reachability; servers behind a proxy rarely need itMedium: patch and monitoring agents
Hypervisor and device enumerationesxcli network or show routing and interface commands from an account or source address outside the platform teamFew people should ever log into these planesLow

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.

ControlEffect on T1016Notes
Segmentation and egress controlA host that learns its subnet still cannot reach much; direct internet checks fail and are logged at the proxyForce server egress through an authenticated proxy; see the Network Segmentation Guide
Least functionality on servers and appliancesRemoves shells and diagnostic tools from images that do not need them, so any execution stands outContainer images and appliances without shells; application control on high-value servers
Restrict management planesFewer accounts and source addresses can run esxcli or device show commandsDisable ESXi SSH when not in use; AAA with per-command accounting on devices; see the VMware ESXi Hardening Guide
Wi-Fi without shared keysSaved profiles contain no reusable password to stealCertificate-based 802.1X; see the 802.1X and EAP-TLS Enterprise Wi-Fi Guide
DeceptionDecoy interfaces, hosts file entries or ARP entries pointing to monitored decoys turn discovery output into a tripwireSee the Deception Technology Guide

How to test your coverage

  1. 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.
  2. 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.
  3. Check each rule fires once, with context: the alert should name the parent, the user and the other commands in the burst.
  4. 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.
  5. 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.
  6. 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 netsh key 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

FrameworkReferenceRelevance
MITRE ATT&CK v20T1016, T1016.001, T1016.002; tactic TA0007; DET0195, DET0357, DET0464Technique, sub-techniques and detection strategies
NIST SP 800-53 Rev 5SI-4 System Monitoring; AU-12 Audit Record Generation; AU-6 Audit Record Review, Analysis, and ReportingCollect and analyse host, device and hypervisor telemetry
NIST SP 800-53 Rev 5CM-7 Least Functionality; SC-7 Boundary ProtectionRemove unneeded tools; segment and control egress
NIST CSF 2.0DE.CM-01; DE.CM-09; DE.AE-02Monitor networks and computing; analyse adverse events
ISO/IEC 27001:2022 Annex AA.8.15 Logging; A.8.16 Monitoring activities; A.8.22 Segregation of networksLogging, 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

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

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 12 November 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org