Skip to content
Back to skills

Iot Protocols

ASecurity

IoT/OT protocols: CoAP, Modbus, BLE, UPnP, mDNS (read-only)

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
securityrustbashtestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add blackfoxxx/kestrel --skill iot-protocols --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Iot Protocols?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Iot Protocols
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blackfoxxx-iot-protocols/badge)](https://www.skillsdirectory.com/skills/blackfoxxx-iot-protocols)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: iot-protocols
description: "IoT/OT protocols: CoAP, Modbus, BLE, UPnP, mDNS (read-only)"
---

# IoT / OT protocol testing cheat sheet

Beyond the web, IoT/OT devices expose many non-HTTP protocols. This skill gives **authorized-testing** discovery and assessment methods per protocol. MQTT has its own skill (`mqtt-iov`); satellite is `satcom-recon`.

---

## Boundaries and prohibitions (the agent must read these)

| Allowed | Forbidden |
|---|---|
| Discover, enumerate resources/services, read, decide auth and privilege-escalation | **Writing registers/coils** to OT/industrial devices, changing device state — anything that can affect the physical process |
| Passive sniffing, reading broadcast/discovery responses | DoS, firmware flashing, factory reset, provisioning hijack on production devices |
| Small-dictionary weak-password probing | Large-scale brute force, overwhelming low-power devices |

> ⚠️ **Industrial/OT physical-safety red line**: write operations on Modbus/BACnet/DNP3 can directly drive valves, motors, PLCs — a field-safety and personnel risk. **Read-only by default (read coils/registers, discover)**; discovering "unauthorized write possible" is itself a high-severity finding — report it, **don't actually write**.

---

## Port cheat sheet

| Protocol | Port | Notes |
|---|---|---|
| CoAP | 5683/udp (5684 DTLS) | REST-like for constrained devices |
| Modbus | 502/tcp | industrial, most common |
| BACnet | 47808/udp | building automation |
| DNP3 | 20000/tcp | power/water |
| UPnP/SSDP | 1900/udp | discovery; amplification surface |
| mDNS/DNS-SD | 5353/udp | LAN service discovery |
| AMQP | 5672/tcp (RabbitMQ mgmt 15672) | message queue |
| BLE | — | needs a Bluetooth adapter |
| Zigbee/802.15.4 | — | needs KillerBee hardware |

Baseline pass:

```bash
nmap -sU -sV -p 5683,1900,5353,47808 <HOST>
nmap -sV -p 502,20000,5672,15672 <HOST>
```

---

## CoAP (5683/udp)

```bash
coap-client -m get coap://<HOST>/.well-known/core      # resource discovery (the main entry)
nmap -sU -p 5683 --script coap-resources <HOST>
```

- Enumerate the resources listed by `/.well-known/core` and GET each one.
- Test whether DTLS (5684) is enforced, whether unauthenticated requests are accepted; for PUT/POST/DELETE only decide **permission** (is it rejected?) — don't actually change device state.

## Modbus (502/tcp, industrial — read-only)

```bash
nmap -p 502 --script modbus-discover <HOST>            # enumerate unit ids / device id
# mbtget / pymodbus read-only: coils and registers
mbtget -r3 -a 0 -n 10 <HOST>                           # read holding registers
```

- Modbus has no built-in auth — reachability equals readability, itself often the exposure conclusion.
- **Never send write function codes** (05/06/0F/10) to production devices; verify "writable" only on an authorized isolated test PLC.

## BLE (needs a Bluetooth adapter)

```bash
bluetoothctl scan on                                   # discover devices
gatttool -b <MAC> --primary                            # enumerate GATT services
gatttool -b <MAC> --characteristics                    # enumerate characteristics
gatttool -b <MAC> --char-read -a <handle>              # read a characteristic
```

- Focus on: Just-Works pairing (no MITM protection), characteristics exposing sensitive data in plaintext readable/writable, replayability.
- Advanced: `bettercap` (BLE module), `nRF Connect`, `btlejack` (connection hijack/sniffing, needs authorization).

## Zigbee / 802.15.4 (needs KillerBee hardware)

```bash
zbstumbler                                             # scan channels/networks
zbdump -f 15 -w capture.pcap                           # capture a channel
```

- Focus on default/leaked network keys (Trust Center Link Key, the classic `ZigBeeAlliance09`), plaintext joining, replaying switch/lock commands (authorized test devices only).

## UPnP / SSDP (1900/udp)

```bash
nmap -sU -p 1900 --script upnp-info <HOST>
upnpc -l                                               # list IGD port-mapping capability
```

- Focus on: unauthorized port-mapping addition (intranet piercing), device-description XML leaking model/serial, the SSDP reflection/amplification surface.

## mDNS / DNS-SD (5353/udp)

```bash
avahi-browse -a -t                                     # enumerate all announced LAN services
nmap -sU -p 5353 --script dns-service-discovery <HOST>
```

- Quickly map which devices and services the LAN has (printers, NAS, cameras, smart home, Chromecast, ...) with hostnames/ports, guiding targeted follow-up tests.

## AMQP (5672 / RabbitMQ mgmt 15672)

```bash
nmap -p 5672 --script amqp-info <HOST>
# RabbitMQ console defaults guest/guest (older versions allowed remote login)
curl -s -u guest:guest http://<HOST>:15672/api/overview | head
```

---

## Companions: firmware and hardware (when a sample/firmware exists)

- Firmware extraction and analysis: `binwalk -eM firmware.bin`, `firmware-mod-kit` — look for hardcoded credentials, certs, private keys, backdoors, update URLs, broker/API endpoints.
- Hardware debug ports (UART/JTAG/SPI flash): need physical access to the device; that's hardware testing — this skill only notes their existence.
- Feed broker addresses/certs/topic patterns extracted from firmware back into `mqtt-iov`; extracted APIs into `api-recon`.

---

## Deliverables

- `report_finding` for each confirmed issue: unauthenticated reachability, default/leaked keys, plaintext transport, unauthorized write (OT), unauthorized port-mapping change (UPnP), console default passwords, firmware hardcoded credentials, etc.
- `insert_assets` for the discovered services/devices (protocol, port, model, firmware version).
- For OT/physical findings, the report must **state explicitly that no writes were performed — permission was only decided** — and give remediation (add authentication, network segmentation, disable default accounts/keys).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.