Not quite a piece of CHERI-cake: Are new digital security by design architectures usable?
Maysara Alhindi, Joseph Hallett · 2025
Read Not quite a piece of CHERI-cake: Are new digital security by design architectures usable? by Maysara Alhindi, Joseph Hallett (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-23682.txt.
Introduction
Maysara Alhindi and Joseph Hallett asked in 2025 whether a new security-first computer design is actually usable by the programmers who must adopt it. The design, CHERI, promises code free of memory safety slips such as buffer overflows. It also changes deep habits of the C language, including how pointers work in hardware.
The pair ran a usability study with developers porting real software to the new design. Developers stumbled over how the system shows warnings and errors. They also found the written guides thin and too alike. The authors conclude that strong safety hardware can still fail its users at the workbench. Better messages and richer guides, they imply, are part of the security bargain.
Catalog record
| CREATOR | Maysara Alhindi, Joseph Hallett |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 52 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2506-23682
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Not quite a piece of CHERI-cake: Are new digital security by design architectures usable? Maysara Alhindi, Joseph Hallett Abstract A digital security-by-design computer architecture, like CHERI, lets you program without fear of buffer overflows or other memory safety errors, but CHERI also rewrites some of the assumptions about how C works and how fundamental types (such as pointers) are implemented in hardware. We conducted a usability study to examine how developers react to the changes required by CHERI when porting software to run on it. We find that developers struggle with CHERI’s display of warnings and errors and a lack of diverse documentation. 1 Introduction Memory correctness errors have been a plague on software development since the dawn of programming. Programming languages, like C and C++, allow programmers to write code that manipulates pointers with little to no checks. Whilst this can allow for some very fast code; it also can lead to bugs, errors and in the worst case the complete compromise of the computer and arbitrary code execution. CHERI [ 22 ] is a novel computer architecture that aims to fix this. Rather than ensuring that the programs do not contain bugs (an approach taken by static analysis tools and safe-programming languages like Haskell or Rust) CHERI changes how pointers are implemented at a hardware level, including bounds and usage information that means that memory correctness errors cause hardware exceptions before they can do any harm. Computers using this new architecture are, slowly, starting to become available to researchers and developers through Arm’s Morello architecture [ 3 ] . CHERI promises that in order for developers to port their software to be run on CHERI-supported hardware, they only need to implement minimal changes. But if a program is doing pointer arithmetic or switching between integers and pointers, as is sometimes done in C, then changes can become necessary, and can be surprising to low-level programmers. An example of changes developers have to undertake is shown in Listing 1 [ 21 ] . Developers do not have to set the capability bound or permissions, as all of such details are inferred by the compiler, but they have to use correct data types and adhere to some patterns. Listing 1: This change is made to use a provenance-preserving type (a type that preserves the pointers’ capability metadata). This example is provided in CHERI’s introduction guide. ⬇ - char *example_bad(long ptr_or_int) { return strdup((const char *)ptr_or_int); } + char *example_good(intptr_t ptr_or_int) { return strdup((const char *)ptr_or_int); }- This paper explores what happens when developers are faced with a new architecture like CHERI. How do they approach fixing problems and working with code when their mental models and assumptions about how programming languages work are misaligned? What usability smells [ 13 ] (indicators that usability issues may be present) appear when developers are struggling to debug CHERI specific issues. Specifically, this study answers the following research questions: RQ 1. : How do developers deal with CHERI-specific warnings and errors? RQ 2. : What are the current pain points (usability issues) for developers who are new to CHERI? and what can be done to help them? Our findings are as follows: • Developers struggled with CHERI’s display of warnings and errors, and found it challenging to apply their understanding of CHERI’s abstractions to fix the code. • We identified a new usability smell (floundering) to capture when developers try solutions at random in the hopes that something will make the issue go away. • Developers are cautious when approaching a new platform, and small differences can confuse them. Documentation is consulted but developers struggled to find useful help unless the errors are stated explicitly and searchable. • CHERI lacks a targeted, end-developer focused, documentation and tutorials, which leads to developers becoming frustrated. 2 Background and Related Work The security model of CHERI is inspired by a substantial amount of early research that investigated different security models for computer systems [ 2 ] . Based on their work on Multics operating system, Saltzer and Schroeder surveyed different security mechanisms that can be applied to operating systems, and they discussed the concepts of access controls and capabilities [ 15 ] . CHERI implements capability-based security in hardware by associating capability metadata to pointers. Capability-based security is not a new concept, as many different systems were designed to implement such a model. At their core, capabilities represent unforgeable tokens of authority, combining both the identification of a resource and the permissions to perform operations on it. Capability-based models decentralize control and focus on the possession of capabilities as the determinant of access, if a process holds a capability, it can use the associated resource with the specified rights. This model of access makes delegation straightforward, as capabilities can be passed directly between entities without requiring additional permission checks, it also avoids falling into the confused deputy problem, where a process is tricked into using its higher-level privileges to perform actions on behalf of a malicious user [ 11 ] . There is a wide spectrum of solutions that implement capability-based security, ranging from sandboxing mechanisms like Capsicum to programming languages like E, and full operating systems such as Hydra [ 23 , 14 ] . Fuchsia is a more recent example of operating systems that adopt a capability-based security model [ 6 ] . Fuchsia adopts a capability-based model by representing all system resources as objects, where the security model is based on the possession of unforgeable handles to objects. 2.1 Usable Security Several researches highlighted the usability issues associated with security software [ 10 , 12 , 17 ] . When it comes to security APIs, there is a lot of work around the usability of crypto APIs, such as the work by Acar et al. that compares the usability of different crypto APIs, and the work by Mindermann et al. that focuses on crypto APIs in Rust. There are other studies that investigate the usability of sandboxing and access control mechanisms. Schreuders et al conducted a usability study to assess the usability of SELinux, AppArmor, and their own solution FBAC-LSM. The researchers found out that SELinux and AppArmor are not designed with usability in mind [ 16 ] . Alhindi et al. conducted a usability study on Seccomp and found that developers approach implementing a sandbox in completely different ways, and that sometimes, the usabiliy issues associated with Seccomp lead to developers implementing an ineffective sandbox [ 1 ] . CHERI platform promises to improve the security of programs and prevent a wide range of memory vulnerabilities to be exploited. Most of the time, developers do not need to make many changes to run on CHERI-supported hardware. We find that whilst the changes required are rare, they do cause significant confusion. 2.2 Usability Smells Developers struggle to use security and crypto APIs. Green and Smith suggested 10 principles to help API developers ensure that their APIs are both usable and secure [ 8 ] . Patnaik et al. took these principles and looked for signs that they were being violated in over 2,000 Stack Overflow posts [ 13 ] . Taking inspiration from Fowler’s code smells [ 5 ] , they identified 16 usability