A list of nearby Wi-Fi networks, Bluetooth devices and cell towers tells an adversary where a phone is, what it connects to and whether it is worth staying on. MITRE ATT&CK for Mobile T1421 System Network Connections Discovery covers adversaries listing network connections to or from the device, typically through device APIs for Wi-Fi, Bluetooth and cellular information. ATT&CK lists the technique for Android only, under Discovery (TA0032), and names no mitigations for it. This guide explains the Android APIs and permissions involved, what the procedure examples collected, how to detect the behaviour and which controls still apply. It is for mobile security engineers, app vetting teams and analysts supporting staff at risk of targeted surveillance. The Enterprise equivalent is T1049 System Network Connections Discovery.
Key takeaways
- Network discovery is location discovery. Android ties Wi-Fi scan results and cell information to
ACCESS_FINE_LOCATIONbecause nearby networks and towers reveal where the device is. - Android only in ATT&CK. The technique is listed for Android; ATT&CK does record Pegasus for iOS monitoring connection state, but the technique's platform list does not include iOS, so do not assume an iOS detection exists.
- Permissions are the control point. Android 10 requires fine location for several Wi-Fi, Bluetooth and telephony methods; Android 13 adds
NEARBY_WIFI_DEVICESwith aneverForLocationflag. - No ATT&CK mitigation is listed. Defence rests on permission review, OS currency, app source control and network monitoring.
- Spyware collects it routinely. Monokle, Exodus, ViperRAT and Pallas collected Wi-Fi or cell tower data; LightSpy collected cellular network lists and Wi-Fi history.
Why adversaries collect network context
Network discovery on a phone serves several goals, and knowing which one is likely helps analysts decide how serious a hit is.
- Location without GPS: nearby access points and cell towers place a device at a building or district, so an implant can track movement even where it has no direct location grant or the user has turned location services off in the interface.
- Environment awareness: knowing whether the device is on a home network, a corporate network or a public hotspot lets an implant choose when to upload data, as the Pegasus for iOS example in the ATT&CK procedure list suggests.
- Target confirmation: a list of familiar networks can show that the device belongs to the intended person or organisation, or reveal where it is normally used.
- Staging for later steps: network and Bluetooth neighbours show other devices in range, which can inform follow-on actions.
For defenders the lesson is that the collection itself is quiet. There is no exploit or visible error, only an app calling an ordinary API, so detection depends on understanding what a given app should be doing.
How the technique works on Android
ATT&CK names three API families. The permission behaviour below comes from Android documentation:
| Information | APIs named by ATT&CK or Android docs | Permission gate |
|---|---|---|
| Current and nearby Wi-Fi | WifiInfo; WifiManager.getScanResults(), startScan(), getConnectionInfo() | ACCESS_FINE_LOCATION for apps targeting Android 10 or later; scan results still need it on Android 13; NEARBY_WIFI_DEVICES for apps targeting Android 13 that manage Wi-Fi |
| Bluetooth devices | BluetoothAdapter, startDiscovery(), BluetoothLeScanner.startScan() | Runtime permissions granted by the user; fine location for discovery methods from Android 10 |
| Cell towers | TelephonyManager.getNeighboringCellInfo() before Android 10; getAllCellInfo() from Android 10 | ACCESS_FINE_LOCATION |
| Connectivity state | ACCESS_NETWORK_STATE (requested by NGate, per ATT&CK) | Install-time permission |
Android's Wi-Fi permission guidance lets apps targeting Android 13 assert neverForLocation on NEARBY_WIFI_DEVICES. In app vetting, an app that holds fine location and nearby devices permissions without a location or connectivity feature is the pattern to question.
What about iOS
ATT&CK v20 lists T1421 for Android only. The technique's procedure list does include Pegasus for iOS, which monitored connection state and the types of networks the phone used, potentially to decide whether it could send full data, and LightSpy collected cellular network lists and Wi-Fi history. Treat these as evidence that implants with elevated access gather network context on iOS too, but ATT&CK provides no iOS detection analytic for this technique. For iOS, the practical controls are current OS versions and, for high-risk staff, Lockdown Mode, which among other things stops automatic joining of non-secure Wi-Fi networks and turns off 2G and 3G.
Real cases from ATT&CK procedure examples
- Monokle (S0407): retrieved nearby cell tower and Wi-Fi network information.
- Exodus (S0405): Exodus Two collected a list of nearby base stations.
- Pallas (S0399): gathered and exfiltrated data about nearby Wi-Fi access points (Dark Caracal reporting).
- ViperRAT (S0506) and FakeSpy (S0509): collected cell tower and network information.
- FlexiSpy (S0408): commercial monitoring tool that can collect known Wi-Fi access points.
- C0033: PROMETHIUM (G0056) used StrongPity to collect available Wi-Fi networks.
Worked scenarios
Scenario 1: a utility app asks for more than it needs
A torch or document scanner app submitted for approval requests fine location and nearby devices permissions. Dynamic analysis shows a call to read the BSSID within seconds of launch, with no user action and no map or connectivity feature. The reviewer rejects the app, records the finding in the vetting report and asks the business owner whether a different product meets the need. The decision rests on purpose, not on the permission alone, because navigation and Wi-Fi tools legitimately hold the same grants.
Scenario 2: an approved app changes behaviour after an update
A delivery app on the approved list holds fine location for a good reason. After an update, network logs show new connections to an unfamiliar host at regular intervals, and gateway data shows small uploads that continue while the device is stationary overnight. Because the app was already trusted, only monitoring finds the change. The team pauses the rollout of the new version, compares its behaviour with the previous build in a test device and contacts the vendor with the observed hosts.
Scenario 3: a sideloaded app on a journalist's device
A staff member at risk of targeted surveillance installs an app from a link in a message. Device policy would normally block unknown sources, but this device is unmanaged. Mobile threat defence flags the app as unfamiliar, and the permission review shows location and nearby devices grants. Security removes the app, assumes the cell and Wi-Fi context was collected, asks the person to review where they were while it was installed and moves them to an enrolled device with Lockdown Mode or Advanced Protection guidance applied. The lesson is that app source control must cover the people who most need it.
Prevention and hardening
- Govern location and nearby devices permissions. On managed Android devices use the device policy controller to review and, where policy allows, deny location and nearby devices grants for apps without a need.
- Set an OS floor. Android 10 or later puts Wi-Fi, Bluetooth and telephony scanning behind fine location; Android 13 or later adds the nearby devices permission.
- Control app sources. Most procedure examples are spyware delivered outside official stores; block unknown sources on managed devices.
- Vet for location without purpose. In static and dynamic review, flag apps that call Wi-Fi scan or cell info APIs without a user-facing location or connectivity feature.
- Protect high-risk users. Offer Lockdown Mode on iOS and Android Advanced Protection guidance for staff at risk of targeted surveillance.
Roles and ownership
- Mobile device management team: owns permission policy, OS version floors, app source restrictions and enrolment of high-risk users.
- App vetting or application security: owns static and dynamic review, the approved app list and the rules for what counts as location without purpose.
- Security operations: owns correlation of network logs, gateway data and mobile threat defence alerts, and the triage steps below.
- Privacy office: decides what location and network data the organisation's own apps may collect, using MASVS-PRIVACY as a reference, and reviews incidents that involve location data.
- Executive protection or high-risk user programme: owns Lockdown Mode and Advanced Protection enrolment and the briefing of staff who face targeted surveillance.
Rolling out the controls
Permission and source controls change how people use their phones, so introduce them in stages.
- Baseline: export current permission grants from the device policy controller and list every app holding fine location or nearby devices access, with its owner and stated purpose.
- Triage the list: group apps into needed, questionable and unneeded. Start enforcement with the unneeded group, where removing the permission costs users nothing.
- Pilot: apply the OS floor and source restrictions to a small group first, since older devices may need replacing and some line-of-business apps may break.
- Publish the exceptions process: give business units a quick way to request a justified location grant, with a review date.
- Turn on monitoring: enable Android Enterprise network logging where the device owner or work profile owner model supports it, route traffic through a gateway or VPN for coverage of what logging misses, and tune alerts on a pilot group before expanding.
- Review on a schedule: recheck grants after major OS releases, since permission models have changed between Android versions and new versions can add or reshape grants.
Detection and measurement
ATT&CK's Android analytic for T1421 correlates a runtime trace of WifiInfo.getBSSID() from app vetting, Android Enterprise network logging or VPN flows, and permission grant state from the device policy controller. In practice:
| Source | Signal |
|---|---|
| Dynamic app analysis | Calls to BSSID, scan result or cell info APIs shortly after launch, without user action |
| Permission state (DPC) | Apps holding ACCESS_FINE_LOCATION and nearby devices permissions outside the approved list |
| Android Enterprise network logging | DNS lookups and TCP connections from the app to unfamiliar hosts; device owner from Android 8, work profile owner from Android 12 |
| MTD or gateway | Periodic small uploads consistent with telemetry beaconing |
Network logging records DNS lookups and TCP connections but not apps that make direct system calls, so pair it with VPN or gateway data. Measures:
- Number of approved third-party apps holding fine location without a documented need (target zero).
- Percentage of managed devices at Android 13 or later.
- Percentage of app vetting reports that include location and network API use.
- Number of high-risk staff enrolled in Lockdown Mode or equivalent hardening.
Triage steps when a hit appears
- Identify the app and its source: official store, enterprise store or sideloaded, and who installed it.
- Check purpose: does the app have a user-facing feature that needs Wi-Fi, Bluetooth or cell information? If yes, compare the call frequency with that feature.
- Check destinations: list the hosts the app contacted around the calls, using network logs and gateway data, and compare them with the vendor's documented endpoints.
- Check timing: calls while the screen is off or the user is idle, or uploads that follow each call, point to collection rather than a feature.
- Contain: remove or block the app, revoke its permissions and isolate the device from sensitive resources while you assess.
- Scope the exposure: work out what the collected context reveals, such as home or office locations and travel, and tell the affected person and the privacy office where it matters.
- Feed back: add the finding to vetting rules and update the approved list.
Related behaviour belongs to neighbouring techniques, so review the Mobile T1422 System Network Configuration Discovery and Mobile T1430 Location Tracking guides together.
Common failure patterns
- Treating Wi-Fi scanning as harmless. Nearby BSSIDs and towers locate a person as well as GPS does in many places.
- Approving location for convenience. Users grant location to apps that do not need it, which also unlocks network discovery.
- Assuming network logging sees everything. Android documents that direct system calls and some streaming and messaging apps are not logged.
- Inventing iOS coverage. ATT&CK lists no iOS analytic for T1421; claiming one in a coverage map overstates detection.
Framework mapping
| Framework | Reference | How it applies |
|---|---|---|
| MITRE ATT&CK for Mobile | T1421; TA0032 | Technique and tactic (no mitigations listed) |
| NIST SP 800-53 Rev 5 | AC-19; CM-11; SI-4 | Mobile restrictions, app control, monitoring |
| NIST CSF 2.0 | PR.AA-05; DE.CM-09 | Least privilege for permissions; monitoring |
| OWASP MASVS | MASVS-PRIVACY | Minimise location and network data use in your own apps |
Practitioner checklist
- Review fine location and nearby devices grants on managed Android devices.
- Require Android 10 or later, preferably 13 or later.
- Block unknown sources on managed devices.
- Include Wi-Fi, Bluetooth and cell API use in app vetting.
- Collect Android Enterprise network logs and pair them with gateway data.
- Offer Lockdown Mode or Advanced Protection guidance to high-risk staff.
Standards and references
- MITRE ATT&CK: System Network Connections Discovery, Mobile T1421
- Android Developers: Privacy changes in Android 10
- Android Developers: Request permission to access nearby Wi-Fi devices
- Android Developers: Network activity logging
- Apple Support: About Lockdown Mode
- OWASP: Mobile Application Security Verification Standard
Related NHI Mgmt Group resources: MITRE ATT&CK for Mobile Guide · T1049 System Network Connections Discovery · Android Advanced Protection · Mobile App Permissions · Mobile T1422 System Network Configuration Discovery · Mobile T1430 Location Tracking