IoT Reconnaissance
The first phase of IoT pentesting involves identifying the device, understanding its ecosystem, and mapping all potential attack vectors across network, firmware, and hardware layers.
Device Identification
Physical Inspection
Gather information from the device itself:
External Labels
- Model number and serial number
- FCC ID (required for US devices)
- MAC address (often on label)
- Default credentials (sometimes printed)
- Regulatory certifications (CE, UL, etc.)
Internal Inspection
- Chipset identification (SoC, WiFi, etc.)
- Flash memory chips (for extraction)
- Debug headers (UART, JTAG)
- Test points and unpopulated pads
- Antenna connectors
Record every identifier with the place it was read from. A model number on the silkscreen and the same number on a marketplace listing can describe different hardware revisions, so where a value came from decides whether it identifies the board in front of you or a product family. The serial number, the MAC and the FCC ID are what tie a later finding to the unit the client actually deployed rather than to a model name that later shipped with different flash.
A default credential printed on the label or in the manual is a documented default, which is a weaker claim than a working login: the first says the vendor published it, the second says it authenticates. Keep the two apart in the notes, together with where the value came from — a published list, a string in the firmware, or an app decompile — and whether it was ever tried against a live service.
FCC ID Lookup
The FCC ID can reveal internal photos, schematics, and technical documentation:
# FCC ID lookup resources
https://fccid.io/ # Easy search interface
https://www.fcc.gov/oet/ea/fccid # Official FCC database
# Example: Looking up "2AJGM-CAMERA01"
# Often reveals:
# - Internal/external photos
# - Test reports
# - User manuals
# - Block diagrams
# - Schematics (sometimes)Search by grantee code rather than product name and one filing returns the equipment class, the frequency bands and the internal photographs together. The photographs are often enough to read the SoC, the flash package and an unpopulated debug header before the case is opened, which is what makes this the cheapest hardware step in the engagement. Filings are per grantee, so a device sold under several brand names may appear only under the manufacturer's own code.
Online Research
Search by component and by vulnerability record, not by marketing name. The CVE dictionary is
published at cve.org;
the older MITRE host no longer fronts it, so a link pointed there is no longer the dictionary.
Every index used here is a lead rather than a result, because the record behind a hit has to be
read before the hit means anything.
# Google dorking for IoT devices
site:exploit-db.com "device_name"
site:cve.org "manufacturer"
site:github.com "device_model" exploit
"device_name" default password
"device_name" firmware download
"device_name" root shell
"device_name" teardown OR disassembly
# Shodan queries for similar devices
shodan search "product:device_name"
shodan search "http.title:device_name"
shodan search "ssl.cert.subject.cn:manufacturer.com"Index results age. A Shodan or Censys record can describe a host as it answered weeks or months ago, so a banner that matches the query is a reason to query the live host, not a finding. The same rule covers firmware: a version string in a forum post does not establish what the device runs, and the build in front of you is the only one that can be tested.
Network Discovery
Finding IoT Devices on Network
# ARP scan for device discovery
sudo arp-scan -l
# Nmap host discovery
nmap -sn 192.168.1.0/24
# Identify IoT devices by MAC vendor
# Common IoT vendors:
# - Espressif (ESP8266/ESP32)
# - Tuya Smart
# - Shenzhen manufacturers
# - Raspberry Pi Foundation
# Full port scan on discovered device
nmap -sS -sV -p- -T4 192.168.1.100
# Service version detection
nmap -sV -sC -p 80,443,8080,8443,23,22,554 192.168.1.100
# UDP scan for IoT protocols
nmap -sU -p 67,68,123,161,5353,1900,5683 192.168.1.100A reply is not an attribution. A service answering at an address may belong to the gateway, to a shared host behind a NAT address, or to another device on the same bridge, so confirm the responder by its certificate, its firmware banner or the cloud endpoint it contacts before naming a model. The MAC prefix is the same kind of clue: one OUI covers thousands of products, and it narrows the search rather than identifying the device.
Scan from the segment the device actually lives on and write down where that is. A result proved from the bench network says nothing about how the client segments its operational estate, and whether a path crossed a VLAN boundary changes both the severity and the fix, so the vantage point belongs in the finding rather than in the engagement notes.
Common IoT Ports
| Port | Protocol | Service | Notes |
|---|---|---|---|
| 23 | TCP | Telnet | Often enabled with weak creds |
| 80/443 | TCP | HTTP/HTTPS | Web management interface |
| 554 | TCP | RTSP | IP cameras streaming |
| 1883 | TCP | MQTT | IoT messaging protocol |
| 5683 | UDP | CoAP | Constrained Application Protocol |
| 8883 | TCP | MQTT/TLS | Encrypted MQTT |
| 1900 | UDP | UPnP/SSDP | Service discovery |
| 5353 | UDP | mDNS | Multicast DNS discovery |
Read the port numbers as a prompt for the scan rather than a description of the device. The services that decide an engagement are usually the ones a vendor did not document, and the discovery protocols answer on multicast addresses a TCP sweep never touches, which is why the UDP pass is not optional on a device with a management interface.
Traffic Capture
# Capture all traffic from IoT device
sudo tcpdump -i eth0 -w iot_capture.pcap host 192.168.1.100
# Filter for specific protocols
sudo tcpdump -i eth0 -w mqtt.pcap port 1883
sudo tcpdump -i eth0 -w coap.pcap udp port 5683
# Capture with Wireshark display filter examples
# MQTT traffic
mqtt
# CoAP traffic
coap
# HTTP to cloud endpoints
http.host contains "amazonaws" or http.host contains "azure"
# DNS queries (see what domains device contacts)
dns.qry.name contains "iot" or dns.qry.name contains "cloud"Capture the window, not the packet. A pcap is evidence only with the interface it was taken on, the time it started and the filter that was applied, because a capture that omitted the traffic is indistinguishable from a device that sent none. Name the file, hash it, and keep it beside the note saying which behaviour it demonstrates, so a reader can tell the two apart without rerunning the capture.
Ecosystem Mapping
Identifying the Full Attack Surface
IoT devices rarely operate in isolation. Map the complete ecosystem:
IoT Ecosystem Attack Surface
Scroll sideways to see the whole diagram
The map is also the reason firmware work comes last. Each zone is reached with a different instrument — a sniffer for the radio link, a proxy for the phone-to-cloud API, a console for the board — so a finding inherits the vantage point that produced it and should carry it. An unauthenticated MQTT broker on the LAN and the same broker reachable from the vendor's cloud are two findings with one name and different fixes.
Mobile App Analysis
# Download APK for Android app analysis
# From device:
adb shell pm list packages | grep -i "manufacturer"
adb shell pm path com.manufacturer.iotapp
adb pull /data/app/com.manufacturer.iotapp-1/base.apk
# Decompile APK
apktool d base.apk -o decompiled_app
jadx base.apk -d jadx_output
# Search for interesting strings
grep -r "api.manufacturer.com" jadx_output/
grep -r "password|secret|key|token" jadx_output/
grep -r "http://|https://" jadx_output/
# For iOS apps, use tools like:
# - Hopper Disassembler
# - class-dump
# - Frida for runtime analysisThe app is usually the shortest path to the cloud API, because it carries the endpoint names, the embedded keys and the request signing that the device only ever performs. A key lifted from a decompile is a credential-source fact and not yet a finding: what decides its weight is whether the same key authenticates a request from your machine and whether the API distinguishes your account from the next one.
Cloud Backend Enumeration
# Identify cloud endpoints from traffic capture
tshark -r iot_capture.pcap -Y "dns" -T fields -e dns.qry.name | sort -u
# Common cloud backends:
# - AWS IoT Core: *.iot.*.amazonaws.com
# - Azure IoT Hub: *.azure-devices.net
# - Google Cloud IoT: mqtt.googleapis.com
# - Tuya: *.tuya*.com
# - Particle: api.particle.io
# Test API endpoints
curl -v https://api.manufacturer.com/v1/devices
curl -v https://api.manufacturer.com/v1/user/info
# Check for exposed API documentation
https://api.manufacturer.com/swagger
https://api.manufacturer.com/docs
https://api.manufacturer.com/v1/openapi.jsonAn endpoint that resolves into a cloud address range is not necessarily the vendor's backend. The same hostname can front a CDN, a shared tenant or the client's own broker, so resolve the chain before calling it one and quote the name from the answer rather than the address. What makes the enumeration useful is the pair: the endpoint, and the identity the device presents to it.
Firmware Acquisition
Download Methods
# Official sources
# - Manufacturer support/download pages
# - In-app update servers (capture the URL)
# - FCC filings (sometimes include firmware)
# Intercept firmware update
# Set up proxy and capture update URL
mitmproxy -p 8080
# Common update URL patterns
https://update.manufacturer.com/firmware/v1.2.3.bin
https://s3.amazonaws.com/manufacturer-firmware/device_v1.2.3.bin
# Download with wget
wget https://manufacturer.com/firmware/latest.bin
# If encrypted/signed, look for:
# - Older unencrypted versions
# - Debug/beta firmware
# - Keys in mobile app or device memoryAn image from a support page is evidence of a release only if it is the build the device reports. Record the version string the device prints in its boot log next to the version in the filename, and keep both when they disagree: the delta is itself a fact about the update path, and it is the kind of fact that decides whether an extracted credential describes the estate or an older branch of it.
Can't Find Firmware?
Recording What Reconnaissance Found
Every reconnaissance claim has to survive three questions: which device, over which interface, on which segment. A model name does not answer the first on its own, because a hardware revision changes the flash part and the firmware branch; an IP address does not answer it either, since DHCP hands the same address to the next device. Write the pairing down — the device, and the interface that reached it — and one note answers two of the three.
The interface is where most of the detail belongs. Port 80 and port 1883 on the LAN, a GATT characteristic on a BLE link and a console header on the board are four different reachability claims, and for a radio observation the adapter, the channel and the distance are part of the observation rather than laboratory trivia: a link that only holds at arm's length is not a remote attack.
The segment closes the set. Record what the device could reach from the vantage point you tested from, and whether the path crossed a VLAN boundary, because the remediation differs between a device that trusts its own network and one that should never have been routable at all. Attribution finishes the note: the FCC ID, the OUI, a certificate or a cloud endpoint ties the finding to the client's estate, and an address on its own does not.
Reconnaissance Checklist
Physical & Documentation
- ☐ Record model number, serial, FCC ID
- ☐ Look up FCC ID for internal photos
- ☐ Find user manual and documentation
- ☐ Search for known vulnerabilities (CVEs)
- ☐ Check for default credentials online
Network
- ☐ Identify device IP and MAC address
- ☐ Full port scan (TCP and UDP)
- ☐ Service version identification
- ☐ Capture network traffic
- ☐ Identify cloud endpoints contacted
Ecosystem
- ☐ Download and analyze mobile app
- ☐ Enumerate cloud API endpoints
- ☐ Identify third-party integrations
- ☐ Locate firmware download source
- ☐ Map all communication protocols used
IoT Recon Labs
Practice IoT device reconnaissance and attack surface mapping.
Evidence Collection
Device identity: Make, model, hardware revision and firmware version, each with the place it was read from.
Interface used:
The protocol and transport, with the port, handle or header: 80 and 1883 on the LAN, a GATT characteristic, or a console header.
Captured bytes: The pcap, topic dump or boot log, named and hashed, with the capture window and the interface it was taken on.
Credential source: Published default, firmware string or app decompile, and whether it was tried against a live service.
Topology: The segment tested from, what the device could reach, and whether the path crossed a VLAN boundary.
Attribution: The FCC ID, MAC OUI, certificate or cloud endpoint that ties the device to the client.
False Positives
- MAC vendor is not a device: An OUI narrows the search; it does not name a model.
- Port answering on a NAT address: The responder may be the gateway or a shared host behind it.
- CDN or cloud front: Resolve the chain before calling an endpoint the vendor backend.
- Index banner: Index records age; confirm the banner against the live host.
- Lab network discovery: A bench-network result says nothing about the client estate.
Remediation
Firmware and device
- • Disable unused services at the build stage, and ship unique per-device credentials rather than a shared default.
- • Sign firmware updates and verify the signature on the device, so an OTA interception cannot become a persistent compromise.
Network
- • Put devices on their own VLAN with an egress allowlist to the vendor cloud and no inbound path from user segments.
- • Block mDNS, SSDP, and UPnP discovery across segment boundaries, and alert on new devices appearing in the IoT range.
Verification schedule
- • Reconcile the device inventory against the DHCP and switch tables quarterly, and re-scan after each firmware release.