CheriBSD和Morello Linux的安全性分析
A Security Analysis of CheriBSD and Morello Linux
AI总结:
本文分析了CheriBSD和Morello Linux在缓解内存破坏攻击方面的有效性,指出现有分隔机制存在漏洞,并提出了缓解措施和防护建议。
摘要:
内存破坏攻击在软件中已经普遍存在。虽然存在一些针对这些攻击的缓解策略,但它们不如CHERI架构全面和高效。CHERI使用能力来限制指针只能指向内存的特定区域,并具有特定的访问限制。这些能力还用于实现“分隔”:将二进制文件分成较小的组件,每个组件具有有限的权限,同时遵循最小权限原则。然而,尽管这种架构成功地缓解了内存破坏攻击,但现有的分隔机制在限制恶意代码局限于单独分隔方面效果较差。本文详细介绍了四种绕过分隔的方法,重点是针对此架构的Linux和BSD操作系统。我们发现,尽管这些两个操作系统实现了分隔,但简单的错误和攻击仍可能允许恶意代码绕过它。最后,本文总结了缓解这些攻击的措施,提供了一个概念验证来展示其用途,并为进一步保护Linux和BSD免受未知攻击提供建议。
英文摘要:
Memory corruption attacks have been prevalent in software for a long time. Some mitigation strategies against these attacks do exist, but they are not as far-reaching or as efficient as the CHERI architecture. CHERI uses capabilities to restrict pointers to certain regions of memory and with certain access restrictions. These capabilities are also used to implement "compartmentalisation": dividing a binary into smaller components with limited privilege, while adhering to the principle of least privilege. However, while this architecture successfully mitigates memory corruption attacks, the compartmentalisation mechanisms in place are less effective in containing malicious code to a separate compartment. This paper details four ways to bypass compartmentalisation, with a focus on Linux and BSD operating systems ported to this architecture. We find that although compartmentalisation is implemented in these two operating systems, simple bugs and attacks can still allow malicious code to bypass it. We conclude with mitigation measures to prevent these attacks, a proof-of-concept demonstrating their use, and recommendations for further securing Linux and BSD against unknown attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。