Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Simulating performance costs of microarchitectural vulnerability mitigations in gem5: An exploratory study
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Simulering av prestandakostnader för mikroarkitekturella sårbarhetsåtgärder i gem5 : En utforskande studie (Swedish)
Abstract [en]

This exploratory study investigates the feasibility of using the gem5 simulator to model the performance costs of side-channel attack (SCA) mitigations in RISC-V processors. Various configuration-level and application-level countermeasures were implemented, including minimal branch prediction, direct-mapped caches, memory fence instructions, and cache flushing. The study evaluated these mitigations using AES-128 encryption workloads of varying sizes and measured the resulting overhead in clock cycles. The results indicate that gem5 is a viable tool for simulating relative performance overheads, with mitigations showing predictable scaling behavior. Direct-mapped caching imposed negligible overhead, while more invasive mitigations like cache flushing introduced significant performance penalties. These findings suggest that gem5 can be effectively used to assess the tradeoffs between security and performance in hardware design, though further validation against real-world hardware is necessary.

Abstract [sv]

Denna utforskande studie undersöker möjligheten att använda gem5-simulatorn för att modellera prestandakostnaderna för åtgärder mot side-channelattacker (SCA) i RISC-V-processorer. Flera konfigurationsnivå- och applikationsnivåmotåtgärder implementerades, inklusive begränsad gren-förutsägelse, direktmappad cache, minnesbarriärer och cache-rensning. Studien utvärderade dessa åtgärder med hjälp av AES-128-krypteringsarbetsbelastningar av olika storlek och mätte den resulterande overheaden i klockcykler. Resultaten visar att gem5 är ett användbart verktyg för att simulera relativa prestandapåverkningar, med förutsägbart skalerande beteende. Direktmappad cache medförde försumbar overhead, medan mer ingripande åtgärder som cache-rensning introducerade betydande prestandastraff. Dessa resultat antyder att gem5 kan användas effektivt för att utvärdera säkerhets- och prestandakompetenser i hårdvarudesign, även om vidare validering mot verklig hårdvara är nödvändig.

Place, publisher, year, edition, pages
2025. , p. 33
Series
TRITA-EECS-EX ; 2025:294
Keywords [en]
Cybersecurity, Hardware security, Side-Channel attacks, Performance evaluation, RISC-V, gem5, Microarchitectural vulnerabilities, Cache mitigation, Simulation
Keywords [sv]
Cybersäkerhet, Hårdvarusäkerhet, Sidokanalsattacker, RISC-V, Prestanda, gem5, Mikroarkitekturella sårbarheter, Cache-skydd, Simulering
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367630OAI: oai:DiVA.org:kth-367630DiVA, id: diva2:1985699
Supervisors
Examiners
Available from: 2025-08-05 Created: 2025-07-27 Last updated: 2025-08-05Bibliographically approved

Open Access in DiVA

fulltext(936 kB)226 downloads
File information
File name FULLTEXT01.pdfFile size 936 kBChecksum SHA-512
8c11a796420fa7baabe0d24c8d39303e09d3e0f3a591d8d4e37a8477c34974185fb5e6ff8a0c6f1e91577e94a00c84b5153a7adf3df3bd80441bda8f0b31b979
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 229 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 710 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf