Spinner:自动化动态命令子系统扰动
Spinner: Automated Dynamic Command Subsystem Perturbation
摘要:
注入攻击一直是Web应用程序的主要威胁。尽管在阻止注入攻击方面做出了重大努力,但是由于利用现有保护技术的设计和实现缺陷的复杂攻击,针对注入攻击的保护仍然具有挑战性。在本文中,我们开发了Spinner,一个系统,提供一般的保护,防止输入注入攻击,包括OS/shell命令,SQL和XXE注入。Spinner并没有专注于检测恶意输入,而是不断地随机化底层子系统,以便注入的输入(例如,命令或SQL查询)将不被执行,因此被阻止。我们重新审视了以前的基于随机化的技术的设计和实现选择,并开发了一个更强大和实用的保护,以抵御各种复杂的输入注入攻击。为了处理复杂的现实世界的应用程序,我们开发了一个双向的分析,结合向前和向后的静态分析技术,以确定预期的命令或SQL查询,以确保正确执行的随机化目标程序。我们为shell命令处理器和两个不同的数据库引擎(MySQL和SQLite)以及包括C/C++、PHP、JavaScript和Lua在内的多种程序设计语言实现了Spinner。我们对42个实际应用程序(包括27个易受攻击的应用程序)的评估结果表明,它有效地防止了各种输入注入攻击,运行时开销较低(约5%)。
英文摘要:
Injection attacks have been a major threat to web applications. Despite the significant effort in thwarting injection attacks, protection against injection attacks remains challenging due to the sophisticated attacks that exploit the existing protection techniques' design and implementation flaws. In this paper, we develop Spinner, a system that provides general protection against input injection attacks, including OS/shell command, SQL, and XXE injection. Instead of focusing on detecting malicious inputs, Spinner constantly randomizes underlying subsystems so that injected inputs (e.g., commands or SQL queries) that are not properly randomized will not be executed, hence prevented. We revisit the design and implementation choices of previous randomization-based techniques and develop a more robust and practical protection against various sophisticated input injection attacks. To handle complex real-world applications, we develop a bidirectional analysis that combines forward and backward static analysis techniques to identify intended commands or SQL queries to ensure the correct execution of the randomized target program. We implement Spinner for the shell command processor and two different database engines (MySQL and SQLite) and in diverse programming languages including C/C++, PHP, JavaScript and Lua. Our evaluation results on 42 real-world applications including 27 vulnerable ones show that it effectively prevents a variety of input injection attacks with low runtime overhead (around 5%).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。