This disclosure relates generally to data networks and, more specifically, to systems and methods for mitigating a Transmission Control Protocol (TCP) Synchronization (SYN) Distributed Denial-Of-Service (DDOS) attack using a TCP reset.
The approaches described in this section could be pursued but are not necessarily approaches that have previously been conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section.
Typically, a data connection between a client and a server is established using a TCP with a three-way handshake. Typically, a three-way handshake procedure is used to synchronize and establish a TCP connection between a client and a server. More specifically, during the three-way handshake procedure, the client initiates the TCP connection by sending a synchronization (SYN) packet to the server. The server acknowledges receipt of the SYN packet by sending a SYN acknowledgement (ACK) packet to the client. Upon receipt of the SYN ACK packet from the server, the client responds with an acknowledgement (ACK) packet, thereby concluding the three-way handshake procedure.
In many cases, the data connection between the client and the server is established through a middle network appliance, such as a load balancer or a security appliance within the server side infrastructure. Server side network appliances may optimize performance and protect the server from unwanted data traffic.
Many existing threat protection systems employed in the network appliances addressing denial of service attacks (DOS and DDOS) use methods based on generating a TCP SYN/ACK cookie to validate a client (also referred to herein as a network device). The TCP SYN/ACK cookie may include a TCP sequence number, which the server sends to the client in a TCP SYN+ACK packet and expects to receive back from the client in the ACK response packet to validate the client and establish a secure communication. Using a traditional TCP SYN/ACK cookie method, the network device can send a synchronization request (SYN), which can be intercepted by the network appliance associated with the server. The network appliance can respond back with a SYN Acknowledgement (SYN ACK), which can include a cookie so that the server is completely unburdened while the connection is being established. A non-attacker network device normally responds back to a SYN ACK, while an attacker network device generates SYN flags but does not proceed to finalize the three-way handshake process.
If the network device responds to the SYN ACK, the network appliance can validate the cookie received back from the network device, generate a new SYN (without cookies), and send it to the server. Therefore, upon successful validation of the network device, there are two TCP connections, one between the network device and the network appliance and another between the network appliance and the server, where the network appliance acts as a proxy and transfers data packets between the two devices.
There is a mode of deployment called direct server return, which is used in the middle network appliances. Using this mode, packets from the network device to the server are transferred through the network appliance, but packets from the server to the network device are not directed through the network appliance in the middle. This is usually used in cases where the traffic from the server to the network device is much higher than the traffic from the network device to the server. Unfortunately, the direct return mode is not possible with traditional TCP SYN/ACK cookie methods because they require constant two-way communications between the network device and the network appliance. Therefore, the network appliance may become a bottleneck for the packets traveling from the server to the network device and introduce more latency than can be tolerated. There is no existing technology to combine the traditional SYN cookie protection with the direct server return mode.
This summary is provided to introduce a selection of concepts in a simplified form that are further described in the Detailed Description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The present disclosure is related to systems and methods for recognizing network devices as trusted. According to one embodiment of the disclosure, a system for recognizing network devices as trusted may include a network module configured to receive a request from a network device to establish a data connection between the network device and a server. The network module may be further configured to establish the data connection between the network device and the server based on a determination that the network device is trusted. The system may further include a storage device configured to store a whitelist associated with a plurality of trusted network devices. The system may further include a processor configured to determine that the network device is trusted. Based on the determination, the processor may be further configured to associate the network device with the whitelist for a predetermined period of time.
In another embodiment of the disclosure, a method for recognizing network devices as trusted is provided. The method may commence with receiving, by a network appliance, a request from a network device to establish a data connection with a server. The method may continue with determining, by the network appliance, that the network device is trusted. Responsive to the determination, the method may include whitelisting, by the network appliance, the network device for a predetermined period of time. The method may further include establishing, by the network appliance, the data connection between the network device and the server.
Additional objects, advantages, and novel features will be set forth in part in the detailed description, which follows, and in part will become apparent to those skilled in the art upon examination of the following detailed description and the accompanying drawings or may be learned by production or operation of the example embodiments. The objects and advantages of the concepts may be realized and attained by means of the methodologies, instrumentalities, and combinations particularly pointed out in the appended claims.
Embodiments are illustrated by way of example, and not by limitation, in the figures of the accompanying drawings, in which like references indicate similar elements.
The following detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show illustrations in accordance with example embodiments. These example embodiments, which are also referred to herein as “examples,” are described in enough detail to enable those skilled in the art to practice the present subject matter. The embodiments can be combined, other embodiments can be utilized, or structural, logical, and electrical changes can be made without departing from the scope of what is claimed. The following detailed description is therefore not to be taken in a limiting sense, and the scope is defined by the appended claims and their equivalents. In this document, the terms “a” and “an” are used, as is common in patent documents, to include one or more than one. In this document, the term “or” is used to refer to a nonexclusive “or,” such that “A or B” includes “A but not B,” “B but not A,” and “A and B,” unless otherwise indicated.
The techniques of the embodiments disclosed herein may be implemented using a variety of technologies. For example, the methods described herein may be implemented in software executing on a computer system or in hardware utilizing either a combination of microprocessors or other specially designed application-specific integrated circuits, programmable logic devices, or various combinations thereof. In particular, the methods described herein may be implemented by a series of computer-executable instructions residing on a storage medium, such as a disk drive or computer-readable medium. It should be noted that methods disclosed herein can be implemented by a computer (e.g., a desktop computer, tablet computer, laptop computer), game console, handheld gaming device, cellular phone, smart phone, smart television system, and so forth.
The present disclosure relates to methods and systems for mitigating a TCP SYN DDoS attack using a TCP reset. The methods and systems can allow employing a TCP reset command as part of a threat protection system of a network appliance in a direct server return mode. In the direct server return mode, packets are transferred from a network device to a server through a network appliance located in the middle between the server and the network device but packets from the server to the network device are not directed through the network appliance. The direct server return mode can be used where traffic from the server to the network device is much higher than the traffic from the network device to the server, where the network appliance becomes a bottleneck and decreases data traffic capacity or introduces more latency than can be tolerated.
According to one embodiment of the disclosure, the network device generates a SYN request to establish a TCP connection to the server. The network appliance intercepts the SYN request and generates a SYN ACK with a cookie. A non-attacker network device normally validates the SYN ACK with the cookie and sends back an ACK with the cookie, while an attacker does not. If the network device is successfully validated, the network appliance labels the network device as trusted, whitelists the network device for a predetermined period of time, and sends a TCP reset command back to the network device.
The whitelisting means that when the same network device generates a SYN request during the predetermined period, the network appliance recognizes the network device as trusted and establishes the TCP connection between the network device and the server using the direct server return mode to send packets from the server directly to the network device for the predetermined period of time (for example, 10 minutes). Specifically, the network appliance forwards the SYN request received from the network device to the server and the server responds directly to the network device with the SYN ACK. The network device responds to the SYN ACK by sending a network device ACK, which may be received by the network appliance and directed to the server. When the whitelisting session expires, the network device becomes untrusted again so that the network device is required to go through the cookie verification process again if it attempts to establish another TCP connection.
According to another embodiment of the method of current disclosure, a network device can generate a SYN request to establish a TCP connection to a server. The network appliance can intercept the SYN and generate a SYN ACK. The SYN ACK may include a sequence number not expected by the network device. As a result, upon receipt of the SYN ACK with the sequence number, the network device can view the response from the network appliance as an invalid/stale response and can send a TCP reset command to the network appliance in order to reestablish the connection. Since an attacker device normally does not respond to SYN ACKs, only a non-attacker network device can send back the TCP reset. If the TCP reset from the network device is received, then the network appliance can label the network device as trusted and whitelist the network device for a predetermined period of time.
When the whitelisted network device generates the new SYN request during the predetermined period, the network appliance recognizes the network device as trusted and establishes a connection between the network device and the server using direct server return mode for data packets traveling from the server to the network device for the predetermined period of time (for example, 10 minutes). Specifically, the network appliance forwards the SYN request received from the network device to the server and the server responds directly to the network device with the SYN ACK. The network device responds to the SYN ACK by sending a network device ACK, which may be received by the network appliance and directed to the server. When the whitelisting session expires, the network device becomes untrusted and establishes a new TCP connection, and the network appliance may again respond to the network device with a SYN ACK having a sequence number that the network device does not expect.
Referring now to the drawings,
The network 110 may include the Internet or any other network capable of communicating data between devices. Suitable networks may include or interface with any one or more of, for instance, a local intranet, a Personal Area Network (PAN), a Local Area Network (LAN), a Wide Area Network (WAN), a Metropolitan Area Network, a virtual private network (VPN), a storage area network, a frame relay connection, an Advanced Intelligent Network connection, a synchronous optical network connection, a digital T1, T3, E1 or E3 line, Digital Data Service connection, Digital Subscriber Line connection, an Ethernet connection, an Integrated Services Digital Network line, a dial-up port such as a V.90, V.34 or V.34b is analog modem connection, a cable modem, an Asynchronous Transfer Mode connection, or a Fiber Distributed Data Interface or Copper Distributed Data Interface connection. Furthermore, communications may also include links to any of a variety of wireless networks, including Wireless Application Protocol, General Packet Radio Service, Global System for Mobile Communication, Code Division Multiple Access or Time Division Multiple Access, cellular phone networks, Global Positioning System, cellular digital packet data, Research in Motion, Limited duplex paging network, Bluetooth radio, or an IEEE 802.11-based radio frequency network. The network 110 can further include or interface with any one or more of an RS-232 serial connection, an IEEE-1394 (Firewire) connection, a Fiber Channel connection, an IrDA (infrared) port, a Small Computer Systems Interface connection, a Universal Serial Bus (USB) connection or other wired or wireless, digital or analog interface or connection, mesh or Digi® networking. The network 110 may include a network of network appliances that are interconnected for the purpose of data communication.
The system 200 for mitigating a denial of service attack may include a network module 210, a storage module 220, and a processor module 230, which may be located in the path between the client 120 and server 130 and may be configured to intercept the request 140. Upon receiving the request 140 and performing a verification process, the network module 210 may establish a secure session between the client 120 and the server 130. The network module 210 may be communicatively connected to the storage module 220 that may store a whitelist associated with a plurality of trusted clients and the server 130. Establishing and securing of a data connection is described in further detail below.
In an example embodiment, during the determining that the network device is trusted, the processor module 230 may be operable to generate a SYN cookie. The network module 210 may be operable to transmit a SYN acknowledgement (ACK) including the SYN cookie to the network device. Responsive to the SYN ACK, the network module 210 may be operable to receive a network device ACK from the network device. Lack of the network device ACK is indicative of the network device being untrusted. The processor module 230 may be operable to determine that the network device ACK includes the SYN cookie. Based on the determining, the processor module 230 may be operable to validate authenticity of the SYN cookie.
In an example embodiment, during the establishing of the data connection between the network device and the server, the network module 210, based on the determination that the network device is trusted, may be operable to transmit a TCP reset command to the network device, with the TCP reset command instructing the network device to terminate the TCP session and to start a new TCP session. The network module 210 may be operable to receive from the network device a further synchronization (SYN) request to establish the new TCP session. The processor module 230 may be operable to determine that the network device is whitelisted. Based on the determination, the network module 210 may be operable to establish a trusted data connection between the network device and the server for the predetermined period of time.
In an example embodiment, during the determining that the network device is trusted, the network module 210 may be operable to transmit to the network device a reset cookie. The reset cookie may include a SYN acknowledgement (ACK), with the ACK including an identifier unexpected by the network device and operable to cause the network device to terminate the data connection and to establish a new data connection. Responsive to the reset cookie, the network module 210 may be operable to receive from the network device a reset command, with the reset command being generated responsive to the unexpected identifier. The network module 210 may be operable to determine, based on a receipt of the reset command, that the network device is trusted.
In an example embodiment, the establishing of the data connection between the network device and the server for the predetermined period of time may include receiving, by the network module 210, a further SYN request from the network device. Based on the determination that the network device is trusted, the network module 210 may send the further SYN request to the server. The server may be operable to receive the further SYN request and send a SYN ACK directly to the network device in response to the further SYN request. The network device may respond to the SYN ACK by sending the ACK. The network module 210 may be operable to receive the ACK from the network device and direct the ACK to the server. Thus, the network module 210 may be operable to establish the data connection between the network device and the server for the predetermined period of time. The processor module 230 may be further operable to determine that the predetermined period of time has expired.
In an example embodiment, the processor module 310 may include one or more processors which may be a micro-processor, an Intel processor, an Advanced Micro Devices processor, a Microprocessor without Interlocked Pipeline Stages processor, an ARM (advanced RISC machine)-based processor, or a Reduced Instruction Set Computer processor. In an example embodiment, the processor module 310 may include one or more processor cores embedded in a processor. In further example embodiments, the processor module 310 may include one or more embedded processors, or embedded processing elements in a Field Programmable Gate Array, an ASIC, or Digital Signal Processor. In an example embodiment, the network module 320 may include a network interface, such as Ethernet, optical network interface, a wireless network interface, T1/T3 interface, a WAN or LAN interface. In a further example embodiment, the network module 320 may include a network processor.
In an example embodiment, the storage module 340 may include Random Access Memory (RAM), Dynamic Random Access Memory, Static Random Access Memory, Synchronous Dynamic Random Access Memory, or memory utilized by the processor module 310 or the network module 320. In an example embodiment, the storage module 340 may store data utilized by the processor module 310. In an example embodiment, the storage module 340 may include a hard disk drive, a solid state drive, an external disk, a digital versatile disc, a compact disk, or a readable external disk. The storage module 340 may store one or more computer programming instructions which, when executed by the processor module 310 or network module 320, can implement one or more of the functionality of the methods and systems for caching network generated security certificates described herein.
In an example embodiment, the network appliance 300 may optionally include an input/output (I/O) module 330, which may include a keyboard, a keypad, a mouse, a gesture based input sensor, a microphone, a physical or sensory input peripheral, a display, a speaker, or a physical or sensual output peripheral.
The method 400 can commence with receiving, by a network appliance, a request from a network device to establish a data connection with a server at operation 402. In an example embodiment, the request from the network device may include an initial synchronization (SYN) request to establish a TCP session between the network device and a server.
At operation 404, the network appliance can determine that the network device is trusted. The specific operations performed for determining that the network device is trusted are described in detail with reference to
Responsive to the determination that the network device is trusted, the network appliance may whitelist the network device for a predetermined period of time at operation 406. At operation 408, the network appliance may establish, based on the whitelisting of the network device, the data connection between the network device and the server. When the data connection is established, the method 400 may further include directing, by the network appliance, return data packets from the server directly to the network device without being processed by the network appliance.
In an example embodiment, the method 400 may further include determining, by the network appliance, that the predetermined period of time has expired. Based on the determination, the network appliance may remove the network device from a whitelist, thereby flagging the network device as untrusted.
The method 500 can commence with receiving, by a network appliance from a network device, an initial synchronization (SYN) request to establish a TCP session at operation 502. At operation 504, the network appliance can generate a SYN cookie. The SYN cookie includes an encryption of an identifier associated with the SYN. The network appliance can transmit a SYN acknowledgement (ACK) including the SYN cookie to the network device at operation 506. Responsive to the SYN ACK, the network appliance can receive, from the network device, a network device ACK at operation 508. At operation 510, the network appliance can determine that the network device ACK includes the SYN cookie. Based on the determination, the network appliance can validate authenticity of the SYN cookie at operation 512. Responsive to the determination, the network appliance may whitelist the network device for a predetermined period of time at operation 514. The network module does not send SYN cookies to the network device while the network device is whitelisted. Based on the determination that the network device is trusted, the network appliance can transmit a TCP reset command to the network device, with the TCP reset command instructing the network device to terminate the TCP session and to start a new TCP session at operation 516. At operation 518, the network appliance can receive a further synchronization (SYN) request to establish the new TCP session. At operation 520, the network appliance can determine that the network device is whitelisted. Based on the determination, the network appliance can establish a trusted data connection between the network device and the server for the predetermined period of time at operation 522.
The method 600 can commence with receiving, by a network appliance from a network device an initial synchronization (SYN) request to establish a TCP session at operation 602. At operation 604, the network appliance can transmit a reset cookie to the network device. The reset cookie may include a SYN acknowledgement (ACK), with the ACK including an identifier unexpected by the network device and operable to cause the network device to terminate the data connection and to establish a new data connection. Responsive to the reset cookie, the network appliance can receive, from the network device, a reset command, with the reset command being generated responsive to the unexpected identifier at operation 606. At operation 608, the network appliance can determine that the network device is trusted based on a receipt of the reset command. Responsive to the determination, the network appliance may whitelist the network device for a predetermined period of time at operation 610. When a further SYN request is received by the network appliance from the network device, the network appliance can send the further SYN request to the server at operation 612. The server may respond directly to the network device by sending a SYN ACK to the network device. The network device may respond to the server by sending an ACK. At operation 614, the network appliance can receive the ACK from the network device and direct the ACK to the server. The network appliance can establish the data connection between the network device and the server for the predetermined period of time at operation 616.
The components shown in
Mass data storage 930, which can be implemented with a magnetic disk drive, solid state drive, or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor units 910. Mass data storage 930 stores the system software for implementing embodiments of the present disclosure for purposes of loading that software into main memory 920.
The portable storage device 940 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, a compact disk, a Digital Versatile Disc (DVD), or USB storage device, to input and output data and code to and from the computer system 900. The system software for implementing embodiments of the present disclosure is stored on such a portable medium and input to the computer system 900 via the portable storage device 940.
User input devices 960 provide a portion of a user interface. User input devices 960 include one or more microphones; an alphanumeric keypad, such as a keyboard, for inputting alphanumeric and other information; or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys. User input devices 960 can also include a touchscreen. Additionally, the computer system 900 includes output devices 950. Suitable output devices include speakers, printers, network interfaces, and monitors.
Graphics display system 970 includes a liquid crystal display or other suitable display device. Graphics display system 970 receives textual and graphical information and processes the information for output to the display device. Peripheral devices 980 may include any type of computer support device to add additional functionality to the computer system.
The components provided in the computer system 900 of
It is noteworthy that any hardware platform suitable for performing the processing described herein is suitable for use with the embodiments provided herein. Computer-readable storage media refer to any medium or media that participate in providing instructions to a central processing unit, a processor, a microcontroller, or the like. Such media may take forms including, but not limited to, non-volatile and volatile media such as optical or magnetic disks and dynamic memory, respectively. Common forms of computer-readable storage media include a floppy disk, a flexible disk, a hard disk, magnetic tape, any other magnetic storage medium, a Compact Disk Read Only Memory disk, DVD, Blu-ray disc, any other optical storage medium, RAM, Programmable Read-Only Memory, Erasable Programmable Read-Only Memory, Electronically Erasable Programmable Read-Only Memory, flash memory, and/or any other memory chip, module, or cartridge.
In some embodiments, the computer system 900 may be implemented as a cloud-based computing environment, such as a virtual machine operating within a computing cloud. In other embodiments, the computer system 900 may itself include a cloud-based computing environment, where the functionalities of the computer system 900 are executed in a distributed fashion. Thus, the computer system 900, when configured as a computing cloud, may include pluralities of computing devices in various forms, as will be described in greater detail below.
In general, a cloud-based computing environment is a resource that typically combines the computational power of a large grouping of processors (such as within web servers) and/or that combines the storage capacity of a large grouping of computer memories or storage devices. Systems that provide cloud-based resources may be utilized exclusively by their owners or such systems may be accessible to outside users who deploy applications within the computing infrastructure to obtain the benefit of large computational or storage resources.
The cloud may be formed, for example, by a network of web servers that include a plurality of computing devices, such as the computer system 900, with each server (or at least a plurality thereof) providing processor and/or storage resources. These servers may manage workloads provided by multiple users (e.g., cloud resource customers or other users). Typically, each user places workload demands upon the cloud that vary in real-time, sometimes dramatically. The nature and extent of these variations typically depends on the type of business associated with the user.
Thus, methods and systems for mitigating a denial of service attack have been described. Although embodiments have been described with reference to specific example embodiments, it will be evident that various modifications and changes can be made to these example embodiments without departing from the broader spirit and scope of the present application. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.
The present application is a continuation and claims the benefit of U.S. patent application Ser. No. 15/220,326, filed on Jul. 26, 2016, entitled “Mitigating TCP SYN DDOS Attacks Using TCP Reset”, which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 15220326 | Jul 2016 | US |
Child | 16198981 | US |