Roadmaps / Cybersecurity / Lab 1

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. 1 Create the portfolio repository

    On github.com/new create a public repository called home-soc-lab with a README, then clone it. Replace YOUR-USERNAME.

    Run this
    git clone https://github.com/YOUR-USERNAME/home-soc-lab.git
    cd home-soc-lab
    mkdir -p notes
  2. 2 Find your addresses

    Your computer has a private address on your home network; your router has the public one. On a Mac, ip may be missing: use ifconfig | grep "inet " instead.

    Run this
    ip -brief address || ifconfig | grep "inet "
    curl -s https://ifconfig.me; echo
    You should see:

    A private address (often starting 192.168. or 10.) and a different public address.

  3. 3 Follow a name to an address

    DNS turns names into addresses. dig asks for the answer; curl -I makes an HTTPS request and shows only the response headers.

    Run this
    dig +short example.com
    curl -sI https://example.com | head -n 5
    You should see:

    One or more IP addresses, then HTTP/2 200 and headers.

  4. 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.

    Run this
    ss -tulpn 2>/dev/null | head -n 15 || lsof -iTCP -sTCP:LISTEN -n -P | head -n 15
    You should see:

    A list of local addresses and ports. Look up any you do not recognise.

  5. 5 Scan only your own computer

    nmap checks which ports answer and guesses the service. Scanning localhost is safe and legal; scanning other people's machines is not.

    Run this
    nmap -sV localhost
    You should see:

    A table of open ports with service names, or "All 1000 scanned ports ... are closed".

  6. 6 Write your notes

    Explaining what you found, in your own words, is what recruiters look for. Fill this in with your results.

    File: notes/01-networking.md
    # 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. 7 Commit and push

    Your security portfolio has started.

    Run this
    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.md is on GitHub (without your public IP).

Finished? Get your proof page

We check your public GitHub repository and give you a page to share with recruiters, and can add the project to your resume.