Thunderbolt storage
Thunderbolt storage is external storage, typically an NVMe enclosure, attached over a Thunderbolt or USB4 link that tunnels PCIe, so the host sees a PCIe device.
USB4 is a public specification based on the Thunderbolt 3 protocol. A connection manager on the host router, in firmware or software, enumerates routers and sets up tunnels for PCIe, DisplayPort and USB. [2] The cabling is hot-pluggable and widely used for docks and for external graphics, storage and network devices. [3]
Because attached devices can be DMA masters that read host memory, Linux defines six security levels, namely none, user, secure (approval plus a challenge with a 32-byte device key), dponly, usbonly and nopcie. With user or secure, no PCIe tunnel and so no NVMe device appears until authorization. De-authorizing tears the tunnel down like a PCIe hot-remove, risking data loss if the file system was not shut down properly. On systems from 2018 an IOMMU can make the levels redundant. [2]
IOMMU protection does not make a malicious peripheral harmless. With an open-source FPGA platform, researchers extracted private data and gained kernel control in seconds on several operating systems through functional peripherals such as USB-C projectors or power adapters. The access-control protocol covers only the bridge to PCIe, so the device behind it could be swapped unnoticed. [3]
Relations
Citations
- USB4 and Thunderbolt, Linux kernel admin guide
- Thunderclap: Exploring Vulnerabilities in Operating System IOMMU Protection via DMA from Untrustworthy Peripherals
Further reading
Sources & caveats
- c2 is Linux kernel documentation; c3 is a university research paper (NDSS 2019) whose findings date from that year.
- No cited source gives throughput or latency of a Thunderbolt storage link; tunnelled PCIe width and the host controller determine it.
- c3 also reports an operating-system prompt that shows only a device name; omitted from the note as platform specific.