DIGNALEGI

The reading room · Digna Legi

Griotte verification effort

A personal relevance score

80–100: high value. 70–79: worth the time. Below 70: below the usual publication threshold.

Evidence-reviewed score based on available publisher text. The text contains sampling gaps and does not include the proof artifacts; claims of validation apply to the authors' stated setup.

Scores reflect one reader’s profile, not an objective quality rating. Best is a separate personal selection.

How scoring works →

This brief · about 3 min with detail

Original article ↗

Why read this

Security proofs exposed two isolation failures when their model expanded to include exceptions, stack-clearing optimisations and an untrusted scheduler.

AI brief · Checked against source text

The main idea

Griotte verifies CHERIoT’s compartment-switching machinery against arbitrary, potentially malicious code by describing the authority that code can exercise, directly and indirectly. Extending a simplified model to include exceptions, concurrency and a stack-clearing optimisation exposed two security bugs: the added features broke assumptions behind earlier proofs. The account illustrates how formal verification can discover faulty invariants while establishing precisely bounded security guarantees.

Technical reading. Capability-based security, machine instruction sets, formal logic and operating-system context switching.

Go a little deeper

Authority extends beyond accessible memory

A capability is a permission-bearing reference, but its consequences need not stop at the memory it directly exposes. Read access can reveal further capabilities; access to a protected counter function can permit incrementing without permitting arbitrary modification. Griotte must describe these constrained effects precisely enough to preserve useful guarantees, including no-capture: shared access cannot be retained across calls when the relevant permission is removed.

A contract for unknown code

The method combines line-by-line proofs of known code with a conservative description of everything unknown code might do. This description acts as a universal contract for calls across compartments. Separation logic’s frame rule then preserves resources outside that contract’s reach, provided the proof establishes their separation and the safety of every shared capability. Unknown implementation details become manageable through explicit limits on authority.

A failed proof can identify a broken invariant

The stack high watermark records how far stack writes extend so the switcher can clear only used space. A malicious caller could manipulate stack bounds so that returning from a callee faulted before clearing its private data. Relaxing the assumed watermark invariant did not rescue the proof: it instead required proving that this fault was safe, exposing the uncleared stack as the actual vulnerability.

A case from the article

An exited thread retains dangerous authority

An untrusted scheduler could restart an exited thread using registers left from an earlier interruption, recovering capabilities that should no longer survive. The fix separated confidentiality from scheduling policy: clear the saved registers, then make the exited thread wait idly for interrupts. Because the scheduler could already run an idle thread, this behaviour added no scheduling power while removing stale authority.

How the case is made

The researchers trace two failed proof obligations to concrete attacks, merged fixes and subsequent proof completion.

Where the idea has limits

The reported guarantees assume correct initialisation by an unverified loader. The final proofs use the authoritative instruction-set model; the account expresses confidence in the upstream switcher without claiming instruction-by-instruction verification of that implementation.

A question to take away · from Digna Legi

Which security assumptions in your system depend on a component behaving politely even though the threat model treats it as hostile?

What the original adds

The source details the stack-bound restriction that repaired the watermark bug, explains how a particular loader execution can be checked, and locates Griotte alongside complementary processor-verification work.

About this brief

AI-written, then separately checked for source support, useful detail and clarity. The author’s claims and our editorial question are kept separate. The original remains the author’s work. How we select and summarise →

Digna legi. Worth reading.