Skip to main navigation Skip to search Skip to main content

SICK KEEB - Securing the Internal Components of a Keyboard to Defend Against Keystroke Exfiltration via Evil Maid or BadUSB Attacks

  • Jürgen Günter Waldl

    Student thesis: Master's Thesis

    Abstract

    As early as the 1980s, keystroke logging– also referred to as “keylogging”– was docu
    mented as a carried out attack. Although typewriters were used back then, the principle
    still applies today to keyboards, which serve as input devices for computer workstations.
    However, protection against keyloggers is primarily provided by the operating system
    or as additional software in programs such as antivirus software, since remote attacks
    pose less risk to an attacker due to the widespread networking of modern computer
    systems. Nevertheless, the use and technological advancement of hardware keyloggers
    remain a relevant and verifiable issue even today, as inconspicuous USB cables with
    built-in microcontroller and keylogging capabilities are now freely available on the mar
    ket. USB keyboards transmit data in plain text, and their simple design does not, by
    default, provide users with any means of protecting themselves against attacks on the
    communication channel or the platform.
    This master’s thesis therefore proposes a secure keyboard that not only commu
    nicates using encryption but is also designed to protect against hardware attacks. At
    the very least, the user is notified that the system is not in a trusted state and that
    caution is advised. To this end, sample workflows are designed for system startup, the
    provisioning of a user certificate, establishing a connection with mutual authentication,
    and the transmission of data in encrypted messages. The connection between the key
    board and the computer is established through mutual certificate-based authentication,
    whereby the keyboard’s system status is incorporated into the certificate generation
    process using the DICE Layering Architecture. The standardized open-source protocols
    MCTP and SPDM were used for communication to avoid the issues associated with
    proprietary solutions. These protocols are distinguished by their native implementation
    in the Linux kernel (MCTP, MCTP over USB), the registration of a dedicated USB
    class by the USB Implementers Forum (MCTP over USB), and their recognition as an
    ISO/IEC standard (SPDM, SPDM over MCTP). In an initial prototype, the function
    ality of data transmission via MCTP over USB, as well as the detection of key inputs
    on the host, was tested. Due to the recent implementation of MCTP over USB in the
    Linux kernel and the fact that it has not yet been implemented in the official SPDM
    development tool, SPDM communication via MCTP was tested separately. It remains
    to be seen whether a userspace program for the SPDM functionalities will be created
    and whether a USB device based on this concept will actually be developed.
    Date of Award2026
    Original languageEnglish (American)
    Awarding Institution
    • FH OÖ
    SupervisorMarkus Zeilinger (Supervisor)

    Studyprogram

    • Secure Information Systems

    Cite this

    '