Types of attacks

11 minuti

Network attacks come in many forms — overwhelming systems until they fail, jumping between virtual networks, filling switch tables, poisoning address caches, spoofing services, tricking people, and delivering malicious software. Each technique exploits a different weakness: a protocol without authentication, a switch’s finite memory, a user’s impulse to help, or a missing security patch. Knowing how these attacks work is the first step to defending against them. These notes follow Prof. Messer’s Network+ N10-009 videos “Denial of Service”, “VLAN Hopping”, “MAC Flooding”, “ARP and DNS Poisoning”, “Rogue Services”, “Social Engineering”, and “Malware” (4.2).

⏱ Video — Denial of Service (6:49): 0:01 denial of service defined · 0:26 vulnerabilities and patches · 0:54 dos as a distraction · 1:25 accidental denial of service · 2:27 distributed denial of service · 3:23 reflection and amplification · 4:18 dns amplification example · 5:15 dns amplification attack flow · 6:31 amplification ratio

⏱ Video — VLAN Hopping (6:27): 0:02 virtual local area networks · 0:54 switch spoofing · 1:03 double tagging · 1:29 trunk auto negotiation · 2:22 disabling trunk auto negotiation · 2:44 double tagging technique · 3:01 native vlan · 4:12 double tagging attack walkthrough · 4:28 countermeasures

⏱ Video — MAC Flooding (8:01): 0:02 mac address structure · 1:29 how switches learn mac addresses · 2:30 mac learning example · 5:54 limited mac table space · 6:13 mac flooding attack · 7:37 port security countermeasures

⏱ Video — ARP and DNS Poisoning (7:19): 0:02 spoofing defined · 0:46 arp poisoning · 1:00 how address resolution protocol works · 2:30 lack of arp authentication · 2:55 arp cache poisoning · 4:32 dns spoofing · 4:52 host file modification · 5:01 on path dns poisoning · 5:28 dns poisoning example

⏱ Video — Rogue Services (5:59): 0:02 rogue dhcp server · 0:57 dhcp snooping · 1:45 rogue access point · 2:21 scanning and 802.1x · 3:10 wireless evil twin · 4:27 on path network attack · 5:41 encryption as defense

⏱ Video — Social Engineering (10:47): 0:02 phishing · 1:55 examining a phishing email · 2:45 shoulder surfing · 3:50 privacy filters · 4:59 tailgating · 5:42 piggybacking · 6:22 preventing physical access attacks · 8:01 dumpster diving · 9:00 legality · 9:51 shredding and disposal

⏱ Video — Malware (6:32): 0:02 malware defined · 1:01 virus · 1:09 worm · 1:32 ransomware · 2:01 trojan horse · 2:18 rootkit · 2:31 keylogger · 2:49 adware spyware bloatware · 3:28 logic bomb · 3:44 multi stage attack · 4:20 delivery methods · 5:34 prevention

Denial of Service (DoS) and Distributed Denial of Service (DDoS)

A denial of service (DoS) is an action or series of actions that causes a service to fail — usually by overloading a system so no resources are available for legitimate users. An attacker may overwhelm a server’s capabilities or exploit a vulnerability in an OS or application to make the entire system fail.

Key characteristics from the video:

  • Vulnerability-based DoS: attackers find a weakness in an OS or application and target it to crash the system. This is one reason to keep systems up to date with the latest security patches.
  • Distraction: a DoS can be a diversion; attackers go after a different part of the network while your troubleshooting resources are focused on the falling server.
  • Accidental DoS: connecting multiple switches without STP (Spanning Tree Protocol) creates loops that overwhelm switch capacity. Downloading a large file on a limited internet connection can also cause DoS. Physical events like a water leak in a data center can make entire sections unavailable.
  • Distributed denial of service (DDoS): many devices (a botnet) act in unison. Millions of compromised personal computers direct traffic toward a single server. This is an asymmetric threat — attackers with few resources can disrupt systems with many more resources.
  • Reflection and amplification: the attacker sends a small query into the internet, and an open server multiplies it into a much larger response sent to the victim. Protocols like NTP (Network Time Protocol), DNS (Domain Name System), and ICMP (Internet Control Message Protocol) can be abused for amplification.

DNS amplification example: the attacker uses a botnet command and control device to tell the botnet to send small DNS queries to open DNS resolvers. The queries use a spoofed source address (the victim’s IP). The DNS resolvers send much larger responses to the victim’s web server. A 28-byte query can yield a 1,300-byte response, making it easy to overwhelm the target.

VLAN Hopping

VLANs (Virtual Local Area Networks) keep different parts of a network separate — for example, a marketing VLAN, an accounting VLAN, and a shipping and receiving VLAN. Devices on one VLAN cannot communicate with another unless a router connects them. VLAN hopping bypasses this isolation.

Two methods:

  • Switch spoofing: switches can auto-configure a trunk interface when they detect another switch on the other end. An attacker pretends to be a switch, and once the real switch negotiates a trunk, the attacker can send traffic to any VLAN. Countermeasure: disable trunk auto-negotiation. Manually configure trunk interfaces and specify which VLANs are allowed across trunks.
  • Double tagging: the attacker crafts a frame with two 802.1Q VLAN tags. The first tag matches the native VLAN; the second tag specifies the target VLAN. The first switch strips the outer tag (native VLAN), and the inner tag is then read by the next switch, placing the frame onto a different VLAN. Note: this is one-way only — the attacker cannot receive responses. Countermeasure: change the native VLAN ID from its default (usually VLAN 1) and enable tagging on the native VLAN so all traffic, including native VLAN traffic, carries a tag.

MAC Flooding

Switches build a MAC address table by examining the source MAC address of every inbound frame and recording which interface it came from. The table has a finite capacity. In MAC flooding, an attacker sends many frames, each with a different source MAC address, filling the table. Once the table is full, the switch cannot find destination MAC addresses and floods every inbound frame to all interfaces — effectively turning the switch into a hub, allowing the attacker to see all traffic.

Countermeasure: port security on modern switches limits how many MAC addresses can be learned on a single interface, making it much harder to fill the table.

ARP Poisoning and DNS Poisoning

Spoofing is pretending to be another person or device — a fake web server, a fake DNS server, email spoofing, or caller ID spoofing.

ARP poisoning (also called IP spoofing) exploits the Address Resolution Protocol (ARP), which maps IP addresses to MAC addresses. ARP has no authentication: any device can send an ARP response. The attacker sends an unsolicited ARP response claiming the router’s IP address but with the attacker’s MAC address. The victim’s ARP cache is updated, and all traffic destined for the router is sent to the attacker instead. The attacker can then forward it to the real router, becoming an invisible on-path attacker (man in the middle).

DNS poisoning (or DNS spoofing) modifies DNS responses so a domain resolves to the wrong IP address. Methods:

  • Modifying the DNS server itself: the attacker hacks the DNS server and changes the DNS record for a domain.
  • Modifying the client’s hosts file: the hosts file on a system has higher priority than DNS responses — entries there override DNS.
  • On-path DNS poisoning: the attacker intercepts DNS queries in transit and sends a fake response before the legitimate DNS server replies, sending the victim to a malicious site.

Countermeasure: DNSSEC (Domain Name System Security Extensions) provides cryptographic validation; however, the video’s focus is on the attack mechanics rather than DNSSEC details. On-path defenses include encrypted communication so that even intercepted traffic cannot be read or modified.

Rogue Services and Evil Twin

Rogue DHCP server: the DHCP (Dynamic Host Configuration Protocol) has no built-in security — any device on the network can respond to a DHCP request. A rogue DHCP server hands out invalid IP addresses, causing duplicate addresses, loss of internet connectivity, or full network disruption. Countermeasures: DHCP snooping on enterprise switches examines DHCP traffic and only allows responses from trusted ports. Microsoft Active Directory can enforce that only authorized DHCP servers hand out addresses. If a rogue DHCP server is found, remove it and renew all IP addresses on the network.

Rogue access point: an unauthorized wireless access point plugged into an Ethernet jack. The employee may simply be trying to improve coverage, but without proper security it opens the network to anyone. Countermeasures: periodic wireless scans, physical walk-throughs with a wireless analyzer, and 802.1X (network access control) that requires authentication before granting network access.

Wireless evil twin: an intentionally malicious access point that looks identical to a legitimate one — same or similar SSID (Service Set Identifier), similar security settings, and possibly an identical captive portal. The evil twin often increases its radio output power so devices connect to it instead of the real AP. Once connected, the attacker can perform an on-path attack (man in the middle), viewing and modifying all traffic. Countermeasure: always use encrypted traffic — a VPN (Virtual Private Network) or HTTPS (HTTP Secure) — so even if an evil twin intercepts the connection, the data is unreadable.

Social Engineering

Phishing: social engineering with spoofing — the attacker pretends to be a trusted entity to trick the victim into giving up personal information. Signs of a phishing email: mismatched sender domain (e.g. icloud.com instead of the company’s domain), poor graphics, spelling/grammar errors, and generic salutations like “Dear user.” Best practice: never click a link in an email. Always examine URLs hovering over them. When clicking a suspicious link is necessary, use an isolated virtual machine.

Shoulder surfing: looking at someone’s screen in a public place — an airport, restaurant, coffee shop. Attackers may use binoculars or telescopes from distant buildings, or malware that enables a webcam. Countermeasures: sit with your back to a wall, use privacy filters (LCD screens that only display when viewed head-on), turn computer monitors away from windows, and avoid viewing sensitive information in public.

Tailgating: following an authorized person through a secured door without their knowledge — the attacker catches the door before it locks. Piggybacking: the authorized person knowingly lets the attacker in, often through social pressure (e.g., carrying boxes, asking to hold the door). Countermeasures: enforce one-person badging (close the door between scans), use access control vestibules (airlock that admits one person at a time), and train employees to challenge anyone without a visible badge.

Dumpster diving: searching through trash for sensitive information — names for impersonation, contact details for further phishing, project documents at quarter-end. In the United States, discarded garbage is generally free to take if it is on public property, but local and state regulations may differ; private property with no-trespassing signs is off-limits. Countermeasures: lock trash areas, use fences and cameras, shred sensitive documents, and consider professional shredding services or incineration for highly sensitive material.

Malware

Malware (malicious software) describes many types of software designed to steal data, disrupt systems, or make money for the attacker. Types covered in the video:

TypeBehaviour
VirusRequires human intervention (clicking) to replicate
WormSelf-replicating, no human action needed — more dangerous
RansomwareEncrypts data and demands payment (cryptocurrency)
Trojan horseDisguised as legitimate software (e.g. a game)
RootkitHides inside the OS itself — hard to detect and remove
KeyloggerRecords every keystroke, captures usernames and passwords
Adware / SpywareDisplays ads for profit, may collect personal data
BloatwarePreloaded software that uses system resources unnecessarily
Logic bombTriggers on a specific time or event (day, date)

Multi-stage attack: a worm exploits a vulnerability (unpatched system), installs a remote access backdoor, which installs a bot for remote control. Delivery methods include clicking email links, pop-up prompts, drive-by downloads (automatic without clicking), and worm propagation.

Countermeasures: keep operating systems and applications updated with the latest security patches to close vulnerabilities. Use caution with email links, pop-ups, and unknown executables.

Where attacks live — mental map (beyond the video)

Not from the video — defense perspective.

  • DoS/DDoS: defence focuses on rate limiting, traffic filtering, and scrubbing centres — but the protocol amplification vector (DNS, NTP, ICMP) means even a small botnet can cause enormous damage. Blocking spoofed source addresses at the network edge (BCP 38 / uRPF) is a foundational control.
  • ARP poisoning works because ARP has no authentication — dynamic ARP inspection (DAI) on switches validates ARP packets against the DHCP snooping binding table, blocking spoofed ARP at layer 2.
  • VLAN hopping exploits misconfigured trunk ports and default native VLANs — disable DTP (Dynamic Trunking Protocol) and set the native VLAN to an unused ID on every switch port that should not trunk.
  • Rogue services: the best defence is a combination of DHCP snooping, dynamic ARP inspection, and 802.1X — together they create a trust boundary that rejects unauthenticated devices and unauthorised DHCP servers at the switch port level.
  • Social engineering bypasses every technical control — the human factor is the hardest to patch. Regular security awareness training, phishing simulations, and a culture where “challenge without a badge” is expected are the real countermeasures.