基于数据包检查的Slow HTTP POST攻击检测方法

2018-06-29 02:01:32邓诗琪武旭东牛小龙李小卫雷敏
网络空间安全 2018年2期

邓诗琪 武旭东 牛小龙 李小卫 雷敏

摘 要:Slow HTTP POST攻击属于应用层慢速HTTP拒绝服务攻击。在Slow HTTP POST攻击中,攻击者使用正常的POST请求进行数据的传输,但是其报文首部中的Content-Length参数值被设置为很大的值。然而,为了长时间占用建立起的请求连接,攻击者在请求首部得到确认之后开始进行的传输主体中,设置了极小的数据传输大小,导致Web服务器认为请求数据没有传输完毕,将长时间保留该请求连接,当服务器的连接资源池被类似的攻击请求占满,就会造成拒绝服务。文章根据正常HTTP POST请求发生后,数据以“尽力传输”的模式进行传输的特性与Slow HTTP POST攻击下数据传输的特性的区别,提出基于数据包大小检查的Slow HTTP POST攻击检测方法,并对检测方法进行了仿真实验加以验证。

关键词:数据包检查;Slow HTTP POST攻击;检测方法

中图分类号:TP393.083 文献标识码:A

Detection method for Slow HTTP POST attack based on packet size check

Abstract: Slow HTTP POST Attack is a type of slow-rate HTTP denial of service attack on application layer. An attacker uses normal POST request to make data transmission, but sets a large value for Content-Length parameter in header. However, for the purpose of keeping a long-time connection, the attacker makes a small data-transmission value in transmission body after the header is acknowledged and the Web server will still hold the connection and wait for other data to be transmitted. When connection resource pool of the Web server has been completely filled, the Web Server begins to deny service. This paper proposes a detection method for slow HTTP POST attack based on packet size check according to differences between normal data transmission schedule called “Best-Effort” and attack data transmission, and makes simulation test to verify the detection method.

Key words: packet size check; slow HTTP POST attack; detection method

1 引言

Slow HTTP POST攻击是一种新型的应用层慢速HTTP拒绝服务攻击的一种子类型攻击,其主要利用了HTTP协议持久连接以及HTTP POST请求需等待客户端传送完毕数据的特性,在向服务器发送HTTP POST请求报文时,在首部中设置了极大的内容长度值(Content-Length)。然而之后客户端在进行实际的数据传输时,却在传输主体中设置了极小的数据传输大小,并缓慢地发送至服务器,导致Web服务器认为请求数据没有传输完毕,继续保持当前请求连接[1,2]。在攻击端向Web服务器发送多个这样的攻击请求后,Web服务器的连接资源池将会被占满,造成服务器拒绝服务。

Slow HTTP POST攻击仅使用少量攻击流量,现有失衡比例流量检测法难以对其进行探测;……

登录APP查看全文