<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-12-05T03:08:00Z</responseDate><request verb="GetRecord" identifier="oai:www.repository.cam.ac.uk:1810/391516" metadataPrefix="uketd_dc">https://api.repository.cam.ac.uk/server/oai/request</request><GetRecord><record><header><identifier>oai:www.repository.cam.ac.uk:1810/391516</identifier><datestamp>2025-10-31T02:01:47Z</datestamp><setSpec>com_1810_219481</setSpec><setSpec>com_1810_256065</setSpec><setSpec>col_1810_219482</setSpec></header><metadata><uketd_dc:uketddc xmlns:uketd_dc="http://naca.central.cranfield.ac.uk/ethos-oai/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:uketdterms="http://naca.central.cranfield.ac.uk/ethos-oai/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:doc="http://www.lyncode.com/xoai" xsi:schemaLocation="http://naca.central.cranfield.ac.uk/ethos-oai/2.0/ http://naca.central.cranfield.ac.uk/ethos-oai/2.0/uketd_dc.xsd">
   <dc:title>A practical, comprehensive and accessible binary framework for security</dc:title>
   <dc:identifier xsi:type="dcterms:DOI">https://doi.org/10.17863/CAM.122629</dc:identifier>
   <dc:creator>Arif, Mahwish</dc:creator>
   <uketdterms:advisor>Jones, Timothy</uketdterms:advisor>
   <dcterms:abstract>Securing binaries is a critical challenge in an ever-evolving security landscape, particularly
with vulnerable legacy and third-party software. Existing frameworks retrofit security
through static rewriting or dynamic run-time modification. Static approaches struggle with
precise control flow recovery, leading to unsound binaries or limited binary support. Dynamic
approaches, while more comprehensive, incur high performance costs. Additionally,
complexities of binary frameworks hinder swift development of security solutions. Effective
solutions must balance sound and comprehensive code coverage with high performance to
ensure practical viability, while enabling developer productivity.
To address these, I first introduce Janitizer, a hybrid static-dynamic binary framework
that overcomes the limitations of static and dynamic-only techniques. It optimises dynamic
modification using static analysis to enforce security policies and generate sound binaries,
while employing lightweight dynamic analysis for statically unavailable code for full
coverage. Janitizer distinguishes between statically analysed and unanalysed code to
avoid redundant run-time analysis and supports both position-dependent and positionindependent
code. I demonstrate, through a memory sanitiser and a control-flow integrity
scheme, that Janitizer achieves performance overheads comparable to static techniques
while delivering full coverage previously only achievable with dynamic techniques.
Second, I present Cinnamon, a domain-specific language for binary profiling and
monitoring. Cinnamon simplifies development by providing high-level abstractions for
control flow, data and types, enabling efficient development of such tools. Its programming
model mirrors the typical flow of binary profiling and monitoring tools —control flow
traversal, filtering and instrumentation specification. Cinnamon significantly reduces code
length and complexity by abstracting framework-specific details, while supporting multiple
binary frameworks, ensuring flexibility across static, dynamic and hybrid environments.
Finally, I extend Cinnamon with features that optimise code generation, enable modifications
and improve integration with Janitizer. A memory sanitiser implementation via
Cinnamon highlights how these features enable real-world security techniques and better
integration with Janitizer, achieving performance and coverage comparable to a native Janitizer
version. This contribution concludes in an accessible, end-to-end binary framework
ensuring comprehensive and sound code coverage with low performance overhead.</dcterms:abstract>
   <uketdterms:institution>University of Cambridge</uketdterms:institution>
   <dcterms:issued>2025-03-28</dcterms:issued>
   <dc:type>Thesis</dc:type>
   <uketdterms:qualificationlevel>Doctoral</uketdterms:qualificationlevel>
   <uketdterms:qualificationname>Doctor of Philosophy (PhD)</uketdterms:qualificationname>
   <dc:language>eng</dc:language>
   <dcterms:isReferencedBy xsi:type="dcterms:URI">https://www.repository.cam.ac.uk/handle/1810/391516</dcterms:isReferencedBy>
   <dc:identifier xsi:type="dcterms:URI">https://www.repository.cam.ac.uk/bitstreams/52e09cce-2221-4534-a55d-720d042d3933/download</dc:identifier>
   <uketdterms:checksum xsi:type="uketdterms:MD5">19871c4b259e1f542be736b4ab1add76</uketdterms:checksum>
   <dcterms:license>https://www.repository.cam.ac.uk/bitstreams/5750bb7e-252b-4bff-8b46-dde4064f727b/download</dcterms:license>
   <uketdterms:checksum xsi:type="uketdterms:MD5">87eda9de84448d1f82354d60eee3eb5f</uketdterms:checksum>
   <dc:rights>http://purl.org/NET/rdflicense/allrightsreserved</dc:rights>
   <dc:subject>binary analysis</dc:subject>
   <dc:subject>binary transformation</dc:subject>
   <dc:subject>binary security</dc:subject>
</uketd_dc:uketddc>
</metadata></record></GetRecord></OAI-PMH>