The present invention relates in general to data processing systems and in particular to a mechanism for denying access to an enterprise network or other private network by an unauthorized intruder (“hacker”).
In modern data processing systems, particularly with respect to enterprise networks, attacks against the network by unauthorized intruders are a continuing problem. This problem is made particularly acute by the Internet, and the necessity for enterprises to have Internet connectivity. Typically, enterprise networks employ an intrusion detection system (IDS) to monitor the network. Typically an IDS will simply page a system administrator or log the incident. More sophisticated systems may terminate the unauthorized connection and deny future logins. However, such intrusion prevention schemes are unworkable if the compromised login happens to be “root.”
Moreover, typical IDS operate on a system-by-system basis. That is, each system attached to the enterprise network performs its own IDS function. However, an intruder may have broken into an edge node, snooped passwords on the enterprise network, and then connected to the next node via a Telnet session. (It would be recognized by those of ordinary skill in the art that Telnet is the protocol within the TCP/IP suite of protocols that establishes a emulated terminal session between two network systems.) Thus, although an intruder may be denied access to the most sensitive nodes via their respective IDS, the intruder may still have access to a multiplicity of nodes on the enterprise system.
Therefore, there is a need in the art for systems and methods to deny access to potential intruders at the edge node. As described further hereinbelow in conjunction with
The aforementioned needs are addressed by the present invention. Accordingly, there is provided in one embodiment of the present invention a method for denying an intruder access to a data processing system. The method includes receiving a socket identifier from an intruder detection system and passing a “broken connection” message back to the intruder. Responses are output on the socket in reply to intruder input, the responses having characteristics of a local terminal session. The method listens for a login request to the edge node of the data processing system by the intruder.
The foregoing has outlined rather generally the features and technical advantages of one or more embodiments of the present invention in order that the detailed description of the invention that follows may be better understood. Additional features and advantages of the invention will be described hereinafter which may form the subject of the claims of the invention.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
Systems and methods for denying access to a data processing system by an intruder are provided. A privileged process may take over input/output (I/O) on the intruder's connection and “mimic” a local terminal session. On an attempted reconnect by the intruder, the user name and password used by the intruder to access the system may be captured. The password may then be changed on the edge system and the intruder's terminal session disconnected, thereby precluding access by the intruder.
In the following description, numerous specific details are set forth so as to provide a thorough understanding of the present invention. For example, particular interprocess communication (IPC), or communication protocols may be referred to; however, it would be recognized by those of ordinary skill in the art that the present invention may be practiced without such specific details, and, in other instances, well-known circuits have been shown in block diagram form in order not to obscure the present invention in unnecessary detail. Refer now to the drawings, wherein depicted elements are not necessarily shown to scale and wherein like or similar elements are designated by the same reference numeral through the several views.
LAN 102 includes nodes 104a, 104d residing thereon. (Nodes 104a-104d may collectively be referred to as nodes 104.) It would be appreciated by those of ordinary skill in the art that the particular role played by each of the nodes need not be the same, and may represent servers, workstations, personal computers, or other resources, commonly connected on an enterprise or other private network.
Connectivity of LAN 102 to the Internet 106 may be provided via edge node 108. In particular, edge node 108 may provide access to LAN 102 and enable external users such as user 110 to access resources on LAN 102. For example, user 110, an authorized user, may be an employee working from an external location while on travel for example, or working from home via the employee's Internet Service Provider (ISP).
Additionally, as previously described, such Internet connectivity exposes the enterprise network to vulnerabilities of attack by unauthorized users, here, intruder 112.
For the purposes herein, it may be assumed that intruder 112 has managed to gain access to LAN 102 and as previously mentioned, in an enterprise environment particularly, nodes may have an Intrusion Detection System (IDS) deployed thereon, here represented by IDS 114a-114d. Typically these log the intrusion and alert the system administrator, here represented by administrative host 116. Additionally, in accordance with an embodiment of the present invention, IDS 114a-114d may call an intrusion denial mechanism in accordance with the present inventive principles. Such a mechanism for denying access to an intruder, which may be invoked by an IDS, will be described in conjunction with
Process 200 may be invoked by the IDS in response to activity determined by the IDS to represent behavior indicative of an intruder. For example, an attempt by the intruder to access protected data may trigger the IDS which then invokes process 200. In a Unix (or Unix-like, such as Linux) environment, for example, process 200 may be implemented as a shell script, or other executable file. Process 200 may be executed by an administrative node, such as node 116,
In step 202, a user identifier (UID) and connection information are received from the IDS. For example, in a Unix environment, each process has a set of attributes including a UID and a process ID (PID). In particular, the intruder's shell process includes the intruder's UID and a corresponding PID. Connection information may be a socket descriptor. (A socket would be understood by one of ordinary skill in the art to be a logical representation of a network connection. Note that in a Unix environment, the IDS may obtain the socket descriptor associated with the intruder's PID using the netstat command.) In step 204, process 200 takes over input/output (I/O) on the socket. For example, in step 204, process 200 connects to the socket and may then read from and write to the socket. Logically, a socket appears to be a file, and the same functions (e.g. open( ), read( ), and write( )) with respect to opening a file, reading from the file, writing to the file etc. are used to perform the same operations with respect to the socket. Additionally, the intruder's terminal session may typically be connected to the shell, and in step 204, the shell process is killed. Because process 200 is privileged, it may kill the intruder's shell process (using the Unix kill command, for example and the intruder's shell process PID).
Process 200 may then “mimic” the shell as described in steps 206-210. In other words, in steps 206-210 process 200, from the perspective of the intruder, appears to be the (now killed) shell process.
In step 206, a broken connection message is passed back to the intruder. This may be effected in a Unix environment by writing “connection disconnected” or similar text to the socket. Consequently, process 200 gives the appearance that the shell process has been disconnected. Thus, any further activity by the intruder would be expected by the intruder to be with respect to his or her local session. In step 208, in response to any activity, local session responses are returned, and the activity is logged. Thus, in step 208, process 200 appears to the intruder as a local session. Activity may be logged to the system log(syslog ( ) may be used to write messages to the system log.)
In step 210, process 200 waits for the intruder to “telnet” (connect to a shell or other terminal process) back into the edge node. In other words, process 200 listens on the socket for an attempt by the intruder to reconnect and login to the edge node. This may be typically indicated by receipt of the “telnet” keyword and the edge node “name.”
In step 212, a login and password prompt is returned to the intruder's terminal session. Again this may be implemented in a Unix environment by writing the corresponding text to the socket. Thus, the intruder's terminal session displays the typical prompt “login:” and in response, the intruder will supply the login name used to gain access to the network via the edge node. Likewise, the intruder's terminal session displays the “pwd:” prompt to which the intruder responds with the password used to access the network. In step 214 the login name and password are recorded, to the system log, for example. In step 216, a login process is forked and in step 218 the data, that is the captured login name and password are piped to the forked process. By forking a process to login to the edge node, as described below, process 200 maintains the connection to the intruder. (In a Unix environment, a pipe is an interprocess communication channel. Fork is a mechanism to create a new, child, process, implemented as a system call.) Process 200 then loops waiting for the forked process to return. As described below, further actions by process 200 depend on the return values from login process 300.
Refer now to
Login process 300 then terminates in step 310.
Returning to
Conversely, in response to the return of a “success” value from login thread 300, (step 308,
In this way, subsequent attempts to log in will fail due to the changed password. Upon disconnection of the session, process 200 terminates, step 230.
Preferred implementations of the invention include a computer system programmed to execute the method or methods described herein, and a computer program product. According to the computer system implementation, sets of instructions for executing the method or methods are resident in the random access memory 414 of one or more computer systems configured generally as described above. These sets of instructions, in conjunction with system components that execute them may deny unauthorized access to a data processing system as described hereinabove. Until required by the computer system, the set of instructions may be stored as a computer program product in another computer memory, for example, in disk drive 420 (which may include a removable memory such as an optical disk or floppy disk for eventual use in the disk drive 420). Further, the computer program product can also be stored at another computer and transmitted to the users work station by a network or by an external network such as the Internet. One skilled in the art would appreciate that the physical storage of the sets of instructions physically changes the medium upon which is the stored so that the medium carries computer readable information. The change may be electrical, magnetic, chemical, biological, or some other physical change. While it is convenient to describe the invention in terms of instructions, symbols, characters, or the like, the reader should remember that all of these in similar terms should be associated with the appropriate physical elements.
Note that the invention may describe terms such as comparing, validating, selecting, identifying, or other terms that could be associated with a human operator. However, for at least a number of the operations described herein which form part of at least one of the embodiments, no action by a human operator is desirable. The operations described are, in large part, machine operations processing electrical signals to generate other electrical signals.
The present application is a continuation application of pending U.S. patent application Ser. No. 10/611,023, now U.S Pat. No. 7,386,887, entitled, “System and Method for Denying Unauthorized Access to a Private Data Processing Network,” filed on Jul. 1, 2003, which is assigned to the assignee of the present invention. The present application claims priority benefits to U.S. patent application Ser. No. 10,611,023.
Number | Name | Date | Kind |
---|---|---|---|
5896499 | McKelvey | Apr 1999 | A |
5926529 | Hache et al. | Jul 1999 | A |
6119236 | Shipley | Sep 2000 | A |
6202153 | Diamant et al. | Mar 2001 | B1 |
6219706 | Fan et al. | Apr 2001 | B1 |
6268789 | Diamant et al. | Jul 2001 | B1 |
6279113 | Vaidya | Aug 2001 | B1 |
6789113 | Tanaka | Sep 2004 | B1 |
6789202 | Ko et al. | Sep 2004 | B1 |
6988208 | Hrabik et al. | Jan 2006 | B2 |
7007301 | Crosbie et al. | Feb 2006 | B2 |
7042852 | Hrastar | May 2006 | B2 |
7089424 | Subbiah | Aug 2006 | B1 |
7089590 | Judge et al. | Aug 2006 | B2 |
7134141 | Crosbie et al. | Nov 2006 | B2 |
20020162026 | Neuman et al. | Oct 2002 | A1 |
20020178383 | Hrabik et al. | Nov 2002 | A1 |
20030084321 | Tarquini et al. | May 2003 | A1 |
20030149887 | Yadav | Aug 2003 | A1 |
20030167410 | Rigstad et al. | Sep 2003 | A1 |
20040015719 | Lee et al. | Jan 2004 | A1 |
20040111638 | Yadav et al. | Jun 2004 | A1 |
20050039047 | Raikar et al. | Feb 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20080235777 A1 | Sep 2008 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10611023 | Jul 2003 | US |
Child | 12114763 | US |