Unsecure WiFi Detection [Android only]
Unsecure Wi‑Fi describes a situation where a device is connected to an open or poorly protected wireless network (for example an open hotspot, weak WPA, or a rogue access point), allowing an attacker to observe, intercept, or alter the device’s traffic and network behavior so the OS and apps communicate over an untrusted link.
Attackers can use unsecured Wi‑Fi to perform man‑in‑the‑middle attacks such as:
Eavesdrop on unencrypted traffic to harvest credentials and session cookies
Hijack or replay active sessions to gain unauthorized access
Present forged or untrusted certificates to perform HTTPS interception
Open network could be considered as safe, if VPN is enabled as well. You can detect active VPN using freeRASP.
Below are code snippets demonstrating debugger detection across various platforms:
// Android unsecure wifi check
override fun onUnsecureWifiDetected() {
TODO("Not yet implemented")
}
// Flutter unsecure wifi detection
onUnsecureWifi: () => print("Multi instance detected")
// Cordova unsecure wifi detection
unsecureWifi: () => {
// Place your reaction here
}
// React Native unsecure wifi detection
unsecureWifi: () => {
// Place your reaction here
}
// Capacitor unsecure wifi detection
unsecureWifi: () => {
// Place your reaction here
}
Last updated