paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Data-Driven Synthesis of Provably Sound Side Channel Analyses

数据驱动的可证可靠侧信道分析合成
ICSE 2021 IEEE/ACM 43rd International Conference on Software Engineering (ICSE)2021匹配度 5/10 · 论文用数据驱动/SyGuS/决策树合成可证可靠的侧信道静态分析器,属于“AI→PL”中学习辅助静态分析与形式化保证的范畴;但不涉及LLM/Agent,也不属于浮点或贝叶斯程序分析,且应用为侧信道而非用户核心的ML/Agent程序分析。引用 24 inbox
Jingbo Wang, Chungha Sung, Mukund Raghothaman, Chao Wang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出数据驱动方法自动合成可证可靠的侧信道静态分析器,并用查询包含检查保证规则可靠性。

本文研究如何自动合成用于检测密码软件侧信道信息泄漏的静态分析器,避免手工构建分析器繁琐、易错且次优的问题。方法以带真值标注的代码片段作为训练数据,学习一组类型推断规则:内部使用语法引导合成(SyGuS)生成新的递归特征,再用决策树学习基于这些特征生成分析规则。为保证可靠性,作者通过查询包含检查证明每条学习到的分析规则。该技术已在 LLVM 编译器中实现,用于检测实现密码协议的 C 程序中的功耗侧信道。实验表明,该分析器在合成过程中既可自动又具有可证可靠性,同时达到两个最先进手工分析器的经验精度,并分别快 300 倍和 900 倍。

问题
手工构建检测密码软件侧信道泄漏的静态分析器繁琐、易错且次优,如何自动合成此类分析器并保证其可靠性。
方法
以带标注的代码片段为训练数据,用语法引导合成(SyGuS)生成递归特征,再用决策树学习生成类型推断规则,并通过查询包含检查证明每条规则的可靠性。
评估
在 LLVM 中实现该技术,用于检测 C 语言密码协议实现中的功耗侧信道;与两个最先进的手工分析器相比,精度相同且分别快 300 倍和 900 倍。
原文摘要(Abstract)

We propose a data-driven method for synthesizing static analyses to detect side-channel information leaks in cryptographic software. Compared to the conventional way of manually crafting such static analyzers, which can be tedious, error prone and suboptimal, our learning-based technique is not only automated but also provably sound. Our analyzer consists of a set of type-inference rules learned from the training data, i.e., example code snippets annotated with the ground truth. Internally, we use syntax-guided synthesis (SyGuS) to generate new recursive features and decision tree learning (DTL) to generate analysis rules based on these features. We guarantee soundness by proving each learned analysis rule via a technique called query containment checking. We have implemented our technique in the LLVM compiler and used it to detect power side channels in C programs that implement cryptographic protocols. Our results show that, in addition to being automated and provably sound during synthesis, our analyzer can achieve the same empirical accuracy as two state-of-the-art, manually-crafted analyzers while being 300X and 900X faster, respectively.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{WangSRW21,
  title = {Data-Driven Synthesis of Provably Sound Side Channel Analyses},
  author = {Jingbo Wang and Chungha Sung and Mukund Raghothaman and Chao Wang},
  booktitle = {ICSE},
  year = {2021},
  doi = {10.1109/icse43902.2021.00079}
}