Introduction to Attify Badge : Hacking IoT hardware

Written by | Internet of Things, Training

Serial communication with Embedded IoT devices

Welcome to the new blog post by Attify. In this blog post, we will introduce our newest creation – Attify Badge, something which we use in order to perform hardware exploitation and to hack IoT devices.

This is also covered extensively in our training course “Offensive IoT Exploitation”, where we teach attendees on how to exploit the smart devices. We use this to perform UART sniffing, root over serial, JTAG debugging, dumping memory and so on.


In case you have been involved in electronics, you might be familiar with FT232R. The Attify badge makes use of FT232H, which is the bigger and powerful version of the FT232R, a USB to UART adapter. FT232H series supports several serial protocols and is also found to be widely used in a number of JTAG adapters. Another notable difference in the badge and FT232R is there is a Multi-Protocol Synchronous Serial Engine (MPSSE) in the badge. You can read more about FTDI’s MPSSE here –  The badge is capable of interacting with numerous protocols including UART, I2C, SPI and JTAG among many others. It also has a number of GPIO pins which can be customized and used for various purposes imaginable.


If you were able to get hold of a badge by ordering online, or during our training, or from one of our team members, you would need to have the pin out with you below.

Hacking IoT Embedded devices with Attify

Hacking IoT Embedded devices with Attify

The badge is marked with ACBUS and ADBUS with pins going from D0-D7 and C0-C9. The C0-C9 pins are meant for GPIO purposes.

Pin numberFunctionDescription
D0TxTransmit. To be connected to the receive of the target.
D1RxReceive. To be connected tot the Tx of the target.

Pin numberFunctionDescription
D0SCK – Clock signalThis will be the clock that tells device when to sample and write data
D1MOSI – Data OutThis will output data from the badge to the target device
D2MISO – Data InThis will read data from the target device to the badge

Just as a note :  There isn’t an explicit chip select/ enable pin in the badge. You should connect it to Ground (GND) if the target device is active low. If the target device is active high then connect to 5V.

Pin numberFunction

Identifying UART pins 

Attify badge can be used in order to perform UART sniffing and getting root access over UART, depending on the device.

In case you are not familiar with how to identify UART pinouts, below is a quick step-by-step way on identifying Tx, Rx, Vcc and GND for UART :

Follow the steps below to exploit a device over UART:

(Note : Below is a common way to identify the pinouts. Depending on the device, the steps might vary due to things like protection, scattered UART pins etc.)

1. Look for a 4 or 3 pins or pads which are in a block together.

2. In order to perform UART based exploitation, we need to correctly identify four pins namely – Tx, Rx, GND and Vcc.

3. To identify the individual pins, a multi-meter is required. Start off by connecting the black probe and the red probe of the multimeter to the device GND and the ground pin of Attify badge respectively. Reiterate till you hear a beep sound.

4. VCC can be ignored for our case, since it is not needed for a UART based exploitation.

5. By using a multimeter as ohmmeter, an infinite resistance between the TX and VCC pin will be noticed. This can also be determined by a huge variation or fluctuation in the voltage as soon as we power on the device.

6. Rx can be determined by the pin having the lowest voltage during the entire process, with having the black probe connected to the GND of the Attify badge.

In case you are interested, I have also put down a short video of the same embedded below:

SPI Dumping

Since our Attify badge can speak a number of different protocols, you could also use it to dump contents from an SPI flash as shown below. Simply make the necessary connections as mentioned in the pinout above, identify the name of the chip and you’re all set.

SPI memory dumping on IoT device

SPI memory dumping on IoT device

JTAG exploitation:

We won’t go  much in-depth into the basics of JTAG over here, maybe we will do that in another blog post. Stay tuned for future blog updates. 🙂

One of the first steps in JTAG exploitation is identifying the pinouts for JTAG. This could be done in different ways – either you could use JTAGulator (the recommended and reliable method), or use something like Arduino loaded up with JTAGenum.

Below is a quick video on how you can use Arduino loaded with JTAGenum to identify JTAG pinouts.

Once you have identified the JTAG pinouts, you can then go ahead and start debugging using OpenOCD and JTAG (something which we will cover in upcoming posts) – some screenshots below.

Bypassing authentication with JTAG for IoT

Custom challenge password authentication to be hacked

JTAG based exploitation for IoT devices

Dump images using JTAG for IoT devices

Exploiting password verification using GDB over JTAG via OpenOCD

Exploiting password verification using GDB over JTAG via OpenOCD

So this is how you could use Attify Badge in order to exploit IoT devices. We will be writing further blog posts on more detailed step-by-step guides of exploiting various interfaces and protocols.

We are proud to announce that we are now able to offer the Attify Badge to public.


In case you would like to attend our live training by scheduling one at your organisation, feel free to reach out to us at  or contact us using the form below.

Last modified: April 5, 2017

Leave a Reply

Your email address will not be published. Required fields are marked *