uGen:一种用于生成微架构攻击PoC的代理框架
uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs
AI总结:
本文提出uGen框架,利用LLM生成微架构攻击代码,解决现有方法的可移植性问题,通过多代理设计提升攻击代码的准确性与实用性。
摘要:
微架构攻击持续演变,揭示了现代处理器中新的利用途径。从防御角度看,评估系统对这类攻击的易受性仍极具挑战性。开发功能性攻击实现需要大量劳动,需要深入的微架构专业知识,并且对执行环境高度敏感。因此,现有攻击往往缺乏可移植性,限制了系统性和可扩展性的漏洞评估。最近大型语言模型(LLMs)的进展表明,降低这些障碍有潜力。然而,仍不清楚LLMs是否能可靠地生成功能正确的微架构攻击代码,以满足严格的安全测试需求。在本工作中,我们提出了uGen,首个基于LLM的自动化微架构攻击代码生成框架。我们解决的核心挑战是识别LLM中的攻击特定知识缺口。通过系统研究最先进的模型(GPT、Claude和Qwen3),我们发现LLM经常错误生成或错误放置关键攻击原语。基于此分析,uGen采用检索增强的多代理设计,注入缺失的领域知识,以合成功能正确的微架构攻击PoC,以满足防御者需求。我们在不同微架构、易受攻击功能和LLM平台上评估了uGen。在部署阶段,uGen在Spectre-v1(Claude Sonnet-4)上达到100%的成功率,在Prime+Probe(Qwen3-Coder)上达到80%。最后,我们证明uGen可以在不到四分钟内以1.25美元的成本生成成功的PoC代码。
英文摘要:
Microarchitectural attacks continue to evolve, uncovering new exploitation vectors in modern processors. From a defensive perspective, assessing a system's susceptibility to such attacks remains challenging. Developing functional attack implementations is labor-intensive, requires deep microarchitectural expertise, and is highly sensitive to execution environments. Consequently, existing attacks often lack portability, limiting systematic and scalable vulnerability assessment. Recent advances in large language models (LLMs) suggest a potential avenue for lowering these barriers. However, it remains unclear whether LLMs can reliably generate functionally correct microarchitectural attack code suitable for rigorous vulnerability testing. In this work, we present uGen, the first LLM-driven framework for automated microarchitectural attack code generation. A key challenge we address is identifying attack-specific knowledge gaps in LLMs. Through a systematic study of state-of-the-art models (GPT, Claude, and Qwen3), we find that LLMs frequently misgenerate or misplace critical attack primitives. Guided by this analysis, uGen employs a retrieval-augmented, multi-agent design that injects missing domain knowledge to synthesize functionally correct microarchitectural attack PoCs tailored to defender requirements. We evaluate uGen on cache-based and speculative-execution attacks across diverse set of microarchitectures, vulnerable functions, and LLM platforms. In the deployment stage, uGen achieves up to 100% success rate for Spectre-v1 (Claude Sonnet-4) and 80% for Prime+Probe (Qwen3-Coder). Finally, we demonstrate that uGen can generate a successful PoC code with a cost of $1.25 in under four minutes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。