From High-Level Types to Low-Level Monitors: Synthesizing Verified Runtime Checkers for MAVLink

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Amorim, Arthur, Gazzillo, Paul, Taylor, Max, Joneckis, Lance
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917384064860160
author Amorim, Arthur
Gazzillo, Paul
Taylor, Max
Joneckis, Lance
author_facet Amorim, Arthur
Gazzillo, Paul
Taylor, Max
Joneckis, Lance
contents Standard communication protocols for Unmanned Aerial Vehicles (UAVs), such as MAVLink, lack the capability to enforce the contextual validity of message sequences. Autopilots therefore remain vulnerable to stealthy attacks, where syntactically correct but semantically ill-timed commands induce unsafe states without triggering physical anomaly detectors. Prior work (DATUM) demonstrated that global Refined Multiparty Session Types (RMPSTs) are an effective specification language for centralized MAVLink protocol enforcement, but suffered from two engineering failures: manual proof terms interleaved with protocol definitions, and an OCaml extraction backend whose managed runtime is incompatible with resource-constrained UAV hardware. We present Platum, a framework that addresses both failures with a minimal DSL requiring only the five semantic components of a global session type (sender, receiver, label, payload variable, refinement predicate), whose structural well-formedness conditions are confirmed via reflective decision procedures in Meta-F*. Confirmed specifications are compiled directly into flat, allocation-free C Finite State Machines (FSMs), deployed as centralized proxy monitors at the GCS/UAV communication boundary. Our evaluation demonstrates a 4x reduction in total monitor latency and lower memory overhead compared to DATUM, measured via ArduPilot SITL simulation.
format Preprint
id arxiv_https___arxiv_org_abs_2604_03886
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle From High-Level Types to Low-Level Monitors: Synthesizing Verified Runtime Checkers for MAVLink
Amorim, Arthur
Gazzillo, Paul
Taylor, Max
Joneckis, Lance
Cryptography and Security
Formal Languages and Automata Theory
Standard communication protocols for Unmanned Aerial Vehicles (UAVs), such as MAVLink, lack the capability to enforce the contextual validity of message sequences. Autopilots therefore remain vulnerable to stealthy attacks, where syntactically correct but semantically ill-timed commands induce unsafe states without triggering physical anomaly detectors. Prior work (DATUM) demonstrated that global Refined Multiparty Session Types (RMPSTs) are an effective specification language for centralized MAVLink protocol enforcement, but suffered from two engineering failures: manual proof terms interleaved with protocol definitions, and an OCaml extraction backend whose managed runtime is incompatible with resource-constrained UAV hardware. We present Platum, a framework that addresses both failures with a minimal DSL requiring only the five semantic components of a global session type (sender, receiver, label, payload variable, refinement predicate), whose structural well-formedness conditions are confirmed via reflective decision procedures in Meta-F*. Confirmed specifications are compiled directly into flat, allocation-free C Finite State Machines (FSMs), deployed as centralized proxy monitors at the GCS/UAV communication boundary. Our evaluation demonstrates a 4x reduction in total monitor latency and lower memory overhead compared to DATUM, measured via ArduPilot SITL simulation.
title From High-Level Types to Low-Level Monitors: Synthesizing Verified Runtime Checkers for MAVLink
topic Cryptography and Security
Formal Languages and Automata Theory
url https://arxiv.org/abs/2604.03886