We consider the problem of measuring how much a system reveals about its secret inputs. We work under the black-box setting: we assume no prior knowledge of the system's internals, and we run the system for choices of secrets and measure its leakage from the respective outputs. Our goal is to estimate the Bayes risk, from which one can derive some of the most popular leakage measures (e.g., min-entropy, additive, and multiplicative leakage). The state-of-the-art method for estimating these leakage measures is the frequentist paradigm, which approximates the system's internals by looking at the frequencies of its inputs and outputs. Unfortunately, this does not scale for systems with large output spaces, where it would require too many input-output examples. Consequently, it also cannot be applied to systems with continuous outputs (e.g., time side channels, network traffic). In this paper, we exploit an analogy between Machine Learning (ML) and black-box leakage estimation to show that the Bayes risk of a system can be estimated by using a class of ML methods: the universally consistent learning rules; these rules can exploit patterns in the input-output examples to improve the estimates' convergence, while retaining formal optimality guarantees. We focus on a set of them, the nearest neighbor rules; we show that they significantly reduce the number of black-box queries required for a precise estimation whenever nearby outputs tend to be produced by the same secret; furthermore, some of them can tackle systems with continuous outputs. We illustrate the applicability of these techniques on both synthetic and real-world data, and we compare them with the state-of-the-art tool, leakiEst, which is based on the frequentist approach.
Automated Template-free Synthesis of Instruction-Centric Leakage Contracts for Black-Box CPUs
IMDEA Software Institute(IMDEA软件研究所);Universidad Politécnica de Madrid(马德里理工大学);CISPA Helmholtz Center for Information Security(CISPA亥姆霍兹信息安全中心);Saarland University(萨尔兰大学);Northeastern University(东北大学);University of Trento(特伦托大学);KTH Royal Institute of Technology(瑞典皇家理工学院)
Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation
Department of Electrical Engineering and Computer Science(电气工程与计算机科学系);Embry-Riddle Aeronautical University(埃姆布里-里德尔航空大学);Department of Mathematics(数学系)
ComMark: Covert and Robust Black-Box Model Watermarking with Compressed Samples
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);College of Computer Science, Nankai University(南开大学计算机学院)
Inria(法国国家信息与自动化研究所);École Polytechnique(巴黎综合理工学院);IPP(巴黎理工学院);Università di Siena(锡耶纳大学);University of Athens(雅典大学);CentraleSupelec(中央理工-高等电力学院);CNRS(法国国家科学研究中心);Université Paris Saclay(巴黎萨克雷大学)
Revizor: Testing Black-box CPUs against Speculation Contracts
Spectre和Meltdown等推测性漏洞会暴露推测性执行状态,可利用这些漏洞通过侧通道跨安全域泄漏信息。这些漏洞通常会在很长一段时间内未被发现,因为我们缺乏系统测试CPU的工具来发现它们。在本文中,我们提出了一种方法来自动检测商业黑盒CPU的微架构信息泄漏。我们建立在投机合同,我们聘请指定的CPU的微体系结构状态上的程序执行允许的副作用。我们提出了一个基于模型的关系测试(MRT)技术,以经验评估CPU符合这些规范。我们在一个名为Revizor的测试框架中实现MRT,并在真正的Intel x86 CPU上展示其有效性。Revizor会自动检测一组丰富的合同的违规行为,或指出它们的存在。我们发现的一个亮点是,Revizor成功地自动浮出了Spectre,MDS和LVI,以及几个以前未知的变体。