Method for blocking denial of service and address spoofing attacks on a private network

Abstract
A method is provided for blocking attacks on a private network (12). The method is implemented by a routing device (10) interconnecting the private network (12) to a public network (14). The method includes analyzing an incoming data packet from the public network (14). The incoming data packet is then matched against known patterns where the known patterns are associated with known forms of attack on the private network (12). A source of the data packet is then identified as malicious or non-malicious based upon the matching. In one embodiment, one of the known forms of attack is a denial of service attack and an associated known pattern is unacknowledged data packets. In another embodiment, one of the known forms of attack is an address spoofing attack and an associated known pattern is a data packet having a source address matching an internal address of the private network (12).
Description
TECHNICAL FIELD OF THE INVENTION

This invention relates in general to communication systems, and more particularly to a method for blocking denial of service and address spoofing attacks on a private network.


BACKGROUND OF THE INVENTION

Corporate and other private networks often provide external access outward and inward through Internet gateways, firewalls or other routing devices. It is important for these routing devices to defend the private network against attackers from the outside as well as to allow access to the private network by authorized users. However there are numerous forms of attack on conventional routing device that can incapacitate the devices and interfere with an associated private network. The problem of keeping unauthorized persons from accessing data is a large problem for corporate and other information service management. Routing devices, such as gateways, firewalls and network routers lack important safeguards to block or prevent attacks. In particular, the number of denial service attacks have risen dramatically in recent years. Further, IP spoofing incidents occur with increasing frequency.


A denial of service attack consists of repeatedly sending requests for connections to different hosts through and/or behind the routing device. Typically, the host will wait for acknowledgment from the requester. Because a host can only handle a finite number of requests (for example, 1 to n, where n depends on the resources available to the host), the attacker can crash or “flood” a host with requests to the point of disrupting network service (host/server/port) to users.


Another form of attack is address spoofing which can be used by unauthorized third parties to gain access to a private network. This attack involves the attacker identifying a valid internal network address within the private network. The attacker then requests access to the private network through the routing device by spoofing that internal network address. Conventional routing devices typically are not sophisticated enough to determine that such a request should be denied (i.e., because an external request can not originate from an internal address) and will allow access to the attacker. Address spoofing attacks can be carried out against various types of networks and network protocols such as IPX/SPX, MAC layer, Netbios, and IP.


It is therefore advantageous to provide facilities within a routing device that block denial of service, address spoofing and other attacks on an associated private network.


SUMMARY OF THE INVENTION

In accordance with the present invention, a method for blocking denial of service and address spoofing attacks on a private network is disclosed that provides significant advantages over conventional network routing devices.


According to one aspect of the present invention, the method is implemented by a routing device interconnecting the private network to a public network. The method includes analyzing an incoming data packet from the public network. The incoming data packet is then matched against known patterns where the known patterns are associated with known forms of attack on the private network. A source of the data packet is then identified as malicious or non-malicious based upon the matching. In one embodiment, one of the known forms of attack is a denial of service attack and an associated known pattern is unacknowledged data packets. In another embodiment, one of the known forms of attack is an address spoofing attack and an associated known pattern is a data packet having a source address matching an internal address of the private network.


A technical advantage of the present invention is the enabling of a routing device to the identify a denial of service attack and to block such an attack from tying up the routing device.


Another technical advantage of the present invention is enabling a routing device to identify an address spoofing attack and to block such an attack.


A further technical advantage of the present invention is an ability for the routing device to track information about the attacker to allow preventive measures to be taken.


Other technical advantages should be readily apparent to one skilled in the art from the following figures, description, and claims.





BRIEF DESCRIPTION OF THE DRAWINGS

A more complete understanding of the present invention and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:



FIG. 1 is a block diagram of an communication system including a routing device and an associated private network;



FIG. 2 is a flow chart of one embodiment of a method for blocking attacks on a private network according to the present invention;



FIG. 3 is a flow chart of one embodiment of a method for blocking an address spoofing attack according to the present invention; and



FIG. 4 is a flow chart of one embodiment of a method for blocking a denial of service attack according to the present invention.





DETAILED DESCRIPTION OF THE INVENTION


FIG. 1 is a block diagram of an communication system including a routing device 10 and an associated private network 12. Routing device 10 provides a connection between corporate private network 12 and an Internet cloud 14. Routing device 10 can include a gateway, firewall or other device interconnecting private network 12 and Internet cloud 14. In operation, routing device 10 allows internal users within private network 12 to gain access to Internet cloud 14. Routing device 10 also allows external users connected to Internet cloud 14 to gain access to private network 12. A significant and growing problem is that an attacker 16 may try to gain access to or disrupt private network 12 through Internet cloud 14.


Denial of service and address spoofing are two common forms of attack that might be used by attacker 16. In general, a denial service attack is one in which attacker 16 attempts to prevent others from using private network 12. A denial service attack works if routing device 10 spends all of its time processing requests and cannot respond quickly enough to satisfy additional requests. An Address spoofing attack is on in which attacker 16 fakes an internal address to get around or into standard address filtering schemes. According to the present invention, routing device 10 is enabled with a method for blocking these and other types of attacks by analyzing incoming data packets.


Thus, one possible occurrence is that attacker 16 will try to get into private network 12 by spoofing an address that exists inside private network 12. This is intended to allow attacker 16 to gain access and impersonate an internal user. When a packet from attacker 16 reaches routing device 12, an attack blocking component, according to the present invention, will notice that the address matches one that exists within private network 12. Because incoming packets should not be the same as outgoing packets, the attack blocking component can deny access to private network 12 and record the information about the attack for use by the system administrator. Attacker 16 can also try to deny access to all external users by conducting a denial of service attack. This involves attacker 16 flooding private network 12 or routing device 10 by sending an extremely large number of packets. For example, attacker 16 may send 30,000 or more packets. According to the present invention, the attack blocking component of routing device 10 can notice that the first packet is spoofed or that it cannot be acknowledged and ignore all other packets. Further, routing device 10 can use diagnostic detection tools (e.g., trace root, ping, NS lookup) to pinpoint attacker 16 and notify the system administrator. In general, according to the present invention, routing device 10 can be enabled to intelligently analyze incoming packets, match the packets against known patterns for attack strategies and respond accordingly to malicious packets.



FIG. 2 is a flow chart of one embodiment of a method for blocking attacks on a private network according to the present invention. As shown, an incoming packet is analyzed by the routing device in step 20. In step 22, the routing device analyzes the incoming packet against known patterns. Based upon this pattern matching, in step 24, the routing device can identify the data packet and its source as malicious or non-malicious. The known patterns used in step 22 can be built using knowledge about various types of attacks. This knowledge can be recorded in the form of patterns that are then stored in a database or other storage device accessible by the routing device. The routing device can then match the analyzed packets against the patterns to determine whether or not some type of attack is being made. If an attack is identified, the routing device can identify the source of that packet as malicious and treat the source accordingly.


In particular, the routing device can implement methods for blocking denial of service attacks and address spoofing attacks as shown, for example, in FIGS. 3 and 4. FIG. 3 is a flow chart of one embodiment of a method for blocking an address spoofing attack according to the present invention. This method is applicable to address spoofing attacks on various types of networks, but is described specifically with respect to an IP network.


As shown in step 30 of FIG. 3, the routing device receives a packet. In step 32, the routing device compares the IP address of the packet against known internal IP addresses of the associated private network. In step 34, the routing device determines if the source IP address matches an internal address. If not, in step 36, the routing device routes the packet as appropriate for the packet. However, if the source IP address matches an internal address, then the routing device identifies that there is an attempt to spoof an internal address. The addressed is known to be spoofed because an internal IP address of the private network cannot be accessing the private network from an external point. Consequently, in step 38, the routing device drops the packet and does not route it to the network. In step 40, the routing device analyzes the packet header for the history of the packet in order to obtain some information about the source of the packet. Then, in step 42, the routing device takes an appropriate defensive action against that packet. For example, the routing device can refuse to accept any more packets from the real source of the packet. In this case, the defensive action can include adding the offending IP address to a cache of IP addresses and then not allowing access to the router device for any IP address in the cached list. Further, the routing device can store information about the attack for later use and for analysis for administrators of the private network. For example, information concerning the packet origination, destination or content can be stored internally to the router device or sent to a syslog server for later analysis.



FIG. 4 is a flow chart of one embodiment of a method for blocking a denial of service attack according to the present invention. As shown, in step 50, the routing device receives a request for a connection. Then, in step 52, the routing device asks for an acknowledgment from the requestor. In step 54, the routing device checks whether or not an acknowledgment has been received. If one is not received within a specified period of time, the routing device moves to step 56 and denies the request. This denial ensures that the routing device does not churn on pending requests even though acknowledgments have not been received within reasonable amounts of time.


If an acknowledgment is received in step 54, the routing device moves to step 58 and compares the requested connection to existing connections. Then, in step 60, the routing device determines if there is a match between the requested connection and one of the existing connections. If so, the routing device moves to step 46 and denies the request. The request is denied because one source should not have more than one connection through the routing device to the private network. If, in step 60, there is no match, then the routing device can allow the connection in step 62. The method of FIG. 4 prevents the routing device from being tied up by multiple requests from one source and thereby blocks the denial of service attack.


In general, the method of the present invention can be integrated as a component of a gateway, firewall or other routing device. In one implementation, the present invention can work off of a variable size cache file that holds network addresses. For blocking spoofing, each incoming address can be held in the cache file and checked to see if the incoming address matches an network address that is on the private network. If the incoming address matches, then the request can be denied. Also, a message can be sent to a system log which, rather than being written to a file, can be written to a console to prevent the log from getting overloaded and crashing the routing device. Further, an optional E-mail message or page can be sent to a specified address or number in the case of an attack. If an attack happens more than once on the same address in the span of a certain period of time (for example, five minutes), then the number of messages can be limited to prevent overloading of the E-mail or paging service. An optional shutdown mechanism can also be in place that will enable the routing device to automatically shut down certain services if attacks continued.


Denial of service attacks are generally easier to trace. However, when such an attack is also spoofed, the problem becomes very difficult to stop. According to the present invention, an incoming address can be checked against the cache file and a quick search can be performed to see if the address is already in a list of pending addresses. If so, the request packet can be discarded. An address is removed from the list if a successful acknowledge packet is sent back or a variable time limit is reached. The number of matching addresses that are allowed in the list can be a variable set by the system administrator.


Although the present invention has been described in detail, it should be understood that various changes, substitutions and alterations can be made thereto without departing from the sphere and scope of the invention as defined by the appended claims.

Claims
  • 1. A method comprising: receiving a request for connection from an initiator, over a public network;a routing device requesting an acknowledgment from the initiator of the request, wherein the routing device interconnects a private network to the public network;determining whether the acknowledgment has been received within a specific predetermined amount of time;adding an IP address of the initiator to a cache of IP addresses if the acknowledgement is not received; anddenying the request if the acknowledgment is not received within the specific predetermined amount of time.
  • 2. The method of claim 1, wherein the public network is the Internet.
  • 3. The method of claim 2, wherein the routing device is a firewall providing access to the Internet.
  • 4. The method of claim 1, further comprising processing the request if the acknowledgement is received.
  • 5. The method of claim 1, further comprising denying access through the routing device to any IP address on the cache of IP addresses.
  • 6. The method of claim 1, further comprising storing information about the initiator on a system log for analysis by the system administrator.
  • 7. The method of claim 1, further comprising storing information about the request for connection on a system log for analysis by the system administrator.
  • 8. The method of claim 1, further comprising determining if a prior request for an acknowledgement has been sent to an IP address associated with the initiator and been unacknowledged within a predetermined amount of time, if the acknowledgement is not received.
  • 9. The method of claim 1, further comprising using diagnostic tools to determine additional information about a source of the request for connection.
  • 10. The method of claim 9, wherein using diagnostic tools to determine additional information about a source of the request for connection comprises using trace root diagnostic tools to determine information about the source of the request for connection.
  • 11. The method of claim 9, wherein using diagnostic tools to determine additional information about a source of the request for connection comprises using ping diagnostic tools to determine information about the source of the request for connection.
  • 12. The method of claim 9, wherein using diagnostic tools to determine additional information about a source of the request for connection comprises using NS lookup diagnostic tools to determine information about the source of the request for connection.
  • 13. The method of claim 9, further comprising forwarding the additional information to a system administrator via electronic mail.
  • 14. A method comprising: receiving an incoming data packet from a public network;a routing device comparing a source address of the data packet against known internal addresses of a private network, wherein the routing device interconnects the private network to the public network;determining if the source address matches a known internal address; andif there is a match: dropping the data packet;analyzing a header of the data packet;determining information regarding a history of the packet;determining a real source of the data packet using the information regarding the history of the packet;adding an IP address of the data packet to a cache of IP addresses; andrefusing to process any additional data packets received from the real source of the data packet.
  • 15. The method of claim 14, further comprising storing data about the data packet on a system log, for use and analysis by a system administrator.
  • 16. The method of claim 14, wherein the public network is the Internet.
  • 17. The method of claim 16, wherein the routing device is a firewall providing access to the Internet.
  • 18. The method of claim 14, further comprising forwarding the data packet to the private network if there is not a match.
  • 19. The method of claim 14, further comprising denying access through the routing device to any IP address on the cache of IP addresses.
  • 20. The method of claim 14, further comprising using diagnostic tools to determine additional information about a source of the data packet.
  • 21. The method of claim 20, wherein using diagnostic tools to determine additional information about a source of the data packet comprises using trace root diagnostic tools to determine additional information about the source of the data packet.
  • 22. The method of claim 20, wherein using diagnostic tools to determine additional information about a source of the data packet comprises using ping diagnostic tools to determine additional information about the source of the data packet.
  • 23. The method of claim 20, wherein using diagnostic tools to determine additional information about a source of the data packet comprises using NS lookup diagnostic tools to determine additional information about the source of the data packet.
  • 24. The method of claim 20, further comprising forwarding the additional information to a system administrator via electronic mail.
  • 25. A method comprising: receiving a request for connection from an initiator, over a public network;a routing device requesting an acknowledgment from the initiator of the request, wherein the routing device interconnects a private network to the public network;determining whether the acknowledgment has been received within a specified predetermined amount of time;denying the request if the acknowledgment is not received within the specified predetermined amount of time;comparing a source address of the request for connection with known internal addresses of the private network;determining if the source address matches a known internal address;adding an IP address of the data packet to a cache of IP addresses if there is a match; andrefusing to process the request for connection if there is a match.
  • 26. A system comprising: a routing device being operable to interconnect a private network to a public network, the routing device being further operable to: receive a request for connection from an initiator, over the public network;request an acknowledgment from the initiator of the request;determine whether the acknowledgment has been received within a specified predetermined amount of time;add an IP address of the initiator to a cache of IP addresses if the acknowledgement is not received; anddeny the request if the acknowledgment is not received within the specified predetermined amount of time.
  • 27. A system comprising: a routing device being operable to interconnect a public network and a public network, the routing device being further operable to: receive an incoming data packet from the public network;compare a source address of the data packet against known internal addresses of the private network;determine if the source address matches a known internal address; andif there is a match: drop the data packet;analyze a header of the data packet;determine information regarding a history of the packet;determine a real source of the data packet using the information regarding the history of the packet;adding an IP address of the data packet to a cache of IP addresses; andrefuse to process any additional data packets received from the real source of the data packet.
  • 28. A system comprising: means for interconnecting a private network to a public network;means for receiving a request for connection from an initiator, over the public network;means for requesting an acknowledgment from the initiator of the request;means for determining whether the acknowledgment has been received within a specified predetermined amount of time;means for adding an IP address of the initiator to a cache of IP addresses if the acknowledgement is not received; andmeans for denying the request if the acknowledgment is not received within the specified predetermined amount of time.
  • 29. A system comprising: means for interconnecting a private network and a public network;means for receiving an incoming data packet from the public network;means for comparing a source address of the data packet against known internal addresses of the private network;means for determining if the source address matches a known internal address; and if there is a match, means for: dropping the data packet;analyzing a header of the data packet;determining information regarding a history of the packet;determining a real source of the data packet using the information regarding the history of the packet;adding an IP address of the data packet to a cache of IP addresses; andrefusing to process any additional data packets received from the real source of the data packet.
  • 30. Software embodied in a computer-readable medium, the computer-readable medium comprising code operable to: interconnect a private network to a public network, using a routing device;receive a request for connection from an initiator, over the public network;request an acknowledgment from the initiator of the request, wherein the routing device requests the acknowledgment;determine whether the acknowledgment has been received within a specific predetermined amount of time;add an IP address of the initiator to a cache of IP addresses if the acknowledgement is not received; anddeny the request if the acknowledgment is not received within the specific predetermined amount of time.
  • 31. Software embodied in a computer-readable medium, the computer-readable medium comprising code operable to: receive an incoming data packet from a public network;compare a source address of the data packet against known internal addresses of a private network, wherein a routing device that interconnects the private network and the public network compares the source address;determine if the source address matches a known internal address; andif there is a match: drop the data packet;analyze a header of the data packet;determine information regarding a history of the packet;determine a real source of the data packet using the information regarding the history of the packet;add an IP address of the data packet to a cache of IP addresses; andrefuse to process any additional data packets received from the real source of the data packet.
CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. application Ser. No. 09/040,898 filed Mar. 18, 1998 now U.S. Pat. No. 6,738,814 by Dennis Cox and Kip McClanahan and entitled “Method for Blocking Denial of Service and Address Spoofing Attacks on a Private Network”.

US Referenced Citations (112)
Number Name Date Kind
4438511 Baran Mar 1984 A
4672572 Alsberg Jun 1987 A
4679227 Hughes-Hartogs Jul 1987 A
4731816 Hughes-Hartogs Mar 1988 A
4757495 Decker et al. Jul 1988 A
4769771 Lippmann et al. Sep 1988 A
4771425 Baran et al. Sep 1988 A
4819228 Baran et al. Apr 1989 A
4833706 Hughes-Hartogs May 1989 A
4903261 Baran et al. Feb 1990 A
4980897 Decker et al. Dec 1990 A
5003595 Collins Mar 1991 A
5020058 Holden et al. May 1991 A
5025469 Bingham Jun 1991 A
5032979 Hecht et al. Jul 1991 A
5054034 Hughes-Hartogs Oct 1991 A
5059925 Weisbloom Oct 1991 A
5072449 Enns et al. Dec 1991 A
5088032 Bosack Feb 1992 A
5115431 Williams et al. May 1992 A
5128945 Enns et al. Jul 1992 A
5206886 Bingham Apr 1993 A
5224099 Corbalis et al. Jun 1993 A
5228062 Bingham Jul 1993 A
5255291 Holden et al. Oct 1993 A
5274631 Bhardwaj Dec 1993 A
5274635 Rahman et al. Dec 1993 A
5274643 Fisk Dec 1993 A
5313454 Bustini et al. May 1994 A
5317562 Nardin et al. May 1994 A
5359592 Corbalis et al. Oct 1994 A
5365580 Morisaki Nov 1994 A
5390239 Morris et al. Feb 1995 A
5394394 Crowther et al. Feb 1995 A
5422880 Heitkamp et al. Jun 1995 A
5430715 Corbalis et al. Jul 1995 A
5473599 Li et al. Dec 1995 A
5473607 Hausman et al. Dec 1995 A
5509006 Wilford et al. Apr 1996 A
5519704 Farinacci et al. May 1996 A
5555244 Gupta et al. Sep 1996 A
5561663 Klausmeier Oct 1996 A
5561669 Lenney et al. Oct 1996 A
5570360 Klausmeier et al. Oct 1996 A
5598581 Daines et al. Jan 1997 A
5602902 Satterlund et al. Feb 1997 A
5617417 Sathe et al. Apr 1997 A
5617421 Chin et al. Apr 1997 A
5623601 Vu Apr 1997 A
5631897 Pacheco et al. May 1997 A
5666353 Klausmeier et al. Sep 1997 A
5668857 McHale Sep 1997 A
5673265 Gupta et al. Sep 1997 A
5678004 Thaweethai Oct 1997 A
5682478 Watson et al. Oct 1997 A
5687176 Wisniewski et al. Nov 1997 A
5691997 Lackey, Jr. Nov 1997 A
5729546 Gupta et al. Mar 1998 A
5732079 Castrigno Mar 1998 A
5737364 Cohen et al. Apr 1998 A
5737526 Periasamy et al. Apr 1998 A
5737635 Daines et al. Apr 1998 A
5740171 Mazzola et al. Apr 1998 A
5740176 Gupta et al. Apr 1998 A
5742604 Edsall et al. Apr 1998 A
5742649 Muntz et al. Apr 1998 A
5756280 Soora et al. May 1998 A
5757916 MacDoran et al. May 1998 A
5757924 Friedman et al. May 1998 A
5764636 Edsall Jun 1998 A
5764641 Lin Jun 1998 A
5765032 Valizadeh Jun 1998 A
5770950 Zurcher et al. Jun 1998 A
5781550 Templin et al. Jul 1998 A
5781617 McHale et al. Jul 1998 A
5784559 Frazier et al. Jul 1998 A
5787070 Gupta et al. Jul 1998 A
5787255 Parlan et al. Jul 1998 A
5793763 Mayes et al. Aug 1998 A
5793951 Stein et al. Aug 1998 A
5793978 Fowler Aug 1998 A
5796732 Mazzola et al. Aug 1998 A
5799017 Gupta et al. Aug 1998 A
5802042 Natarajan et al. Sep 1998 A
5805595 Sharper et al. Sep 1998 A
5812618 Muntz et al. Sep 1998 A
5812786 Seazholtz et al. Sep 1998 A
5822383 Muntz et al. Oct 1998 A
5826014 Coley et al. Oct 1998 A
5828846 Kirby et al. Oct 1998 A
5835036 Takefman Nov 1998 A
5835481 Akyol et al. Nov 1998 A
5835494 Hughes et al. Nov 1998 A
5835725 Chiang et al. Nov 1998 A
5838915 Klausmeier et al. Nov 1998 A
5838994 Valizadeh Nov 1998 A
5852655 McHale et al. Dec 1998 A
5859550 Brandt Jan 1999 A
5864542 Gupta et al. Jan 1999 A
5864666 Shrader Jan 1999 A
5867647 Haigh et al. Feb 1999 A
5867666 Harvey Feb 1999 A
5892903 Klaus Apr 1999 A
5958053 Denker Sep 1999 A
5968176 Nessett et al. Oct 1999 A
5983270 Abraham et al. Nov 1999 A
5991881 Conklin et al. Nov 1999 A
6003030 Kenner et al. Dec 1999 A
6009475 Shrader Dec 1999 A
6035404 Zhao Mar 2000 A
6061650 Malkin et al. May 2000 A
20030053170 Levinson et al. Mar 2003 A1
Foreign Referenced Citations (1)
Number Date Country
WO9737458 Oct 1997 WO
Related Publications (1)
Number Date Country
20040181694 A1 Sep 2004 US
Continuations (1)
Number Date Country
Parent 09040898 Mar 1998 US
Child 10808629 US