Part I: Intrusion Prevention Overview |
|||
|
|||
|
|||
|
|||
|
|||
Chapter 1. Intrusion Prevention Overview
Computer and network security products
Intrusion Prevention Systems (IPS) are security protection devices or applications that can prevent attacks against your network devices. These systems
|
Evolution of Computer Security Threats
Security threats have always been around. Anything of value makes a
Initially, mainframes and minicomputers allowed access to a limited number of directly connected dumb terminals. Gradually, the need for extended connectivity became more important. This need for connectivity led to dialup access to mainframes and minicomputers. Adding dialup connectivity increased the scope of attackers by enabling
The development of the Internet has created an environment in which millions of computers across the world are all connected to each other. Furthermore, access to this network is fairly ubiquitous and cheap, enabling any
To protect access to internal networks, most companies deploy a firewall at their network perimeter to limit external access. The development of wireless network access (another technological enhancement) has enabled attackers to bypass these perimeter protection mechanisms. With wireless access, users do not need to be physically connected to gain access to the network. The problem is that wireless connectivity does not stop at the walls of your building. In many deployments, attackers can sit in the parking lot in front of your business and
The threats computer security professionals faced two-and-a-half decades ago are comparatively rudimentary and trivial by today's standards. They had no need for IPSs at that time. Unfortunately, threats have matured
Many factors impact the security threats to which a computer system is vulnerable. Naturally, some threats are more severe than others, so when trying to understand why an IPS is necessary in today's networks, you need to consider the following factors:
Technology Adoption
It is sometimes easy to forget that, at 75
The operational change might take some time because businesses don't usually adopt new technologies quickly. New technology comes with a set of risks, such as poor return on investment, security concerns, training costs, and so on. However, most technologies reach a point at which the rewards for adoption outweigh the risks. At that point, the technology is widely adopted, and the potential security risks become a reality. Even when these technologies are adopted, however, the objective many times is to simply get the technology working, with security being left as a future add on. Four widely adopted technologies stand out as having had a tremendous impact on the evolution of security threats and thus the evolution of IPSs:
Client-Server Computing
Before the client-server architecture became commonplace in the 1990s, most businesses relied solely on mainframes for their computing needs. Users
Client-server is a computing architecture that has largely
Attacks against dumb terminals were limited because the attacker needed physical access to the system. One common attack against these systems was for one user to use the dumb terminal and then run a program that mimicked the normal login program in an attempt to steal login credentials from other users who tried to use the dumb terminal. A terminal, however, that cannot store data and has no processor is usually not an attractive target. Furthermore, dumb terminals cannot be used as a client or a server because they have no processing capability and are not connected together.
Dumb terminals were replaced by personal computers or workstations that could meet the requirements of the client-server architecture. This resulted in a dramatic increase in the number of target
Figure 1-1. Mainframe Versus Client-Server
A client-server architecture not only has more targets for an attacker, but it is also all networked together. If an attacker is able to compromise one computer, any computer connected to the compromised system is now a secondary target. Peer-to-peer networking
The InternetClient-server and peer-to-peer architectures multiplied the number of the potential targets. Even so, attackers needed to have a way to connect to a network or computer to attack it.
Enter the Internet, which allows attackers to rapidly reach millions of targets all over the globe. Any Internet-connected host or network is
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %}
A by-product of ubiquitous Internet use is that the communications protocol it uses, TCP/IP, has also grown in popularity. TCP/IP was designed to connect different types of systems together; it wasn't designed to be secure. Using the basic TCP/IP transport protocols
Wireless Connectivity
Traditionally, you accessed a network by plugging a network cable into a switch port on the network. Therefore, to gain access to the network, you had to have some
Wireless connectivity enables an increase in productivity because it enables your users to easily
However, unlike switch ports, the signals from your wireless access points do not stop at the walls of your facility. Without effective security measures installed, an attacker can easily gain access to your wireless network without ever entering your building. Mobile Computing
Mobile computing refers to the collection of technologies that makes it possible for
Corporations commonly make these resources available to their remote workers through dialup or Internet virtual private network (VPN) connections. Typically, once a user has made an authorized connection to the corporate network, the user's device acts like an ordinary network participant. It has virtually unfettered access (with maybe only minimal restrictions because of traversing through a firewall). Having a mobile workforce is tremendously beneficial, but to realize the benefit companies must accept an equal amount of risk. Mobile workers use many powerful and potentially vulnerable devices that are frequently outside of the office. While not in the office, these devices are far more vulnerable because they are not protected by the countermeasures that would guard them ordinarily. At the same time, they are able to access the corporate network at will.
The upshot is that huge
Another aspect of mobile computing is the increased use of wireless network connectivity. Wireless connectivity enables laptops and PDAs to remain connected as users move from their desks to meetings in various conference rooms.
Note
Wireless mobile computing also refers to remaining connected while moving from one network or zone to another (such as when switching between different
Remaining connected increases the worker's productivity, but the wireless access
Target ValueInitially, personal computers were lucrative targets for their actual hardware. Currently, computer hardware is relatively cheap; however, personal computers are still lucrative targets because of the following factors:
Information Theft
Originally, many computer systems were used for local applications, such as word processing and playing
Zombie Systems
Originally, people had PCs that were connected to the Internet via a dialup modem. These systems, therefore, were connected to the Internet only for a short period of time (limiting the attack window timeframe). With the deployment of high-speed Internet connections, many people have systems directly connected to the Internet 24 hours a day (dramatically increasing the attack window timeframe). Many of these always connected machines are running vulnerable software. By
Attack CharacteristicsThe threats resulting from technology adoption are not, by themselves, enough to compel the creation of a new countermeasure such as an IPS. Combine new technology threats with increasingly sophisticated and formidable attacks and you have circumstances dangerous enough to warrant IPSs. This section defines a loose model called attack characteristics to categorize the level of threat an attack poses. The model uses a consistent set of attributes called attack characteristics to characterize attacks. Breaking down attacks into these attack characteristics enables you to compare various attacks using consistent factors. When an attack has one or more characteristics that are dramatically more dangerous than the same characteristic(s) in previous attacks, you have an indication that existing security countermeasures might not be enough to stop it. This section explores four attack characteristics:
Attack Delivery MechanismDelivery mechanism is the method by which an attack is disseminated. When considering the attack delivery mechanism, you need to consider the following two aspects:
Before media and networks were commonplace, the prevailing delivery mechanism was to deliver the attack in person. The replacement login attack (see the "Attack Examples" section later in the chapter) is a classic example of physical delivery. Of all the delivery mechanisms, physical has the shortest reach. The only targets in reach are the ones that an attacker can touch.
The
Modems, which have been commercially available since 1962, are another option. Attackers created tools they could use to find unsecured modems. Still, finding unsecured modems is a lengthy process, and modem connections are relatively slow. Modems give attackers a longer reach. To improve the efficiency of modem-based attacks, attackers developed tools known as war-dialers to more effectively identify modem connections.
The furthest reach currently available is granted by the Internet. Internet access has also become very fast because of high-speed connectivity via cable and digital subscriber line (DSL) modems. Attackers use Internet access to distribute attacks virtually anywhere they want at great speed, with low cost, and with great convenience. Further, the Internet grants a certain amount of anonymity, providing protection from discovery. Protection from discovery is the second factor that determines the delivery mechanism threat level. It has to do with the risk that the attacker will be identified before, after, or during attack delivery. Naturally, most attackers would rather not be identified.
Physical
Media, modems, and the Internet are more anonymous delivery mechanisms and thus have a higher threat level. Even so, none of the three are completely anonymous. It might be difficult, but it is quite possible to track an attack back to its point of origin, and thus the attacker, even if it was delivered via the Internet.
Several delivery mechanisms significantly increase the protection from discovery. One method is to use obfuscation techniques, and one such technique uses zombies to deliver attacks instead of the attacker's own machines, thus hiding the attacker from whoever might be looking. Tracking the attack back to the original attacker through one or more zombie systems is definitely difficult but not necessarily
Another way to avoid discovery is to deliver the attack
Attack ComplexityAttack complexity is a measurement of the attack based on the following two factors:
The complexity to launch the attack helps you assess how easy it is for an attacker to use a specific attack. The more difficult an attack is to launch, the fewer the number of attackers that can successfully execute the attack. The Internet connects millions of computers together, potentially giving a large number of attackers access to your computer resources. Therefore, it is important to determine how likely it is an attack will be used against your network.
The number of operations an attack performs on the target usually determines its complexity at being
Attack TargetThe following two factors determine the threat level in the target category:
A vulnerability in a rarely used application provides fewer opportunities for an attacker than a vulnerability in an operating system that is used on millions of computers. The larger the potential number of targets is, the more usual it is that a higher threat level is assigned to a given attack. In general, you have fewer servers than you have clients. Therefore, an attack that targets clients usually has more targets than an attack that targets servers. However, servers are usually more important to an organization than client systems. Servers typically contain more important data and provide important business functions. If a server is made unavailable by an attack, that impacts many users, as opposed to just one if a client is unavailable. Furthermore, a compromised server can be used to attack the client systems that attempt to connect to services on the server (exploiting vulnerabilities in the client systems).
Attacks that target one small category of servers might be assigned a low level of threat. If the target servers provide critical business functions such as web pages and database servers, the threat level is high. Likewise, if both servers and personal computers are
Attack Impact
The final attack characteristic is the impact that the attack generates. Many times, the impact is
The intent attribute has to do with the objective of the attack. Not all attacks have an evil intent. The Morris worm (see the "Attack Examples" section), for example, was an
Since the Morris worm, attacks have become increasingly malicious. Some delete data, steal confidential information, and/or intentionally deny service. Some of the most insidious are written by criminal organizations for the purpose of financial gain. For example, some criminal organizations maintain vast collections of zombies, which they rent to other organizations. Other criminals extort users by encrypting their data and then demanding money to decrypt it. Attacks with these types of intent have a threat level of high.
In other situations, someone with potentially good intentions might try to use a "benevolent" worm to try to remove or counter the effects of a malicious worm. A good example is creating a worm to patch systems that are vulnerable to a specific exploit. Similar to the Morris worm, however, these "
The intent of attackers, as well as the impact of the attack, is very important. If attackers have access to a specific exploit, then they can search out systems that are vulnerable to the exploit, gaining control of a large number of systems to use as zombie systems. On the other hand, if attackers are trying to steal information from a specific company, then they seek out vulnerabilities specific to that company's network and use it to obtain the needed information. Attack Examples
Now that you know what the attack characteristics are, you can apply them to any attack to evaluate the threat levels. This section uses several real-world attacks to
Replacement LoginThe intent of this attack is to capture user login credentials. It requires that attackers have physical access to mainframe terminals. Attackers use the terminal to replace the login procedure for the computer with their own.
The attackers' program masquerades as a standard username and password prompt, but when users enters their credentials, it displays an "Invalid Username or Password" message. Users think that they simply
Table 1-1 outlines the attack characteristics for the "Replacement Login" attack. There was no real discovery year for this technique. The delivery mechanism can be categorized as physical because you had to physically log into a dumb terminal connected to the mainframe and run your fake login program. The fake login program, however, was usually not very complex because most of the dumb terminals supported only textual displays (unlike the highly graphical nature of current displays). The target was the mainframe, but most accounts had limited privileges; therefore, the target threat level was low because the effect to the actual mainframe operation was limited. The impact was theft of login credentials, but the accounts usually had limited privileges (and the victim had to log in at the same terminal where your fake login program was running). So, the impact was
Table 1-1. Replacement Login Attack Characteristics
The Morris Worm
In 1988, a Cornell University graduate student wrote and released a worm that propagated using the Internet. Between 6000 and 9000 UNIX-based computers were infected. The worm was not written to cause damage, but to spread to as many systems as possible. Unfortunately, a bug in the worm caused it to
Prior to this worm and for a time after, the most common way to distribute attacks was using media that limited the attack's propagation and reach. The interesting thing about this worm is that it was one of the first distributed using the Internet. It infected systems by exploiting known operating system and application vulnerabilities. After the system was infected, the worm would infect other systems connected to the Internet, which demonstrated how the Internet is a powerful way to propagate attacks.
Table 1-2 outlines the attack characteristics for the Morris worm. This worm was launched in 1988 by Robert T. Morris. The delivery mechanism was via the nascent Internet. Because of the small
Table 1-2. Morris Worm Attack Characteristics
CIH Virus
CIH, also known as Chernobyl or Spacefiller, was one of the most damaging widely circulated viruses ever. It did not have the capability to self-propagate, but it infected some widely distributed files, such as a firmware update from Yamaha and a game demo from Activision. The payload activated on April 26, 1999. CIH severely damaged a large number of computers by destroying all data on the hard drive and, in some cases,
The CIH virus is notable because it demonstrated malicious code's damage potential. Few viruses, worms, or Trojans since CIH have done as much permanent and intentional damage, but the possibility of a future threat that does is still very real. An attack that deletes data and uses the Internet to propagate could be terribly damaging.
Table 1-3 outlines the attack characteristics of the CIH virus. This virus was
Table 1-3. CIH Virus Attack Characteristics
Loveletter Virus
By 2000, e-mail had become a commonplace application. The Loveletter virus, released that year, took advantage of the widespread adoption of e-mail. It consisted of an e-mail message with the worm as an attachment that masqueraded as a loveletter. Recipients were encouraged to
Note Researching the Loveletter virus, you will find that some people call it a worm and other people call it a virus. Because the user had to open the attachment to infect his machine (and launch the Loveletter program), we stick to calling it a virus because it is not truly self-replicating. After a system was infected, the virus sent itself to everyone in the infected system's e-mail contact list. It also initiated a DoS attack on the official White House website's IP address, damaged important multimedia files on the system, and caused widespread e-mail outages. Loveletter caused an estimated $10 billion in economic damages.
Table 1-4 outlines the attack characteristics of the Loveletter virus. Loveletter was discovered in 2000 and is an ideal example of a drastic leap in threat level. Loveletter used Microsoft Outlook Visual Basic commands to perform its operations and incorporated social engineering to trick the user into continuing its spread, giving the complexity a medium threat level. It was delivered using e-mail and the Internet. The target systems were personal computers that were still only moderately important to business operation, so the target threat level can be considered a medium level. At the time, e-mail use was becoming widespread, but it had not achieved the business
Table 1-4. Loveletter Worm Attack Characteristics
Nimda
Prior to the Nimda worm, most malicious code traveled from system to system using just one or two
Although it didn't delete data, Nimda's complexity and variety of delivery mechanisms made it very difficult to stop. Also, it compromised the security settings of any infected host by giving anyone with network access full access to the hard drive. It was one of the first worms to rate a high threat level in every category.
Table 1-5 outlines the attack characteristics of the Nimda worm. Nimda was discovered in 2001 and incorporated multiple delivery mechanisms, giving it a high delivery threat level. Nimda was also fairly complex. It was the first virus/worm to actually infect other files (as opposed to just making multiple copies of itself), making removal more complicated, giving it a high complexity threat level. Nimda targeted personal computers and server systems. By 2001, personal computers and network connectivity had become a much more
Table 1-5. Nimda Attack Characteristics
SQL Slammer
Slammer propagated with unprecedented speed. It
When Slammer hit, its propagation could have been halted by "turning off" all the databases it targeted. Because of the mission critical nature of the service, most organizations could not afford to do that. Any time an attack targets required services, such as databases or network authentication, it is very difficult for organizations to arrest its propagation because doing so would deprive the users of a service they must have to do their jobs.
Note Not being able to prevent the spread of SQL Slammer is a classic example of how business needs often override security concerns in many situations. In this situation, blocking SQL traffic at network routers would have had a much more damaging impact on the network than allowing the SQL Slammer worm to spread until all the systems could be patched. Table 1-6 outlines the attack characteristics for the SQL Slammer worm. This worm, discovered in 2003, was delivered using the Internet but targeted a buffer overflow in Microsoft SQL servers. Exploiting a buffer overflow is not very complicated, so the SQL Slammer's complexity is in the low threat range. The delivery used the Internet, but because most SQL servers are protected from direct Internet access, the delivery threat level is only medium. The target of SQL Slammer was database servers. These systems are critical to business operations so the target threat level is high. Finally, the impact of the SQL Slammer worm is also a high threat level because of a couple of factors. First, the attacker gained control of critical database systems. Another side effect was that thousands and thousands of client systems were compromised because these systems had a simple SQL server program (Microsoft SQL Server 2000 Desktop Engine [MSDE]) running on them by default (unknown to most users of the client systems). Compromise of the clients systems also led to the compromise of more server systems because the client system had access to the internal SQL servers (which were protected from direct Internet access).
Table 1-6. SQL Slammer Attack Characteristics
|