underARPPoisoningAttack

@RequiresPermission(value = "android.permission.ACCESS_NETWORK_STATE")
suspend fun underARPPoisoningAttack(): Boolean

Determine if the device is currently under an ARP poisoning attack.


📝 Permissions needed in the manifest

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


🔑 Minimum required license level: Core.


Sample usage

try {
val networkDiagnostic = rasp.diagnostic.network
val underARPPoisoningAttack = networkDiagnostic.underARPPoisoningAttack()
Log.d("RASP-DEMO", "[isARPPoisoning] $underARPPoisoningAttack")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[networkDiagnostic] underARPPoisoningAttack error: ${e.message}")
}

Return

Boolean — true if an ARP Poisoning attack is detected.

Since

v1.5.0