US 7856662 B2
Systems and methods for denying access to a data processing system by an intruder are provided. Input/output (I/O) on the intruder's connection may be taken over and responses mimicking a local terminal session passed back. 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, or alternatively, continue to log the intruder's activity.
1. A computer program product for denying an intruder access embodied in a non-transitory computer-readable storage medium, the program product comprising instructions for:
receiving an identifier of a socket corresponding to an intruder terminal session from an intruder detection system;
passing a broken connection message to the terminal session;
outputting responses on said socket in reply to intruder input, said responses having characteristics of a local terminal session; and
listening for a login request from the intruder, said login request directed to an edge node of a data processing network.
2. The computer program product of
3. The program product of
4. The program product of
logging into the edge node using the login identifier and the password; and
changing the password.
5. The program product of
6. The program product of
7. The program product of
returning a login error message to said intruder if the step of changing the password fails; and
prompting the intruder to retry a login.
8. A data processing system for denying an intruder access comprising:
circuitry operable for receiving an identifier of a socket corresponding to an intruder terminal session from an intruder detection system;
circuitry operable for passing a broken connection message to the terminal session;
circuitry operable for outputting responses on said socket in reply to intruder input, said responses having characteristics of a local terminal session; and
circuitry operable for listening for a login request from the intruder, said login request directed to an edge node of a data processing network.
9. The data processing system of
10. The data processing system of
11. The data processing system of
circuitry operable for logging into the edge node using the login identifier and the password; and
circuitry operable for changing the password.
12. The data processing system of
13. The program product of
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.
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 104 a, 104 d residing thereon. (Nodes 104 a-104 d 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 114 a-114 d. 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 114 a-114 d 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.
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.