We describe how to verify security properties of C code for cryptographic protocols by using a general-purpose verifier. We prove security theorems in the symbolic model of cryptography. Our techniques include: use of ghost state to attach formal algebraic terms to concrete byte arrays and to detect collisions when two distinct terms map to the same byte array; decoration of a crypto API with contracts based on symbolic terms; and expression of the attacker model in terms of C programs. We rely on the general-purpose verifier VCC; we guide VCC to prove security simply by writing suitable header files and annotations in implementation files, rather than by changing VCC itself. We formalize the symbolic model in Coq in order to justify the addition of axioms to VCC.
Understanding the Usability of Cryptographic Verification Tools
Samsung R&D Institute Bangladesh(三星孟加拉研发中心);Bangladesh University of Engineering and Technology(孟加拉国工程与技术大学);Towson University(陶森大学);The University of Texas at Dallas(德克萨斯大学达拉斯分校)
LLM-Assisted Automatic Security Proofs for Cryptographic Protocols: How Far Are We?
Xi’an Jiaotong University(西安交通大学);Tianjin University(天津大学);Zhejiang Key Laboratory of Artificial Intelligence of Things (AIoT) Network and Data Security(浙江省物联网人工智能网络与数据安全重点实验室);CRSC Research & Design Institute Group Co., Ltd(中国航天科工集团第三研究院(注:CRSC通常指China Aerospace Science and Industry Corporation III, 但此处按字面翻译为 CRSC 研究设计院集团有限公司,若需通用名可译为 中国航天科工集团第三研究院));Sun Yat-sen University(中山大学);Shenzhen Loop Area Institute(深圳河套学院)