Cache Refinement Type for Side-Channel Detection of Cryptographic Software
Ke Jiang, Yuyan Bao, Shuai Wang, Zhibo Liu, Tianwei Zhang

TL;DR
This paper introduces CaType, a static analysis tool using refinement types over x86 assembly to detect cache side-channel vulnerabilities in cryptographic software, offering high precision, scalability, and effectiveness.
Contribution
CaType is the first to analyze cache side channels with refinement types on assembly code, considering blinding defenses and using cache layouts to reduce false positives.
Findings
CaType detects all known vulnerabilities in tested crypto software.
CaType finds previously unknown side-channel vulnerabilities.
CaType is significantly faster than existing tools, with 16X and 131X speed improvements.
Abstract
Cache side-channel attacks exhibit severe threats to software security and privacy, especially for cryptosystems. In this paper, we propose CaType, a novel refinement type-based tool for detecting cache side channels in crypto software. Compared to previous works, CaType provides the following advantages: (1) For the first time CaType analyzes cache side channels using refinement type over x86 assembly code. It reveals several significant and effective enhancements with refined types, including bit-level granularity tracking, distinguishing different effects of variables, precise type inferences, and high scalability. (2) CaType is the first static analyzer for crypto libraries in consideration of blinding-based defenses. (3) From the perspective of implementation, CaType uses cache layouts of potential vulnerable control-flow branches rather than cache states to suppress false…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Advanced Malware Detection Techniques · Cryptographic Implementations and Security
