PSUT IoT Security & Privacy — Kali WSL course toolkit

ONE-TIME INSTALLATION
1. Windows PowerShell: wsl --list --verbose
   If absent: wsl --install -d kali-linux (restart if requested).
2. Windows PowerShell: wsl -d kali-linux
3. Kali: cd ~ ; explorer.exe .
   Copy extracted kali-labs directory into the displayed Linux home.
4. Kali: cd ~/kali-labs
5. Kali: bash setup_kali.sh
   Expected: selected packages installed; PASS dependency checks. Internet required for APT.
   Do not install this toolkit inside Ubuntu. No full kali-linux-all or desktop is required.
6. Kali: bash verify_kali.sh (repeat after updates). Prints tool paths, Python library and Debian package versions.
7. Kali: python3 lab.py init (once). Creates private ~/.psut-kali-security-v14.
   If initialization is interrupted, archive the partial directory manually after verifying brokers are stopped.
   Certificates expire (server 7 days, CA 30 days); renew by archiving the private directory and initializing again.
8. Terminal A: mosquitto -c "$HOME/.psut-kali-security-v14/plain.conf" -v
9. Terminal B: mosquitto -c "$HOME/.psut-kali-security-v14/tls.conf" -v
10. Terminal C: cd ~/kali-labs; follow K01–K11 in kali.html.

Scope: own loopback 127.0.0.1, ports 18884/18885, synthetic samples only.
Never expose the demo listeners to the LAN. WSL is not a security boundary. No changes to port 1884 or Ubuntu toolkit. APT package scripts may start a default broker; leave existing services alone. If the dedicated ports are occupied, stop and consult your instructor.
Use normal user for broker processes; sudo only where explicitly needed (package installation, packet observation). No external targets. Temporary lab passwords are generated randomly; mosquitto_passwd and the packet demo CLI use disposable arguments; do not share process lists or real secrets. MQTT policy verifier uses Paho v2 to record actual CONNACK, SUBACK and PUBACK outcomes. Timeouts are failures/inconclusive, not proof of security. Inspect redacted broker logs independently.

Evidence: submit only JSON reports under ~/.psut-kali-security-v14/evidence and redacted notes. Do not submit private keys, password hashes, full packet captures or credentials. K07 uses fixed clock and in-memory replay state. K11 checks a signed fictional manifest, not real firmware/secure boot or persistent rollback protection. Pseudonymization is not anonymity. K08 does not implement Ascon; consult NIST SP 800-232 and the official reference KATs for optional study. DES/3DES are legacy only.

Cleanup: stop both foreground brokers using Ctrl+C in their own terminals. Verify dedicated ports no longer listen. Retain only the approved redacted evidence, and keep the private directory protected until instructor-approved archive/removal. Never add the lab CA to system trust.

Course guide and standards mapping are in kali.html. The toolkit is source-based; it requires package downloads on Kali, not an offline APT mirror.
