从高层类型到低层监控:为MAVLink合成验证的运行时检查器
From High-Level Types to Low-Level Monitors: Synthesizing Verified Runtime Checkers for MAVLink
AI总结:
本文提出Platum框架,通过最小化的DSL实现MAVLink协议的验证运行时检查器,减少监控延迟和内存开销。
摘要:
标准无人机通信协议如MAVLink缺乏强制消息序列上下文有效性的能力。自动驾驶仪仍易受隐蔽攻击,即语法正确但语义不及时的命令导致不安全状态而不触发物理异常检测器。先前工作(DATUM)表明全局细化多方会话类型(RMPSTs)是集中MAVLink协议强制的有效规范语言,但存在两个工程问题:手动证明术语与协议定义交织,以及一个OCaml提取后端,其管理运行时与资源受限无人机硬件不兼容。我们提出Platum框架,通过最小化的DSL解决这两个问题,仅需全局会话类型的五个语义组件(发送者、接收者、标签、负载变量、细化谓词),其结构正确性条件通过Meta-F*中的反射决策程序确认。确认的规范直接编译为扁平、无分配的C有限状态机(FSMs),部署为集中式代理监控器,在GCS/无人机通信边界。我们的评估显示总监控延迟减少4倍,与DATUM相比内存开销更低,通过ArduPilot SITL模拟测量。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。