arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.03720cs.CR
收藏

通过静态与动态系统调用限制缩小内核攻击面

Shrinking the Kernel Attack Surface Through Static and Dynamic Syscall Limitation

School of Cyberspace Science, Harbin Institute of Technology(哈尔滨工业大学网络空间安全学院)

Dongyang Zhan, Zhaofeng Yu, Xiangzhan Yu, Hongli Zhang, Lin Ye

AI总结:

本文提出 sysverify,结合二进制与源代码静态分析及低开销动态验证,构建库 API 到系统调用映射并识别真实依赖调用,以缩小 Linux 内核攻击面。

摘要:

Linux Seccomp 被程序开发者和系统维护者广泛用于保护操作系统,它可以为不同应用和容器阻止未使用的系统调用,从而缩小操作系统的攻击面。然而,在没有程序开发者帮助的情况下,很难为容器或应用配置白名单。Docker 容器默认仅阻止约 50 个系统调用,大量未被阻止且无用的系统调用带来了巨大的内核攻击面。为获得依赖的系统调用,动态跟踪是一种直接方法,但它无法得到完整的系统调用列表。静态分析能够构建一个过近似的系统调用列表,但该列表包含许多误报。本文提出一种系统化的依赖系统调用分析方法 sysverify,通过结合静态分析与动态验证来缩小内核攻击面。该方法通过分析二进制文件和源代码,弥合二进制可执行文件与系统调用之间的语义鸿沟,从而系统地建立库 API 与系统调用之间的映射。为尽最大努力进一步缩小攻击面,我们提出一种动态验证方法,以低开销拦截并分析间接调用相关或很少被调用的系统调用的调用安全性。

英文摘要:

Linux Seccomp is widely used by the program developers and the system maintainers to secure the operating systems, which can block unused syscalls for different applications and containers to shrink the attack surface of the operating systems. However, it is difficult to configure the whitelist of a container or application without the help of program developers. Docker containers block about only 50 syscalls by default, and lots of unblocked useless syscalls introduce a big kernel attack surface. To obtain the dependent syscalls, dynamic tracking is a straight-forward approach but it cannot get the full syscall list. Static analysis can construct an over-approximated syscall list, but the list contains many false positives. In this paper, a systematic dependent syscall analysis approach, sysverify, is proposed by combining static analysis and dynamic verification together to shrink the kernel attack surface. The semantic gap between the binary executables and syscalls is bridged by analyzing the binary and the source code, which builds the mapping between the library APIs and syscalls systematically. To further reduce the attack surface at best effort, we propose a dynamic verification approach to intercept and analyze the security of the invocations of indirect-call-related or rarely invoked syscalls with low overhead.

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

↑