Lab 1 of 8 · IT and networking foundations
Map your own network and services
Use the core networking commands on your own computer, find what it exposes, and record what you learned in your new security portfolio.
- Time
- 60 minutes
- Cost
- Free.
What you learn
You cannot defend what you do not understand. Security work starts with how computers find each other, talk, and expose services.
- IP addresses, ports and protocols (TCP, UDP, DNS, HTTP)
- Looking up names and following a request
- Finding which services your own computer exposes
- Taking clear technical notes in Git
In the AI era: AI tools can explain any command output in seconds, which makes learning faster, but an analyst still has to know what normal looks like to spot what is not.
Before you start
Windows: install WSL (Ubuntu) and use its terminal. Mac and Linux: use Terminal.
Install Git and nmap (Mac:
brew install nmap; Ubuntu/WSL:sudo apt install nmap), and create a free GitHub account.Only test systems you own or that are built for practice. Scanning or attacking anyone else's system without written permission is illegal in most countries.
Step by step
1 Create the portfolio repository
On github.com/new create a public repository called
home-soc-labwith a README, then clone it. Replace YOUR-USERNAME.git clone https://github.com/YOUR-USERNAME/home-soc-lab.git cd home-soc-lab mkdir -p notes2 Find your addresses
Your computer has a private address on your home network; your router has the public one. On a Mac,
ipmay be missing: useifconfig | grep "inet "instead.ip -brief address || ifconfig | grep "inet " curl -s https://ifconfig.me; echoYou should see:A private address (often starting 192.168. or 10.) and a different public address.
3 Follow a name to an address
DNS turns names into addresses.
digasks for the answer;curl -Imakes an HTTPS request and shows only the response headers.dig +short example.com curl -sI https://example.com | head -n 5You should see:One or more IP addresses, then
HTTP/2 200and headers.4 See which ports your computer is listening on
Every listening port is a door. Knowing your own doors is step one of defending them.
ss -tulpn 2>/dev/null | head -n 15 || lsof -iTCP -sTCP:LISTEN -n -P | head -n 15You should see:A list of local addresses and ports. Look up any you do not recognise.
5 Scan only your own computer
nmap checks which ports answer and guesses the service. Scanning
localhostis safe and legal; scanning other people's machines is not.nmap -sV localhostYou should see:A table of open ports with service names, or "All 1000 scanned ports ... are closed".
6 Write your notes
Explaining what you found, in your own words, is what recruiters look for. Fill this in with your results.
# Networking basics ## My addresses - Private address: ... - Public address: (do not publish it; write "different from my private address") ## DNS - example.com resolves to: ... ## Listening ports on my computer | Port | Service | Do I need it? | |------|---------|---------------| | ... | ... | ... | ## What I learned - ...7 Commit and push
Your security portfolio has started.
git add notes git commit -m "Add networking notes" git push
You are done when
You can explain the difference between a private and a public IP address.
You know which ports your own computer listens on, and why.
notes/01-networking.mdis on GitHub (without your public IP).
We check your public GitHub repository and give you a page to share with recruiters, and can add the project to your resume.