Lune

CCS2026Top-tier venue

Mind the Heap: Preventing Capability Leakage Across CHERI Compartments

Seyedhamed Ghavamnia, Maurice D. Hanisch, Julien Vanegue

2026Year

Abstract

CAPability Warding by Automatically Restricting Dereference. Artifact for Mind the Heap: Preventing Capability Propagation Across CHERI Compartments. CHERI's library compartmentalization isolates code, but not the heap: a pointer handed across a compartment boundary remains a fully dereferenceable capability, so a compromised compartment can read and write any object it has ever been given. CAPWARD closes that gap automatically. It analyses a program's LLVM IR to find every struct type shared across a compartment boundary, decides which of them the non-owning compartment never actually dereferences, and rewrites the IR to seal those pointers with CHERI hardware seal/unseal operations at the boundary. A sealed capability can be stored and passed around but not dereferenced, so a pointer that leaks into a compromised compartment is inert there. The repository contains the analysis and instrumentation toolchain, the orchestration needed to apply it to real applications, the Rocq formalization, and the measurements reported in the paper.

Ask about this paper

Ask your agent about it.

Lune has read the top-tier papers around this one, so every answer names the papers it rests on.

Questions to start from

Your agent calls

Lunesearch_papers

Ask in Lune

Free to start. No credit card required.

lune papers get 2e59f8f9-ef18-420f-a182-608f84b0f059

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines