Memory corruption is a serious class of software vulnerabilities, which requires careful attention to be detected and removed from applications before getting exploited and harming the system users. Symbolic execution is a well-known method for analyzing programs and detecting various vulnerabilities, e.g., memory corruption. Although this method is sound and complete in theory, it faces some challenges, such as path explosion, when applied to real-world complex programs. In this paper, we present a method for improving the efficiency of symbolic execution and detecting four classes of memory corruption vulnerabilities in executable codes, i.e., heap-based buffer overflow, stack-based buffer overflow, use-after-free, and double-free. We perform symbolic execution only on test units rather than the whole program to lower the chance of path explosion. In our method, test units are considered parts of the program's code, which might contain vulnerable statements and are statically identified based on the specifications of memory corruption vulnerabilities. Then, each test unit is symbolically executed to calculate path and vulnerability constraints of each statement of the unit, which determine the conditions on unit input data for executing that statement or activating vulnerabilities in it, respectively. Solving these constraints gives us input values for the test unit, which execute the desired statements and reveal vulnerabilities in them. Finally, we use machine learning to approximate the correlation between system and unit input data. Thereby, we generate system inputs that enter the program, reach vulnerable instructions in the desired test unit, and reveal vulnerabilities in them. This method is implemented as a plugin for angr framework and evaluated using a group of benchmark programs. The experiments show its superiority over similar tools in accuracy and performance.
Can Transformer Memory Be Corrupted? Investigating Cache-Side Vulnerabilities in Large Language Models
College of Engineering and Computer Science, University of Central Florida(中央佛罗里达大学工程与计算机科学学院);Department of Computer Science and Engineering, Mississippi State University(密苏里州立大学计算机科学与工程系);Department of Electrical and Computer Engineering, North Carolina State University(北卡罗来纳州立大学电子与计算机工程系)
Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale
Tianjin University(天津大学);Southern Cross University(南方十字大学);School of Cybersecurity, Tianjin University(安全学院,天津大学);Nanyang Technological University(南洋理工大学);University of New South Wales(新南威尔士大学);Griffith University(格里菲斯大学)
ShadowProbe: Language-Extensible Detection of Hidden Algorithmic Complexity Vulnerabilities
Tsinghua University(清华大学);Ocean University of China(中国海洋大学);QI-ANXIN Technology Research Institute(奇安信技术研究院);Southeast University(东南大学);University of Waterloo(滑铁卢大学)
PTAuth: Temporal Memory Safety via Robust Points-to Authentication
临时内存损坏是经常被利用的软件漏洞,可导致强大的攻击。尽管几十年来对缓解技术的研究取得了重大进展,但现有的对策由于覆盖范围有限或开销过高而不足。此外,它们需要外部机制(例如,空间存储安全)以保护其元数据。否则,它们的保护可能被绕过或禁用。为了解决这些局限性,我们提出了强大的点到认证,一种新的运行时检测各种临时内存损坏的计划。我们建立了一个原型系统,称为PTAuth,在ARM架构上实现了这个方案。PTAuth包含用于代码分析和插装的自定义编译器,以及用于在受保护程序运行时执行指向身份验证的运行时库。PTAuth利用ARMv8.3及更高版本CPU提供的指针验证码(PAC)功能,该功能可用作简单的基于硬件的加密原语。PTAuth使用最少的内存元数据,并在不需要空间内存安全的情况下保护其元数据。我们报告我们的评估PTAuth的安全性,鲁棒性和性能使用150个脆弱的程序从朱丽叶测试套件和SPEC CPU 2006基准。PTAuth检测所有三类基于堆的临时内存损坏,生成零错误警报,并将程序执行速度降低26%(该数字是基于软件模拟的PAC测量的;当使用基于硬件的PAC时,预计将降低到20%)。我们还表明,由于元数据的有效使用,PTAuth会产生2%的内存开销。
MemPoison: Uncovering Persistent Memory Threats and Structural Blind Spots in LLM Agents
State Key Laboratory for Novel Software Technology, Nanjing University, China(南京大学新型软件技术国家重点实验室);NARI Group Corporation/State Grid Electric Power Research Institute, China(国网电力研究院/国电电力集团)
Debloating Software through Piece-Wise Compilation and Loading
程序臃肿。我们的研究表明,在Ubuntu桌面环境(2016年程序)中,平均只有5%的libc被使用;最重的用户,vlc媒体播放器,只需要18%。在本文中:(1)我们提出了一个基于编译器工具链的debloating框架,可以成功地debloat程序(共享/静态库和可执行文件)。我们的解决方案可以在Ubuntu Desktop 16.04上成功编译和加载大多数库。(2)我们演示了从coreutils中删除79%以上的代码,从SPEC CPU 2006基准程序中删除86%的代码,而不影响功能。我们表明,即使是复杂的程序,如Firefox和curl可以debloated,而无需重新编译。(3)我们通过消除coreutils套件中超过71%的可重用代码小工具来展示debloating的安全影响,并表明包含真实世界漏洞的未使用代码也可以成功消除,而不会对程序产生不利影响。(4)我们的加载时间开销很低。
Large Language Models for Power System Security: A Novel Multi-Modal Approach for Anomaly Detection in Energy Management Systems
Department of Electrical and Computer Engineering, University of Michigan -- Dearborn, MI, 48128 USA.(电气与计算机工程系,密歇根大学迪尔伯恩分校);Department of Electrical Sustainable Energy, Technische Universiteit Delft, 2628 CD Delft, Netherlands.(可持续能源系,代尔夫特理工大学);Bradley Department of Electrical and Computer Engineering, Virginia Polytechnic Institute and State University, Blacksburg, VA 24061, USA.(布雷德利电气与计算机工程系,弗吉尼亚理工学院和州立大学);Smart Grid Research Division System Reliability Research Team, Korea Electrotechnology Research Institute (KERI), Gwangju-si, 61751, South Korea.(智能电网研究分会系统可靠性研究团队,韩国电力技术研究所(KERI))