Skip to content

Guide

How to see which USB devices were connected to your Mac

System Information shows what's plugged in right now. It can't tell you what was plugged in an hour ago, or while you were away. Here's what macOS does keep, and how to keep the rest.

By · Updated · 6 min read

The short answer

macOS shows only the USB devices connected right now, in System Information → USB or with system_profiler SPUSBDataType SPUSBHostDataType. It keeps no list of devices connected earlier. The unified log records when a disk was mounted, but hides which one as “<private>”. To see every device that connects from now on, a logger has to be running first.

On this page

See what's connected right now

  1. Hold the Option key and choose Apple menu → System Information.
  2. Under Hardware, select USB. Devices are listed under the bus and any hub they connect through.
  3. Select Thunderbolt/USB4 for Thunderbolt devices and docks.
  4. After you plug something in or out, choose File → Refresh Information.
The same list in Terminal (macOS 27 names it SPUSBHostDataType, earlier versions SPUSBDataType)
system_profiler SPUSBDataType SPUSBHostDataType
Thunderbolt and USB4 devices
system_profiler SPThunderboltDataType

Each device shows its name, maker, serial number where it has one, and the speed it connected at. The USB cable speed guide explains that speed line.

Why there's no USB history

Both lists describe the moment you open them. Unplug a device and it's gone from the list, with no record that it was there. macOS has no screen or setting that lists devices connected in the past.

The unified log is the closest thing. Disk Arbitration, the part of macOS that mounts disks, writes a line each time a disk is mounted:

Disks mounted in the last two days
log show --last 2d --style compact --predicate 'process == "diskarbitrationd" AND eventMessage CONTAINS[c] "mounted"'
Output on our test Mac (shortened)
2026-10-25 09:55:58 diskarbitrationd: mounted disk, id = <private>, success.
2026-10-25 10:03:07 diskarbitrationd: unmounted disk, id = <private>, success.
  • It gives times, not names. macOS hides the disk's identity as <private>, so you can't tell a USB drive from a disk image you opened.
  • It only covers disks. Keyboards, mice, phones and hubs don't mount anything.
  • It doesn't last. The unified log is kept for a limited time, so older entries are gone.

Kernel messages about USB ports are in the log too, but on our test Mac they described ports and power states, not the devices plugged into them.

What macOS can do: ask before a new accessory connects

On Mac laptops with Apple silicon, Apple says you might need to approve new accessories before they can connect. The setting is in System Settings → Privacy & Security → Accessories, next to “Allow accessories to connect”, with four choices: Always ask, Ask for new accessories (the default), Automatically allow when unlocked, and Always allow.

If your Mac is locked, you need to unlock it before you can allow an accessory. That stops a device from connecting unnoticed, but it doesn't keep a record of what was plugged in, or tell you that something tried while you were away.

Why a new keyboard matters

Some devices that look like a USB drive also present themselves to the Mac as a keyboard, and can type commands the moment they're connected. A keyboard you didn't plug in, or a “drive” that is also a keyboard, is the one device worth an immediate look.

  1. Unplug anything you don't recognise.
  2. In System Information → USB, check what's connected now, and look for a keyboard you don't own.
  3. Set “Allow accessories to connect” to Ask for new accessories or Always ask, if your Mac has it.

The faster way: the USB log in iKnowMyMac

iKnowMyMac's USB log records every USB and Thunderbolt device that connects to your Mac, with time, name and what it is, including while the Mac is locked or at the login window. It starts logging the day you install it; nothing before that can be recovered. Filters show what came While away, Keyboards and This week.

USB Log

Every device that connected to this Mac · kept on this Mac

0 events today

USB Keyboard · if it isn't yours, unplug it

Urgent
    A demo with sample devices. The log stays on your Mac.
    The same demo as on the homepage: the USB log, the new keyboard alert, and a read-only look at a drive that connected while the Mac was locked.
    • While you were away. Unknown devices connected while your Mac was locked, at the login window, or idle for 5 minutes, as one summary when you're back: “While you were away: 2 unknown devices connected”, with the first and last time.
    • New keyboard alert. “A new keyboard was just connected”, within a second, with the device's name: “never seen before. If you didn't plug in a keyboard, unplug it now.”
    • It stays on your Mac. The USB log records device names and IDs, never file contents.

    FAQ

    Questions

    Something else? support@iknowmymac.com

    Can I see USB history on a Mac?

    Not with what's built in. System Information shows only what's connected now, and the unified log records when a disk was mounted without saying which. To keep a history, something has to log devices as they connect.

    How do I see what USB devices are connected to my Mac?

    Hold Option, choose Apple menu → System Information, and select USB. In Terminal, run system_profiler SPUSBDataType SPUSBHostDataType.

    Does macOS log USB devices?

    Not in a form you can read back. The unified log has mount events with the disk hidden as “<private>”, and low-level port messages. Neither names the device, and both are kept only for a limited time.

    How can I tell if someone plugged a USB device into my Mac?

    From macOS alone, usually you can't after the fact. On an Apple silicon laptop, setting “Allow accessories to connect” to ask for new accessories means a locked Mac has to be unlocked first. A USB logger such as the one in iKnowMyMac records each device and tells you what connected while you were away.

    What is a USB device that types like a keyboard?

    A device that presents itself to the Mac as a keyboard, even if it looks like a drive or a cable, and can type commands as soon as it connects. If a keyboard you didn't plug in appears, unplug it.

    Know why your Mac is slow.

    macOS 15 Sequoia or later · Apple silicon. A 51.4 MB native app, notarized by Apple. No account, no analytics, no telemetry.

    One-time purchase · every feature · 14-day refund