The Impostor Among US(B): Off-Path Injection Attacks on USB Communications

Robert Dumitru, Daniel Genkin, Andrew Wabnitz, Yuval Yarom
11/2/2022
cs.CR

Official code: 0xADE1A1DE/USB-Injection (38 stars, VHDL, Apache-2.0, last commit 2024-11-26).

Abstract

USB is the most prevalent peripheral interface in modern computer systems and its inherent insecurities make it an appealing attack vector. A well-known limitation of USB is that traffic is not encrypted.

Show full abstract

This allows on-path adversaries to trivially perform man-in-the-middle attacks. Off-path attacks that compromise the confidentiality of communications have also been shown to be possible. However, so far no off-path attacks that breach USB communications integrity have been demonstrated. In this work we show that the integrity of USB communications is not guaranteed even against off-path attackers.Specifically, we design and build malicious devices that, even when placed outside of the path between a victim device and the host, can inject data to that path. Using our developed injectors we can falsify the provenance of data input as interpreted by a host computer system. By injecting on behalf of trusted victim devices we can circumvent any software-based authorisation policy defences that computer systems employ against common USB attacks. We demonstrate two concrete attacks. The first injects keystrokes allowing an attacker to execute commands. The second demonstrates file-contents replacement including during system install from a USB disk. We test the attacks on 29 USB 2.0 and USB 3.x hubs and find 14 of them to be vulnerable.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

USB device hardware core with modified behaviour capable of injecting transmissions on behalf of other devices

385VHDL, SystemVerilogJul 26, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{dumitru2022impostor,
  title  = {The Impostor Among US(B): Off-Path Injection Attacks on USB Communications},
  author = {Robert Dumitru and Daniel Genkin and Andrew Wabnitz and Yuval Yarom},
  year   = {2022},
  eprint = {2211.01109},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.01109}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.01109.svg)](https://codeofpaper.com/paper/2211.01109)

Discussion