Lab: Map Your Home Network
This lab makes the central lesson of the connected-device map real: the cheapest device on your network can set the security of the whole house. You’ll inventory your own network, find the IoT gadgets, and trace how a foothold on one reaches your laptop.
# macOSbrew install nmap# Linuxsudo apt install nmapThe exercise
Section titled “The exercise”-
Find your network range.
Terminal window # macOSipconfig getifaddr en0 # your IP, e.g. 192.168.1.37# Linuxip addr | grep inetYour router is usually
.1(e.g.192.168.1.1), and your subnet is192.168.1.0/24. -
Discover every device (a ping sweep).
Terminal window nmap -sn 192.168.1.0/24This lists the live hosts without probing them hard. Count them — most people are surprised how many things are on their network.
-
Identify what each device is.
Terminal window nmap -sV --top-ports 20 192.168.1.45 # one device at a timeOpen ports and service banners hint at what it is — a printer, a camera, a smart TV, a laptop.
-
Find the smart-home gadgets by name (mDNS/SSDP).
Terminal window # macOSdns-sd -B _services._dns-sd._udp local.# Linuxavahi-browse -a -tIoT devices announce themselves chattily — “Chromecast”, “MyCam”, “ESP_xxxx”. This is the same free reconnaissance you saw over Bluetooth.
-
Spot the weakest link — observe only.
Look for the device running an old HTTP admin page, Telnet, or an outdated service banner. Do not log in — just note it. That is your most likely entry point (map pin #1: default credentials; pin #6: stale firmware).
-
Trace the pivot.
Notice that the weak camera/bulb and your laptop and phone are on the same flat network. An attacker who compromises the gadget is now one hop from the valuable machines — map pin #3 and #10, lateral movement.
How it’s defended
Section titled “How it’s defended”- Segmentation → put IoT devices on a separate guest network / VLAN, isolated from your laptop and phone. This single step breaks the pivot.
- Defaults & updates → change default device passwords; keep router and device firmware updated; retire gadgets the vendor has abandoned (map pins #1, #6).
- Least exposure → disable remote admin and unused services on the router.
Debrief
Section titled “Debrief”- How many devices did you find — and how many can you actually update?
- Which is your weakest link, and what would isolating it cost you in convenience?
- Re-read pins 3 and 10 on the connected-device map; you’ve now walked the pivot path yourself. Pairs naturally with the Bluetooth lab — two ways the same home gets enumerated.