ESBMC-Arduino:弥合开放硬件可编程逻辑控制器形式验证的部署差距
ESBMC-Arduino: Closing the Deployment Gap for Formal Verification of Open-Hardware PLCs
AI总结:
研究针对开放硬件上IEC 61131-3的形式验证,提出硬件忠实验证方法,包括声明性硬件抽象层描述符及合理降维,实例化为ArduinoTool。解决部署差距导致的验证问题,消除误报并保留鲁棒性证明。
摘要:
OpenPLC、Arduino OPTA、CONTROLLINO和Industrial Shields M-Duino将IEC 61131-3引入用于实际自动化和工业控制系统(ICS)安全研究的低成本微控制器。现有的IEC 61131-3开源验证器在具有理想化无界整数的抽象扫描周期模型上证明安全性。板件工件在具有16位字的资源受限微控制器单元(MCU)上运行,传感器通过有限分辨率模数转换器(ADC)读取。我们表明这种部署差距使简单的宽度感知验证不合理:在123个实际程序中,在没有硬件输入模型的情况下检查16位溢出会产生44%的误报(54/123)且未发现真正缺陷,因为它探索的是ADC无法产生的传感器值。由于差距存在于计算与物理过程的交汇处,溢出可能会悄无声息地抑制安全动作。我们提出了针对开放硬件上IEC 61131-3的硬件忠实验证:一个声明性硬件抽象层(HAL)描述符以及合理的降维。我们将其实例化为ArduinoTool,在123个程序语料库上,HAL注释器消除了所有54个误报,同时保留了鲁棒性证明。
英文摘要:
OpenPLC, Arduino OPTA, CONTROLLINO, and Industrial Shields M-Duino bring IEC 61131-3 to low-cost microcontrollers used in real automation and industrial control system (ICS) security research. Existing open-source verifiers for IEC 61131-3, including ESBMC-PLC, prove safety over an abstract scan-cycle model with idealized unbounded integers. The board artifact runs on a resource-constrained microcontroller unit (MCU) with 16-bit words (8-bit AVR Arduinos), and sensors are read via a finite-resolution analog-to-digital converter (ADC). We show this deployment gap makes naive width-aware verification unsound: across 123 real programs, checking 16-bit overflow without a hardware input model yields 44% false alarms (54/123) and finds no genuine defects, because it explores sensor values no ADC can produce. Since the gap lies where computation meets the physical process - a bounded sensor reading scaled by finite-width arithmetic into an actuation command - an overflow can silently suppress a safety action, such as a high-level alarm. An unbounded input model fabricates alarms that no environment can trigger. We present hardware-faithful verification for IEC 61131-3 on open hardware: a declarative hardware abstraction layer (HAL) descriptor (width, ADC/PWM resolution, I/O binding) and a sound lowering that interprets arithmetic at target width and constrains inputs to hardware-realizable ranges. We instantiate it for Arduino as ArduinoTool, deriving HAL parameters from official cores and realizing the input-range model in the ESBMC Ladder Diagram (LD) frontend. On the 123-program corpus, the HAL annotator eliminates all 54 false alarms while preserving robustness proofs, and a controlled corpus demonstrates the rare width-dependent defects it detects with realizable witnesses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。