Lesson 1 of 2 Network Attacks and Countermeasures

Common Network Attacks

Attackers target networks to disrupt services, intercept communications and redirect users. This lesson explains denial-of-service and DDoS attacks, man-in-the-middle attacks, DNS cache poisoning and other common network attacks.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish volumetric, protocol and application-layer DDoS attacks.
  • Describe how man-in-the-middle attacks are carried out.
  • Explain DNS cache poisoning and related DNS attacks.
  • Identify other common network attacks.

Denial of service and DDoS

A denial-of-service (DoS) attack makes a system or network unavailable to legitimate users by exhausting a resource. A distributed denial-of-service (DDoS) attack uses many sources at once, usually a botnet of compromised computers and IoT devices, which makes it far larger and harder to block by source. DDoS attacks fall into three categories.

Volumetric attacks
Flood the target's bandwidth. Reflection and amplification attacks send small requests with the victim's spoofed address to open services such as DNS resolvers, NTP or memcached servers, which send much larger replies to the victim.
Protocol attacks
Exhaust the state of servers, firewalls or load balancers, as in SYN floods and fragmented packet attacks.
Application-layer attacks
Send valid-looking requests, such as HTTP GET floods on expensive pages, that exhaust application resources with relatively little traffic and are hard to distinguish from real users.

DDoS attacks are used for extortion, activism, competition and as a distraction while another attack takes place. Their impact is on availability.

The following diagram shows how a DNS reflection and amplification attack reaches a company.

A DNS reflection and amplification attack. The attacker sends small DNS queries to open resolvers with the company's address spoofed as the source, and the resolvers send large responses to the company, saturating its internet link with UDP traffic from port 53. The company's own firewall is behind the saturated link, so mitigation needs upstream scrubbing or the provider's help.
The number of resolvers is illustrative.

Man-in-the-middle attacks

In a man-in-the-middle (MITM) or on-path attack, the attacker places themselves between two communicating parties, so that traffic passes through them. They can eavesdrop, steal credentials and session tokens, and alter data, while each party believes it is communicating directly with the other. Techniques for getting on the path include the following.

  • ARP spoofing (ARP poisoning): sending forged ARP replies on a LAN so that victims associate the attacker's MAC address with the gateway's IP address.
  • Rogue access points and evil twins: wireless access points that imitate legitimate networks.
  • DNS manipulation: directing victims to attacker-controlled servers.
  • Rogue DHCP servers: giving victims the attacker's address as their gateway or DNS server.
  • SSL stripping: downgrading a victim's HTTPS connection to HTTP while the attacker keeps HTTPS with the server.

MITM attacks threaten confidentiality and integrity. Properly validated TLS defeats most of them, because the attacker cannot present a valid certificate for the real site; that is why users must never ignore certificate warnings.

Select all that apply

Man-in-the-middle techniques

Exam skills 6.2.1

Identify techniques an attacker can use to get into the middle of communications.

Log in to try this activity Interactive activities are free with an account.

DNS cache poisoning

The Domain Name System (DNS) translates names into IP addresses, and recursive resolvers cache answers to speed up later lookups. In DNS cache poisoning (DNS spoofing), an attacker inserts forged records into a resolver's cache, for example by racing the genuine reply with fake responses that guess the query's transaction ID and port. Every user of that resolver is then sent to the attacker's address when they look up the poisoned name, for example a fake banking site, until the record expires.

Related attacks include pharming (redirecting users through altered DNS settings or hosts files), DNS hijacking by changing a domain's registration or its authoritative servers, DNS tunnelling, which hides data or command traffic inside DNS queries to evade firewalls, and domain typosquatting.

Other network attacks

The following table summarises further attacks that SSCPs should recognise.

AttackHow it worksMain impact
IP spoofingForging the source IP address of packetsEvading filters; enabling reflection attacks
MAC floodingFilling a switch's MAC table so it floods frames to all portsEavesdropping on a switched LAN
VLAN hoppingSwitch spoofing or double tagging to reach another VLANBypassing segmentation
Replay attackCapturing and resending valid traffic, such as authentication messagesUnauthorised actions
Session hijackingStealing or predicting a session token to take over a sessionAccount takeover
Port scanning and reconnaissanceProbing hosts to find open servicesPreparation for attack
Smurf and ping floodsICMP floods, including broadcast amplificationAvailability
Match the pairs

Network attacks

Exam skills 6.2.1

Match each attack with its description.

Log in to try this activity Interactive activities are free with an account.
Worked example

Recognising the attack

A company's website is unreachable. Its internet link is saturated by gigabits of UDP traffic from port 53 of thousands of DNS servers worldwide, although the company never queried them. What is happening?

A volumetric DNS reflection and amplification DDoS. The attacker sends small DNS queries with the company's address spoofed as the source to open resolvers, which send large responses to the company. The link itself is saturated, so the company's own firewall cannot help; mitigation requires upstream filtering by the internet provider or a DDoS scrubbing service or CDN.

Worked example

The gateway's MAC address

On an office LAN, several workstations' ARP tables show that the default gateway's IP address maps to the MAC address of a desktop PC rather than the router. What attack is this and what could the attacker do?

ARP spoofing, used to perform a man-in-the-middle attack: the workstations send their traffic to the PC, which can read and alter it before forwarding it to the router. The PC should be isolated and investigated; switches should use dynamic ARP inspection with DHCP snooping, and sensitive traffic should be protected with TLS.

Check yourself

Why are amplification attacks usually based on UDP services?

Show answer

UDP has no handshake, so the attacker can spoof the victim's address in a small request and the service sends its larger reply to the victim.

Exam Tips

Remember for the exam

  • Volumetric, protocol and application-layer DDoS target bandwidth, state and application resources.
  • ARP spoofing, rogue access points and SSL stripping enable MITM attacks.
  • DNS cache poisoning redirects every user of a resolver to forged addresses.