arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.03118cs.CRcs.LG
收藏

使用Q-Learning强化学习代理模拟SQL注入漏洞攻击

Simulating SQL Injection Vulnerability Exploitation Using Q-Learning Reinforcement Learning Agents

University of Oslo(奥斯陆大学)

Laszlo Erdodi, Åvald Åslaugson Sommervoll, Fabio Massimo Zennaro

摘要:

在本文中,我们提出了一个形式化的过程中利用SQL注入漏洞。我们认为简化的动态SQL注入攻击铸造这个问题作为一个安全捕获的标志的挑战。我们将其建模为马尔可夫决策过程,并将其实现为强化学习问题。然后,我们部署了强化学习代理,其任务是学习执行SQL注入的有效策略;我们设计训练的方式是,代理不仅学习解决单个挑战的特定策略,而且学习更通用的策略,可以应用于对我们的问题生成器随机实例化的任何系统执行SQL注入攻击。我们分析的结果,学习的政策的质量和收敛时间的函数的复杂性的挑战和学习代理的复杂性。我们的工作适合于更广泛的研究智能代理的自主渗透测试和白帽黑客的发展,我们的研究结果旨在帮助理解安全环境中强化学习的潜力和局限性。

英文摘要:

In this paper, we propose a formalization of the process of exploitation of SQL injection vulnerabilities. We consider a simplification of the dynamics of SQL injection attacks by casting this problem as a security capture-the-flag challenge. We model it as a Markov decision process, and we implement it as a reinforcement learning problem. We then deploy reinforcement learning agents tasked with learning an effective policy to perform SQL injection; we design our training in such a way that the agent learns not just a specific strategy to solve an individual challenge but a more generic policy that may be applied to perform SQL injection attacks against any system instantiated randomly by our problem generator. We analyze the results in terms of the quality of the learned policy and in terms of convergence time as a function of the complexity of the challenge and the learning agent's complexity. Our work fits in the wider research on the development of intelligent agents for autonomous penetration testing and white-hat hacking, and our results aim to contribute to understanding the potential and the limits of reinforcement learning in a security environment.

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

↑