The Rust programming language enforces three basic Rust principles, namely ownership, borrowing, and AXM (Aliasing Xor Mutability) to prevent security bugs such as memory safety violations and data races. However, Rust projects often have mixed code, i.e., code that also uses unsafe Rust, FFI (Foreign Function Interfaces), and inline assembly for low-level control. The Rust compiler is unable to statically enforce Rust principles in mixed Rust code which can lead to many security vulnerabilities. In this paper, we propose CapsLock, a security enforcement mechanism that can run at the level of machine code and detect Rust principle violations at run-time in mixed code. CapsLock is kept simple enough to be implemented into recent capability-based hardware abstractions that provide low-cost spatial memory safety. CapsLock introduces a novel revoke-on-use abstraction for capability-based designs, wherein accessing a memory object via a capability implicitly invalidates certain other capabilities pointing to it, thereby also providing temporal memory safety automatically, without requiring software to explicitly specify such invalidation. Thus, CapsLock is the first mechanism capable of providing cross-language enforcement of Rust principles. We implemented a prototype of CapsLock on QEMU. Evaluation results show that CapsLock is highly compatible with existing Rust code (passing 99.7% of the built-in test cases of the 100 most popular crates) and flags Rust principle violations in real-world Rust projects that use FFI or inline assembly. We discovered 8 previously unknown bugs in such crates in our experiments.
Tock: From Research to Securing 10 Million Computers
Princeton University(普林斯顿大学);University of Virginia(弗吉尼亚大学);Northwestern University(西北大学);Stanford University(斯坦福大学);University of California, San Diego(加利福尼亚大学圣迭戈分校)
"We just did not have that on the embedded system": Insights and Challenges for Securing Microcontroller Systems from the Embedded CTF Competitions
CactiLab, University at Buffalo(水牛城大学 Cacti 实验室);Worcester Polytechnic Institute(伍斯特理工学院);CactiLab, Northeastern University(东北大学 Cacti 实验室);SUNRISE Lab, University of Colorado Colorado Springs(科罗拉多大学斯普林斯分校 SUNRISE 实验室)
Securing LLMs in the Wild: Privacy and Security Challenges at the Edge
Department of Electrical and Computer Engineering, University of South Florida(电子与计算机工程系,佛罗里达州立大学);Department of Mathematics, Embry-Riddle Aeronautical University(数学系,埃默里-瑞德航空大学)
Blockchain Infrastructure for Intelligent Cyber--Physical--Social Systems:Post-Quantum Security, Interoperability, and Trustworthy Data Economies in the Era of Embodied AI
Hong Kong University of Science and Technology(香港理工大学);Sun Yat-sen University(中山大学);Amazon Web Services(亚马逊网络服务);Duke Kunshan University(杜克昆山大学)