Okay, this is a fantastic and hands-on way to teach network security! Here's a plan to demonstrate the dangers of untrusted IoT devices on a home network, broken down into steps and explanations, along with safety considerations:
Safety First!
- Isolation: You must isolate this network entirely from your real home network. A separate router dedicated solely to this demo is crucial. Disable the WAN/Internet connection on the demo router. This prevents any real-world compromise.
- Limited Scope: Keep the actions you perform on the Raspberry Pi (the "bad actor" device) within the confines of the demo network. Do NOT try to attack external sites.
- Education, Not Fear: Frame this as a learning experience, not a scare tactic. Explain that this is a controlled scenario to illustrate potential risks and how to mitigate them.
- Reset Button: Have a "reset" plan. A factory reset for both the demo router and the Raspberry Pi. This ensures you can easily return to a known good state.
- Nephew's Level: Adjust the technical complexity based on your nephew's age and understanding. Simplify explanations and steps as needed. Start with the basics and gradually increase complexity.
Demo Setup:
- Hardware:
- Trusted PC: Your trusted PC (Windows, macOS, Linux - whatever you use). Make sure it has up-to-date antivirus and a firewall enabled before you connect it to the demo network.
- Raspberry Pi (IoT Device): The "compromised" device. Install a standard Raspberry Pi OS (Raspberry Pi OS Lite is sufficient, you don't need a desktop). Ensure it has WiFi capability.
- Demo Router: An inexpensive router specifically for this isolated network. Crucially, disconnect it from the internet.
- WiFi Adapter (Optional): If your trusted PC doesn't have WiFi or you want to keep your PC's primary WiFi separate, use a USB WiFi adapter.
- Network Configuration:
- Set up the demo router with a simple WiFi network (e.g., "DemoNetwork"). Use a weak or default password (purposefully for demonstration). Record the SSID and password. Use a different SSID and password from your home network.
- Connect both the trusted PC and the Raspberry Pi to the "DemoNetwork" WiFi.
Demonstration Steps:
- The "Untrusted" Device:
- Scenario: Explain to your nephew that you're going to simulate a scenario where an IoT device (the Raspberry Pi) has been compromised (hacked) or has a vulnerability. This could be through a default password, unpatched software, or a malicious app.
- Accessing the Raspberry Pi: Use SSH (Secure Shell) to connect to the Raspberry Pi from your trusted PC. You'll need the Pi's IP address (you can find this in the router's admin panel or using a network scanning tool like
nmap). Initially, use the default username ("pi") and password ("raspberry").
- Change the Password (Then... Remove it):
- Immediately show your nephew how to change the default password on the Raspberry Pi using the
passwd command. Explain why default passwords are a HUGE security risk.
- Then, for the demonstration, intentionally remove the password completely on the "pi" user account (you can look up instructions on how to do this). This is obviously a terrible security practice in real life, but it drives home the point for the demo.
- Remote Access: Show how easy it is to log in to the Raspberry Pi without any password using SSH. Explain how this allows anyone on the network to potentially control the device.
- Basic Network Scanning (From the Raspberry Pi):
- Install
nmap: On the Raspberry Pi, run sudo apt update && sudo apt install nmap.
- Scan the Network: Run
nmap -sn 192.168.1.0/24 (replace 192.168.1.0 with the appropriate network address for your demo router). This will show all the devices connected to the network. Point out your trusted PC.
- Explanation: Explain that
nmap is a tool that hackers use to discover devices on a network. They can then use this information to try to find vulnerabilities.
- Simulating an Attack (Simple Examples):
- Port Scanning: On the Raspberry Pi, run
nmap -p 1-100 192.168.1.x (replace 192.168.1.x with the IP address of your trusted PC). This scans the first 100 ports on the trusted PC. Explain that hackers look for open ports to exploit.
- Man-in-the-Middle (MitM) Attack (Advanced - Only if Nephew is Ready):
- Direct PC access (if vulnerabilities are present)
- Share vulnerability report Run a port scanner on your nephew's computer, if an old version of windows is running, you can demonstrate the severity of outdated software
- Compromised iOT's impact on other iOT
- Add another iOT device on the network, a smart light bulb or a camera. Explain how the infected iOT can scan the other device's network and install a virus to impact the rest of the devices.
- Mitigation:
- After each demo, discuss how these attacks could be prevented.
- Strong Passwords: Emphasize the importance of strong, unique passwords for all devices.
- Software Updates: Regularly update the firmware and software on IoT devices and PCs. Apply security patches promptly.
- Network Segmentation: Consider isolating IoT devices on a separate network (e.g., a guest network) with limited access to other devices. Many routers offer this feature.
- Firewall: Ensure the PC has a firewall enabled. Configure the firewall to block unnecessary incoming connections.
- HTTPS: Use HTTPS (secure websites) whenever possible. Look for the padlock icon in the browser.
- Antivirus/Anti-malware: Install and keep up-to-date antivirus/anti-malware software on the PC.
- Manufacturer Security: Research the security practices of IoT device manufacturers before purchasing. Choose reputable brands with a good track record.
- Disable Unnecessary Features: Disable any unnecessary features or services on IoT devices (e.g., remote access if you don't need it).
- VPN (Optional): Explain how a VPN can encrypt traffic and protect against eavesdropping, especially on public WiFi networks.
Key Talking Points:
- The Internet of Things (IoT) Explosion: Explain that more and more devices are connecting to the internet (smart TVs, thermostats, appliances, etc.). This creates a larger attack surface.
- Convenience vs. Security: Often, there's a trade-off between convenience and security. IoT devices are often designed for ease of use, which can sometimes come at the expense of security.
- The Weakest Link: A network is only as secure as its weakest link. A single compromised IoT device can potentially compromise the entire network.
- Proactive Security: Security is not a one-time thing. It requires ongoing vigilance and proactive measures.
Important Considerations:
- Ethical Hacking: Remind your nephew that hacking without permission is illegal and unethical. This demo is for educational purposes only and should only be conducted on a network that you own and control.
- Complexity: Tailor the complexity of the demo to your nephew's understanding. Start with the basics and gradually introduce more advanced concepts.
- Keep it Engaging: Make it fun! Let your nephew actively participate in the demo and ask questions.
By following these steps, you can create a powerful and memorable learning experience that teaches your nephew the importance of network security and how to protect themselves in the digital world. Remember to prioritize safety, keep it ethical, and tailor the demo to your nephew's level of understanding. Good luck!