首页 | 官方网站   微博 | 高级检索  
     

C2P:基于Pi演算的协议C代码形式化抽象方法和工具
引用本文:张协力,祝跃飞,顾纯祥,陈熹.C2P:基于Pi演算的协议C代码形式化抽象方法和工具[J].软件学报,2021,32(6):1581-1596.
作者姓名:张协力  祝跃飞  顾纯祥  陈熹
作者单位:数学工程与先进计算国家重点实验室, 河南 郑州 450001;网络密码技术河南省重点实验室, 河南 郑州 450002
基金项目:国家重点研发计划(2019QY1302)
摘    要:形式化方法为安全协议分析提供了理论工具,但经过形式化验证过的协议标准在转换为具体程序实现时可能无法满足相应的安全属性.为此,提出了一种检测安全协议代码语义逻辑错误的形式化验证方法.通过将协议C源码自动化抽象为Pi演算模型,基于Pi演算模型对协议安全属性形式化验证.最后,给出了方案转换的正确性证明,并通过对Kerberos协议实例代码验证表明方法的有效性.根据该方案实现了自动化模型抽象工具C2P与成熟的协议验证工具ProVerif结合,能够为协议开发者或测试人员检测代码中的语义逻辑错误提供帮助.

关 键 词:协议实现  形式化验证  Pi演算  模型抽取  ProVerif
收稿时间:2020/7/29 0:00:00
修稿时间:2020/12/19 0:00:00

C2P: Formal Abstraction Method and Tool for C Protocol Code Based on Pi Caculus
ZHANG Xie-Li,ZHU Yue-Fei,GU Chun-Xiang,CHEN Xi.C2P: Formal Abstraction Method and Tool for C Protocol Code Based on Pi Caculus[J].Journal of Software,2021,32(6):1581-1596.
Authors:ZHANG Xie-Li  ZHU Yue-Fei  GU Chun-Xiang  CHEN Xi
Affiliation:State Key Laboratory of Mathematical Engineering and Advanced Computing, Zhengzhou 450001, China;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.
Keywords:Protocol implementation  formal verification  Pi calculus  model extraction  ProVerif
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号