Network Security Principles

Network Security Principles

Exploring Security Fundamentals

A “secure network” is a moving target. As new vulnerabilities and new methods of attack are discovered, a relatively unsophisticated user can potentially launch a devastating attack against an unprotected network. This section begins by describing the challenges posed by the current security landscape. You will learn about the three primary goals of security: confidentiality, integrity, and availability.

This section also explains traffic classification and security controls. You will learn how to respond to a security violation and consider the legal and ethical ramifications of network security.

Why Network Security Is a Necessity

Network attacks are evolving in their sophistication and in their ability to evade detection. Also, attacks are becoming more targeted and have greater financial consequences for their victims.

Types of Threats
Connecting a network to an outside network (for example, the Internet) introduces the possibility that outside attackers will exploit the network, perhaps by stealing network data or by impacting the network’s performance (for example, by introducing viruses). However, even if a network were disconnected from any external network, security threats (in fact, most of the probable security threats) would still exist. Specifically, according to the Computer Security Institute (CSI) in San Francisco, California, approximately 60 to 80 percent of network misuse incidents originate from the inside network. Therefore, although network isolation is rarely feasible in today’s e-business environment, even physical isolation from other networks does not ensure network security.

Based on these factors, network administrators must consider both internal and external threats.

Internal Threats
Network security threats originating inside a network tend to be more serious than external threats. Here are some reasons for the severity of internal threats:

  • Inside users already have knowledge of the network and its available resources.
  • Inside users typically have some level of access granted to them because of the nature of their job.
  • Traditional network security mechanisms such as Intrusion Prevention Systems (IPS) and firewalls are ineffective against much of the network misuse originating internally.

External Threats
Because external attackers probably do not have intimate knowledge of a network, and because they do not already possess access credentials, their attacks tend to be more technical in nature. For example, an attacker could perform a ping sweep on a network to identify IP addresses that respond to the series of pings. Then, those IP addresses could be subjected to a port scan, in which open services on those hosts are discovered. The attacker could then try to exploit a known vulnerability to compromise one of the discovered services on a host. If the attacker gains control of the host, he could use that as a jumpingoff point to attack other systems in the network.

Fortunately, network administrators can mitigate many of the threats posed by external attackers. In fact, the majority of this book is dedicated to explaining security mechanisms that can defeat most external threats.

Scope of the Challenge
The “2007 CSI/FBI Computer Crime and Security Survey” is a fascinating document that provides insight into trends in network attacks from 2004 to 2007. A copy of this document can be downloaded from http://i.cmpnet.com/v2.gocsi.com/pdf/CSISurvey2007.pdf.

As an example of the information contained in this document, Figure 1-1 shows the average number of security incidents reported by 208 respondents for the years 2004 to 2007. Notice that the percentage of respondents reporting more than 10 incidents in a year dramatically increased in 2007.
Network Security PrinciplesFIG1.1

The following is a further sampling of information contained in the survey:

  • The average financial loss from computer crime/security incidents increased from $168,000 in 2006 to $350,424 in 2007.
  • Of the survey respondents who reported one or more attacks, 18 percent of those attacks were “targeted” attacks (that is, an attack not targeting the general population).
  • Before the 2007 report, viruses were the leading contributor to financial losses for seven years in a row. However, in the 2007 report, viruses fell to the second leading cause of financial losses, with financial fraud rising to the number one factor.

Non secured Custom Applications
The vast majority (approximately 75 percent) of network attacks target specific applications, as opposed to lower-layer attacks. One reason attacks have become more targeted is the trend of attackers to be more motivated by profit, rather than by the fame or notoriety generated by creating a virus, for example. Unfortunately, because many organizations use custom applications (often not written with security in mind), these applications can be prime attack targets.
Attacks on custom applications are not as preventable as attacks on “well-known” applications, which periodically release security patches and updates. Another concern for

some organizations is complying with regulatory mandates about protecting company data (for example, customer credit card information).

The Three Primary Goals of Network Security

For most of today’s corporate networks, the demands of e-commerce and customer contact require connectivity between internal corporate networks and the outside world. From a security standpoint, two basic assumptions about modern corporate networks are as follows:

  • Today’s corporate networks are large, interconnect with other networks, and run both standards-based and proprietary protocols.
  • The devices and applications connecting to and using corporate networks are continually increasing in complexity
    Because almost all (if not all) corporate networks require network security, consider the three primary goals of network security:
  •  Confidentiality
  • Integrity
  • Availability

Confidentiality
Data confidentiality implies keeping data private. This privacy could entail physically or logically restricting access to sensitive data or encrypting traffic traversing a network. A network that provides confidentiality would do the following, as a few examples:

  • Use network security mechanisms (for example, firewalls and access control lists [ACL]) to prevent unauthorized access to network resources.
  • Require appropriate credentials (for example, usernames and passwords) to access specific network resources.
  • Encrypt traffic such that an attacker could not decipher any traffic he captured from the network.

Integrity
Data integrity ensures that data has not been modified in transit. Also, a data integrity solution might perform origin authentication to verify that traffic is originating from the source that should be sending it.

Examples of integrity violations include

  • Modifying the appearance of a corporate website
  • Intercepting and altering an e-commerce transaction
  • Modifying financial records that are stored electronically

Availability
The availability of data is a measure of the data’s accessibility. For example, if a server were down only five minutes per year, it would have an availability of 99.999 percent (that is, “five nines” of availability).
Here are a couple of examples of how an attacker could attempt to compromise the availability of a network:

  • He could send improperly formatted data to a networked device, resulting in an unhandled exception error.
  • He could flood a network system with an excessive amount of traffic or requests. This would consume the system’s processing resources and prevent the system from responding to many legitimate requests. This type of attack is called a denial-of-service (DoS) attack.
Categorizing Data

Different data requires varying levels of security (for example, based on the data’s sensitivity). Therefore, organizations often adapt a data classification system to categorize data. Each category can then be treated with a specific level of security. However, sometimes this data classification is not just a convenience. Sometimes organizations are legally required to protect certain classifications of data.

Classification Models
Although no single standard exists for data classification, organizations often benefit from examining classification models commonly used by government and many businesses.

Government and Military Classification Model
Table 1-2 provides an example of a data classification model, which is used by multiple governments and militaries.

Network Security PrinciplesTB1.2

NOTE  In the U.S., Executive Order 12958 (available at http://www.whitehouse.gov/ news/releases/2003/03/20030325-11.html) states that the U.S. government shall classify classified information into one of three levels: (1) Confidential, (2) Secret, and (3) TopSecret.

Organizational Classification Model
Table 1-3 provides an example of an organizational data classification model.

Network Security PrinciplesTB1.3

Data Classification Characteristics
Table 1-4 offers a few characteristics by which data can be classified.

Network Security PrinciplesTB1.4

When determining a classification approach, define how many classification levels you need. Having too many classification levels can prove difficult to administer, whereas having too few classification levels lacks the granularity needed to classify a wide spectrum of data. As part of documenting your classification approach, you should also indicate who is responsible for securing data classified using your defined security levels.

NOTE
Some occasions necessitate the release of classified data. Such occasions include the need to comply with a court order, when working with certain government agencies, and when the release of the information is ordered by senior management.

Classification Roles
Different members of an organization must assume different roles to ensure the proper protection of classified data. Examples of these roles include the following:

  • Owner
    •  Initially determines the classification level
    • Routinely reviews documented procedures for classifying data
    • Gives the custodian the responsibility of protecting the data
  • Custodian
    • Keeps up-to-date backups of classified data
    • Verifies the integrity of the backups
    • Restores data from backups on an as-needed basis
    • Follows policy guidelines to maintain specific data
  •  User
    •  Accesses and uses data in accordance with an established security policy
    • Takes reasonable measures to protect the data he or she has access to
    • Uses data for only organizational purposes

Controls in a Security Solution
As just mentioned, the work of actually securing data is the responsibility of the custodian. However, if security is applied only through technical means, the results will not be highly effective. Specifically, because most attacks originating inside a network are not technical attacks, nontechnical mitigation strategies are required to thwart them. Cisco defines three security controls contained in a more all-encompassing security solution:

  • Administrative controls are primarily policy-centric. Examples include the following:
    • Routine security awareness training programs
    • Clearly defined security policies
    • A change management system, which notifies appropriate parties of system changes
    • Logging configuration changes
    • Properly screening potential employees (for example, performing criminal background checks)
  • Physical controls help protect the data’s environment and prevent potential attackers from readily having physical access to the data. Examples of physical controls are
    • Security systems to monitor for intruders
    • Physical security barriers (for example, locked doors)
    •  Climate protection systems, to maintain proper temperature and humidity, in addition to alerting personnel in the event of fire
    • Security personnel to guard the data
  • Technical controls use a variety of hardware and software technologies to protect data. Examples of technical controls include the following:
    •  Security appliances (for example, firewalls, IPSs, and VPN termination devices)
    • Authorization applications (for example, RADIUS or TACACS+ servers, one-time passwords (OTP), and biometric security scanners)
NOTE
Because this book focuses on Cisco-based security solutions, most of the mitigation strategies presented use technology controls.

Individual administrative, physical, and technical controls can be further classified as one of the following control types:

  • Preventive: A preventive control attempts to prevent access to data or a system.
  • Deterrent: A deterrent control attempts to prevent a security incident by influencing the potential attacker not to launch an attack.
  • Detective: A detective control can detect when access to data or a system occurs.
    Interestingly, each category of control (administrative, physical, and technical) contains components for these types of controls (preventive, deterrent, and detective). For example, a specific detective control could be one of the following:
  • An administrative control, such as a log book entry that is required by a security policy
  • A physical control, such as an alarm that sounds when a particular door is opened
  • A technical control, such as an IPS appliance generating an alert

Responding to a Security Incident
Many deterrent controls might display warnings such as “Violators will be prosecuted to the fullest extent of the law.” However, to successfully prosecute an attacker, litigators typically require the following elements to present an effective argument:

  • Motive: A motive describes why the attacker committed the act. For example, was he a disgruntled employee? Also, potential motives can be valuable to define during an investigation. Specifically, an investigation might begin with those who had a motive to carry out the attack.
  • Means: With all the security controls in place to protect data or computer systems, you need to determine if the accused had the means (for example, the technical skills) to carry out the attack.
  • Opportunity: The question of whether the accused had the opportunity to commit the attack asks if the accused was available to commit the attack. For example, if the accused claims to have been at a ball game at the time of the attack, and if witnesses can verify this statement, it is less likely that the accused did indeed commit the attack.
    Another challenge with prosecuting computer-based crime stems from the fragility of data. For example, a time stamp can easily be changed on a file without detection. To prevent such evidence tampering, strict policies and procedures for data handling must be followed. For example, before any investigative work is done on a computer system, a policy might require that multiple copies of the hard drive be made. One or more master copies could be locked up, and copies could also be given to the defense and prosecution for their investigation.

Also, to verify the integrity of data since a security incident occurred, you should be able to show a chain of custody. A chain of custody documents who has been in possession of the data (that is, the evidence) since a security breach occurred.

Legal and Ethical Ramifications
Some businesses must abide by strict government regulations for security procedures. Therefore, information security professionals should be familiar with a few fundamental legal concepts. For example, most countries classify laws into one of the following three types:

  • Criminal law applies to crimes that have been committed and that might result in fines and/or imprisonment for someone found guilty.
  • Civil law addresses wrongs that have been committed. However, those wrongs are not considered crimes. An example of civil litigation might involve patent infringement. Consequences to someone found to be in violation of a civil law might include an order to cease and desist the illegal activity and/or to pay damages.
  • Administrative law typically involves the enforcement of regulations by government agencies. For example, a company that misappropriated retirement funds might be found in violation of an administrative law. If a party is found to be in violation of an administrative law, the consequences typically are monetary, with the money being divided between the government agency and the victim.
    In addition to legal restrictions, information security professionals should be bound by ethical guidelines. Ethical guidelines deal more with someone’s intent and conduct, as opposed to whether an act was technically legal.
    Although the issue of ethics might seem more difficult to define, information security professionals have several formalized codes of conduct:
  • International Information Systems Security Certification Consortium, Inc. Code of Ethics
  • Computer Ethics Institute
  • Internet Activities Board (IAB)
  • Generally Accepted System Security Principles (GASSP)

Legal Issues to Consider
As a provider of network connectivity to customers, a service provider needs to be aware of potential liability issues. For example, if an e-commerce company lost a certain amount of business because of a service provider outage, the service provider might be found liable and have to pay damages.

Also, some countries are passing laws dictating how companies handle privacy issues. For example, the Notification of Risk to Personal Data Act in the U.S. requires companies and government agencies that conduct commerce between states to alert anyone whose personal data was revealed to someone not authorized to see it.

U.S. Laws and Regulations
With increased levels of terrorist activity on the Internet and an ever-increasing percentage of Internet connectivity for the world’s citizens, governments are forced to develop regulations and legislation covering information security. As a few examples, the U.S. government created the following regulations, which pertain to information security:

  • Gramm-Leach-Bliley Act (GLBA) of 1999: Did away with antitrust laws that disallowed banks, insurance companies, and securities firms from combining and sharing their information.
  • Health Insurance Portability and Accountability Act (HIPAA) of 2000: Provides assurance that the electronic transfer of confidential patient information will not be less secure than the transfer of paper-based patient records.
  • Sarbanes-Oxley (SOX) Act of 2002: Responded to corporate accounting scandals in an attempt to increase public trust in accounting and reporting practices.
  • Security and Freedom through Encryption (SAFE) Act: Permits any form of encryption to be used by people in the U.S.
  • Computer Fraud and Abuse Act: Developed to reduce malicious computing hacking, with an amendment to accommodate the Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism (USA PATRIOT) Act.
  • Privacy Act of 1974: Protects the privacy of individuals and requires that they provide written permission for their information to be released.
  • Federal Information Security Management Act (FISMA) of 2002: Requires annual audits of network security within the U.S. government and affiliated parties.
  • Economic Espionage Act of 1996: States that the misuse of trade secrets is a federal crime.

International Jurisdiction Issues
A unique legal challenge for prosecuting information security offenses deals with jurisdictional issues. For example, an attacker in one country could launch an attack from a computer in another country that targets a computer in yet another country. The international boundaries that were virtually crossed could pose significant challenges to litigators.
Fortunately, governments are beginning to collaborate on such investigations and prosecutions. For example, organizations that share law enforcement information between countries include G8, Interpol, and the European Union.

Understanding the Methods of Network Attacks

You might have noticed that this book has thus far referred to computer criminals as “attackers” rather than “hackers.” This wording is intentional, because not all hackers have malicious intent, even though the term “hacker” often has a negative connotation. In this section, you will gain additional insight into the mind-set and characteristics of various hackers.

Additionally, you will be introduced to a variety of methods that attackers can use to infiltrate a computing system. To help mitigate such attacks, Cisco recommends the Defense in Depth design philosophy, which also is covered in this section, in addition to a collection of best practices for defending your network.

Vulnerabilities

A vulnerability in an information system is a weakness that an attacker might leverage to gain unauthorized access to the system or its data. In some cases, after a vulnerability is discovered, attackers write a program intended to take advantage of the vulnerability. This type of malicious program is called an exploit. However, even if a system has a vulnerability, the likelihood that someone will use that vulnerability to cause damage varies. This likelihood is called risk. For example, a data center might be vulnerable to a fire breaking out in the building. However, if the data center has advanced fire suppression systems and hot standby backups at another physical location, the risk to the data is minimal.

When you make plans to address vulnerabilities, consider the varied types of vulnerabilities. For example, consider the following broad categories of vulnerabilities:

  • Physical vulnerabilities, such as fire, earthquake, or tornado
  • Weaknesses in a system’s design
  • Weaknesses in the protocol(s) used by a system
  • Weaknesses in the code executed by a system
  • Sub optimal configuration of system parameters
  • Malicious software (for example, a virus)
  • Human vulnerabilities (whether intentional or unintentional)

For example, consider human vulnerabilities. Because most attacks against information systems are launched from people on the “inside,” controls should be set up to prevent the intentional or unintentional misuse of information systems.
Social engineering is an example of unintentional misuse. To illustrate this concept, consider a situation in which an outside attacker calls a receptionist. The attacker pretends to be a member of the company’s IT department, and he convinces the receptionist to tel him her username and password. The attacker then can use those credentials to log into the network.

To prevent a single inside user from accidentally or purposefully launching an attack, some organizations require that two users enter their credentials before a specific act can be carried out, much like two keys being required to launch a missile. Also, many employees are concerned with accomplishing a particular task. If stringent security procedures seem to stand in their way, the employees might circumnavigate any safeguards to, in their minds, be more productive. Therefore, user education is a critical component of any organizational security policy.

Potential Attackers

Another element of defending your data is identifying potential attackers who might want to steal or manipulate that data. For example, a company might need to protect its data from corporate competitors, terrorists, employees, and hackers, to name just a few. The term “hacker” is often used very generically to describe attackers. However, not all hackers have malicious intent. Table 1-5 lists various types of “hackers.”
Network Security PrinciplesTB1.5

As shown in Table 1-5, “hackers” come in many flavors, which leads to the question, “What motivates a hacker?” Some hackers might work for governments to try to gather intelligence from other governments. Some attackers seek financial gain through their attacks. Other hackers simply enjoy the challenge of compromising a protected information system.
This book details several specific attacks that an attacker can launch. However, at this point, you should be familiar with five broad categories of attacks:

  • Passive: A passive attack is difficult to detect, because the attacker isn’t actively sending traffic (malicious or otherwise). An example of a passive attack is an attacker capturing packets from the network and attempting to decrypt them (if the traffic was encrypted originally).
  • Active: An active attack is easier to detect, because the attacker is actively sending traffic that can be detected. An attacker might launch an active attack in an attempt to access classified information or to modify data on a system.
  • Close-in: A close-in attack, as the name implies, occurs when the attacker is in close physical proximity with the target system. For example, an attacker can bypass password protection on some routers, switches, and servers if he gains physical access to those devices.
  • Insider: An insider attack occurs when legitimate network users leverage their credentials and knowledge of the network in a malicious fashion.
  • Distribution: Distribution attacks intentionally introduce “back doors” to hardware or software systems at the point of manufacture. After these systems have been distributed to a variety of customers, the attacker can use his knowledge of the implanted back door to, for example, access protected data, manipulate data, or make the target system unusable by legitimate users.

The Mind-set of a Hacker

Hackers can use a variety of tools and techniques to “hack” into a system (that is, gain unauthorized access to a system). Although these methods vary, the following steps illustrate one example of a hacker’s methodical process for hacking into a system: Step 1 Learn more about the system by performing reconnaissance. In this step, also known as “footprinting,” the hacker learns all he can about the system. For example, he might learn the target company’s domain names and the range of IP addresses it uses. He might perform a port scan to see what ports are open on a target system.

Step 2 Identify applications on the system, as well as the system’s operating system. Hackers can use various tools to attempt to connect to a system, and the prompt they receive (for example, an FTP login prompt or a default web page) could provide insight into the system’s operating system. Also, the previously mentioned port scan can help identify applications running on a system.

Step 3 Gain access to the system. Social engineering is one of the more popular ways to obtain login credentials. For example, public DNS records provide contact information for a company’s domain name. A hacker might be able to use this information to convince the domain administrator to reveal information about the system. For example, the hacker could pretend to be a representative of the service provider or a government agency. This approach is called pretexting.

Step 4 Log in with obtained user credentials, and escalate the hacker’s privileges. For example, a hacker could introduce a Trojan horse (a piece of software that appears to be a legitimate application but that also performs some unseen malicious function) to escalate his privileges.

Step 5 Gather additional usernames and passwords. With appropriate privileges, hackers can run utilities to create reports of usernames and/or passwords.

Step 6 Configure a “back door.” Accessing a system via a regular username/ password might not be how a hacker wants to repeatedly gain access to a system. Passwords can expire, and logins can be logged. Therefore, hackers might install a back door, which is a method of gaining access to a system that bypasses normal security measures.
Step 7 Use the system. After a hacker gains control of a system, he might gather protected information from that system. Alternatively, he might
manipulate the system’s data or use the system to launch attacks against other systems with which the system might have an established trust relationship.

Defense in Depth

Because a security solution is only as strong as its weakest link, network administrators are challenged to implement a security solution that protects a complex network. As a result, rather than deploying a single security solution, Cisco recommends multiple, overlapping solutions. These overlapping solutions target different aspects of security, such as securing against insider attacks and securing against technical attacks. These solutions should also be subjected to routine testing and evaluation. Security solutions should also overlap in a way that eliminates any single point of failure.

Defense in Depth is a design philosophy that achieves this layered security approach. The layers of security present in a Defense in Depth deployment should provide redundancy for one another while offering a variety of defense strategies for protecting multiple aspects of a network. Any single points of failure in a security solution should be eliminated, and weak links in the security solution should be strengthened.
The Defense in Depth design philosophy includes recommendations such as the following:

  • Defend multiple attack targets in the network.
    • Protect the network infrastructure.
    • Protect strategic computing resources, such as via a Host-based Intrusion Prevention System (HIPS).
  • Create overlapping defenses. For example, include both Intrusion Detection System (IDS) and IPS protections.
  • Let the value of a protected resource dictate the strength of the security mechanism. For example, deploy more resources to protect a network boundary as opposed to the resources deployed to protect an end-user workstation.
  • Use strong encryption technologies, such as AES (as opposed to DES) or Public Key Infrastructure (PKI) solutions.

Consider the sample Defense in Depth topology shown in Figure 1-2. Notice the two e-mail servers—external and internal. The external e-mail server acts as an e-mail relay to the internal e-mail server. Therefore, an attacker attempting to exploit an e-mail vulnerability would have to compromise both e-mail servers to affect the internal corporate e-mail.

Also notice the use of a Network-based Intrusion Detection System (NIDS), a Network Intrusion Prevention System (NIPS), and a Host-based Intrusion Prevention System (HIPS). All three of these mitigation strategies look for malicious traffic and can alert or drop such traffic. However, these strategies are deployed at different locations in the network to protect different areas of the network. This overlapping yet diversified protection is an example of the Defense in Depth design philosophy.

However, if all security solutions in a network were configured and managed by a single management station, this management station could be a single point of failure. Therefore, if an attacker compromised the management station, he could defeat other security measures.

Network Security PrinciplesFIG1.2

In the “Potential Attackers” section you read about five classes of attacks; Table 1-6 provides examples of overlapping defenses for each of these classes.

Network Security PrinciplesTB1.6

Understanding IP Spoofing

Attackers can launch a variety of attacks by initiating an IP spoofing attack. An IP spoofing attack causes an attacker’s IP address to appear to be a trusted IP address. For example, if an attacker convinces a host that he is a trusted client, he might gain privileged access to a host. The attacker could also capture traffic, which might include credentials such as usernames and passwords. As another example, you might be familiar with denial-ofservice (DoS) and distributed denial-of-service (DDoS) attacks. The perpetrators of such attacks might use IP spoofing to help conceal their identities.

To understand how an IP spoofing attack is possible, consider the operation of IP and TCP. At Layer 3, the attacker can easily modify his packets to make the source IP address appear to be a “trusted” IP address. However, TCP, operating at Layer 4, can be more of a challenge.
From your early studies of TCP, you might recall that a TCP session is established using a three-way handshake:

  1. The originator sends a SYN segment to the destination, along with a sequence number.
  2. The destination sends an acknowledgment (an ACK) of the originator’s sequence number along with the destination’s own sequence number (a SYN).
  3. The originator sends an ACK segment to acknowledge the destination’s sequence number, after which the TCP communication channel is open between the originator and destination.
    Figure 1-3 illustrates the TCP three-way handshake process.

Network Security PrinciplesFIG1.3

For an attacker to “hijack” a session being set up between a legitimate originator and a destination, the attacker needs to know the TCP sequence numbers used in the TCP segments. If the attacker successfully guesses or predicts the correct TCP sequence numbers, he can send a properly constructed ACK segment to the destination. If the

attacker’s ACK segment reaches the destination before the originator’s ACK segment does, the attacker becomes trusted by the destination, as illustrated in Figure 1-4.

Network Security PrinciplesFIG1.4
How an attacker guesses or predicts correct TCP sequence numbers depends on the type of IP spoofing attack being launched. Table 1-7 describes two categories of IP spoofing attacks.
tb1-7———————-

Launching a Remote IP Spoofing Attack with IP Source Routing
If an attacker uses a feature known as IP source routing, he can specify a complete routing path to be taken by two endpoints. Consider Figure 1-5. The attacker is on a different subnet than the destination host. However, the attacker sends an IP packet with a source route specified in the IP header, which causes the destination host to send traffic back to the spoofed IP address via the route specified. This approach can overcome the previously
described challenge that an attacker might have when launching a remote IP spoofing (blind spoofing) attack.

Network Security PrinciplesFIG1.5

Source routing has two variations:

  • Loose: The attacker specifies a list of IP addresses through which a packet must travel. However, the packet could also travel through additional routers that interconnect IP addresses specified in the list.
  • Strict: The IP addresses in the list specified by the attacker are the only IP addresses through which a packet is allowed to travel.

Launching a Local IP Spoofing Attack Using a Man-in-the-Middle Attack
If an attacker is on the same subnet as the target system, he might launch a man-in-themiddle attack. In one variant of a man-in-the-middle attack, the attacker convinces systems to send frames via the attacker’s PC. For example, the attacker could send a series of gratuitous ARP (GARP) frames to systems.

These GARP frames might claim that the attacker’s Layer 2 MAC address was the MAC address of the next-hop router. The attacker could then capture traffic and forward it to the legitimate next-hop router. As a result, the end user might not notice anything suspicious.

Another variant of a man-in-the-middle attack is when the attacker connects a hub to a network segment that carries the traffic the attacker wants to capture, as shown in Figure 1-6. Alternatively, an attacker could connect to a Switch Port Analyzer (SPAN) port on a Catalyst switch, which makes copies of specified traffic and forwards them to the configured SPAN port. The attack could then use a packet-capture utility to capture traffic traveling between end systems. If the captured traffic is in plain text, the attacker might be able to obtain confidential information, such as usernames and passwords.

Network Security PrinciplesFIG1.6

Protecting Against an IP Spoofing Attack
The following approaches can be used to mitigate IP spoofing attacks:

  • Use access control lists (ACL) on router interfaces. As traffic comes into a router from an outside network, an ACL could be used to deny any outside traffic claiming to be addressed with IP addressing used internally on the local network. Conversely, ACLs should be used to prevent traffic leaving the local network from participating in a DDoS attack. Therefore, an ACL could deny any traffic leaving the local network that claimed to have a source address that was different from the internal network’s IP address space.
  • Encrypt traffic between devices (for example, between two routers, or between an end system and a router) via an IPsec tunnel. In Figure 1-7, notice that the topology is now protected with an IPsec tunnel. Even though the attacker can still capture packets via his rogue hub, the captured packets are unreadable, because the traffic is encrypted inside the IPsec tunnel.

Network Security PrinciplesFIG1.7

  • Use cryptographic authentication. If the parties involved in a conversation are authenticated, potential man-in-the-middle attackers can be thwarted. Potential attackers will not be successfully authenticated by the other party in the conversation.

Understanding Confidentiality Attacks

A confidentiality attack (see Figure 1-8) attempts to make “confidential” data (such as personnel records, usernames, passwords, credit card numbers, and e-mails) viewable by an attacker. Because an attacker often makes a copy of the data, rather than trying to manipulate the data or crash a system, confidentiality attacks often go undetected. Even if auditing software to track file access were in place, if no one suspected an issue, the audit trail might never be examined.

Network Security PrinciplesFIG1.8
In Figure 1-8, a web server and a database server have a mutual trust relationship. The database server houses confidential customer information, such as credit card information. As a result, Company A decides to protect the database server (for example, patching known software vulnerabilities) better than the web server. However, the attacker leverages the trust relationship between the two servers to obtain customer credit card information and then make a purchase from Company B using the stolen information. The procedure is as follows:
Step 1 The attacker exploits a vulnerability in Company A’s web server and gains control of that server.
Step 2 The attacker uses the trust relationship between the web server and the database server to obtain customer credit card information from the database server.
Step 3 The attacker uses the stolen credit card information to make a purchase from Company B.
Table 1-8 identifies several methods that attackers might use in a confidentiality attack.

Network Security PrinciplesTB1.8

Understanding Integrity Attacks

Integrity attacks attempt to alter data (that is, compromise its integrity). Figure 1-9 shows an example of an integrity attack.

Network Security PrinciplesFIG1.9

In the figure, an attacker has launched a man-in-the-middle attack (as previously described). This attack causes data flowing between the banking customer and the banking server to be sent via the attacker’s computer. The attacker then can not only intercept but also manipulate the data. In the figure, notice that the banking customer attempts to deposit $500 into her account. However, the attacker intercepts and changes the details of the transaction, such that the instruction to the banking server is to deposit $5,000 in the attacker’s account.
The following list describes methods that attackers might leverage to conduct an integrity attack:

  • Salami attack: This is a collection of small attacks that result in a larger attack when combined. For example, if an attacker had a collection of stolen credit card numbers, he could withdraw small amounts of money from each credit card (possibly unnoticed by the credit card holders). Although each withdrawal is small, they add up to a significant sum for the attacker.
  • Data diddling: The process of data diddling changes data before it is stored in a computing system. Malicious code in an input application or virus could perform data diddling. For example, a virus, Trojan horse, or worm could be written to intercept keyboard input. It would display the appropriate characters on-screen so that the user would not see a problem. However, manipulated characters would be entered into a database application or sent over a network.

Trust relationship exploitation: Different devices in a network might have a trust relationship between themselves. For example, a certain host might be trusted to communicate through a firewall using specific ports, while other hosts are denied passage through the firewall using those same ports. If an attacker could compromise the host that had a trust relationship with the firewall, the attacker could use the compromised host to pass normally denied data through a firewall. Another example of a trust relationship is a web server and a database server mutually trusting one another. In that case, if the attacker gained control of the web server, he might be able to leverage that trust relationship to compromise the database server.

  • Password attack: A password attack, as the name suggests, attempts to determine a user’s password. As soon as the attacker gains the username and password credentials, he can attempt to log into a system as that user, and therefore inherit that user’s set of permissions. Various approaches are available for determining passwords:
    • Trojan horse: A program that appears to be a useful application captures a user’s password and then makes it available to the attacker.
    • Packet capture: A packet-capture utility can capture packets seen on a PC’s NIC. Therefore, if the PC can see a copy of a plain-text password being sent over a link, the packet-capture utility can be used to glean the password.
    • Keylogger: A keylogger is a program that runs in the background of a computer, logging the user’s keystrokes. After a user enters a password, it is stored in the log created by the keylogger. An attacker then can retrieve the log of keystrokes to determine the user’s password.
    • Brute force: A brute-force password attack tries all possible password combinations until a match is made. For example, the brute-force attack might start with the letter a and go through to the letter z. Then the letters aa through zz are attempted, until a password is determined. Therefore, using a mixture of uppercase and lowercase letters in passwords, in addition to special characters and numbers, can help mitigate a bruteforce attack.
    • Dictionary attack: A dictionary attack is similar to a brute-force attack, in that multiple password guesses are attempted. However, the dictionary attack is based on a dictionary of commonly used words, rather than the brute-force method of trying all possible combinations. Picking a password that is not a common word can help mitigate a dictionary attack.
  • Botnet: A software “robot” typically is thought of as an application on a machine that can be controlled remotely (for example, a Trojan horse or a back door in a system). If a collection of computers is infected with such software robots, called “bots,” this collection of computers (each of which is called a “zombie”) is known as a “botnet.” Because of the potentially large size of a botnet, it might compromise the integrity of a large amount of data.
  • Hijacking a session: Earlier in this chapter, you read about how an attacker could hijack a TCP session (for example, by completing the third step in the three-way TCP handshake process between an authorized client and a protected server). If an attacker successfully hijacked a session of an authorized device, he might be able to maliciously manipulate data on the protected server.

Understanding Availability Attacks

Availability attacks attempt to limit a system’s accessibility and usability. For example, if an attacker could consume the processor or memory resources on a target system, that system would be unavailable to legitimate users. Availability attacks vary widely, from consuming the resources of a target system to doing physical damage to that system. Attackers might employ the following availability attacks:

  • Denial of service (DoS): An attacker can launch a DoS attack on a system by sending the target system a flood of data or requests that consume the target system’s resources. Alternatively, some operating systems and applications might crash when they receive specific strings of improperly formatted data, and the attacker could leverage such operating system and/or application vulnerabilities to render a system or application inoperable. The attacker often uses IP spoofing to conceal his identity when launching a DoS attack, as shown in Figure 1-10.

Network Security PrinciplesFIG1.10

Distributed denial of service (DDoS): DDoS attacks can increase the amount of traffic flooded to a target system. Specifically, the attacker compromises multiple systems. The attacker can instruct those compromised systems, called “zombies,” to simultaneously launch a DDoS attack against a target system.

  • TCP SYN flood: Earlier in this chapter you reviewed the three-way TCP handshake process. One variant of a DoS attack is for an attacker to initiate multiple TCP sessions by sending SYN segments but never completing the three-way handshake. As illustrated in Figure 1-11, the attack can send multiple SYN segments to a target system, with false source IP addresses in the header of the SYN segment. Because many servers limit the number of TCP sessions they can have open simultaneously, a SYN flood can render a target system incapable of opening a TCP session with a legitimate user.

Network Security PrinciplesFIG1.11

ICMP attacks: Many networks permit the use of ICMP traffic (for example, ping traffic), because pings can be useful for network troubleshooting. However, attackers can use ICMP for DoS attacks. One ICMP DoS attack variant called “the ping of death” uses ICMP packets that are too big. Another variant sends ICMP traffic as a series of fragments in an attempt to overflow the fragment reassembly buffers on the target device. Also, a “Smurf attack” can use ICMP traffic directed to a subnet to flood a target system with ping replies, as shown in Figure 1-12. Notice in the figure that the attacker sends a ping to the subnet broadcast address of 172.16.0.0/16. This collection of pings instructs devices on that subnet to send their ping replies to the target system at IP address 10.2.2.2, thus flooding the target system’s bandwidth and processing resources.

Network Security PrinciplesFIG1.12

  • Electrical disturbances: At a physical level, an attacker could launch an availability attack by interrupting or interfering with the electrical service available to a system. For example, if an attacker gained physical access to a data center’s electrical system, he might be able to cause a variety of electrical disturbances:
    • Power spike: Excess power for a brief period of time
    • Electrical surge: Excess power for an extended period of time
    • Power fault: A brief electrical outage
    • Blackout: An extended electrical outage
    • Power sag: A brief reduction in power
    • Brownout: An extended reduction in power

To combat such electrical threats, Cisco recommends that you install uninterruptible power supplies (UPS) and generator backups for strategic devices in your network. Also, you should routinely test the UPS and generator backups.

  • Attacks on a system’s physical environment: Attackers could also intentionally damage computing equipment by influencing the equipment’s physical environment. For example, attackers could attempt to manipulate such environmental factors as the following:
    • Temperature: Because computing equipment generates heat (for example, in data centers or server farms), if an attacker interferes with the operation of the air conditioning system, the computing equipment could overheat.
    • Humidity: Because computing equipment is intolerant of moisture, an attacker could, over time, cause physical damage to computing equipment by creating a high level of humidity in the computing environment.
    • Gas: Because gas can often be flammable, if an attacker injects gas into a computing environment, small sparks in that environment could cause a fire. Consider the following recommendations to mitigate such environmental threats:
    • Computing facilities should be locked (and inaccessible via a dropped ceiling, a raised floor, or any other way other than a monitored point of access).
    • Access should require access credentials (for example, via a card swipe or a fingerprint scan).
    • Access points should be visually monitored (for example, via local security personnel or remotely via a camera system).
    • Climate control systems should maintain temperature and humidity and send alerts if specified temperature and humidity thresholds are exceeded.
    • The fire detection and suppression systems should be designed not to damage electronic equipment.

Best-Practice Recommendations

You now have a fundamental understanding of threats targeting network and computing environments. Cisco recommends the following best practices to help harden the security of your network:

  • Routinely apply patches to operating systems and applications.
  • Disable unneeded services and ports on hosts.
  • Require strong passwords, and enable password expiration.
  • Protect the physical access to computing and networking equipment.
  • Enforce secure programming practices, such as limiting valid characters that can be entered into an application’s dialog box.
  • Regularly back up data, and routinely verify the integrity of the backups.
  • Train users on good security practices, and educate them about social engineering tactics.
  • Use strong encryption for sensitive data.
  • Defend against technical attacks by deploying hardware- and software-based security systems (for example, firewalls, IPS sensors, and antivirus software).
  • Create a documented security policy for company-wide use.

About the author

Prasanna

Leave a Comment