Ensure Android compliance policy blocks USB debugging
Part of Maester · Intune · Device compliance · All checks
Invoke-Maester -TestId MT.1236Overview
Section titled “Overview”Ensure at least one assigned Android compliance policy blocks USB debugging.
USB debugging exposes the Android Debug Bridge over the device’s cable. On a device where it is enabled, a host the user has authorised can install and launch applications, read the data of any app built as debuggable, and drive the user interface. It is a developer feature that stays on long after whatever needed it, and the user has no reason to notice.
Intune compliance policy can evaluate it, so a device with USB debugging enabled is marked non-compliant and can then be blocked by Conditional Access.
This is hardening rather than a primary control, and the severity says so: using it takes physical access to the device, an unlocked screen and the user accepting the host key. What it removes is the quiet path by which a phone left on a desk, or handed to a repair shop, gives up its app data.
Policies that are not assigned to any group are reported by this test but do not count towards a pass, because an unassigned compliance policy is never evaluated against any device.
Scope limitation
Section titled “Scope limitation”This test evaluates the Android device administrator compliance policy type (androidCompliancePolicy). Android Enterprise policies, for work profile and device owner enrollments, are counted and reported but their settings are not read, because their property names are not verified here.
A tenant that has Android Enterprise policies and no device administrator policy is reported as not applicable rather than as a failure. A tenant with no Android compliance policy of any kind does fail, because then nothing evaluates Android devices at all.
Remediation action
Section titled “Remediation action”- Navigate to the Microsoft Intune admin center.
- Go to Devices > Manage devices > Compliance.
- Select an existing Android policy, or select + Create policy with Platform set to Android device administrator.
- Under Compliance settings > System Security, set USB debugging to Block.
- On the Assignments tab, assign the policy to your Android device or user groups.
- Select Next and then Create or Save.
If part of your fleet belongs to developers who need the setting, exclude that group from the policy rather than leaving the setting unconfigured for everyone.
Related links
Section titled “Related links”- Microsoft Intune admin center - Device compliance
- Microsoft Learn - Android device administrator compliance settings in Intune
- Android Developers - Android Debug Bridge (adb)
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | MT.1236 |
| Severity | Low |
| Suite | Maester |
| Product | Intune |
| Feature | Device compliance |
| Area | Devices and endpoints |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1005 Data from Local System, T1052.001 Exfiltration over USB |
| Supports controls | nist-800-53-r5:SC-41, nist-800-53-r5:CM-7 |
| PowerShell test | Test-MtAndroidUsbDebugging |
| Services | Graph |
| Compatible licenses | INTUNE_A |
Source
Section titled “Source”- Test:
tests/maester/intune/Test.MT.1236.ps1 - Documentation:
tests/maester/intune/Test.MT.1236.md