[Paper Review] The Unpatchable Silicon: A Full Break of the Bitstream Encryption of Xilinx 7-Series FPGAs
The paper presents two low-cost attacks that completely break the bitstream encryption of Xilinx 7-Series FPGAs (and partially Virtex-6), using the FPGA as a decryption oracle and CBC malleability to forge authentic encrypted bitstreams.
The security of FPGAs is a crucial topic, as any vulnerability within the hardware can have severe consequences, if they are used in a secure design. Since FPGA designs are encoded in a bitstream, securing the bitstream is of the utmost importance. Adversaries have many motivations to recover and manipulate the bitstream, including design cloning, IP theft, manipulation of the design, or design subversions e.g., through hardware Trojans. Given that FPGAs are often part of cyber-physical systems e.g., in aviation, medical, or industrial devices, this can even lead to physical harm. Consequently, vendors have introduced bitstream encryption, offering authenticity and confidentiality. Even though attacks against bitstream encryption have been proposed in the past, e.g., side-channel analysis and probing, these attacks require sophisticated equipment and considerable technical expertise. In this paper, we introduce novel low-cost attacks against the Xilinx 7-Series (and Virtex-6) bitstream encryption, resulting in the total loss of authenticity and confidentiality. We exploit a design flaw which piecewise leaks the decrypted bitstream. In the attack, the FPGA is used as a decryption oracle, while only access to a configuration interface is needed. The attack does not require any sophisticated tools and, depending on the target system, can potentially be launched remotely. In addition to the attacks, we discuss several countermeasures.
Motivation & Objective
- Motivate the importance of protecting FPGA bitstreams in secure, mission-critical deployments.
- Demonstrate practical attacks that completely compromise authenticity and confidentiality of Xilinx 7-Series bitstreams.
- Show that the attacks can be conducted with limited equipment and potentially remote access.
- Analyze implications and discuss countermeasures to mitigate such vulnerabilities.
Proposed method
- Describe the adversary model and assumed access to JTAG/SelectMAP interfaces and the encrypted bitstream.
- Exploit CBC malleability in AES-256 CBC mode to alter the decrypted bitstream content.
- Use the FPGA’s MultiBoot (WBSTAR) mechanism to read out decrypted bitstream data word-by-word.
- Construct malicious bitstreams that cause the FPGA to leak decrypted data via a readout path.
- Demonstrate a second attack that enables forging legitimate encrypted bitstreams by manipulating the HMAC and CBC chain.
Experimental results
Research questions
- RQ1Can Xilinx 7-Series bitstream encryption be defeated to fully disclose the decrypted bitstream?
- RQ2Can an attacker use the FPGA as a decryption oracle to recover the entire bitstream with sequential word-level reads?
- RQ3Can CBC malleability be leveraged to forge authentic encrypted bitstreams by tampering the HMAC?
- RQ4What are viable countermeasures to preserve authenticity and confidentiality of bitstreams against these attacks?
Key findings
- The attacks yield total loss of bitstream authenticity and confidentiality for Xilinx 7-Series and partial loss for Virtex-6 devices.
- A complete Kintex-7 XC7K160T bitstream can be decrypted in 3 hours and 42 minutes using the described approach.
- The attacker can manipulate the HMAC via CBC malleability to forge legitimate encrypted bitstreams.
- The FPGA is effectively used as a decryption oracle, accessible through standard configuration interfaces (JTAG/SelectMAP), potentially enabling remote or semi-remote exploitation.
- Countermeasures are discussed, noting that patches are not feasible without silicon changes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.