WO2017023434A1 - Secure input/output device management - Google Patents
Secure input/output device management Download PDFInfo
- Publication number
- WO2017023434A1 WO2017023434A1 PCT/US2016/038378 US2016038378W WO2017023434A1 WO 2017023434 A1 WO2017023434 A1 WO 2017023434A1 US 2016038378 W US2016038378 W US 2016038378W WO 2017023434 A1 WO2017023434 A1 WO 2017023434A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- trusted
- response
- endpoint
- execution environment
- controller
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/28—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
Definitions
- Secure enclaves include segments of memory (including code and/or data) protected by the processor from unauthorized access including unauthorized reads and writes.
- processors may include Intel® Software Guard Extensions (SGX) to provide secure enclave support.
- SGX Software Guard Extensions
- SGX provides confidentiality, integrity, and replay -protection to the secure enclave data while the data is resident in the platform memory and thus provides protection against both software and hardware attacks.
- the on-chip boundary forms a natural security boundary, where data and code may be stored in plaintext and assumed to be secure.
- Intel® SGX does not protect input/output (I/O) data that moves across the on-chip boundary.
- USB Universal Serial Bus
- FIG. 1 is a simplified block diagram of at least one embodiment of a computing device for secure enumeration and topology management for I/O devices;
- FIG. 2 is a simplified block diagram of an example configuration of the computing device of FIG. 1 ;
- FIG. 3 is a simplified block diagram of a USB host controller of the computing device of FIGS. 1 and 2;
- FIG. 4 is a schematic diagram of data flow for the USB host controller of FIG. 3.
- FIG. 5 is an embodiment of a method for secure I/O device management.
- references in the specification to "one embodiment,” “an embodiment,” “an illustrative embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may or may not necessarily include that particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
- items included in a list in the form of "at least one of A, B, and C” can mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B, and C).
- items listed in the form of "at least one of A, B, or C” can mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B, and C).
- the disclosed embodiments may be implemented, in some cases, in hardware, firmware, software, or any combination thereof.
- the disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors.
- a machine-readable storage medium may be embodied as any storage device, mechanism, or other physical structure for storing or transmitting information in a form readable by a machine (e.g., a volatile or non-volatile memory, a media disc, or other media device).
- a computing device 100 for secure enumeration and topology management for I/O devices includes, among other components, a processor 120, a converged hardware cryptographic (crypto) engine 140, and one or more I/O controllers 144 in communication with one or more I/O devices 146.
- the crypto engine 140 provides on-the-fly encryption and decryption of data transferred via direct memory access (DMA) operations from/to platform I/O controllers 144 to/from memory 132.
- DMA direct memory access
- Each DMA transaction is tagged with a channel ID (CID) representing a flow of data associated with a particular I/O device 146 or set of I/O devices 146.
- CID channel ID
- the crypto engine 140 uses the CID to reliably identify transactions that must be protected, retrieve the corresponding encryption keys, and perform appropriate cryptographic operations on the DMA data.
- the crypto engine 140 is programmed, for example with channel information and associated encryption keys, by trusted software using one or more specialized instructions of the processor 120.
- USB Trusted I/O (TIO) device that is integrated into the USB host controller (e.g. the xHCI).
- the disclosed USB TIO device may support securely sending and receiving I/O from/to secure and/or trusted execution environments (e.g., secure enclaves established using Intel® SGX).
- secure enclaves established using Intel® SGX.
- the USB TIO device provides the ability for a secure enclave to securely enumerate connected devices to the USB host controller and the ability for a secure enclave to manage device changes (e.g., connects/disconnects) while secure I/O is taking place.
- the disclosed technologies support secure I/O data integrity (that is, verification of the source of the I/O data) for secure enclaves using I/O technology that supports hot-plug and hot- unplug of I/O devices.
- I/O data integrity that is, verification of the source of the I/O data
- I/O technology that supports hot-plug and hot- unplug of I/O devices.
- this disclosure describes an illustrative embodiment involving USB, it should be understood that the underlying disclosure may apply to any I/O bus technology that supports hot-plug devices, e.g., Bluetooth, PCIe, etc.
- the computing device 100 may be embodied as any type of computation or computer device capable of performing the functions described herein, including, without limitation, a computer, a desktop computer, a workstation, a server, a laptop computer, a notebook computer, a tablet computer, a mobile computing device, a wearable computing device, a network appliance, a web appliance, a distributed computing system, a processor-based system, and/or a consumer electronic device.
- the computing device 100 illustratively includes a processor 120, an input/output subsystem 128, a memory 132, a data storage device 134, and communication circuitry 136.
- the computing device 100 may include other or additional components, such as those commonly found in a desktop computer (e.g., various input/output devices), in other embodiments. Additionally, in some embodiments, one or more of the illustrative components may be incorporated in, or otherwise form a portion of, another component.
- the memory 132, or portions thereof, may be incorporated in the processor 120 in some embodiments.
- the processor 120 may be embodied as any type of processor capable of performing the functions described herein.
- the processor 120 may be embodied as a single or multi-core processor(s), digital signal processor, microcontroller, or other processor or
- the processor 120 may include hardware virtualization support 122, secure enclave support 124, and crypto engine programming support 126.
- the hardware virtualization support 122 supports virtualized execution of operating systems, applications, and other software by the computing device 100.
- the hardware virtualization support 122 may include virtual machine extensions (VMX) support by providing two modes of execution: VMX-root mode and VMX non-root mode.
- VMX-root mode allows executing software to have broad control of the computing device 100 and its hardware resources.
- a hypervisor, virtual machine monitor (VMM), or host operating system (OS) may execute in VMX-root mode.
- the VMX non-root mode restricts access to certain hardware instructions while still implementing the ordinary ring/privilege system of the processor 120.
- One or more guest OSs may execute in the VMX non-root mode.
- the hardware virtualization support 122 may also support extended page tables (EPT), which may be embodied as hardware-assisted second-level page address translation.
- EPT extended page tables
- the hardware virtualization support 122 may be embodied as, for example, Intel® VT-x technology.
- the secure enclave support 124 allows the processor 120 to establish a secure and/or trusted execution environment known as a secure enclave, in which executing code may be measured, verified, and/or otherwise determined to be authentic. Additionally, code and data included in the secure enclave may be encrypted or otherwise protected from being accessed by code executing outside of the secure enclave. For example, code and data included in the secure enclave may be protected by hardware protection mechanisms of the processor 120 while being executed or while being stored in certain protected cache memory of the processor 120. The code and data included in the secure enclave may be encrypted when stored in a shared cache or the main memory 132.
- the secure enclave support 124 may be embodied as a set of processor instruction extensions that allows the processor 120 to establish one or more secure enclaves in the memory 132.
- the secure enclave support 124 may be embodied as Intel® Software Guard Extensions (SGX) technology.
- the crypto engine programming support 126 allows the processor 120 to program the crypto engine 140 to provide cryptographic protection of I/O data.
- the crypto engine programming support 126 may be embodied as one or more specialized processor instructions (e.g., the instructions EBIND and/or UNWRAP) and associated hardware, microcode, firmware, or other components of the processor 120.
- the memory 132 may be embodied as any type of volatile or non-volatile memory or data storage capable of performing the functions described herein. In operation, the memory 132 may store various data and software used during operation of the computing device 100 such as operating systems, applications, programs, libraries, and drivers.
- the memory 132 is communicatively coupled to the processor 120 via the I/O subsystem 128, which may be embodied as circuitry and/or components to facilitate input/output operations with the processor 120, the memory 132, and other components of the computing device 100.
- the I/O subsystem 128 may be embodied as, or otherwise include, memory controller hubs, input/output control hubs, platform controller hubs, integrated control circuitry, firmware devices, communication links (i.e., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.) and/or other components and subsystems to facilitate the input/output operations.
- the I/O subsystem 128 may further include secure routing support 130.
- the secure routing support 130 may be used with the crypto engine 140 to provide cryptographic protection of I/O data.
- the I/O subsystem 128 may form a portion of a system-on-a- chip (SoC) and be incorporated, along with the processor 120, the memory 132, and other components of the computing device 100, on a single integrated circuit chip.
- SoC system-on-a- chip
- the data storage device 134 may be embodied as any type of device or devices configured for short-term or long-term storage of data such as, for example, memory devices and circuits, memory cards, hard disk drives, solid-state drives, or other data storage devices.
- the data storage device 134 may be used to store the contents of one or more secure enclaves. When stored by the data storage device 134, the contents of the secure enclave may be encrypted to prevent unauthorized access.
- the communication circuitry 136 of the computing device 100 may be embodied as any communication circuit, device, or collection thereof, capable of enabling communications between the computing device 100 and other remote devices over a network.
- communication circuitry 136 may be configured to use any one or more communication technology (e.g., wired or wireless communications) and associated protocols (e.g., Ethernet, Bluetooth®, Wi-Fi®, WiMAX, etc.) to effect such communication.
- communication technology e.g., wired or wireless communications
- protocols e.g., Ethernet, Bluetooth®, Wi-Fi®, WiMAX, etc.
- the computing device 100 may include a security engine 138, which may be embodied as any hardware component(s) or circuitry capable of providing security- related services to the computing device 100.
- the security engine 138 may include a microprocessor, microcontroller, or other embedded controller capable of executing firmware and/or other code independently and securely from the processor 120.
- the security engine 138 may be used to establish a trusted agent or other trusted execution environment separate from code executed by the processor 120.
- the security engine 138 may communicate with the processor 120 and/or other components of the computing device 100 over a dedicated bus, such as a host embedded controller interface (HECI).
- HECI host embedded controller interface
- the security engine 138 may also provide remote configuration, control, or management of the computing device 100.
- the security engine 138 is embodied as a converged security engine (CSE) incorporated in a system-on-a-chip (SoC) of the computing device 100.
- the security engine 138 may be embodied as a manageability engine, a converged security and manageability engine (CSME), an out-of-band processor, a Trusted Platform Module (TPM), or other security engine device or collection of devices.
- the security engine 138 is also capable of communicating using the communication circuitry 136 or a dedicated communication circuit independently of the state of the computing device 100 (e.g., independently of the state of the main processor 120), also known as "out-of-band"
- the cryptographic engine 140 may be embodied as any microcontroller, microprocessor, functional block, logic, or other circuit or collection of circuits capable of performing the functions described herein.
- the cryptographic engine 140 may encrypt and/or decrypt I/O data read or written by the I/O controllers 144 in one or more direct memory access (DMA) operations to the memory 132.
- the crypto engine 140 includes an internal channel identifier (CID) table 142, which the crypto engine 140 uses to dynamically identify DMA channel(s) to be protected.
- the CID table 142 may be embodied as or otherwise include content addressable memory (CAM).
- the CID table 142 may be controlled and/or programmed by trusted software, for example using the crypto engine programming support 126 of the processor 120, or the security engine 138.
- the encryption keys and/or other secret information of the CID table 142 are not available to untrusted software.
- the cryptographic engine 140 may be incorporated along with the I/O subsystem 128 and/or the processor 120 in a system-on-a-chip (SoC) of the computing device 100.
- SoC system-on-a-chip
- the I/O controllers 144 may be embodied as any embedded controller, microcontroller, microprocessor, functional block, logic, or other circuit or collection of circuits capable of performing the functions described herein.
- one or more of the I/O controllers 144 may be embedded in another component of the computing device 100 such as the I/O subsystem 128 and/or the processor 120.
- one or more of the I/O controllers 144 may be connected to the I/O subsystem 128 and/or the processor 120 via an expansion bus such as PCI Express (PCIe) or other I/O connection.
- PCIe PCI Express
- the I/O controllers 144 communicate with one or more I/O devices 146, for example over a peripheral communications bus (e.g., USB, Bluetooth, etc.).
- the I/O devices 146 may be embodied as any I/O device, such as human interface devices, keyboards, mice, touch screens, microphones, and other input devices, as well as displays and other output devices.
- the integrated controllers 144 and associated DMA channels are uniquely identified using identifiers called channel identifiers (CIDs).
- diagram 200 illustrates an example configuration of the computing device 100 including four I/O controllers 144 with controller IDs 1 to 4 respectively.
- controller IOl has one DMA channel with channel ID "10.”
- I/O controller 103 has three DMA channels with Channel IDs "30,” “31,” and “32,” and so on.
- Trusted software programs the crypto engine (CE) 140 (which, in an embodiment, may be referred to as a central crypto engine) with the CID of the DMA channel used by the trusted software, along with a corresponding secret key.
- the CE 140 intercepts DMA transactions having the relevant CID and cryptographically processes the DMA data as it is transferred to or from memory 132.
- the CE 140 writes or reads encrypted data into or from memory 132.
- I/O subsystem 128 may provide hardware security 130 that prevents data from being routed to another device by rogue software that reconfigures the PCI Configuration space.
- diagram 300 shows at least one embodiment of a USB host controller (xHC) 302 of the computing device 100.
- the xHC 302 establishes several DMA channels 304 that may securely communicate I/O data with the memory 132, for example using the crypto engine 140 as described further above.
- the xHC 302 includes a bus interface 306 to connect to the PCIe bus and a root hub 308.
- the root hub 308 establishes n ports 310. Port n is attached to a trusted I/O (TIO) device 312, which is described further below.
- TIO trusted I/O
- the remaining ports 310 may be attached to USB devices 314 via USB connections.
- the xHC 302 may be embodied as an I/O controller 144 as described above, and the TIO device 312 and the USB devices 314 may be embodied as I/O devices 146 as described above.
- the TIO device 312 and/or the USB devices 314 may be capable of secure DMA transfers to memory 132 using the crypto engine 140, via the DMA channels 304.
- the diagram 300 illustrates the TIO device 312 hardwired to the USB host controller 302 root hub 308 port (n).
- the TIO device 312 appears as a permanently attached USB device.
- the TIO device 312 may be enumerated the same as any USB device.
- USB TIO device 312 When the TIO device 312 is configured, data transfers over its configured endpoints are encrypted, making them secure.
- the encrypted endpoints of the USB TIO device 312 provide a secure path between a secure enclave and the host controller 302, or a USB device 314 attached to the host controller 302.
- an enclave can issue commands to the host controller 302 to securely determine the set of USB devices 314 currently attached, their characteristics, and their configuration.
- the host controller 302 is "trusted,” i.e., given a command to retrieve information from a USB device 314, the host controller 302 will never return false information.
- the USB devices 314 are not “trusted,” that is, a USB device 314 attached to the controller 302 could be compromised.
- this disclosure allows for the data transmitted or received over an endpoint of a USB device 314 (other than the TIO device 312) to be secured by encrypting the data.
- the TIO device 312 may cause the xHC 302 to block topology change notifications (e.g., of USB device connects or disconnects) to system software, and direct the change notifications to a secure enclave instead.
- a secure enclave can then determine if a topology change will affect secure operations. If the change does not affect secure operations, then the enclave can signal the TIO device 312 to allow the notification to be forwarded to system software. If the change does affect secure operations, then the secure enclave can cause the TIO device 312 to block the notification or hold it off until after secure operations complete.
- the TIO device 312 may support Device Class specific features to block access to selected devices 314 or device features while secure operations are occurring.
- a USB device supports up to 31 endpoints. Endpoint 0, the Default Control Endpoint, is always enabled. One of more of the remaining endpoints may be enabled when a device is "configured.”
- the Default Control Endpoint of a USB device is used for a variety of "standard" USB operations defined in the USB core specification, for example to enumerate a device and load its driver, to retrieve a device's configuration information, and to select a target configuration. Depending on the Device Class, the Default Control Endpoint may also be used for Device Class specific operations.
- the TIO device 312 does not define any TIO Device Class specific operations over the Default Control Endpoint. All secure operations are performed over a pair of Bulk In and Bulk Out endpoints, whose data is encrypted when they are configured.
- diagram 400 illustrates communication between the TIO device 312 endpoints and untrusted system software 402 and a secure enclave 404.
- the Control Endpoint operations are (generally) in the clear and may be accessed by the untrusted System Software 402, and only Configured Endpoints are used to provide secure (encrypted) communication between the TIO device 312 and enclave software 404 (e.g., a secure enclave established with Intel® SGX).
- the TIO device 312 is integrated into the host controller 302.
- the TIO device 312 provides access to internal host controller 302 registers and data structures, for example to determine the maximum number of devices 314 supported by a controller 302.
- the TIO device 312 provides the ability for an enclave 404 to determine the devices 314 currently attached to the host controller 302.
- the TIO device 312 provides the ability for an enclave 404 to issue requests to the Default Control Endpoint of any attached device 314. This feature allows an Enclave 404 to securely determine the Device Class, vendor, current configuration, and other properties of a device 314.
- the TIO device 312 provides the ability to "lock" the topology, so change notifications are blocked to the standard interface used by the OS, but forwarded through the TIO device 312's secure interface to its managing secure enclave 404.
- the TIO device 312 provides the ability for an enclave 404 to "unlock" specific topology changes, so that the topology changes can propagate to the OS (e.g. to system software 402).
- the TIO device 312 provides the ability to block specific Control Endpoint request to a device 314, to prevent malicious operations from being performed. For example, some USB Device Classes allow the Control Endpoint to be used to access data that should be kept secure.
- TIO Device 312 features described in this disclosure to enable secure enumeration and management of attached USB devices 314 may be implemented for other bus architectures (e.g., Bluetooth, Wi-Fi, WiGig, PCIe, etc.) to provide secure enumeration and management of their devices.
- bus architectures e.g., Bluetooth, Wi-Fi, WiGig, PCIe, etc.
- method 500 illustrates an embodiment of a method for secure I/O device management.
- block 510 includes initializing, by a trusted I/O device integrated in an I/O controller of a computing device, a default control endpoint of the trusted I/O device.
- Block 520 includes receiving, by the trusted I/O device, an unencrypted request to configure the trusted I/O device via the default control endpoint.
- Block 530 includes initializing, by the trusted I/O device, a command output endpoint and a response input endpoint in response to receiving the unencrypted request to configure the trusted I/O device.
- Block 540 includes receiving, by the trusted I/O device, an encrypted command from a secure enclave of the computing device via the command endpoint, wherein the secure enclave is established using secure enclave support of a processor of the computing device.
- Block 550 includes performing, by the trusted I/O device, a device management operation related to the I/O controller in response to receiving the encrypted command.
- block 550 may also include retrieving state information from the I/O controller to generate an encrypted response. In embodiments, block 550 may also include issuing a request to a default control endpoint of an I/O device coupled to the I/O controller. In embodiments, block 550 may also include blocking a topology change notification indicative of an I/O device connect or an I/O device disconnect to system software, and forwarding the topology change notification to the secure enclave in response to blocking the topology change notification.
- Block 560 includes transmitting, by the trusted I/O device, an encrypted response to the secure enclave via the response endpoint in response to performing the device management operation.
- An embodiment of the technologies disclosed herein may include any one or more, and any combination of, the examples described below.
- Example 1 includes a computing device for secure I/O device management, the computing device comprising a processor having secure enclave support, wherein the processor is to establish a secure enclave using the secure enclave support; and an I/O controller including an integrated trusted I/O device, wherein the trusted I/O device is to (i) initialize a default control endpoint of the trusted I/O device, (ii) receive a unencrypted request to configure the trusted I/O device via the default control endpoint, (iii) initialize a command endpoint and a response endpoint in response to receipt of the unencrypted request, (iv) receive an encrypted command from the secure enclave via the command endpoint, (v) perform a device management operation related to the I/O controller in response to receipt of the encrypted command; and (vi) transmit an encrypted response to the secure enclave via the response endpoint in response to
- Example 2 includes the subject matter of Example 1, and wherein to perform the device management operation comprises to retrieve state information from the I/O controller to generate the encrypted response.
- Example 3 includes the subject matter of any of Examples 1 and 2, and wherein to perform the device management operation comprises to issue a request to a default control endpoint of an I/O device coupled to the I/O controller.
- Example 4 includes the subject matter of any of Examples 1-3, and wherein to perform the device management operation comprises to block a topology change notification indicative of an I/O device connect or an I/O device disconnect, and forward the topology change notification to the secure enclave in response to a blocking of the topology change notification.
- Example 5 includes the subject matter of any of Examples 1 -4, and wherein the I/O controller comprises a USB host controller including a root hub, and the trusted I/O device comprises a USB device permanently coupled to a port of the root hub of the USB host controller.
- the I/O controller comprises a USB host controller including a root hub
- the trusted I/O device comprises a USB device permanently coupled to a port of the root hub of the USB host controller.
- Example 6 includes a method for secure I/O device management, the method comprising initializing, by a trusted I/O device integrated in an I/O controller of a computing device, a default control endpoint of the trusted I/O device; receiving, by the trusted I/O device, an unencrypted request to configure the trusted I/O device via the default control endpoint;
- Example 7 includes the subject matter of Example 6, and wherein performing the device management operation comprises retrieving state information from the I/O controller to generate the encrypted response.
- Example 8 includes the subject matter of any of Examples 6 and 7, and wherein performing the device management operation comprises issuing a request to a default control endpoint of an I/O device coupled to the I/O controller.
- Example 9 includes the subject matter of any of Examples 6-8, and wherein performing the device management operation comprises blocking a topology change notification indicative of an I/O device connect or an I/O device disconnect, and forwarding the topology change notification to the secure enclave in response to blocking the topology change notification.
- Example 10 includes the subject matter of any of Examples 6-9, and wherein the I/O controller comprises a USB host controller including a root hub, and the trusted I/O device comprises a USB device permanently coupled to a port of a root hub of the USB host controller.
- the I/O controller comprises a USB host controller including a root hub
- the trusted I/O device comprises a USB device permanently coupled to a port of a root hub of the USB host controller.
- Example 1 1 includes a computing device comprising a processor and a memory having stored therein a plurality of instructions that when executed by the processor cause the computing device to perform the method of any of Examples 6-10.
- Example 12 includes one or more machine readable storage media comprising a plurality of instructions stored thereon that in response to being executed result in a computing device performing the method of any of Examples 6-10.
- Example 13 includes a computing device comprising means for performing the method of any of Examples 6-10.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Storage Device Security (AREA)
- Information Transfer Systems (AREA)
Abstract
Embodiments of apparatus and methods for secure I/O device management are disclosed. In an embodiment, an apparatus includes a processor and an I/O controller. The processor has secure execution environment support, wherein the processor is to establish a secure execution environment using the secure execution environment support. The I/O controller includes an integrated trusted I/O device, wherein the trusted I/O device is to receive an unencrypted request to configure the trusted I/O device via a default control endpoint of the trusted I/O device, configure a command endpoint and a response endpoint in response to receipt of the unencrypted request, receive an encrypted command from the secure execution environment via the command endpoint, perform a device management operation related to the I/O controller in response to receipt of the encrypted command, and transmit an encrypted response to the secure execution environment via the response endpoint in response to performance of the device management operation.
Description
SECURE INPUT/OUTPUT DEVICE MANAGEMENT
BACKGROUND
Current processors may provide support for a secure and/or trusted execution environment such as a secure enclave, also known as an architectural enclave. Secure enclaves include segments of memory (including code and/or data) protected by the processor from unauthorized access including unauthorized reads and writes. In particular, certain processors may include Intel® Software Guard Extensions (SGX) to provide secure enclave support.
In particular, SGX provides confidentiality, integrity, and replay -protection to the secure enclave data while the data is resident in the platform memory and thus provides protection against both software and hardware attacks. The on-chip boundary forms a natural security boundary, where data and code may be stored in plaintext and assumed to be secure. Intel® SGX does not protect input/output (I/O) data that moves across the on-chip boundary.
Current computing devices perform Universal Serial Bus (USB) device enumeration and topology management "in the clear," that is, the operations are not encrypted. Thus, for current computing devices, malicious system software may easily identify commands, modify commands, modify results to provide false information to a secure enclave, or block commands or results to deny service entirely.
BRIEF DESCRIPTION OF THE DRAWINGS
The concepts described herein are illustrated by way of example and not by way of limitation in the accompanying figures. For simplicity and clarity of illustration, elements illustrated in the figures are not necessarily drawn to scale. Where considered appropriate, reference labels have been repeated among the figures to indicate corresponding or analogous elements.
FIG. 1 is a simplified block diagram of at least one embodiment of a computing device for secure enumeration and topology management for I/O devices;
FIG. 2 is a simplified block diagram of an example configuration of the computing device of FIG. 1 ;
FIG. 3 is a simplified block diagram of a USB host controller of the computing device of FIGS. 1 and 2;
FIG. 4 is a schematic diagram of data flow for the USB host controller of FIG. 3; and
FIG. 5 is an embodiment of a method for secure I/O device management.
DETAILED DESCRIPTION
While the concepts of the present disclosure are susceptible to various modifications and alternative forms, specific embodiments thereof have been shown by way of example in the
drawings and will be described herein in detail. It should be understood, however, that there is no intent to limit the concepts of the present disclosure to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives consistent with the present disclosure and the appended claims.
References in the specification to "one embodiment," "an embodiment," "an illustrative embodiment," etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may or may not necessarily include that particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described. Additionally, it should be appreciated that items included in a list in the form of "at least one of A, B, and C" can mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B, and C). Similarly, items listed in the form of "at least one of A, B, or C" can mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B, and C).
The disclosed embodiments may be implemented, in some cases, in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. A machine-readable storage medium may be embodied as any storage device, mechanism, or other physical structure for storing or transmitting information in a form readable by a machine (e.g., a volatile or non-volatile memory, a media disc, or other media device).
In the drawings, some structural or method features may be shown in specific
arrangements and/or orderings. However, it should be appreciated that such specific
arrangements and/or orderings may not be required. Rather, in some embodiments, such features may be arranged in a different manner and/or order than shown in the illustrative figures.
Additionally, the inclusion of a structural or method feature in a particular figure is not meant to imply that such feature is required in all embodiments and, in some embodiments, may not be included or may be combined with other features.
Referring now to FIG. 1, in an illustrative embodiment, a computing device 100 for secure enumeration and topology management for I/O devices includes, among other components, a processor 120, a converged hardware cryptographic (crypto) engine 140, and one or more I/O controllers 144 in communication with one or more I/O devices 146. In use, as further described below, the crypto engine 140 provides on-the-fly encryption and decryption of data transferred
via direct memory access (DMA) operations from/to platform I/O controllers 144 to/from memory 132. Each DMA transaction is tagged with a channel ID (CID) representing a flow of data associated with a particular I/O device 146 or set of I/O devices 146. The crypto engine 140 uses the CID to reliably identify transactions that must be protected, retrieve the corresponding encryption keys, and perform appropriate cryptographic operations on the DMA data. The crypto engine 140 is programmed, for example with channel information and associated encryption keys, by trusted software using one or more specialized instructions of the processor 120.
To support secure enumeration and topology management of USB devices, this disclosure describes a USB Trusted I/O (TIO) device that is integrated into the USB host controller (e.g. the xHCI). The disclosed USB TIO device may support securely sending and receiving I/O from/to secure and/or trusted execution environments (e.g., secure enclaves established using Intel® SGX). As described further below, the USB TIO device provides the ability for a secure enclave to securely enumerate connected devices to the USB host controller and the ability for a secure enclave to manage device changes (e.g., connects/disconnects) while secure I/O is taking place. Thus, the disclosed technologies support secure I/O data integrity (that is, verification of the source of the I/O data) for secure enclaves using I/O technology that supports hot-plug and hot- unplug of I/O devices. Although this disclosure describes an illustrative embodiment involving USB, it should be understood that the underlying disclosure may apply to any I/O bus technology that supports hot-plug devices, e.g., Bluetooth, PCIe, etc.
The computing device 100 may be embodied as any type of computation or computer device capable of performing the functions described herein, including, without limitation, a computer, a desktop computer, a workstation, a server, a laptop computer, a notebook computer, a tablet computer, a mobile computing device, a wearable computing device, a network appliance, a web appliance, a distributed computing system, a processor-based system, and/or a consumer electronic device. As shown in FIG. 1, the computing device 100 illustratively includes a processor 120, an input/output subsystem 128, a memory 132, a data storage device 134, and communication circuitry 136. Of course, the computing device 100 may include other or additional components, such as those commonly found in a desktop computer (e.g., various input/output devices), in other embodiments. Additionally, in some embodiments, one or more of the illustrative components may be incorporated in, or otherwise form a portion of, another component. For example, the memory 132, or portions thereof, may be incorporated in the processor 120 in some embodiments.
The processor 120 may be embodied as any type of processor capable of performing the functions described herein. The processor 120 may be embodied as a single or multi-core processor(s), digital signal processor, microcontroller, or other processor or
processing/controlling circuit. As shown, the processor 120 may include hardware virtualization support 122, secure enclave support 124, and crypto engine programming support 126.
The hardware virtualization support 122 supports virtualized execution of operating systems, applications, and other software by the computing device 100. The hardware virtualization support 122 may include virtual machine extensions (VMX) support by providing two modes of execution: VMX-root mode and VMX non-root mode. The VMX-root mode allows executing software to have broad control of the computing device 100 and its hardware resources. Conversely, a hypervisor, virtual machine monitor (VMM), or host operating system (OS) may execute in VMX-root mode. The VMX non-root mode restricts access to certain hardware instructions while still implementing the ordinary ring/privilege system of the processor 120. One or more guest OSs may execute in the VMX non-root mode. Those guest OSs may execute in ring zero, similar to being executed without virtualization. The hardware virtualization support 122 may also support extended page tables (EPT), which may be embodied as hardware-assisted second-level page address translation. The hardware virtualization support 122 may be embodied as, for example, Intel® VT-x technology.
The secure enclave support 124 allows the processor 120 to establish a secure and/or trusted execution environment known as a secure enclave, in which executing code may be measured, verified, and/or otherwise determined to be authentic. Additionally, code and data included in the secure enclave may be encrypted or otherwise protected from being accessed by code executing outside of the secure enclave. For example, code and data included in the secure enclave may be protected by hardware protection mechanisms of the processor 120 while being executed or while being stored in certain protected cache memory of the processor 120. The code and data included in the secure enclave may be encrypted when stored in a shared cache or the main memory 132. The secure enclave support 124 may be embodied as a set of processor instruction extensions that allows the processor 120 to establish one or more secure enclaves in the memory 132. For example, the secure enclave support 124 may be embodied as Intel® Software Guard Extensions (SGX) technology.
The crypto engine programming support 126 allows the processor 120 to program the crypto engine 140 to provide cryptographic protection of I/O data. The crypto engine programming support 126 may be embodied as one or more specialized processor instructions (e.g., the instructions EBIND and/or UNWRAP) and associated hardware, microcode, firmware,
or other components of the processor 120.
The memory 132 may be embodied as any type of volatile or non-volatile memory or data storage capable of performing the functions described herein. In operation, the memory 132 may store various data and software used during operation of the computing device 100 such as operating systems, applications, programs, libraries, and drivers. The memory 132 is communicatively coupled to the processor 120 via the I/O subsystem 128, which may be embodied as circuitry and/or components to facilitate input/output operations with the processor 120, the memory 132, and other components of the computing device 100. For example, the I/O subsystem 128 may be embodied as, or otherwise include, memory controller hubs, input/output control hubs, platform controller hubs, integrated control circuitry, firmware devices, communication links (i.e., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.) and/or other components and subsystems to facilitate the input/output operations. The I/O subsystem 128 may further include secure routing support 130. The secure routing support 130 may be used with the crypto engine 140 to provide cryptographic protection of I/O data. In some embodiments, the I/O subsystem 128 may form a portion of a system-on-a- chip (SoC) and be incorporated, along with the processor 120, the memory 132, and other components of the computing device 100, on a single integrated circuit chip.
The data storage device 134 may be embodied as any type of device or devices configured for short-term or long-term storage of data such as, for example, memory devices and circuits, memory cards, hard disk drives, solid-state drives, or other data storage devices. In some embodiments, the data storage device 134 may be used to store the contents of one or more secure enclaves. When stored by the data storage device 134, the contents of the secure enclave may be encrypted to prevent unauthorized access.
The communication circuitry 136 of the computing device 100 may be embodied as any communication circuit, device, or collection thereof, capable of enabling communications between the computing device 100 and other remote devices over a network. The
communication circuitry 136 may be configured to use any one or more communication technology (e.g., wired or wireless communications) and associated protocols (e.g., Ethernet, Bluetooth®, Wi-Fi®, WiMAX, etc.) to effect such communication.
In some embodiments, the computing device 100 may include a security engine 138, which may be embodied as any hardware component(s) or circuitry capable of providing security- related services to the computing device 100. In particular, the security engine 138 may include a microprocessor, microcontroller, or other embedded controller capable of executing firmware and/or other code independently and securely from the processor 120. Thus, the security engine
138 may be used to establish a trusted agent or other trusted execution environment separate from code executed by the processor 120. The security engine 138 may communicate with the processor 120 and/or other components of the computing device 100 over a dedicated bus, such as a host embedded controller interface (HECI). The security engine 138 may also provide remote configuration, control, or management of the computing device 100. In the illustrative embodiment, the security engine 138 is embodied as a converged security engine (CSE) incorporated in a system-on-a-chip (SoC) of the computing device 100. In some embodiments, the security engine 138 may be embodied as a manageability engine, a converged security and manageability engine (CSME), an out-of-band processor, a Trusted Platform Module (TPM), or other security engine device or collection of devices. Further, in some embodiments, the security engine 138 is also capable of communicating using the communication circuitry 136 or a dedicated communication circuit independently of the state of the computing device 100 (e.g., independently of the state of the main processor 120), also known as "out-of-band"
communication.
The cryptographic engine 140 may be embodied as any microcontroller, microprocessor, functional block, logic, or other circuit or collection of circuits capable of performing the functions described herein. The cryptographic engine 140 may encrypt and/or decrypt I/O data read or written by the I/O controllers 144 in one or more direct memory access (DMA) operations to the memory 132. The crypto engine 140 includes an internal channel identifier (CID) table 142, which the crypto engine 140 uses to dynamically identify DMA channel(s) to be protected. The CID table 142 may be embodied as or otherwise include content addressable memory (CAM). As described further below, the CID table 142 may be controlled and/or programmed by trusted software, for example using the crypto engine programming support 126 of the processor 120, or the security engine 138. The encryption keys and/or other secret information of the CID table 142 are not available to untrusted software. In some embodiments, the cryptographic engine 140 may be incorporated along with the I/O subsystem 128 and/or the processor 120 in a system-on-a-chip (SoC) of the computing device 100.
Similarly, the I/O controllers 144 may be embodied as any embedded controller, microcontroller, microprocessor, functional block, logic, or other circuit or collection of circuits capable of performing the functions described herein. In some embodiments, one or more of the I/O controllers 144 may be embedded in another component of the computing device 100 such as the I/O subsystem 128 and/or the processor 120. Additionally or alternatively, one or more of the I/O controllers 144 may be connected to the I/O subsystem 128 and/or the processor 120 via an expansion bus such as PCI Express (PCIe) or other I/O connection. As further described
below, the I/O controllers 144 communicate with one or more I/O devices 146, for example over a peripheral communications bus (e.g., USB, Bluetooth, etc.). The I/O devices 146 may be embodied as any I/O device, such as human interface devices, keyboards, mice, touch screens, microphones, and other input devices, as well as displays and other output devices. As described above, the integrated controllers 144 and associated DMA channels are uniquely identified using identifiers called channel identifiers (CIDs).
Referring now to FIG. 2, diagram 200 illustrates an example configuration of the computing device 100 including four I/O controllers 144 with controller IDs 1 to 4 respectively. As shown, controller IOl has one DMA channel with channel ID "10." I/O controller 103 has three DMA channels with Channel IDs "30," "31," and "32," and so on. Trusted software programs the crypto engine (CE) 140 (which, in an embodiment, may be referred to as a central crypto engine) with the CID of the DMA channel used by the trusted software, along with a corresponding secret key. The CE 140 intercepts DMA transactions having the relevant CID and cryptographically processes the DMA data as it is transferred to or from memory 132. The CE 140 writes or reads encrypted data into or from memory 132. Data is transmitted in the clear in the fabric (e.g., in the I/O subsystem 128). However, the I/O subsystem 128 (or processor control hub (PCH) or fabric controller) may provide hardware security 130 that prevents data from being routed to another device by rogue software that reconfigures the PCI Configuration space.
Referring now to FIG. 3, diagram 300 shows at least one embodiment of a USB host controller (xHC) 302 of the computing device 100. The xHC 302 establishes several DMA channels 304 that may securely communicate I/O data with the memory 132, for example using the crypto engine 140 as described further above. The xHC 302 includes a bus interface 306 to connect to the PCIe bus and a root hub 308. The root hub 308 establishes n ports 310. Port n is attached to a trusted I/O (TIO) device 312, which is described further below. The remaining ports 310 (port 1 through port n-X) may be attached to USB devices 314 via USB connections. In some embodiments, the xHC 302 may be embodied as an I/O controller 144 as described above, and the TIO device 312 and the USB devices 314 may be embodied as I/O devices 146 as described above. Thus, the TIO device 312 and/or the USB devices 314 may be capable of secure DMA transfers to memory 132 using the crypto engine 140, via the DMA channels 304.
As shown, the diagram 300 illustrates the TIO device 312 hardwired to the USB host controller 302 root hub 308 port (n). The TIO device 312 appears as a permanently attached USB device. The TIO device 312 may be enumerated the same as any USB device.
When the TIO device 312 is configured, data transfers over its configured endpoints are
encrypted, making them secure. The encrypted endpoints of the USB TIO device 312 provide a secure path between a secure enclave and the host controller 302, or a USB device 314 attached to the host controller 302.
Over this secure path an enclave can issue commands to the host controller 302 to securely determine the set of USB devices 314 currently attached, their characteristics, and their configuration. Note that the host controller 302 is "trusted," i.e., given a command to retrieve information from a USB device 314, the host controller 302 will never return false information. However, it should be understood that the USB devices 314 are not "trusted," that is, a USB device 314 attached to the controller 302 could be compromised.
Additionally, this disclosure allows for the data transmitted or received over an endpoint of a USB device 314 (other than the TIO device 312) to be secured by encrypting the data. While an endpoint of a USB device 314 (other than the TIO device 312) is secured, the TIO device 312 may cause the xHC 302 to block topology change notifications (e.g., of USB device connects or disconnects) to system software, and direct the change notifications to a secure enclave instead. A secure enclave can then determine if a topology change will affect secure operations. If the change does not affect secure operations, then the enclave can signal the TIO device 312 to allow the notification to be forwarded to system software. If the change does affect secure operations, then the secure enclave can cause the TIO device 312 to block the notification or hold it off until after secure operations complete.
Additionally, the TIO device 312 may support Device Class specific features to block access to selected devices 314 or device features while secure operations are occurring.
Architecturally, a USB device supports up to 31 endpoints. Endpoint 0, the Default Control Endpoint, is always enabled. One of more of the remaining endpoints may be enabled when a device is "configured." The Default Control Endpoint of a USB device is used for a variety of "standard" USB operations defined in the USB core specification, for example to enumerate a device and load its driver, to retrieve a device's configuration information, and to select a target configuration. Depending on the Device Class, the Default Control Endpoint may also be used for Device Class specific operations.
The TIO device 312 does not define any TIO Device Class specific operations over the Default Control Endpoint. All secure operations are performed over a pair of Bulk In and Bulk Out endpoints, whose data is encrypted when they are configured.
Referring now to FIG. 4, diagram 400 illustrates communication between the TIO device 312 endpoints and untrusted system software 402 and a secure enclave 404. As described in this disclosure and as shown in FIG. 4, the Control Endpoint operations are (generally) in the clear
and may be accessed by the untrusted System Software 402, and only Configured Endpoints are used to provide secure (encrypted) communication between the TIO device 312 and enclave software 404 (e.g., a secure enclave established with Intel® SGX).
As described above, the TIO device 312 is integrated into the host controller 302. The TIO device 312 provides access to internal host controller 302 registers and data structures, for example to determine the maximum number of devices 314 supported by a controller 302.
The TIO device 312 provides the ability for an enclave 404 to determine the devices 314 currently attached to the host controller 302.
The TIO device 312 provides the ability for an enclave 404 to issue requests to the Default Control Endpoint of any attached device 314. This feature allows an Enclave 404 to securely determine the Device Class, vendor, current configuration, and other properties of a device 314.
The TIO device 312 provides the ability to "lock" the topology, so change notifications are blocked to the standard interface used by the OS, but forwarded through the TIO device 312's secure interface to its managing secure enclave 404.
The TIO device 312 provides the ability for an enclave 404 to "unlock" specific topology changes, so that the topology changes can propagate to the OS (e.g. to system software 402).
The TIO device 312 provides the ability to block specific Control Endpoint request to a device 314, to prevent malicious operations from being performed. For example, some USB Device Classes allow the Control Endpoint to be used to access data that should be kept secure.
Note that the TIO Device 312 features described in this disclosure to enable secure enumeration and management of attached USB devices 314 may be implemented for other bus architectures (e.g., Bluetooth, Wi-Fi, WiGig, PCIe, etc.) to provide secure enumeration and management of their devices.
Referring now to FIG. 5, method 500 illustrates an embodiment of a method for secure I/O device management. In method 500, block 510 includes initializing, by a trusted I/O device integrated in an I/O controller of a computing device, a default control endpoint of the trusted I/O device.
Block 520 includes receiving, by the trusted I/O device, an unencrypted request to configure the trusted I/O device via the default control endpoint. Block 530 includes initializing, by the trusted I/O device, a command output endpoint and a response input endpoint in response to receiving the unencrypted request to configure the trusted I/O device. Block 540 includes receiving, by the trusted I/O device, an encrypted command from a secure enclave of the computing device via the command endpoint, wherein the secure enclave is established using secure enclave support of a processor of the computing device.
Block 550 includes performing, by the trusted I/O device, a device management operation related to the I/O controller in response to receiving the encrypted command. In embodiments, block 550 may also include retrieving state information from the I/O controller to generate an encrypted response. In embodiments, block 550 may also include issuing a request to a default control endpoint of an I/O device coupled to the I/O controller. In embodiments, block 550 may also include blocking a topology change notification indicative of an I/O device connect or an I/O device disconnect to system software, and forwarding the topology change notification to the secure enclave in response to blocking the topology change notification.
Block 560 includes transmitting, by the trusted I/O device, an encrypted response to the secure enclave via the response endpoint in response to performing the device management operation.
Illustrative examples of the technologies disclosed herein are provided below. An embodiment of the technologies may include any one or more, and any combination of, the examples described below.
Example 1 includes a computing device for secure I/O device management, the computing device comprising a processor having secure enclave support, wherein the processor is to establish a secure enclave using the secure enclave support; and an I/O controller including an integrated trusted I/O device, wherein the trusted I/O device is to (i) initialize a default control endpoint of the trusted I/O device, (ii) receive a unencrypted request to configure the trusted I/O device via the default control endpoint, (iii) initialize a command endpoint and a response endpoint in response to receipt of the unencrypted request, (iv) receive an encrypted command from the secure enclave via the command endpoint, (v) perform a device management operation related to the I/O controller in response to receipt of the encrypted command; and (vi) transmit an encrypted response to the secure enclave via the response endpoint in response to
performance of the device management operation.
Example 2 includes the subject matter of Example 1, and wherein to perform the device management operation comprises to retrieve state information from the I/O controller to generate the encrypted response.
Example 3 includes the subject matter of any of Examples 1 and 2, and wherein to perform the device management operation comprises to issue a request to a default control endpoint of an I/O device coupled to the I/O controller.
Example 4 includes the subject matter of any of Examples 1-3, and wherein to perform the device management operation comprises to block a topology change notification indicative of an I/O device connect or an I/O device disconnect, and forward the topology change notification to
the secure enclave in response to a blocking of the topology change notification.
Example 5 includes the subject matter of any of Examples 1 -4, and wherein the I/O controller comprises a USB host controller including a root hub, and the trusted I/O device comprises a USB device permanently coupled to a port of the root hub of the USB host controller.
Example 6 includes a method for secure I/O device management, the method comprising initializing, by a trusted I/O device integrated in an I/O controller of a computing device, a default control endpoint of the trusted I/O device; receiving, by the trusted I/O device, an unencrypted request to configure the trusted I/O device via the default control endpoint;
initializing, by the trusted I/O device, a command endpoint and a response endpoint in response to receiving the unencrypted request to configure the trusted I/O device; receiving, by the trusted I/O device, an encrypted command from a secure enclave of the computing device via the command endpoint, wherein the secure enclave is established using secure enclave support of a processor of the computing device; performing, by the trusted I/O device, a device management operation related to the I/O controller in response to receiving the encrypted command; and transmitting, by the trusted I/O device, an encrypted response to the secure enclave via the response endpoint in response to performing the device management operation.
Example 7 includes the subject matter of Example 6, and wherein performing the device management operation comprises retrieving state information from the I/O controller to generate the encrypted response.
Example 8 includes the subject matter of any of Examples 6 and 7, and wherein performing the device management operation comprises issuing a request to a default control endpoint of an I/O device coupled to the I/O controller.
Example 9 includes the subject matter of any of Examples 6-8, and wherein performing the device management operation comprises blocking a topology change notification indicative of an I/O device connect or an I/O device disconnect, and forwarding the topology change notification to the secure enclave in response to blocking the topology change notification.
Example 10 includes the subject matter of any of Examples 6-9, and wherein the I/O controller comprises a USB host controller including a root hub, and the trusted I/O device comprises a USB device permanently coupled to a port of a root hub of the USB host controller.
Example 1 1 includes a computing device comprising a processor and a memory having stored therein a plurality of instructions that when executed by the processor cause the computing device to perform the method of any of Examples 6-10.
Example 12 includes one or more machine readable storage media comprising a plurality
of instructions stored thereon that in response to being executed result in a computing device performing the method of any of Examples 6-10.
Example 13 includes a computing device comprising means for performing the method of any of Examples 6-10.
Claims
1. An apparatus comprising:
a processor having secure execution environment support, wherein the processor is to establish a secure execution environment using the secure execution environment support; and an input/output (I/O) controller including an integrated trusted I/O device, wherein the trusted I/O device is to receive a unencrypted request to configure the trusted I/O device via a default control endpoint of the trusted I/O device, configure a command endpoint and a response endpoint in response to receipt of the unencrypted request, receive an encrypted command from the secure execution environment via the command endpoint, perform a device management operation related to the I/O controller in response to receipt of the encrypted command; and transmit an encrypted response to the secure execution environment via the response endpoint in response to performance of the device management operation.
2. The apparatus of claim 1, wherein to perform the device management operation includes to retrieve state information from the I/O controller to generate the encrypted response.
3. The apparatus of claim 1, wherein to perform the device management operation includes to issue a request to a default control endpoint of an I/O device coupled to the I/O controller.
4. The apparatus of claim 1, wherein to perform the device management operation includes to:
block a topology change notification indicative of an I/O device connect or an I/O device disconnect, and
forward the topology change notification to the secure execution environment in response to a blocking of the topology change notification.
5. The apparatus of claim 1, wherein:
the I/O controller comprises a Universal Serial Bus (USB) host controller including a root hub, and
the trusted I/O device comprises a USB device permanently coupled to a port of the root hub of the USB host controller.
6. A method comprising:
receiving, by a trusted input output (I/O) device integrated in an I/O controller of a computing device, an unencrypted request to configure the trusted I/O device via a default control endpoint of the trusted I/O device;
configuring, by the trusted I/O device, a command endpoint and a response endpoint in response to receiving the unencrypted request to configure the trusted I/O device;
receiving, by the trusted I/O device, an encrypted command from a secure execution
environment of the computing device via the command endpoint, wherein the secure execution environment is established using secure execution environment support of a processor of the computing device;
performing, by the trusted I/O device, a device management operation related to the I/O controller in response to receiving the encrypted command; and
transmitting, by the trusted I/O device, an encrypted response to the secure execution environment via the response endpoint in response to performing the device management operation.
7. The method of claim 6, wherein performing the device management operation comprises retrieving state information from the I/O controller to generate the encrypted response.
8. The method of claim 6, wherein performing the device management operation comprises issuing a request to a default control endpoint of an I/O device coupled to the I/O controller.
9. The method of claim 6, wherein performing the device management operation includes: blocking a topology change notification indicative of an I/O device connect or an I/O device disconnect; and
forwarding the topology change notification to the secure execution environment in response to blocking the topology change notification.
10. The method of claim 6, wherein:
the I/O controller includes a universal serial bus (USB) host controller including a root hub; and the trusted I/O device comprises a USB device permanently coupled to a port of a root hub of the USB host controller.
11. A system comprising:
a memory;
a processor having secure execution environment support, wherein the processor is to establish a secure execution environment using the secure execution environment support;
a first input/output (I/O) controller including an integrated trusted I/O device, wherein the trusted I/O device is to receive a unencrypted request to configure the trusted I/O device via a default control endpoint of the trusted I/O device, configure a command endpoint and a response endpoint in response to receipt of the unencrypted request, receive an encrypted command from the secure execution environment via the command endpoint, perform a device management operation related to the I/O controller in response to receipt of the encrypted command; and transmit an encrypted response to the secure execution environment via the response endpoint in response to performance of the device management operation; and
a second I/O controller to communicate with a first untrusted I/O device.
12. The system of claim 1 1 , further comprising a cryptographic engine to provide on-the-fly encryption and decryption of data transferred via direct memory access (DMA) operations from and to the first untrusted I/O device.
13. The system of claim 12, wherein the cryptographic engine includes an internal channel identifier (CID) table to dynamically identify a DMA channel associated with the first untrusted I/O device.
14. The system of claim 13, further comprising security hardware to prevent the data from being routed to a second untrusted I/O device.
15. The apparatus of claim 1 , wherein the I/O controller includes registers to which the trusted I/O device provides access.
16. The apparatus of claim 1 , wherein the trusted I/O device is to provide internal state of the I/O controller to the secure execution environment.
17. The apparatus of claim 1 , wherein the trusted I/O device provides for topology change notifications to be blocked to an interface to an operating system.
18. The apparatus of claim 17, wherein the trusted I/O device provides for topology change notifications to be forwarded to the secure execution environment.
19. The apparatus of claim 18, wherein the trusted I/O device provides for topology change notifications to propagate from the secure execution environment to the operating system.
20. The apparatus of claim 1 , wherein the trusted I/O device provides for blocking control endpoint requests to an untrusted I/O device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201680038970.8A CN107787495B (en) | 2015-07-31 | 2016-06-20 | Secure input/output device management |
EP16833459.7A EP3329416B1 (en) | 2015-07-31 | 2016-06-20 | Secure input/output device management |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201562199687P | 2015-07-31 | 2015-07-31 | |
US62/199,687 | 2015-07-31 | ||
US15/010,785 US10140457B2 (en) | 2015-07-31 | 2016-01-29 | Secure input/output device management |
US15/010,785 | 2016-01-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017023434A1 true WO2017023434A1 (en) | 2017-02-09 |
Family
ID=57882950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2016/038378 WO2017023434A1 (en) | 2015-07-31 | 2016-06-20 | Secure input/output device management |
Country Status (5)
Country | Link |
---|---|
US (1) | US10140457B2 (en) |
EP (1) | EP3329416B1 (en) |
CN (1) | CN107787495B (en) |
TW (1) | TWI703469B (en) |
WO (1) | WO2017023434A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10635605B2 (en) | 2018-03-13 | 2020-04-28 | International Business Machines Corporation | Shared memory inter-enclave communication |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10140457B2 (en) * | 2015-07-31 | 2018-11-27 | Intel Corporation | Secure input/output device management |
US10740494B2 (en) * | 2017-09-06 | 2020-08-11 | Google Llc | Central and delegate security processors for a computing device |
US10664416B2 (en) * | 2017-12-29 | 2020-05-26 | Intel Corporation | Technologies for trusted I/O support for I/O devices using external peripheral device link controller |
EP4155996A1 (en) | 2018-04-30 | 2023-03-29 | Google LLC | Enclave interactions |
CN112005237B (en) * | 2018-04-30 | 2024-04-30 | 谷歌有限责任公司 | Secure collaboration between processors and processing accelerators in a secure zone |
US11494485B2 (en) | 2018-04-30 | 2022-11-08 | Google Llc | Uniform enclave interface |
US20220004635A1 (en) * | 2021-09-21 | 2022-01-06 | Intel Corporation | Computing peripheral interface management mechanism |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040210760A1 (en) * | 2002-04-18 | 2004-10-21 | Advanced Micro Devices, Inc. | Computer system including a secure execution mode-capable CPU and a security services processor connected via a secure communication path |
EP1473617A2 (en) | 2003-05-02 | 2004-11-03 | Microsoft Corporation | Dynamic substitution of USB-data for on-the-fly encryption and decryption |
US20050144476A1 (en) * | 2000-11-22 | 2005-06-30 | Microsoft Corporation | Method and system for allowing code to be securely intialized in a computer |
US20070294745A1 (en) * | 2006-02-27 | 2007-12-20 | Shee-Yen Tan | Method and System For Multi-Level Security Initialization and Configuration |
US8165301B1 (en) * | 2006-04-04 | 2012-04-24 | Bitmicro Networks, Inc. | Input-output device and storage controller handshake protocol using key exchange for data security |
US20140188732A1 (en) | 2012-12-31 | 2014-07-03 | Ncr Corporation | Secure provisioning manifest for controlling peripherals attached to a computer |
US20150058637A1 (en) | 2013-08-20 | 2015-02-26 | Janus Technologies, Inc. | Method and apparatus for transparently encrypting and decrypting computer interface data |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6945454B2 (en) * | 2003-04-22 | 2005-09-20 | Stmicroelectronics, Inc. | Smart card device used as mass storage device |
US20050015611A1 (en) * | 2003-06-30 | 2005-01-20 | Poisner David I. | Trusted peripheral mechanism |
US8640194B2 (en) * | 2004-08-25 | 2014-01-28 | Nec Corporation | Information communication device and program execution environment control method |
US7886353B2 (en) * | 2005-03-25 | 2011-02-08 | Microsoft Corporation | Accessing a USB host controller security extension using a HCD proxy |
US7761618B2 (en) * | 2005-03-25 | 2010-07-20 | Microsoft Corporation | Using a USB host controller security extension for controlling changes in and auditing USB topology |
US7716389B1 (en) * | 2006-03-17 | 2010-05-11 | Bitmicro Networks, Inc. | Direct memory access controller with encryption and decryption for non-blocking high bandwidth I/O transactions |
US8725123B2 (en) * | 2008-06-05 | 2014-05-13 | Headwater Partners I Llc | Communications device with secure data path processing agents |
US8332557B2 (en) * | 2008-12-12 | 2012-12-11 | Qualcomm, Incorporated | System, apparatus, and method for broadcasting USB data streams |
US8181176B2 (en) * | 2010-06-21 | 2012-05-15 | Intel Corporation | Uniform storage device access using partial virtual machine executing within a secure enclave session |
WO2013040241A1 (en) * | 2011-09-13 | 2013-03-21 | Privatecore, Inc. | Software cryptoprocessor |
US9152825B2 (en) * | 2012-02-29 | 2015-10-06 | Apple Inc. | Using storage controller bus interfaces to secure data transfer between storage devices and hosts |
US9419972B2 (en) * | 2012-03-30 | 2016-08-16 | Intel Corporation | Two dimensional direct memory access scheme for enhanced network protocol processing performance |
US9026712B2 (en) * | 2012-06-25 | 2015-05-05 | Intel Corporation | USB device control using endpoint type detection during enumeration |
GB2503436A (en) * | 2012-06-26 | 2014-01-01 | Ibm | A client server system for processing one or more events |
US9448950B2 (en) * | 2013-12-24 | 2016-09-20 | Intel Corporation | Using authenticated manifests to enable external certification of multi-processor platforms |
US9734092B2 (en) * | 2014-03-19 | 2017-08-15 | Facebook, Inc. | Secure support for I/O in software cryptoprocessor |
US9811654B2 (en) * | 2014-06-11 | 2017-11-07 | Dell Products L.P. | Systems and methods for providing authentication using a managed input/output port |
US10248791B2 (en) * | 2015-07-20 | 2019-04-02 | Intel Corporation | Technologies for secure hardware and software attestation for trusted I/O |
US10140457B2 (en) * | 2015-07-31 | 2018-11-27 | Intel Corporation | Secure input/output device management |
-
2016
- 2016-01-29 US US15/010,785 patent/US10140457B2/en active Active
- 2016-06-20 CN CN201680038970.8A patent/CN107787495B/en active Active
- 2016-06-20 EP EP16833459.7A patent/EP3329416B1/en active Active
- 2016-06-20 WO PCT/US2016/038378 patent/WO2017023434A1/en active Application Filing
- 2016-06-20 TW TW105119319A patent/TWI703469B/en active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050144476A1 (en) * | 2000-11-22 | 2005-06-30 | Microsoft Corporation | Method and system for allowing code to be securely intialized in a computer |
US20040210760A1 (en) * | 2002-04-18 | 2004-10-21 | Advanced Micro Devices, Inc. | Computer system including a secure execution mode-capable CPU and a security services processor connected via a secure communication path |
EP1473617A2 (en) | 2003-05-02 | 2004-11-03 | Microsoft Corporation | Dynamic substitution of USB-data for on-the-fly encryption and decryption |
US20070294745A1 (en) * | 2006-02-27 | 2007-12-20 | Shee-Yen Tan | Method and System For Multi-Level Security Initialization and Configuration |
US8165301B1 (en) * | 2006-04-04 | 2012-04-24 | Bitmicro Networks, Inc. | Input-output device and storage controller handshake protocol using key exchange for data security |
US20140188732A1 (en) | 2012-12-31 | 2014-07-03 | Ncr Corporation | Secure provisioning manifest for controlling peripherals attached to a computer |
US20150058637A1 (en) | 2013-08-20 | 2015-02-26 | Janus Technologies, Inc. | Method and apparatus for transparently encrypting and decrypting computer interface data |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10635605B2 (en) | 2018-03-13 | 2020-04-28 | International Business Machines Corporation | Shared memory inter-enclave communication |
Also Published As
Publication number | Publication date |
---|---|
TWI703469B (en) | 2020-09-01 |
US20170032132A1 (en) | 2017-02-02 |
TW201712589A (en) | 2017-04-01 |
CN107787495A (en) | 2018-03-09 |
EP3329416B1 (en) | 2021-02-24 |
CN107787495B (en) | 2022-05-17 |
EP3329416A4 (en) | 2019-03-27 |
EP3329416A1 (en) | 2018-06-06 |
US10140457B2 (en) | 2018-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10140457B2 (en) | Secure input/output device management | |
US20230110230A1 (en) | Technologies for secure i/o with memory encryption engines | |
EP3582129B1 (en) | Technologies for secure hardware and software attestation for trusted i/o | |
EP3326104B1 (en) | Technologies for secure trusted i/o access control | |
US9563457B2 (en) | Enabling a secure environment through operating system switching | |
CN107851151B (en) | Protecting state information of virtual machines | |
EP3326103B1 (en) | Technologies for trusted i/o for multiple co-existing trusted execution environments under isa control | |
US9575790B2 (en) | Secure communication using a trusted virtual machine | |
EP3326105B1 (en) | Technologies for secure programming of a cryptographic engine for secure i/o | |
US10372628B2 (en) | Cross-domain security in cryptographically partitioned cloud | |
US11755753B2 (en) | Mechanism to enable secure memory sharing between enclaves and I/O adapters | |
US20190228159A1 (en) | Technologies for filtering memory access transactions received from one or more accelerators via coherent accelerator link | |
US20190138755A1 (en) | Technologies for filtering memory access transactions received from one or more i/o devices | |
US10339082B2 (en) | Technologies for stable secure channel identifier mapping for static and dynamic devices | |
US10592663B2 (en) | Technologies for USB controller state integrity protection | |
US10824766B2 (en) | Technologies for authenticated USB device policy enforcement | |
CN112181860B (en) | Controller with flash memory simulation function and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16833459 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2016833459 Country of ref document: EP |