USB Restricted Mode is a security feature of iOS and iPadOS that disables data connections through the Lightning or USB-C port when a device has stayed locked for more than one hour, while still allowing it to charge. In mobile security, it closes a physical attack path: forensic and cracking tools that connect by cable to guess the passcode or exploit the port can no longer communicate with a locked phone after the window expires.
Apple introduced the protection in iOS 11.4.1 in 2018, and it is enabled by default. It works alongside the screen lock, the Secure Enclave and Lockdown Mode as part of a layered defense of data at rest.
How USB Restricted Mode blocks the port
USB Restricted Mode works by starting a timer at the last unlock and, once one hour has passed, instructing the port controller to refuse data enumeration with any newly connected accessory or computer. Power still flows, so the device charges normally, but the accessory cannot establish the data channel it needs to send commands.
Unlocking the device with the passcode, Face ID or Touch ID resets the timer and restores data access. An accessory that was already connected before the hour expired keeps working, which is why a car stereo or dock remains usable during a long drive. Since iOS 12, if no accessory has been connected for more than three days, the device blocks new accessories immediately upon locking instead of waiting an hour.
The table below summarizes how the port behaves in typical states.
| Device state | Charging | Data connection |
|---|---|---|
| Unlocked | Allowed | Allowed, subject to the trust prompt |
| Locked less than one hour | Allowed | Allowed for new accessories |
| Locked more than one hour | Allowed | Blocked until the next unlock |
| No accessory for three days, then locked | Allowed | Blocked immediately |
| Accessory connected before lock | Allowed | Continues while it stays connected |
The threat it addresses
The feature targets physical extraction tools that law enforcement vendors and criminals use to attack seized devices. Such tools typically connect over the cable, exploit a vulnerability in the boot chain or port stack, and then run passcode guesses at a rate that bypasses the escalating delays of the on-screen keypad.
By cutting the data channel after an hour, the protection shrinks the window for a cable-based attack from indefinite to sixty minutes. An attacker who seizes a phone must connect it almost immediately, which is often impractical when the device has to be transported to a laboratory. It does not stop attacks that occur while the device is still unlocked or within the first hour.
This table places the protection among related iOS defenses that counter different stages of a physical attack.
| Defense | What it protects against | Trigger |
|---|---|---|
| USB Restricted Mode | Cable-based exploitation and brute force | One hour locked |
| Trust This Computer prompt | Unauthorized pairing and backup | First connection to a computer |
| Inactivity reboot | Attacks on keys held in memory | About 72 hours without unlock |
| Lockdown Mode | Targeted spyware and wired attacks | User opt-in; wired data blocked when locked |
| Stolen Device Protection | Abuse of a stolen passcode | Away from familiar locations |
Settings, exceptions and management
The protection is controlled by the Accessories or USB Accessories toggle under Face ID and Passcode or Touch ID and Passcode settings. The toggle is off by default, which means accessories are not allowed while locked; turning it on disables USB Restricted Mode entirely and should be done only with a clear operational reason.
Organizations managing fleets through MDM can control the behavior on supervised devices with a restriction that allows USB accessories while the device is locked. This matters for kiosks, point-of-sale terminals and devices in charging carts that must keep a wired peripheral or configuration tool working.
| Scenario | Recommended setting | Reason |
|---|---|---|
| Personal phone | Keep default protection | Strongest defense at no practical cost |
| Executive or journalist device | Default plus Lockdown Mode | Higher risk of targeted seizure |
| Retail kiosk iPad | Allow accessories via MDM | Card reader must work while locked |
| Vehicle with wired CarPlay | Keep default protection | Connection made while unlocked persists |
| Shared lab test device | Allow temporarily, then restore | Debugging tools need continuous access |
Comparison with Android port protections
Android has historically used a different model: new USB connections default to charging only, and data modes such as file transfer require the user to choose them while the device is unlocked. Debugging access through ADB additionally needs developer options and an authorized host key.
More recent Android releases tighten this further. The Advanced Protection setting can block new USB data connections while the device is locked, approaching the iOS behavior, and some hardened Android distributions offer configurable port control. The underlying goal is identical across platforms: a locked device should not trust a cable.
Limitations and common misconceptions
USB Restricted Mode is one layer, not a complete defense, and several misunderstandings lead users to overestimate it.
- It does not encrypt data. Encryption comes from the passcode and the Secure Enclave; the mode only limits port access.
- It does not protect an unlocked phone. A device seized while unlocked can be kept awake and connected.
- It is not unbreakable. Researchers have published bypasses in earlier iOS versions, and vendors have claimed workarounds, so timely updates remain essential.
- It does not block charging. Users sometimes assume a dead battery problem is caused by the mode, but power delivery is unaffected.
- It does not replace a strong passcode. A long alphanumeric passcode remains the decisive factor against brute force.
Understanding it simply
The charging port on an iPhone can carry both power and data. USB Restricted Mode shuts the data door when the phone has been locked for an hour. Power still flows, so the phone charges as usual.
Think of a building that keeps the front door open during office hours. After closing time, only someone with a key can reopen it. Unlocking the phone is that key. A thief with a cable cannot talk to a locked phone once the hour has passed.
Applied in practice
A traveling consultant’s iPhone is stolen from a hotel lobby while locked. The thief plans to sell it to a buyer who owns a cable-based cracking tool, but the handover happens the next evening, about thirty hours after the last unlock.
When the buyer connects the phone, it charges, yet the tool cannot open a data session because USB Restricted Mode is already active. Meanwhile, the consultant marks the device as lost from another computer and starts a remote wipe.
Within the same afternoon, the consultant’s company also reviews its policy. It keeps the default protection on all employee phones and enables the MDM exception only for twelve kiosk iPads that drive wired card readers in its showroom. The stolen device yields no data, and the kiosks keep working.