ProtectIOn: Root-of-Trust for IO in Compromised Platforms

Aritra Dhar, Enis Ulqinaku, Kari Kostiainen, Srdjan Capkun

TL;DR

PROTECTION is a hardware-based "Root-of-Trust" for I/O that secures user interactions on compromised computers by sitting between the host and its peripherals. By intercepting HDMI signals and USB inputs to overlay a secure UI, it ensures that what you see is what you get—and what you type is what the server actually receives—effectively neutralizing UI manipulation and clickjacking attacks.

What Problem Does This Paper Address?

In an era of remote e-voting, online banking, and medical device management, we often assume our computers are trustworthy. However, if a host's Operating System or drivers are compromised, an attacker can silently observe or modify everything you see and do.

Previous solutions have significant gaps:

  • Trusted Execution Environments (TEEs) like Intel SGX protect data in memory but don't natively secure the "last inch" of I/O (the display and keyboard).
  • Hypervisor-based paths are complex to deploy and have a large Trusted Computing Base (TCB).
  • External confirmation devices (like hardware tokens) often suffer from "user habituation," where users click "OK" without actually reading the screen.

The authors identify a critical "Observation 1": The lack of output integrity compromises input integrity. If an attacker can change a label on your screen (e.g., changing "Pay $10" to "Pay $1000" while keeping the button the same), your "correct" input becomes a malicious transaction.

Methods

The authors propose PROTECTION, a system centered around a trusted hardware intermediary called the IOHUB.

Key technical innovations include:

  • The IOHUB Hardware: A low-TCB device (prototyped using a Raspberry Pi and Arduinos) that physically sits between the PC, the monitor, and the input devices.
  • HDMI Interception & Overlay: The IOHUB intercepts the HDMI signal from the host. It looks for a specific QR code generated by a trusted JavaScript snippet on the webpage. This QR code contains a signed UI specification. The IOHUB decodes this and overlays a "secure UI" directly onto the HDMI frames before they reach the monitor.
  • Input Mediation: When the user interacts with the secure overlay, the IOHUB captures those keystrokes and mouse clicks. It signs this data and sends it back to the remote server via an "upstream channel" (emulating a keyboard to type the data back to the host, which then forwards it).
  • Continuous Mouse Tracking: To prevent clickjacking, the IOHUB tracks the host's mouse pointer within the HDMI stream. When the pointer enters the secure UI area, the IOHUB takes over, dimming the rest of the screen (the "lightbox" effect) to focus user attention and ensure the host cannot "fake" a mouse click.

Datasets

As a systems and security paper, PROTECTION does not use traditional training datasets. Instead, it evaluates a custom-built prototype against existing software benchmarks to demonstrate its small footprint:

  • Codebase Comparison: The authors compared the IOHUB’s code (approx. 6,300 lines of code) against massive projects like Chromium (25M+ lines) and Firefox (20M+ lines) to highlight the drastically reduced attack surface.
  • Hardware Setup: Evaluation was performed on a desktop with an Intel Core i7-6700 processor, using a Raspberry Pi 4 and Arduino Due/Zero for the IOHUB prototype.

Key Insights and Ideas

  • Interdependency of I/O: You cannot secure input without securing output. If the user can't trust the display, they can't provide meaningful input. PROTECTION is one of the first systems to enforce both simultaneously for complex web UIs.
  • Modalities Matter: The paper argues that securing only the keyboard is insufficient. Lack of mouse support leads to "early form submission" attacks, where a compromised OS triggers a "Submit" click before the user finishes typing.
  • Zero-Software Deployment: Because the IOHUB emulates standard HID devices (keyboard/mouse) and intercepts standard HDMI, it requires no special drivers or software on the untrusted host, making it "plug-and-play."
  • QR Codes as a Secure Channel: Using QR codes to pass UI specs through the HDMI stream is a clever way to establish a downstream command channel without needing the IOHUB to have its own network connection, further shrinking the TCB.

Key Results

  • Low Latency: The system adds a negligible 170 µs of latency to keystrokes and roughly 21.76 ms to the display (effective display latency). This is fast enough for a smooth user experience at roughly 47 frames per second.
  • Security Efficacy: The system successfully prevents UI manipulation, clickjacking, and "early form submission" attacks that were shown to be possible on previous state-of-the-art systems like Fidelius.
  • Minimal TCB: The core logic for the HDMI interceptor and overlay is only 1,911 lines of code, making it small enough for formal verification in the future.

Limitations and Future Work

  • Hardware Bottlenecks: The current prototype's HDMI-to-CSI bridge limits the resolution to 1080p at 25 fps. The authors suggest that moving the logic to an FPGA or ASIC would solve this and further reduce the TCB.
  • Denial of Service: A malicious host can still refuse to display the QR code or intentionally lag the HDMI stream. While this prevents the secure interaction from happening, it doesn't compromise the integrity of the data.
  • Side-Channels: The authors acknowledge that the timing of user interactions could potentially leak information via side channels, which remains an area for future research.
  • Complex UIs: Currently, the system supports a subset of HTML5 elements (text boxes, buttons, etc.). Expanding this to more complex web components is a logical next step.

Summary updated

BibTeX
@inproceedings{dhar2020protection,
  author = {Aritra Dhar and Enis Ulqinaku and Kari Kostiainen and Srdjan Capkun},
  title = {{ProtectIOn: Root-of-Trust for IO in Compromised Platforms}},
  booktitle = {NDSS},
  year = {2020},
  url = {https://openreview.net/forum?id=M7ES3ffQsv},
}
Figure