trio.so
Explained

USB Restricted Mode: Complete Guide to the iOS Security Feature

What USB Restricted Mode does on iPhone and iPad, how to turn the accessories setting on or off, whether it affects charging, and what it means for IT.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

USB Restricted Mode is the iPhone and iPad protection that stops a wired accessory from exchanging data with a locked device until you unlock it. Apple added it in iOS 11.4.1. A locked device can still charge from a power adapter, but a computer, forensic tool or other wired accessory gets no data connection until the passcode, Face ID or Touch ID is used. In iOS 26 you control it in Settings > Privacy & Security > Wired Accessories. Older versions put it under Face ID & Passcode as the Accessories switch.

If your iPhone just asked you to unlock it to use an accessory, the steps to change that are in the enable and disable section below; the rest of the guide is for anyone deciding whether to change it.

TL;DR: USB Restricted Mode summary

  • A locked iPhone or iPad does not talk to a new wired accessory until it is unlocked. Charging from a power adapter still works.
  • iOS 26: Settings > Privacy & Security > Wired Accessories. Earlier versions: Settings > Face ID & Passcode (or Touch ID & Passcode) > Accessories, under Allow Access When Locked.
  • It protects against forensic extraction tools and against chargers or cables that try to read data.
  • A bypass (CVE-2025-24200) was fixed in iOS 18.3.1 and iPadOS 18.3.1 in February 2025.
  • Companies can control the setting on supervised devices with Apple Configurator or MDM.

What Is USB Restricted Mode?

USB Restricted Mode is a security feature introduced in iOS 11.4.1 that blocks data access through the Lightning or USB-C port while the device is locked. The device still charges, but the accessory cannot exchange data until someone unlocks the device.

The feature targets a specific window. Forensic tools used by law enforcement and attackers connect over USB to try passcodes or pull data from a locked iPhone. If the port stops talking to accessories once the phone has been locked, those tools have nothing to connect to.

It works alongside the rest of the device. Charging, Face ID and Touch ID behave as usual, and accessories you connected while the device was unlocked stay connected after it locks again.

How Does USB Restricted Mode Work?

In the versions most people know, the rule was time based: if the iPhone had been locked for more than an hour, a wired accessory could not exchange data until the device was unlocked. Apple's current support article describes the choice in terms of when accessories are allowed. Once you unlock the device, Apple says the accessory "remains connected, even if your device is locked again."

The charging circuit is not part of the restriction. If you don't unlock the device, Apple notes it "won't communicate with the accessory and it might not charge" from that accessory, but it still charges normally from a USB power adapter.

On iOS 26 the setting has more choices on models with USB-C:

  • Always Ask: the device asks each time a wired accessory connects.
  • Ask for New Accessories: it asks only for accessories it has not seen before.
  • Automatically Allow When Unlocked: the default. Accessories connect when the device is unlocked.
  • Always Allow: accessories connect even when the device is locked. This turns the protection off.

Lightning models offer only Automatically Allow When Unlocked and Always Allow. Source: Apple Support, Allow USB and other accessories to connect to your iPhone or iPad.

Why Was USB Restricted Mode Created?

Apple added USB Restricted Mode in 2018 to counter forensic extraction tools that connect over the port of a locked iPhone. Products from companies such as Cellebrite and Grayshift worked through the Lightning port, and public cases about access to locked iPhones made the gap visible.

The protection also covers simpler threats. Someone with brief physical access can try to copy data or plant something through a cable. And a public charging station or cable with hidden electronics, the "juice jacking" scenario, cannot read data from a device that refuses to talk to it while locked.

How Do You Enable or Disable USB Restricted Mode?

The protection is on by default. Where you change it depends on your iOS version.

iOS 26 and iPadOS 26

  1. Open Settings and tap Privacy & Security.
  2. Scroll to Security and tap Wired Accessories.
  3. Choose an option. Automatically Allow When Unlocked is the default. Always Allow turns the protection off.

iOS 18 and earlier

  1. Open Settings and tap Face ID & Passcode (or Touch ID & Passcode), then enter your passcode.
  2. Under Allow Access When Locked, find Accessories.
  3. Switch Accessories off to keep the protection on. Switch it on to let accessories connect while the device is locked.

Most security guidance says to keep the default. Allowing accessories while locked reopens the window the feature closes. If you use a wired accessory all day, such as CarPlay over a cable or a medical device, unlocking the phone once after you plug in is usually enough, because the accessory stays connected after the phone locks again.

For company devices, administrators can control this setting on supervised iPhones and iPads with Apple Configurator or mobile device management, so the choice is the same on every device. Devices bought through Apple Business Manager can be supervised when they are set up.

What Are the Recent Security Vulnerabilities and Patches?

In February 2025 Apple released iOS 18.3.1 and iPadOS 18.3.1 to fix CVE-2025-24200, a flaw that let someone with physical access disable USB Restricted Mode on a locked device. Apple said the issue may have been exploited in "an extremely sophisticated attack against specific targeted individuals."

Security researchers at Quarkslab traced the flaw to the accessibility framework: with an accessibility accessory and Switch Control, the lock screen offered a prompt that could switch the restriction off. Apple fixed it with improved state management. The update covers iPhone XS and later and the supported iPad models.

The lesson for anyone managing Apple devices is simple: install security updates quickly. Disk encryption, which every iPhone has when a passcode is set, and FileVault on the Mac, keeps data protected even if one control fails.

What Are the Limitations and Considerations?

USB Restricted Mode protects one thing: data access through the port while the device is locked. It does not stop theft, someone reading an unlocked screen, or attacks over Wi-Fi, Bluetooth or the network.

Supervised devices can have the protection relaxed by MDM. Some organizations do this so accessories such as scanners or card readers keep working, which trades security for convenience. Decide it on purpose and write down why.

Accessories that need a data connection while the device stays locked, such as some car systems, medical devices or specialized equipment, may not work until the device is unlocked. Unlocking once after connecting usually solves it.

Charging still works from a power adapter, so the restriction does not cover every possible attack through power delivery, although such attacks are far harder than data-based ones. Strong passcodes, two-factor authentication and prompt updates still matter.

How Does This Apply to Enterprise and High-Risk Users?

For companies and high-risk individuals, USB Restricted Mode is one control in a wider setup, not a strategy on its own. It is strongest when the default stays in place.

Healthcare, finance and government teams that handle sensitive data should keep the default on company iPhones and iPads, set it the same way on every supervised device, and combine it with a passcode policy, quick iOS updates and the ability to lock or wipe a lost device.

Executives, journalists and activists who may be targeted by well-funded attackers should keep the strictest option their device offers. On iOS 26 with USB-C, that is Always Ask or Ask for New Accessories. Apple's Lockdown Mode adds further protection for this group.

Remote workers carry devices through hotels, airports and public spaces, where a borrowed charger or a stranger's cable is the most likely way in. Review the setting on supervised devices whenever you change your MDM configuration.

USB Restricted Mode Settings and Impact Comparison

Feature or aspectDetails
What it blocksData from a wired accessory while the device is locked. Charging from a power adapter still works.
Where to set it (iOS 26)Settings > Privacy & Security > Wired Accessories
Where to set it (iOS 18 and earlier)Settings > Face ID & Passcode > Accessories, under Allow Access When Locked
DefaultAutomatically Allow When Unlocked
Turning it offAlways Allow (iOS 26) or the Accessories switch on (earlier versions)
Security benefitProtects against forensic extraction tools and data theft through cables or chargers
Recent vulnerabilityCVE-2025-24200, fixed in iOS 18.3.1 and iPadOS 18.3.1
Company controlSupervised devices, through Apple Configurator or MDM

Conclusion

USB Restricted Mode closes a real gap: the port of a locked iPhone or iPad. It has had one serious bypass, which Apple has fixed, and it remains an important part of iOS security.

Keep the default unless an accessory you depend on truly needs more, and on company devices set the choice once through supervision so it is the same everywhere. Pair it with prompt updates, a strong passcode and the ability to lock or wipe a lost device.

Related reading: remote lock an iPhone, how to remote wipe an iPhone and Apple Business Manager.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Start your free trial

No credit card required
Full access to all features

Manage Every Device From One Console

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

14-day free trial. No credit card required.

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

Smiling womanAbstract geometric patternAbstract geometric patternSmiling womanSmiling woman

Frequently Asked Questions (FAQ)

Yes. On iOS 26, choose Always Allow in Settings > Privacy & Security > Wired Accessories. On earlier versions, switch on Accessories in Settings > Face ID & Passcode. It weakens the device's protection, so most people should keep the default.

No. It applies only to wired accessories connected to the port. Wireless charging works as usual.

Wired CarPlay is an accessory, so unlock the iPhone after you plug it in. Once connected, it stays connected even after the iPhone locks again. Wireless CarPlay is not affected.

The known bypass, CVE-2025-24200, is fixed in iOS 18.3.1 and later. New flaws can always appear, so install updates quickly and use a strong passcode.

Yes, on any iPhone or iPad with iOS 11.4.1 or later. The setting's name and location depend on the iOS version, and the extra options in iOS 26 appear only on models with USB-C.

Related

From the blog

The related industry news, interviews, technologies, and resources.