Skip to content

πŸ›‘οΈ 01-01: What Is Network Security?


πŸ“Œ Defining Network Security

Network security is the practice of protecting the data in motion β€” everything that travels across wires, radio waves, and routers between devices β€” along with the infrastructure that carries it (switches, routers, access points, firewalls, DNS servers, and so on).

Cybersecurity is the broader umbrella term. It includes network security, but also application security (secure coding), endpoint security (protecting laptops/phones), cloud security, physical security, and human factors like social engineering.

πŸ’‘ Think of it this way: if cybersecurity is "protecting the whole castle," network security is specifically "protecting the roads, gates, and messengers" that connect everything inside and outside the castle.

Why the Network Layer Matters Specially

Data has to travel to be useful. Even a perfectly secured application is worthless if:

  • An attacker can read the traffic between the user and the server (eavesdropping/sniffing).
  • An attacker can impersonate one side of the conversation (spoofing).
  • An attacker can redirect traffic to the wrong destination (DNS attacks, ARP spoofing).
  • An attacker can flood the network so nobody can communicate at all (denial of service).

This course is built around exactly these categories of attack, one protocol layer at a time.


πŸ”Ί The CIA Triad

Nearly every security control β€” and every attack β€” can be mapped onto three core goals, known as the CIA triad:

Property Meaning Network Example
Confidentiality Only authorized parties can read the data Encrypting Wi-Fi traffic with WPA3 so a nearby attacker sniffing packets sees ciphertext, not your passwords
Integrity Data isn't modified in transit without detection TLS message authentication codes (MACs) detect if an attacker tampered with an HTTPS response mid-flight
Availability Systems and data are accessible when needed A network survives a flood of junk traffic (DDoS) without going offline for legitimate users

πŸ’‘ Every attack in this course breaks one or more of these three properties. Packet sniffing breaks confidentiality. Packet spoofing and session hijacking break integrity (and sometimes confidentiality). SYN flooding and DNS DoS attacks break availability. Keep the triad in mind as a mental checklist β€” "which of the three did this attack just violate?"

A Concrete Walkthrough

Imagine you log into your bank's website over public cafΓ© Wi-Fi:

  1. Confidentiality risk β€” Someone else on the cafΓ© Wi-Fi runs a packet sniffer (Module 03) and tries to capture your login form data.
  2. Integrity risk β€” An attacker on the same network performs ARP spoofing (Module 03) to sit between you and the router, silently altering the page content or injecting malicious JavaScript.
  3. Availability risk β€” A disgruntled attacker floods the cafΓ©'s router with traffic (Module 04's SYN flooding is one such technique) so nobody can load anything.

HTTPS (TLS) is what defeats #1 and #2 in this specific example β€” but you have to understand the underlying attacks to understand why TLS is built the way it is.


πŸ•΅οΈ Threat Actors: Who Is Attacking, and Why?

Not all attackers have the same skill, motivation, or resources. Understanding who you're defending against shapes how you defend.

Threat Actor Skill Level Typical Motivation Example Behavior
Script kiddie Low β€” uses pre-built tools without deep understanding Curiosity, bragging rights, mischief Downloads a Wi-Fi deauth tool and knocks a neighbor offline
Hacktivist Varies Political/ideological statement Defaces a website or leaks data to make a point
Organized crime Medium–High, well-funded Financial gain Ransomware gangs, credential theft, banking trojans, running botnets for hire
Nation-state (APT) Very high, well-resourced, patient Espionage, sabotage, strategic advantage Long-term "Advanced Persistent Threats" that quietly sit inside a network for months
Insider threat Varies β€” but has legitimate access Revenge, financial gain, negligence An employee copies customer data before quitting, or misconfigures a firewall by mistake

πŸ’‘ Insider threats are uniquely dangerous because they start inside your perimeter defenses β€” a firewall that blocks external attackers does nothing to stop someone who already has a valid badge and a valid login. This is part of why network segmentation (Module 01/05) and the principle of least privilege matter so much.


🌐 Attack Surface

Your attack surface is the total sum of every point where an attacker could try to get in β€” every open port, every protocol you speak, every device connected to your network, every piece of software you run.

Examples of Attack Surface Growth

  • Adding a new IoT device (smart thermostat) β†’ one more device with its own OS, its own bugs, its own open ports.
  • Opening a firewall port for a new service β†’ one more entry point to defend.
  • Allowing employees to bring personal laptops (BYOD) β†’ devices you don't fully control now touch your network.
  • Using more third-party protocols (DNS, DHCP, ARP) β†’ each one has its own attack history.

πŸ’‘ Reducing attack surface is one of the cheapest, most effective security strategies: close ports you don't use, disable protocols you don't need, remove default accounts, and segment your network so a breach in one place doesn't expose everything (see 01-05: IPv4 Subnetting & CIDR for how subnetting supports this).

You cannot eliminate attack surface entirely β€” a network with zero attack surface also has zero usefulness, since it couldn't communicate with anything. Security is always a tradeoff between usability and risk.


πŸ—ΊοΈ Why This Course Is Organized Attack-by-Attack

Rather than teaching "network security" as one abstract topic, this course walks through the TCP/IP stack layer by layer, and at each layer, studies:

  1. How the protocol is supposed to work (the legitimate design).
  2. What assumption the protocol makes that turns out to be exploitable (usually: "nobody will lie about this field").
  3. How an attacker exploits that assumption (the actual attack).
  4. How defenders detect or prevent it (the countermeasure).
Module Layer / Topic Example Attacks Covered
01 Foundations (this module) OSI/TCP-IP models, addressing, hardware
02 TCP/IP protocols & packet analysis Reading real traffic, spoofing fundamentals
03 Data link layer ARP spoofing, MAC flooding, sniffing
04 Transport/network layer attacks IP spoofing, SYN flooding, session hijacking
05 Firewalls & access control Defensive countermeasures
06 DNS Cache poisoning, Kaminsky attack, DNS rebinding

πŸ’‘ The recurring theme: almost every classic network attack exists because a protocol was designed assuming good faith β€” nothing stops a device from lying about its IP address, its MAC address, or a DNS answer unless something explicitly checks. Once you see this pattern once, you start seeing it everywhere.


πŸ“Œ Key Takeaways

  • Network security protects data in transit and the infrastructure that carries it; it's a subset of the broader field of cybersecurity.
  • The CIA triad β€” Confidentiality, Integrity, Availability β€” is the lens for classifying both defenses and attacks.
  • Threat actors range from low-skill script kiddies to well-funded nation-states and trusted insiders; each requires different defenses.
  • Attack surface is everything an attacker could target; reducing it (closing ports, disabling unused protocols, segmenting networks) is one of the highest-value security practices.
  • Most network attacks in this course exploit protocols that were designed without built-in authentication or verification β€” they trust that fields in a packet are truthful.
  • This course follows the stack layer by layer so you build attacks and defenses on top of a solid mental model, rather than memorizing isolated facts.