引用本文:张协力,祝跃飞,顾纯祥,陈熹.C2P:基于Pi演算的协议C代码形式化抽象方法和工具.软件学报,2021,32(6):1581-1596
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3053次   下载 6952 本文二维码信息
码上扫一扫!
分享到: 微信 更多
C2P:基于Pi演算的协议C代码形式化抽象方法和工具
张协力1,2, 祝跃飞1,2, 顾纯祥1,2, 陈熹1,2
1.数学工程与先进计算国家重点实验室, 河南 郑州 450001;2.网络密码技术河南省重点实验室, 河南 郑州 450002
摘要:
形式化方法为安全协议分析提供了理论工具,但经过形式化验证过的协议标准在转换为具体程序实现时,可能无法满足相应的安全属性.为此,提出了一种检测安全协议代码语义逻辑错误的形式化验证方法.通过将协议C源码自动化抽象为Pi演算模型,基于Pi演算模型对协议安全属性形式化验证.最后给出了方案转换的正确性证明,并通过对Kerberos协议实例代码验证表明方法的有效性.根据该方案实现了自动化模型抽象工具C2P与成熟的协议验证工具ProVerif结合,能够为协议开发者或测试人员检测代码中的语义逻辑错误提供帮助.
关键词:  协议实现  形式化验证  Pi演算  模型抽取  ProVerif
DOI:10.13328/j.cnki.jos.006238
分类号:
基金项目:国家重点研发计划(2019QY1302)
C2P: Formal Abstraction Method and Tool for C Protocol Code Based on Pi Caculus
ZHANG Xie-Li1,2, ZHU Yue-Fei1,2, GU Chun-Xiang1,2, CHEN Xi1,2
1.State Key Laboratory of Mathematical Engineering and Advanced Computing, Zhengzhou 450001, China;2.Henan Key Laboratory of Network Cryptography Technology, Zhengzhou 450002, China
Abstract:
Formal method provides a theoretical tool for security protocol analysis, but the theoretical security is not equivalent to the actual security. A verified protocol standard may not meet the required security properties when converted into a concrete program. Hence, a formal verification method for detecting semantic logic errors in security protocol code is proposed. By automatically abstracting the C source code of the protocol into Pi calculus model, protocol security properties are verified based on the Pi calculus. Finally, the correctness of the scheme transformation is proved and the validity of the method is verified by a Kerberos protocol instance code. C2P tools implemented can help protocol developers to detect semantic logic errors in code.
Key words:  protocol implementation  formal verification  Pi calculus  model extraction  ProVerif

引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览次   下载  
分享到: 微信 更多
摘要:
关键词:  
DOI:
分类号:
基金项目:
Abstract:
Key words: