IoTHackBot
Open-source IoT security testing toolkit with integrated Claude Code skills for automated vulnerability discovery.
Overview
IoTHackBot is a collection of specialized tools and Claude Code skills designed for security testing of IoT devices, IP cameras, and embedded systems. It provides both command-line tools and AI-assisted workflows for comprehensive IoT security assessments.
Tools Included
Network Discovery & Reconnaissance
- wsdiscovery - WS-Discovery protocol scanner for discovering ONVIF cameras and IoT devices
- iotnet - IoT network traffic analyzer for detecting protocols and vulnerabilities
- netflows - Network flow extractor with DNS hostname resolution from pcap files
- nmap (skill) - Professional network reconnaissance with two-phase scanning strategy
Device-Specific Testing
- onvifscan - ONVIF device security scanner
- Authentication bypass testing
- Credential brute-forcing
Firmware & File Analysis
Binary Reverse Engineering
- bn-headless (skill) - Headless Binary Ninja decompiler/disassembler
- Decompile to pseudo-C / HLIL / MLIL / disassembly, no GUI
- Any architecture (x86, MIPS, ARM, aarch64, PPC, RISC-V)
- Follow xrefs and callees, dump strings and their referencing code
- Caches analysis for near-instant repeat queries
- Requires a licensed Binary Ninja (Commercial/Enterprise/Ultimate)
Android Analysis
Hardware & Console Access
-
jtagprobe - SWD/JTAG debug interface probe via SEGGER J-Link
- Classifies targets as OPEN / LOCKED / DEAD
- Sweeps SWD then JTAG across multiple clock speeds
- Decodes DPIDR / IDCODE to vendor (STM32, NXP, Nordic, TI, ...)
- Halt + memory read to confirm true debugger control
- Per-attempt JLinkExe stdout captured for pentest evidence
-
picocom (skill) - IoT UART console interaction for hardware testing
- Bootloader manipulation
- Shell enumeration
- Firmware extraction
- Includes Python helper script for automated interaction
-
telnetshell (skill) - IoT telnet shell interaction
- Unauthenticated shell testing
- Device enumeration
- BusyBox command handling
- Includes Python helper script and pre-built enumeration scripts
Installation
Prerequisites
# Python dependencies
pip install colorama pyserial pexpect requests
# System dependencies (Arch Linux)
sudo pacman -S nmap e2fsprogs f2fs-tools python python-pip inetutils
# For other distributions, install equivalent packages
The bn-headless skill additionally requires a licensed Binary Ninja (Commercial/Enterprise/Ultimate) with its headless Python API. Binary Ninja is commercial software licensed separately; point the tool at your install with export BN_PYTHON=/path/to/binaryninja/python if it is not in a standard location.
Setup
- Clone the repository:
git clone https://github.com/BrownFineSecurity/iothackbot.git
cd iothackbot
- Add the bin directory to your PATH:
export PATH="$PATH:$(pwd)/bin"
- For permanent setup, add to your shell configuration:
echo 'export PATH="$PATH:/path/to/iothackbot/bin"' >> ~/.bashrc
Usage
Quick Start Examples
Discover ONVIF Devices
wsdiscovery 192.168.1.0/24
Test ONVIF Device Security
onvifscan auth http://192.168.1.100
onvifscan brute http://192.168.1.100
Analyze Network Traffic
# Analyze PCAP file for IoT protocols
iotnet capture.pcap
# Live capture
sudo iotnet -i eth0 -d 60
Extract Network Flows
# Extract flows from device with DNS resolution
netflows capture.pcap --source-ip 192.168.1.100
# Get just hostname:port list
netflows capture.pcap -s 192.168.1.100 --format quiet
Analyze Firmware
# Identify file types
ffind firmware.bin
# Extract filesystems (requires sudo)
sudo ffind firmware.bin -e
Reverse-Engineer a Binary
# Orient: architecture, counts, sections
bnhl info ./httpd
# Find interesting strings and the functions that reference them
bnhl grepstr ./httpd 'password|/bin/sh|system'
# Decompile a function to pseudo-C
bnhl decompile ./httpd handle_request
# Trace who calls an authorization check
bnhl xrefs ./httpd check_auth