TExcelTAD
Home › Wireless, IoT & Mobile Security › Wireless, IoT & Mobile Security: Introduction

Wireless, IoT & Mobile Security: Introduction

A smart plug costs less than a pizza. It joins your Wi-Fi with a passphrase you typed into a phone app, pairs with that phone over Bluetooth Low Energy, talks to a cloud broker over MQTT, and updates its own firmware at night. Each of those sentences is an attack surface: a radio anyone in the car park can hear, a pairing step that may or may not resist a man in the middle, a firmware image that may hold a hard-coded password, an app that may log its session token. This course reviews all of them, from the side of the people who build and defend the devices.

Applied Cryptography gave you the primitives (HMAC, PBKDF2, AES, Ed25519, X.509) and Network Security the defender's method (inventory, segmentation, detection). Here they meet radio links, embedded devices and phones.

The course's lab: a fictional smart home

Every example uses the same fictional company and products. None of them exist outside this course, and nothing in it sends a radio frame or a packet to any real device.

Item Lab name Used in
Home Wi-Fi network SSID LabNet, access point ap1.lab.test, BSSID 02:00:00:0a:0a:01 Wi-Fi, WPA2/WPA3, AP hardening
Office network SSID LabCorp (WPA2/WPA3-Enterprise), RADIUS radius.lab.test 802.1X, evil twins
Smart-home hub hub-01.lab.test, 10.10.0.50, firmware LabHome Hub 1.4.2 IoT, firmware, MQTT, updates
Smart plug plug-07, BLE name LabPlug-07 Bluetooth, mini project
Companion app Android test.lab.labhome, iOS test.lab.LabHome mobile security
Cloud broker mqtt.lab.test MQTT, segmentation

MAC addresses start with 02:, which marks them as locally administered (not assigned to any manufacturer), and IP addresses come from the lab net 10.10.0.0/24 and the documentation ranges of RFC 5737.

What you will be able to do

Section Questions it answers What you run
Wi-Fi fundamentals How does 802.11 organise stations and access points? What is in a beacon or a deauthentication frame, and why did management frames need protection? frame parsers in Python with struct, tshark on frames written by scapy
WPA2 and WPA3 How does the 4-way handshake derive keys? Why can weak WPA2 passphrases be guessed offline, and how does SAE stop that? What were KRACK and Dragonblood? How does 802.1X work and how do evil twins exploit missing certificate checks? the wpa-handshake lab, the PMK → PTK → MIC chain on IEEE test vectors, a small-number SAE model, a RADIUS authenticator, supplicant-config checks
Access-point hardening and monitoring What does a hardened AP look like? Why is WPS a risk? How do you spot rogue APs? a config checker, a wireless IDS on a synthetic survey
Bluetooth and BLE Which pairing method resists which attacker? What were KNOB, BIAS and BlueBorne? How do private addresses work? a pairing decision table, the resolvable-private-address function on the Bluetooth test vector, a GATT permission audit
IoT and embedded What do the CRA, the UK PSTI regime and ETSI EN 303 645 require? What is inside a firmware image? How do secure boot and signed updates work? a firmware parser with entropy and secret search, strings and YARA, an Ed25519 boot chain and update client, an MQTT packet parser
Mobile How do the Android and iOS security models differ? What do OWASP MASVS and MASTG cover? How are the common app flaws found and fixed? manifest and Info.plist checkers, a code-flaw scanner, certificate pinning in Python, labelled lab sessions of adb, MobSF and Frida on the course's own sample app

How the examples run

  • ```python run examples run in your browser (Pyodide): key derivations, frame parsers, checkers. Edit them and run them again.
  • ```bash run blocks are recorded sandbox sessions with real tools (tshark, openssl, strings, yara, scapy) as an ordinary user in a container with no network at all. They read files that the session itself writes or the course's sample files.
  • Radio tools, phones and hardware can't run there. Their output appears as plain ```console transcripts labelled lab session, with the scope stated, on the course's own lab devices.
  • The wpa-handshake, password-cost and entropy-scan labs animate the mechanisms.

A first look at what a radio gives away. Phones looking for known networks may send probe requests that name them. A wireless sensor in the lab recorded these (synthetic data); the program counts what each device reveals and whether it hides its real MAC address:

python · try it yourself
probes = [  # (source MAC, SSID asked for) from a synthetic sensor log in the lab
    ("02:11:22:33:44:55", "LabNet"), ("02:11:22:33:44:55", "Hotel-Lisbon-Guest"),
    ("02:11:22:33:44:55", "LabCorp"), ("3c:5a:b4:00:00:01", "HomeNet-Nguyen"),
    ("3c:5a:b4:00:00:01", "LabNet"), ("6a:01:02:03:04:05", ""),
]
def randomised(mac):                     # bit 1 of the first byte: locally administered address
    return int(mac[:2], 16) & 0x02 != 0
seen = {}
for mac, ssid in probes:
    seen.setdefault(mac, []).append(ssid or "<wildcard>")
for mac, ssids in seen.items():
    kind = "local (randomised)" if randomised(mac) else "vendor (global)"
    print(f"{mac}  {kind:18}  asks for: {', '.join(ssids)}")
02:11:22:33:44:55  local (randomised)  asks for: LabNet, Hotel-Lisbon-Guest, LabCorp
3c:5a:b4:00:00:01  vendor (global)     asks for: HomeNet-Nguyen, LabNet
6a:01:02:03:04:05  local (randomised)  asks for: <wildcard>

The first device uses a random address but still lists its saved networks, which can be enough to follow a person (the hotel, the office). The second uses its fixed vendor address. The third asks only for "any network": the privacy-friendly behaviour current Android and iOS versions aim for. Detection and fixes like this run through the whole course: what does the design leak, how do you see it, what closes it?

The rules this course keeps

  1. Only your own networks and devices. Listening to, joining or disturbing radio networks and devices you don't own or aren't authorised in writing to test can be a crime, and transmitting on radio bands is regulated on top of that. The next lesson, Radio Law, Licensing and Testing Only What You Own, builds on Authorization, Scope and Rules of Engagement and the law lessons of Security Foundations.
  2. Mechanism → detection → fix. Wireless and mobile attacks are explained as mechanisms, then how you notice them and how you prevent them. There are no step-by-step attack recipes, no deauthentication or jamming instructions, no cracking of captured handshakes, no rooting or jailbreak guides.
  3. Only toy targets. Frames, firmware images, manifests and apps are synthetic and built in the lesson; transcripts show the course's own lab devices.

Before you start

You need Applied Cryptography (especially HMAC, password hashing and KDFs) and Network Security. Wi-Fi radio basics (bands, channels, signal strength) are in Wi-Fi Basics, and the one-page overview Wireless Security in the survey course is a good warm-up. For the mobile section it helps to have seen an Android project (Kotlin on Android) or an iOS one (Swift), and Mobile Build Pipelines for app signing.

Test yourself

What does a MAC address starting with 02: tell you?

  1. It belongs to a router
  2. It is locally administered, not a manufacturer-assigned address
  3. It is a broadcast address
  4. It is an IPv6 address

Why did the first device in the probe example still leak information despite its random MAC address?

  1. Random addresses are not random
  2. It named its saved networks in probe requests
  3. It used WPA2
  4. It answered beacons

How do the tool sessions in this course get their Wi-Fi frames?

  1. They capture live traffic nearby
  2. They read files the session itself writes or the course's sample files
  3. They connect to a test network on the Internet
  4. They use the learner's Wi-Fi card