arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01363cs.PL
收藏

通过双模拟实现可信的运行时验证(扩展经验报告)

Trustworthy Runtime Verification via Bisimulation (Extended Experience Report)

Galois, Inc.(Galois公司);NASA Langley Research Center(美国国家航空航天局兰利研究中心);Amazon(亚马逊)

Ryan G. Scott, Ivan Perez, Alwyn E. Goodloe, Mike Dodds, Robert Dockins

AI总结:

提出CopilotVerifier,利用SMT技术自动生成C编译器的正确性证明,确保监控器与编译后代码行为等价且无崩溃,以低成本大幅提升编译器可信度。

摘要:

当运行时验证用于监控安全关键系统时,监控代码的正确性至关重要。Copilot运行时验证框架通过从嵌入在Haskell中的高级DSL自动生成C监控程序来实现这一目标。在安全关键领域,每个部署的代码片段都必须附有令人信服的人工审计保证论证。然而,审计人员很难确信编译后的监控器不会崩溃,并且实现了Copilot语义所需的行为。在本文中,我们描述了CopilotVerifier,它与Copilot编译器并行运行,为编译输出生成正确性证明。该证明表明,给定的Copilot监控器及其编译形式在等价输入上产生等价输出,并且它们要么在相同情况下崩溃,要么不会崩溃。该证明采用双模拟的形式,分解为一组验证条件。我们利用了两个基于SMT的技术:用于LLVM的Crucible符号执行库和What4求解器接口库。我们的结果表明,通过基于现有工具,可以以适中的成本实现显著提高的编译器可信度。这为我们最终生成令人信服的人工审计形式保证论证铺平了道路。

英文摘要:

When runtime verification is used to monitor safety-critical systems, it is essential that monitoring code behaves correctly. The Copilot runtime verification framework pursues this goal by automatically generating C monitor programs from a high-level DSL embedded in Haskell. In safety-critical domains, every piece of deployed code must be accompanied by an assurance argument that is convincing to human auditors. However, it is difficult for auditors to determine with confidence that a compiled monitor cannot crash and implements the behavior required by the Copilot semantics. In this paper we describe CopilotVerifier, which runs alongside the Copilot compiler, generating a proof of correctness for the compiled output. The proof establishes that a given Copilot monitor and its compiled form produce equivalent outputs on equivalent inputs, and that they either crash in identical circumstances or cannot crash. The proof takes the form of a bisimulation broken down into a set of verification conditions. We leverage two pieces of SMT-backed technology: the Crucible symbolic execution library for LLVM and the What4 solver interface library. Our results demonstrate that dramatically increased compiler assurance can be achieved at moderate cost by building on existing tools. This paves the way to our ultimate goal of generating formal assurance arguments that are convincing to human auditors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑