首页> 外国专利> METHOD FOR CONTROL-FLOW INTEGRITY PROTECTION, APPARATUS, DEVICE AND STORAGE MEDIUM

METHOD FOR CONTROL-FLOW INTEGRITY PROTECTION, APPARATUS, DEVICE AND STORAGE MEDIUM

机译:控制流完整性保护,装置,装置和存储介质的方法

摘要

Embodiments of the present invention provide a method for control-flow integrity protection, an apparatus, a device and a storage medium. The method includes: changing preset bits of all legal target addresses of a current indirect branch instruction in a control flow of a program to be protected to be same; and rewriting preset bits of a current target address of the current indirect branch instruction to be same as the preset bits of the legal target addresses, so that the program to be protected terminates when the current target address is tampered with. In the embodiments of the present invention, by changing the preset bits of all the legal target addresses of the current indirect branch instruction to be same and rewriting the preset bits of the current target address to be consistent with the preset bits of the legal target addresses, traditional label comparison is replaced by the preset bit overlap operation, reducing performance overhead and improving attack defense efficiency; and the program, when tampered with, terminates as an error in a target instruction triggers an abnormality, which realizes a fine-grained control-flow integrity protection and improves the security and reliability of control-flow integrity protection.
机译:本发明的实施例提供了一种用于控制流动完整性保护,装置,装置和存储介质的方法。该方法包括:在要保护的程序的控制流程中更改当前间接分支指令的所有合法目标地址的预设位;并将当前间接分支指令的当前目标地址的预设位重写为与合法目标地址的预设位相同,从而当当前目标地址被篡改时,要保护的程序终止。在本发明的实施例中,通过将当前间接分支指令的所有合法目标地址的预设位改变为相同并重写当前目标地址的预设位,以与合法目标地址的预设位保持一致,传统的标签比较被预设的位重叠操作所取代,降低性能开销并提高攻击防御效率;和该程序在篡改时,终止于目标指令中的错误触发异常,这意味着细粒度的控制流完整性保护,并提高了控制流完整性保护的安全性和可靠性。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号