Networking Basics for Security
You don't need to be a network engineer to work in a SOC. But you do need to understand the basics โ because almost every security alert involves network traffic in some way. This module covers just enough networking to make sense of what you'll see on the job.
IP Addresses
Every device on a network has an IP address โ a unique number that identifies it, like a home address. When your computer sends data to a website, it uses IP addresses to know where to send it and where the response should come back.
There are two types:
- IPv4 โ The most common format. Looks like four numbers separated by dots:
192.168.1.1 - IPv6 โ A newer format with more possible addresses. Looks like:
2001:0db8:85a3::8a2e:0370:7334
Private vs. Public IPs
IP addresses fall into two categories. Private IPs are used inside a network โ your home router gives your laptop a private IP like 192.168.x.x. Public IPs are visible on the internet. When you see a private IP in an alert, the traffic is internal. A public IP means traffic is coming from or going to the outside world.
Ports
If an IP address is like a building's street address, a port is like the apartment number. A single server can run many different services at once โ web, email, file transfers โ and each one listens on a different port number.
Some ports you'll see constantly in a SOC:
Protocols
A protocol is a set of rules for how data is formatted and transmitted. Think of it as the language two computers agree to speak. The main ones you need to know:
- TCP (Transmission Control Protocol) โ Reliable, connection-based. Confirms data was received. Used for web browsing, email, file downloads.
- UDP (User Datagram Protocol) โ Faster but no delivery confirmation. Used for video streaming, DNS lookups, VoIP.
- HTTP/HTTPS โ The protocol your browser uses to load web pages. HTTPS is the encrypted version.
- DNS โ Translates human-readable domain names (google.com) into IP addresses. Happens every time you visit a website.
- ICMP โ Used by tools like ping to test network connectivity. Attackers sometimes use it to sneak data out of a network.
DNS โ The Phone Book of the Internet
DNS deserves special attention because it shows up constantly in security alerts. When you type google.com into your browser, your computer doesn't actually know where Google is. It asks a DNS server: "What's the IP address for google.com?" The DNS server responds with something like 142.250.80.46, and your browser connects there.
Attackers abuse DNS in several ways โ using it to communicate with malware, hide data in DNS queries, or redirect users to fake websites. Suspicious DNS queries to strange domains are one of the most common things you'll investigate as a SOC analyst.
HTTP vs. HTTPS
HTTP sends data in plain text โ anyone watching the network can read it. HTTPS encrypts the data so only the sender and receiver can read it. As a SOC analyst, encrypted HTTPS traffic is harder to inspect, but you can still see the destination, the amount of data transferred, and the timing.
How data travels: packets
Data doesn't travel across a network as one big chunk. It's broken into small pieces called packets. Each packet contains a header (source IP, destination IP, port, protocol) and a payload (the actual data). Security tools capture and analyze these packets to detect threats.
When you look at logs in a SIEM, you're essentially looking at summaries of packet traffic โ who sent what, where, when, and how much.