The security of firmware and hardware components has become increasingly important in recent years, due to the widespread distribution of embedded devices and specialized processors. Weaknesses in these layers can undermine the entire system's security and enable sophisticated attacks. However, their analysis remains challenging due to the diversity of architectures, limited observability, and the lack of mature tools. This thesis addresses these challenges by proposing novel techniques for the systematic, automated security analysis of both firmware and hardware components, following the lifecycle of a device: from verifying the correctness of a design, through analyzing the firmware that runs on it, to attacking the protection mechanisms it exposes once deployed. At the design stage, we show how to systematically analyze processor designs to identify bugs and underspecifications, reducing the manual effort that dominates hardware verification. At the firmware level, we present static and dynamic analysis techniques applied to firmware images, including a methodology for recovering structural information (the target instruction-set architecture and the boundaries between code and data regions) from raw images, and a concolic-execution-based approach to improve the accuracy of peripheral modeling during firmware re-hosting. Finally, we demonstrate how hardware debug interfaces and hardware-based control-flow protections can expose residual attack surfaces that undermine the isolation and control-flow integrity guarantees on which the platform relies. These contributions advance the state of the art in hardware and firmware security analysis, providing tools and methodologies for the security assessment of low-level components.
La sicurezza delle componenti firmware e hardware è diventata sempre più rilevante negli ultimi anni, a causa della diffusione capillare dei dispositivi embedded e dei processori specializzati. Vulnerabilità presenti a questi livelli possono compromettere la sicurezza dell'intero sistema e consentire attacchi sofisticati. Ciononostante, l'analisi di queste componenti presenta diverse sfide a causa della disomogeneità delle architetture, della limitata osservabilità delle componenti di basso livello e della mancanza di strumenti di analisi completi e maturi. Questa tesi affronta queste sfide proponendo nuove tecniche e metodologie per l'analisi sistematica della sicurezza delle componenti firmware e hardware, organizzate secondo il ciclo di vita di un dispositivo: dalla verifica della correttezza del design, all'analisi del firmware eseguito dal dispositivo, fino all'attacco dei meccanismi di protezione che il dispositivo espone una volta rilasciato. Riguardo alla fase di design, questa tesi dimostra come analizzare sistematicamente il design di un processore per identificare e spiegare bug e ambiguità nella specifica dell'architettura, riducendo lo sforzo manuale che domina il processo di verifica dell'hardware. A livello del firmware, la tesi presenta tecniche di analisi statica e dinamica applicate a immagini firmware, incluse una metodologia per recuperare informazioni strutturali da immagini estratte dalla memoria di dispositivi embedded (quali, ad esempio, l'instruction-set architecture e i confini tra le sezioni di codice e dati), e un approccio basato su concolic execution per migliorare la fedeltà dei modelli di periferiche nel contesto del re-hosting di firmware. Infine, questa tesi dimostra che, quando un dispositivo viene rilasciato, le interfacce di debug hardware e i meccanismi hardware di protezione del control flow possono esporre superfici di attacco residue che minano le garanzie di isolamento e integrità del control flow sulle quali la piattaforma fa affidamento. Questi contributi avanzano lo stato dell'arte nell'analisi della sicurezza dei componenti hardware e firmware, fornendo strumenti e metodologie per la valutazione della sicurezza dei componenti di basso livello.
Novel methodologies for the security analysis of firmware and hardware components
Bertani, Alessandro
2026
Abstract
The security of firmware and hardware components has become increasingly important in recent years, due to the widespread distribution of embedded devices and specialized processors. Weaknesses in these layers can undermine the entire system's security and enable sophisticated attacks. However, their analysis remains challenging due to the diversity of architectures, limited observability, and the lack of mature tools. This thesis addresses these challenges by proposing novel techniques for the systematic, automated security analysis of both firmware and hardware components, following the lifecycle of a device: from verifying the correctness of a design, through analyzing the firmware that runs on it, to attacking the protection mechanisms it exposes once deployed. At the design stage, we show how to systematically analyze processor designs to identify bugs and underspecifications, reducing the manual effort that dominates hardware verification. At the firmware level, we present static and dynamic analysis techniques applied to firmware images, including a methodology for recovering structural information (the target instruction-set architecture and the boundaries between code and data regions) from raw images, and a concolic-execution-based approach to improve the accuracy of peripheral modeling during firmware re-hosting. Finally, we demonstrate how hardware debug interfaces and hardware-based control-flow protections can expose residual attack surfaces that undermine the isolation and control-flow integrity guarantees on which the platform relies. These contributions advance the state of the art in hardware and firmware security analysis, providing tools and methodologies for the security assessment of low-level components.| File | Dimensione | Formato | |
|---|---|---|---|
|
phd_thesis_Bertani.pdf
embargo fino al 07/07/2027
Licenza:
Tutti i diritti riservati
Dimensione
1.85 MB
Formato
Adobe PDF
|
1.85 MB | Adobe PDF |
I documenti in UNITESI sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/20.500.14242/384788
URN:NBN:IT:POLIMI-384788