PinSetDownload free

Make your Mac ask before an unknown USB device connects

Last checked: 20 Oct 2026 · macOS 26 & 27 · Source: Apple Support

Quick answer

On a Mac laptop with Apple silicon, open System Settings > Privacy & Security and set Allow accessories to connect to Ask Every Time or Ask for New Accessories. Your Mac then asks before anything new can connect.

Why it happens

A USB stick or cable can carry more than files or power, and one you didn't buy could pretend to be a keyboard or try to read data. Mac laptops with Apple silicon can keep a new accessory out until you click Allow. Desktop Macs and Intel Macs don't have this setting, so being careful about what you plug in is the main protection there.

How to fix it

  1. Open the Apple menu, choose System Settings, and click Privacy & Security in the sidebar.

  2. Scroll down to Allow accessories to connect. On macOS 26 it's in the Security part; on macOS 27 it's under Accessories.

    macOS 26 Tahoe Privacy & Security›Allow accessories to connect

    macOS 27 Golden Gate Privacy & Security›Accessories›Allow accessories to connect

  3. Choose Ask Every Time for the most care, or Ask for New Accessories to be asked only about things you haven't allowed before. You may need to enter your password.

  4. From now on, when you plug something in, your Mac asks first. Click Allow only for things you know and trust; Don't Allow keeps it out.

On macOS 26 the setting sits in the Security part of Privacy & Security. On macOS 27 it's in the same pane under its own Accessories heading. The choices are the same.

Still not fixed?

  1. Found a USB stick? Don't plug it in at all. Even if you allow it, it can hold harmful files. Hand it in instead.

  2. At airports and hotels, plug your own power adapter into a wall socket rather than using a USB port, so the port can only give power.

  3. Allowed something by mistake? Unplug it. Then look in Login Items & Extensions for anything new you didn't add.

    General›Login Items & Extensions

  4. If your Mac acts strangely after you plug something in, like typing or opening apps on its own, unplug it, shut down, and contact Apple Support.

Questions people ask

Is it safe to use a public USB charging port with a MacBook?

It's safer to use your own adapter in a wall socket. If you do use a public port, set Allow accessories to connect to Ask Every Time and don't allow anything you don't recognise.

Why doesn't my Mac ask before a USB device connects?

The setting is only on Mac laptops with Apple silicon. On those, it may be set to one of the choices that connect without asking, such as Always.

Did this fix it?

Glad it worked.

Sorry it didn't. Tell us what happened and we'll fix this page.

Email hello@getpinset.com

Get there in one click with PinSet.

Press ⌃ ⌥ Space and type “unknown usb device safe”. PinSet opens Privacy & Security in System Settings and rings Allow accessories to connect. One of 2,400+ checked Mac fixes. Works offline.

7 fixes free · Works offline · macOS 26 and 27