arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.11871cs.CR
收藏

WarpGuard: CUDA SASS 二进制程序的安全点控制流完整性

WarpGuard: Protected-Site Control-Flow Integrity for CUDA SASS Binaries

International University of La Rioja(里奥哈国际大学)

Igor Santos-Grueiro

AI总结:

针对 GPU 内存漏洞可导致设备端控制流破坏的问题,提出 WarpGuard,首个在已执行 SASS 上实施安全点 CFI 的系统,通过认证返回地址、验证前向目标等机制,在 77 个 CUDA 程序上分类 51621 个控制流点并执行 5220 万次动态检查,有效防御控制流攻击。

摘要:

最近的 CUDA 利用工作表明,GPU 内存漏洞可以升级为设备端控制流破坏,因为内核随后会消耗被破坏的返回延续、函数指针、调度表条目或分支目标。对于已部署的 CUDA 二进制程序,相关的安全边界是执行的 NVIDIA SASS,经过 PTX 降级、内联、ABI 决策、寄存器分配、溢出、谓词和 SIMT 执行后;源代码或 PTX 级别的策略不捕获此边界。我们提出 WarpGuard,据我们所知,这是第一个针对在已执行 SASS 上运行的 CUDA 设备二进制程序的安全点 CFI 系统。WarpGuard 在安全点强制执行:恢复的 SASS 指令或序列,这些指令或序列消耗控制流状态,提供足够的二进制证据以推导策略,在发布前进行检查,并在违反时失败关闭。它认证仪器化返回的后向边缘延续状态,验证每个安全点的可恢复前向目标,并报告安全分母之外的固定边缘、不支持、配置文件排除、回退和无表面结果。在 77 个 CUDA 程序上,WarpGuard 分类了 51621 个 SASS 控制流点,包括 1343 个返回和 154 个受支持的前向目标集条目,并记录了 5220 万次动态检查。在代表性的后向和前向边缘破坏攻击中,原生执行达到攻击者选择的行为,仅检测模式记录预期的违规,而强制措施在发布无效的受保护传输之前失败关闭。公共代码证据表明,相同的 SASS 消耗模式出现在真实的 CUDA 系统中,包括运行时调度表、cuFFT 回调、生成的可调用表和上传的设备函数指针。WarpGuard 为 CUDA SASS 提供了可审计的安全点 CFI,并将动态仪器化强制与无回调的 SASS 时序和补丁缓存可行性分开。

英文摘要:

Recent CUDA exploitation work shows that GPU memory bugs can escalate into device-side control-flow corruption, as kernels later consume corrupted return continuations, function pointers, dispatch-table entries, or branch targets. For deployed CUDA binaries, the relevant security boundary is executed NVIDIA SASS, after PTX lowering, inlining, ABI decisions, register allocation, spills, predication, and SIMT execution; source- or PTX-level policies do not capture this boundary. We present WarpGuard, to our knowledge the first protected-site CFI system for CUDA device binaries operating on executed SASS. WarpGuard enforces at protected sites: recovered SASS instructions or sequences that consume control-flow state, provide sufficient binary evidence to derive policy, are checked before release, and fail closed on violation. It authenticates backward-edge continuation state for instrumented returns, validates recoverable forward targets per site, and reports fixed-edge, unsupported, profile-excluded, fallback, and no-surface outcomes outside the protected denominator. On 77 CUDA artifacts, WarpGuard classifies 51,621 SASS control-flow sites, including 1,343 returns and 154 supported forward target-set entries, and records 52.2 million dynamic checks. In representative backward- and forward-edge corruption attacks, native execution reaches attacker-selected behavior, detect-only mode records the expected violation, and enforcement fails closed before releasing the invalid protected transfer. Public-code evidence shows that the same SASS consumption patterns occur in real CUDA systems, including runtime dispatch tables, cuFFT callbacks, generated callable tables, and uploaded device-function pointers. WarpGuard delivers auditable protected-site CFI for CUDA SASS and separates dynamic-instrumentation enforcement from callback-free SASS timing and patch-cache feasibility.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑