Network Attack and Defense
Learning outcomes:
- Describe common network threats, such as scanning, sniffing, and wireless attacks
- Explain how firewalls, a DMZ, and DNS security protect a network
- Describe how network monitoring and logging help detect attacks
- Compare false positives with false negatives, and allowlists with denylists
Would you like to download my PowerPoint to follow along?
- What is a network?
- Nodes
- Topologies
- Network topology types
- Packets
- Network threats: scanning
- IP scans and port scans
- Network reconnaissance
- Mapping with tools such as Zenmap
- Network threats: sniffing
- Packet analysis, demo with Wireshark
- Encryption
- Man in the middle attacks
- Wardriving
- Is public Wi-Fi safe? The FTC says it is usually safe now, because most websites use encryption (HTTPS). Most public Wi-Fi networks themselves do not encrypt your traffic, so the lock icon or https in the address bar is what protects you
- Network threats: wireless
- Scanning and cracking tools, such as Aircrack-ng and Reaver
- Encryption types: WEP, WPA, WPA2, and WPA3
- Wi-Fi broadcasting, demo with airodump-ng
- Historical note: WEP was broken in the early 2000s and dropped from the Wi-Fi standard. Still worth knowing because old devices sometimes still offer it. Use WPA2 or WPA3 today (Wi-Fi Alliance)
- Historical note: Reaver attacks WPS, the push-button or PIN way of connecting to a router, which has had a known flaw since 2011. Still worth knowing because many routers still ship with WPS turned on. The fix is to turn it off.
- Network threats: Internet of Things
- Bluetooth
- Personal and body area networks (PAN and BAN)
- Home automation, such as Zigbee, Nest, and Alexa
- More on IoT in Week 10 (Physical Security)
- Network threats: hardware
- Vulnerable devices, such as routers and printers
- Secure communications
- Old routers get hijacked: in May 2025, the FBI warned that routers too old to get updates were being taken over with malware called TheMoon, which doesn't even need your password. Criminals rented out the hacked routers to hide their own internet traffic. What to do: replace a router that no longer gets updates, turn off remote management, and use a long, unique admin password (FBI IC3, TechCrunch)
- See also Salt Typhoon in Week 3: hackers inside phone company routers
- Firewalls
- Network based and host based
- Packet filtering against application firewalls
- Rules allow or deny traffic by port, protocol, and where it comes from
- Rules are checked in order, and the first rule that matches wins
- The default policy decides what happens to traffic no rule matches: deny all or allow all
- Network management: DNS
- How DNS works
- Authoritative and non-authoritative answers
- DNS hijacking for ads, statistics, and censorship
- DNS caches and DNS cache poisoning
- DNSSEC
- Split DNS
- Encrypted DNS: browsers like Firefox can encrypt DNS lookups (DNS over HTTPS), which blocks some DNS hijacking
- Network management: DMZ
- Common services: web, email, FTP, and VoIP servers
- Historical note: FTP sends passwords as plain text, and web browsers dropped support for it. Most places use SFTP or HTTPS instead now.
- Zero trust
- Old idea: a hard shell outside, soft inside. Once you are past the firewall, you are trusted
- Zero trust: check every user and device, every time, even inside the network. Give each account only the access it needs, and keep checking, not just at login (NIST SP 800-207)
- Remember MGM (Week 4): one reset account was enough to get the attackers in. Zero trust tries to limit how far one account can go
- Network management: monitoring
- Testing
- Network tomography, the health of links
- Route analysis
- Internal and external monitoring
- Example software: Nagios
- Network management: logging
- Log faults (application and system) and info (users, files)
- Log integrity: dedicated log servers and redundancy
- Log review, audits, and analysis
- Forensics after the fact
- Red flags and false alarms
- Allowlists and denylists
- Allowlist: only the things on the list are allowed
- Denylist: everything is allowed except the things on the list
- You'll still see whitelist and blacklist in older tools, documentation, and job postings. The industry is moving away from those terms because they tie white to good and black to bad, and the new terms say what the list does.
- False positives and false negatives
Suggested Activities and Discussion Topics:
- Activity: run Wireshark for a few minutes on your own network. What protocols do you see?
- Discussion: is a false positive or a false negative worse for a business? Why?
- Discussion: what devices on your home network could be a weak point?
- Activity: find out how old your home router is, and whether it still gets updates. Is remote management turned on?
- Try my Firewall Simulator: build some rules and see which traffic gets through.
- Follow the instructions on this PDF (accessible HTML version)
Would you like to see some more classes? View all classes