使用 Insecurity Separation Logic 的组合式漏洞检测(扩展版)
Compositional Vulnerability Detection with Insecurity Separation Logic (Extended Version)
AI总结:
本文提出下近似关系型程序逻辑 InsecSL,通过基于 bi-abduction 的符号执行支持交互式类 C 程序中内存安全与信息泄露的组合式、增量检测,并在两种实现上进行评估。
摘要:
众所周知,内存安全问题和信息泄露普遍存在,情况令人沮丧。我们考虑在一阶类 C 程序中对这些类型的漏洞进行组合式静态检测。事实上,后者属于关系型超安全违规,需要比较成对的程序执行,因此比前者更难检测,因为前者只需要对单次执行进行推理。现有的符号化泄露检测方法只处理非交互式程序,从而规避了非确定性带来的挑战。此外,由于它们是全程序分析,无法一次只应用于一个函数,因此排除了增量分析的可能性。为弥补这些不足,我们提出了 Insecurity Separation Logic(InsecSL),这是一种下近似关系型程序逻辑,可可靠地检测交互式程序中的信息泄露和内存安全问题。重要的是,InsecSL 对成对执行进行推理,因此是关系型的,但它有意类似于已在 Infer 工具中实现自动化的非关系型 Incorrectness Separation Logic(ISL)。我们展示了如何通过基于双蕴含(bi-abduction)的符号执行来自动化 InsecSL,并在多个案例研究上评估了这一思想的两种实现(其中一种基于 Infer)。
英文摘要:
Memory-safety issues and information leakage are known to be depressingly common. We consider the compositional static detection of these kinds of vulnerabilities in first-order C-like programs. Indeed the latter are relational hyper-safety violations, comparing pairs of program executions, making them more challenging to detect than the former, which require reasoning only over individual executions. Existing symbolic leakage detection methods treat only non-interactive programs, avoiding the challenges of nondeterminism. Also, being whole-program analyses they cannot be applied one-function-at-a-time, thereby ruling out incremental analysis. We remedy these shortcomings by presenting Insecurity Separation Logic (InsecSL), an under-approximate relational program logic for soundly detecting information leakage and memory-safety issues in interactive programs. Importantly, InsecSL reasons about pairs of executions, and so is relational, but purposefully resembles the non-relational Incorrectness Separation Logic (ISL) that is already automated in the Infer tool. We show how InsecSL can be automated by bi-abduction based symbolic execution, and we evaluate two implementations of this idea (one based on Infer) on various case-studies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。