{"id":{"repo_id":"adelaide","oai_identifier":"oai:digital.library.adelaide.edu.au:2440/139863"},"canonical_url":"https://search.ndltd.org/etd/adelaide/oai:digital.library.adelaide.edu.au:2440/139863","repository":{"repo_id":"adelaide","name":"University of Adelaide","base_url":"https://digital.library.adelaide.edu.au/server/oai/request"},"display":{"title":"Exploring the Vulnerability of Branch Prediction Unit","abstract":"In recent years, the notable performance improvements in the modern processor can be largely attributed to the incorporation of speculative execution. This feature empowers the processor to make predictions and execute instructions based on assumptions about the program behavior. By speculatively executing instructions that may follow a branch, the processor keeps the pipeline busy and avoids potential stalls caused by waiting for the branch outcome to be determined. Those predictions are made by the branch prediction unit (BPU) based on the past branch history. Over the years, the BPU has become a target of extensive research due to the sensitive information it stores. The objective of this thesis is to explore the security aspect of the BPU through analyzing the structure of the branch target buffer (BTB). In this thesis, we first presents a novel technique called BunnyHop, which transfers the BTB state to the cache state, revealing secrets within the BTB. We develop this technique by reverse engineering the instruction prefetcher. We show that the instruction prefetcher is guided by the BTB. Leveraging the BunnyHop technique, we further reverse engineer the BTB on several recent Intel machines, providing new observations. We find that BTB divides branches into two groups: long branch and short branch. Furthermore, we discover the implementation and the replacement policy within the BTB. Combining the BunnyHop and findings from the BTB reverse engineering, we perform two attacks. One attack targets an openssl implementation of the elliptic curve secp256k1, running inside an Intel software guard extensions (SGX) enclave. We are able to attain a success rate of above 98%. Another attack aims to bypass the Kernel Address Space Layout Randomization (KASLR) on Linux system. We manage to recover the address of kernel image from the user space, breaking the kernel protection boundary. Compared with previous similar attacks, our KASLR attack is significantly faster.","abstract_html":"In recent years, the notable performance improvements in the modern processor can be largely attributed to the incorporation of speculative execution. This feature empowers the processor to make predictions and execute instructions based on assumptions about the program behavior. By speculatively executing instructions that may follow a branch, the processor keeps the pipeline busy and avoids potential stalls caused by waiting for the branch outcome to be determined. Those predictions are made by the branch prediction unit (BPU) based on the past branch history. Over the years, the BPU has become a target of extensive research due to the sensitive information it stores. The objective of this thesis is to explore the security aspect of the BPU through analyzing the structure of the branch target buffer (BTB). In this thesis, we first presents a novel technique called BunnyHop, which transfers the BTB state to the cache state, revealing secrets within the BTB. We develop this technique by reverse engineering the instruction prefetcher. We show that the instruction prefetcher is guided by the BTB. Leveraging the BunnyHop technique, we further reverse engineer the BTB on several recent Intel machines, providing new observations. We find that BTB divides branches into two groups: long branch and short branch. Furthermore, we discover the implementation and the replacement policy within the BTB. Combining the BunnyHop and findings from the BTB reverse engineering, we perform two attacks. One attack targets an openssl implementation of the elliptic curve secp256k1, running inside an Intel software guard extensions (SGX) enclave. We are able to attain a success rate of above 98%. Another attack aims to bypass the Kernel Address Space Layout Randomization (KASLR) on Linux system. We manage to recover the address of kernel image from the user space, breaking the kernel protection boundary. Compared with previous similar attacks, our KASLR attack is significantly faster.","abstract_has_math":false,"creators":["Tao, Mingtian"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":"School of Computer and Mathematical Sciences","contributors":[],"advisors":["Yarom, Yuval","Chuengsatiansup, Chitchanok (University of Melbourne)"],"committee_chairs":[],"committee_members":[],"year":2023,"date_issued":"2023","date_published":"2023","updated_at":"2026-11-19T13:59:48Z","subjects":["BTB","BPU","branch prediction","reverse engineering","side channel attack","SGX","KASLR"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/2440/139863","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/2440/139863","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aadelaide%3Aoai%3Adigital.library.adelaide.edu.au%3A2440%2F139863","prefix":"oai_dc"},"source_record":{"url":"https://digital.library.adelaide.edu.au/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adigital.library.adelaide.edu.au%3A2440%2F139863","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Yarom, Yuval","Chuengsatiansup, Chitchanok (University of Melbourne)"]},{"key":"dc:contributor.school","label":"School","values":["School of Computer and Mathematical Sciences"]},{"key":"dc:creator","label":"Author","values":["Tao, Mingtian"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.issued","label":"Date","values":["2023"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["BTB","BPU","branch prediction","reverse engineering","side channel attack","SGX","KASLR"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2440/139863"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["In recent years, the notable performance improvements in the modern processor can be largely attributed to the incorporation of speculative execution. This feature empowers the processor to make predictions and execute instructions based on assumptions about the program behavior. By speculatively executing instructions that may follow a branch, the processor keeps the pipeline busy and avoids potential stalls caused by waiting for the branch outcome to be determined. Those predictions are made by the branch prediction unit (BPU) based on the past branch history. Over the years, the BPU has become a target of extensive research due to the sensitive information it stores. The objective of this thesis is to explore the security aspect of the BPU through analyzing the structure of the branch target buffer (BTB). In this thesis, we first presents a novel technique called BunnyHop, which transfers the BTB state to the cache state, revealing secrets within the BTB. We develop this technique by reverse engineering the instruction prefetcher. We show that the instruction prefetcher is guided by the BTB. Leveraging the BunnyHop technique, we further reverse engineer the BTB on several recent Intel machines, providing new observations. We find that BTB divides branches into two groups: long branch and short branch. Furthermore, we discover the implementation and the replacement policy within the BTB. Combining the BunnyHop and findings from the BTB reverse engineering, we perform two attacks. One attack targets an openssl implementation of the elliptic curve secp256k1, running inside an Intel software guard extensions (SGX) enclave. We are able to attain a success rate of above 98%. Another attack aims to bypass the Kernel Address Space Layout Randomization (KASLR) on Linux system. We manage to recover the address of kernel image from the user space, breaking the kernel protection boundary. Compared with previous similar attacks, our KASLR attack is significantly faster."]},{"key":"dc:description.dissertation","label":"Dc Description Dissertation","values":["Thesis (MPhil.) -- University of Adelaide, School of Computer and Mathematical Sciences, 2023"]},{"key":"dc:description.provenance","label":"Dc Description Provenance","values":["This electronic version is made publicly available by the University of Adelaide in accordance with its open access policy for student theses. Copyright in this thesis remains with the author. This thesis may incorporate third party material which has been used by the author pursuant to Fair Dealing exceptions. If you are the owner of any included third party copyright material you wish to be removed from this electronic version, please complete the take down form located at: http://www.adelaide.edu.au/legals"]},{"key":"dc:title","label":"Title","values":["Exploring the Vulnerability of Branch Prediction Unit"]}]}],"canonical_facts":{"dc:contributor.advisor":["Yarom, Yuval","Chuengsatiansup, Chitchanok (University of Melbourne)"],"dc:contributor.school":["School of Computer and Mathematical Sciences"],"dc:creator":["Tao, Mingtian"],"dc:date.issued":["2023"],"dc:description.abstract":["In recent years, the notable performance improvements in the modern processor can be largely attributed to the incorporation of speculative execution. This feature empowers the processor to make predictions and execute instructions based on assumptions about the program behavior. By speculatively executing instructions that may follow a branch, the processor keeps the pipeline busy and avoids potential stalls caused by waiting for the branch outcome to be determined. Those predictions are made by the branch prediction unit (BPU) based on the past branch history. Over the years, the BPU has become a target of extensive research due to the sensitive information it stores. The objective of this thesis is to explore the security aspect of the BPU through analyzing the structure of the branch target buffer (BTB). In this thesis, we first presents a novel technique called BunnyHop, which transfers the BTB state to the cache state, revealing secrets within the BTB. We develop this technique by reverse engineering the instruction prefetcher. We show that the instruction prefetcher is guided by the BTB. Leveraging the BunnyHop technique, we further reverse engineer the BTB on several recent Intel machines, providing new observations. We find that BTB divides branches into two groups: long branch and short branch. Furthermore, we discover the implementation and the replacement policy within the BTB. Combining the BunnyHop and findings from the BTB reverse engineering, we perform two attacks. One attack targets an openssl implementation of the elliptic curve secp256k1, running inside an Intel software guard extensions (SGX) enclave. We are able to attain a success rate of above 98%. Another attack aims to bypass the Kernel Address Space Layout Randomization (KASLR) on Linux system. We manage to recover the address of kernel image from the user space, breaking the kernel protection boundary. Compared with previous similar attacks, our KASLR attack is significantly faster."],"dc:description.dissertation":["Thesis (MPhil.) -- University of Adelaide, School of Computer and Mathematical Sciences, 2023"],"dc:description.provenance":["This electronic version is made publicly available by the University of Adelaide in accordance with its open access policy for student theses. Copyright in this thesis remains with the author. This thesis may incorporate third party material which has been used by the author pursuant to Fair Dealing exceptions. If you are the owner of any included third party copyright material you wish to be removed from this electronic version, please complete the take down form located at: http://www.adelaide.edu.au/legals"],"dc:identifier.uri":["https://hdl.handle.net/2440/139863"],"dc:language.iso":["en"],"dc:subject":["BTB","BPU","branch prediction","reverse engineering","side channel attack","SGX","KASLR"],"dc:title":["Exploring the Vulnerability of Branch Prediction Unit"],"dc:type":["Thesis"]},"updated_at":"2026-11-19T13:59:48Z"}