Mobile menu toggle

Apple iPhone USB security: What that ‘allow accessory’ alert really means

By

what iPhone 'allow accessory' alert really means
"Juice jacking" may not be much of a threat, but it's easy to avoid just in case.
Photo: Kaboompics, Pexels.com

You’re at the airport, phone battery at 8%, and a USB charging port is right there. You plug in — and your iPhone flashes an alert asking whether to allow an accessory to connect. Should you panic? Are you at risk of “juice jacking?” Probably not. But you should know what that allow-accessory message means, and how to make sure you’re charging safely.

Overblown ‘Juice jacking’ and what iPhone ‘allow accessory’ alert really means

Juice jacking” — the idea that criminals embed data-stealing malware in public USB charging ports — has been a perennial tech scare story since researchers first demonstrated the concept at the DefCon hacker conference in 2011. The FBI tweeted a warning about it in 2023, the FCC keeps an advisory page about it (public access now disabled, however), and every few months a viral Reddit thread or news headline sets off  the alarm again.

Here’s the part that rarely makes it into those stories. As of mid-2023, multiple reviews have found no credible reported cases of juice jacking on mobile operating systems outside of research efforts. The threat is real in a lab setting, but there’s little evidence it has ever posed a real threat to the general public. When the Los Angeles District Attorney’s office issued its own juice jacking warning, followed up and found the office had “no cases” of juice jacking on its books — and could not point to any elsewhere. Even the FCC has said it’s not aware of any confirmed instances of it occurring.

Cybersecurity experts who have looked at this say the attack is theoretically possible, but it’s really only considered a desirable method for hackers if they are targeting a particular individual, like a high-level executive, government official or investigative journalist. For the average iPhone user in an airport terminal, the realistic risk is close to zero.

Why your iPhone already has your back

iPhone hacking is more difficulty with iOS 11.4.1
iPhone hacking is more difficult if a “USB Accessories” setting (as of iOS 11.4.1) is left off.
Photo: Apple/Cult of Mac

Apple has been steadily hardening the iPhone against USB-based attacks for years. By default, USB Restricted Mode is enabled on all iPhones running iOS 11.4.1 or later. If your iPhone remains locked for more than an hour, it blocks data transfer through the Lightning or USB-C port — while still allowing charging. That means a public USB port can top up your battery, but can’t reach your photos, messages or passwords.

When you plug into an unfamiliar port and see a prompt asking whether to “trust” a computer or “allow” an accessory, that’s iOS doing its job. If you see this at a public charging station, do not select “Trust” and instead disconnect your iPhone immediately — there is no legitimate reason for a charging port to also request a data connection.

The setting you should check right now

iPhone juice jacking: How to block
Make your iPhone ask for data access approval when a new USB device is connected.
Screenshots: Ed Hardy/Cult of Mac

Recent iOS updates have introduced more granular controls over what happens when you plug into a USB port. You can find these options in Settings > Privacy & Security > Wired Accessories, where you can choose “Always Ask” (requiring manual approval every time), “Ask for New Accessories” (manual approval only the first time), or “Automatically Allow When Unlocked” (the default).

For most people, the default is fine for home use. But if you frequently plug into unfamiliar ports while traveling, switching to Ask for New Accessories is a sensible move. That way, a public charging station — which should never need a data connection — will either stay silent (good) or trigger a prompt you can decline (also good).

The older setting to be aware of lives at Settings > Face ID & Passcode (or Touch ID & Passcode) > USB Accessories. When you toggle it off, accessories cannot establish a USB data connection when your device has been locked for more than an hour. Keeping that toggle off is the conservative choice.

Read more here: You need to change this iPhone security setting ASAP.

Practical tips for charging on the go

SwitchEasy USB charger
You can always bring your own charger.
Photo: SwitchEasy

Of course, you can avoid the possible threat, mainly by bringing your own charging solution: 6 ways to avoid ‘juice jacking’ at public iPhone charging stations.

If you bring your own wall charger, you can use a standard AC outlet. These are safe to use, as there’s no way for them to hack your iPhone. Most public charging stations include regular power sockets alongside USB ports.

A portable battery pack is another clean option. You can safely charge a power bank from a public USB port with no data risk to your phone. Then charge your iPhone from the battery pack.

The bottom line: juice jacking is a real technical concept that, so far, appears to be essentially theoretical in the real world. But understanding your iPhone’s USB security settings costs nothing. It takes about 30 seconds to check.

Comments

Your email address will not be published. Required fields are marked *

  • Subscribe to the Newsletter

    Our daily roundup of Apple news, reviews and how-tos. Plus the best Apple tweets, fun polls and inspiring Steve Jobs bons mots. Our readers say: "Love what you do" -- Christi Cardenas. "Absolutely love the content!" -- Harshita Arora. "Genuinely one of the highlights of my inbox" -- Lee Barnett.