To effectively study and locate rogue Wi-Fi APs broadcast by a red team, follow this structured approach using specialized tools and techniques. Ensure you have authorization to perform these actions, as unauthorized scanning may violate policies or laws.
Step 1: Detection & Initial Reconnaissance
Goal: Confirm the existence of rogue APs and gather basic identifiers (SSID, BSSID, channel).
Tools:
airodump-ng (Aircrack-ng suite)
Kismet (Passive scanner)
Procedure:
-
Enable monitor mode on your Wi-Fi adapter:
sudo airmon-ng start wlan0 # Replace "wlan0" with your interface
-
Scan for APs with airodump-ng:
sudo airodump-ng wlan0mon # Monitor interface (e.g., wlan0mon)
- Identify rogue APs by their SSIDs. Note:
- BSSID (AP MAC address)
- Channel
- Encryption type (e.g., WPA2, open)
- Signal strength (RSSI)
-
Passive monitoring with Kismet (optional):
- Provides GPS mapping, client associations, and detailed logging.
- Use to detect hidden SSIDs or low-signal APs.
Step 2: Targeted Packet Capture
Goal: Capture traffic for deeper analysis (e.g., clients, protocols).
Tools:
airodump-ng (focused capture)
Wireshark/tshark (traffic analysis)
Procedure:
-
Capture packets from a specific rogue AP:
sudo airodump-ng -c <channel> --bssid <rogue_BSSID> -w capture.pcap wlan0mon
- Replace
<channel> and <rogue_BSSID> with observed values.
- This saves packets to
capture.pcap.
-
Analyze traffic in Wireshark:
- Filter by BSSID:
wlan.bssid == <rogue_BSSID>.
- Look for:
- Connected clients (MAC addresses).
- DHCP, DNS, or HTTP traffic revealing attacker infrastructure.
- Unusual protocols (e.g., tunneling via ICMP, DNS).
Step 3: Active Probing (If Authorized)
Goal: Test AP behavior and security.
Tools:
mdk4 (for beacon flooding/deauth testing)
nmap (network scanning)
Procedure:
- Connect to open rogue APs (if safe):
- Use a disposable VM to avoid exposing your host.
- Capture DHCP-assigned IP and gateway with:
ip a # Check assigned IP
- Scan the AP's network:
nmap -sn <subnet> # Discover live hosts (e.g., 192.168.1.0/24)
nmap -sV -O <gateway_IP> # Probe services/OS on the AP
- Test for evil-twin attacks:
Step 4: Physical Localization
Goal: Find the rogue AP's physical location.
Tools:
- Smartphone Wi-Fi scanner (e.g.,
NetAnalyzer, Wigle Wifi)
- Directional antenna (e.g., Yagi) +
Kismet/airodump-ng
- Triangulation
Procedure:
-
Signal strength (RSSI) mapping:
-
Triangulation:
- Take RSSI readings from ≥3 distinct locations.
- Use tools like Ekahau HeatMapper or Acrylic Wi-Fi to plot signal heatmaps.
-
Directional antenna:
- Attach a directional antenna to your Wi-Fi adapter.
- Rotate slowly; the strongest signal indicates the AP's direction.
- Move toward increasing signal strength to pinpoint the device.
Step 5: Post-Discovery Actions
- Document evidence:
- Save PCAPs, BSSIDs, client MACs, and GPS coordinates.
- Analyze red team goals:
- Was the AP capturing credentials (e.g., fake captive portal)?
- Was it bridging to a real network?
- Neutralize (if permitted):
- Block the BSSID at network infrastructure (e.g., WLC, firewalls).
- Deploy countermeasures (e.g., 802.1X/MAB).
- Physically remove the device (if found).
Tool Summary
| Purpose | Tools |
|---|
| Detection | airodump-ng, Kismet, Wireshark |
| Packet Capture | airodump-ng, tcpdump, Wireshark |
| Active Testing | mdk4, nmap (use cautiously) |
| Localization | Directional antenna, Wigle Wifi, Ekahau, RSSI mapping |
| Analysis | Wireshark (traffic), Nmap (services), Scapy (custom packet parsing) |
Key Considerations
- Legal Compliance: Obtain written authorization for active techniques.
- Safety: Rogue APs may be booby-trapped or in restricted areas.
- Stealth: Use passive tools (e.g., Kismet) to avoid alerting the red team.
- Client Devices: Identify compromised clients connected to the rogue AP.
By following this methodology, you’ll systematically identify, analyze, and locate rogue APs while gathering actionable intelligence for your blue team operations.