T1016.002 Wi-Fi Discovery
Sub-technique of: T1016
High-Level Description
Adversaries may search for information about Wi-Fi networks, such as network names and passwords, on compromised systems. Adversaries may use Wi-Fi information as part of Account Discovery, Remote System Discovery, and other discovery or Credential Access activity to support both ongoing and future campaigns.
Adversaries may collect various types of information about Wi-Fi networks from hosts. For example, on Windows names and passwords of all Wi-Fi networks a device has previously connected to may be available through netsh wlan show profiles to enumerate Wi-Fi names and then netsh wlan show profile “Wi-Fi name” key=clear to show a Wi-Fi network’s corresponding password. Additionally, names and other details of locally reachable Wi-Fi networks can be discovered using calls to wlanAPI.dll Native API functions.
On Linux, names and passwords of all Wi-Fi-networks a device has previously connected to may be available in files under /etc/NetworkManager/system-connections/. On macOS, the password of a known Wi-Fi may be identified with security find-generic-password -wa wifiname (requires admin username/password).
Kill Chain Phase
- Discovery (TA0007)
Platforms: Linux, Windows, macOS
What to Check
- Identify if Wi-Fi Discovery technique is applicable to target environment
- Check Linux systems for indicators of Wi-Fi Discovery
- Check Windows systems for indicators of Wi-Fi Discovery
- Check macOS systems for indicators of Wi-Fi Discovery
- Assess detection coverage (1 detection strategies)
How to Test
Atomic Red Team Tests
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Atomic Test 1: Enumerate Stored Wi-Fi Profiles And Passwords via netsh
Upon successful execution, information about previously connected Wi-Fi networks will be displayed with their corresponding key (if present).
Supported Platforms: windows
netsh wlan show profile * key=clear
Manual Testing
If Atomic Red Team tests are not applicable, manually verify the technique by:
Identify Attack Surface: Determine if the target environment is susceptible to Wi-Fi Discovery by examining the target platforms (Linux, Windows, macOS).
Assess Existing Defenses: Review whether mitigations for T1016.002 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Remediation Guide
No specific mitigations documented for this technique.
Detection
Behavioral Detection of Wi-Fi Discovery Activity
Risk Assessment
| Finding | Severity | Impact |
|---|---|---|
| Wi-Fi Discovery technique applicable | High | Discovery |
CWE Categories
| CWE ID | Title |
|---|---|
| CWE-200 | Exposure of Sensitive Information |
References
- Binary Defense Emotes Wi-Fi Spreader
- Check Point APT35 CharmPower January 2022
- Wi-Fi Password of All Connected Networks in Windows/Linux
- Malware Bytes New AgentTesla variant steals WiFi credentials
- Find Wi-Fi Password on Mac
- BleepingComputer Agent Tesla steal wifi passwords
- Atomic Red Team - T1016.002
- MITRE ATT&CK - T1016.002