Skip to main content
QUICK REVIEW

[Paper Review] Interdiction in Practice -- Hardware Trojan Against a High-Security USB Flash Drive

Pawel Swierczynski, Marc Fyrbiak|IACR Cryptology ePrint Archive|Oct 1, 2019
Physical Unclonable Functions (PUFs) and Hardware SecurityComputer Science4 citations
TL;DR

This paper demonstrates the first practical hardware Trojan insertion into a commercial FIPS-140-2 Level 2 certified USB flash drive by manipulating the FPGA bitstream, turning its AES-256 XTS encryption into a linear, cryptanalyzable function. The attack enables recovery of all user data using just 32 known plaintext-ciphertext pairs, proving that bitstream modification is a viable real-world threat to high-security devices.

ABSTRACT

As part of the revelations about the NSA activities, the notion of interdiction has become known to the public: the interception of deliveries to manipulate hardware in a way that backdoors are introduced. Manipulations can occur on the firmware or at hardware level. With respect to hardware, FPGAs are particular interesting targets as they can be altered by manipulating the corresponding bitstream which configures the device. In this paper, we demonstrate the first successful real-world FPGA hardware Trojan insertion into a commercial product. On the target device, a FIPS-140-2 level 2 certified USB flash drive from Kingston, the user data are encrypted using AES-256 in XTS mode, and the encryption/decryption is processed by an off-the-shelf SRAM-based FPGA. Our investigation required two reverse-engineering steps, related to the proprietary FPGA bitstream and to the firmware of the underlying ARM CPU. In our Trojan insertion scenario, the targeted USB flash drive is intercepted before being delivered to the victim. The physical Trojan insertion requires the manipulation of the SPI flash memory content, which contains the FPGA bitstream as well as the ARM CPU code. The FPGA bitstream manipulation alters the exploited AES-256 algorithm in a way that it turns into a linear function which can be broken with 32 known plaintext-ciphertext pairs. After the manipulated USB flash drive has been used by the victim, the attacker is able to obtain all user data from the ciphertexts. Our work indeed highlights the security risks and especially the practical relevance of bitstream modification attacks that became realistic due to FPGA bitstream manipulations.

Motivation & Objective

  • To investigate the feasibility of real-world hardware Trojan insertion into a commercially certified high-security USB flash drive.
  • To assess the security risks posed by bitstream manipulation in FPGAs used in trusted devices.
  • To demonstrate that even FIPS-140-2 Level 2 certified products can be compromised via low-level FPGA logic modification.
  • To evaluate the practicality of cryptanalysis on a weakened AES-256 implementation in XTS mode.

Proposed method

  • Reverse-engineered the proprietary Xilinx FPGA bitstream of a Kingston DataTraveler 5000 USB flash drive.
  • Modified the AES-256 IP core in the bitstream to convert it into a linear function, rendering it vulnerable to cryptanalysis.
  • Inserted a hardware Trojan that captures plaintext-ciphertext pairs and initial sector numbers during normal operation.
  • Wrote a malicious firmware payload to store the captured pairs in the SPI flash for later exfiltration.
  • Exploited the XTS mode's properties to decrypt all ciphertexts using only 32 known pairs.
  • Verified the plaintext recovery in practice on the modified device.

Experimental results

Research questions

  • RQ1Can a hardware Trojan be successfully inserted into a commercial, FIPS-140-2 Level 2 certified USB flash drive via FPGA bitstream manipulation?
  • RQ2What are the practical implications of modifying an FPGA bitstream in a real-world, high-security device?
  • RQ3To what extent can a cryptographically secure AES-256 implementation be weakened through low-level logic modification?
  • RQ4How effective is the XTS mode in protecting data when the underlying AES core is made linear?
  • RQ5What countermeasures can prevent such bitstream-based attacks in FPGA-based security systems?

Key findings

  • The FPGA bitstream of a FIPS-140-2 Level 2 certified USB flash drive was successfully reverse-engineered and modified to weaken the AES-256 core.
  • The modified AES-256 core was transformed into a linear function, making it vulnerable to cryptanalysis with only 32 known plaintext-ciphertext pairs.
  • The attack was implemented in practice, and plaintext recovery from encrypted data was successfully verified.
  • The malicious firmware captured and exfiltrated the required cryptographic pairs through the SPI flash, enabling full data recovery.
  • The attack demonstrates that bitstream manipulation is a realistic threat even in high-assurance systems, especially when the FPGA acts as a master device.
  • The study highlights the critical need for bitstream integrity protection, hardware-based self-tests, and HSM-assisted validation in secure embedded systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.