IRON-HID: Create your own bad USB. Seunghun Han



Similar documents
Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade!

Dell Wyse Cloud Connect

USB to RS-422/485 Serial Adapter

SecureLinx Spider Duo Quick Start Guide

CENTRONICS interface and Parallel Printer Port LPT

Amcrest 960H DVR Quick Start Guide

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

BT LE RFID Reader v1.0

Chapter 1 Hardware and Software Introductions of pcduino

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

What marketing won t tell you about the Internet of Things

Board also Supports MicroBridge

STUDY OF CELLPHONE CHARGERS

USB Port PCI Express Card

USB 4 MB / 2 GB PS/2 4 MB / 2 GB

KSH-3000-MI. Swipe Card Reader. ( Magnetic / IC Card two in One Reader ) Revision Reason Date V

Ways to Use USB in Embedded Systems

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

Using HyperTerminal with Agilent General Purpose Instruments

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

QUICK START GUIDE Bluetooth Cordless Hand Scanner (CHS)

, ACTIVITY AND, SLEEP TRACKING SMARTWATCH

DRAFT COPY: CONTENTS SUBJECT TO CHANGE. FTC Training Manual. JAVA Programming for the Next Gen Controller. FIRST Tech Challenge 8/3/2015

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

Remote control circuitry via mobile phones and SMS

because we care MS910 Wireless Barcode Scanner Quick Guide Full user s manual is available on the enclosed CD. Version G

CB-OLP425 DEVELOPMENT KIT GETTING STARTED

2100 POS System User Guide

Tablet PC User Manual

Gilsson AlwaysFind Web Base Fleet Management AVL & Personal GPS Trackers

M72. Quectel Cellular Engine. EVB User Guide M72_EVB_UGD_V1.0

The easy way to accept EFTPOS, Visa and MasterCard payments on the spot. Mobile Users Charging your PayClip. 2. Downloading the PayClip app.

A-307. Mobile Data Terminal. Android OS Platform Datasheet

04/08/2011. Andy Davis Research Director Telephone: +44 (0)

ATV310B User Manual. V1.1

A-317. Mobile Data Terminal. Android Platform Datasheet

i.mx USB loader A white paper by Tristan Lelong

Bluetooth Serial Adapter

PN532 NFC RFID Module User Guide

Magic Control Technology Corporation. Android Mirror KM-C6105. User Manual

MediaQ M310. Quick Start HUAWEI TECHNOLOGIES CO., LTD.

Bluetooth UART/RS232 Module

Product Specification instalert Rapid Messenger Variable Message Sign

Point of view HDMI Smart TV dongle Mini RF Keyboard

First of all Let's look at how you would connect your laptop via Ethernet, as it is the easier of the two methods.

MobileMerchant Application Guide

NEC USB PortBar with the Driver Installation Diskette

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

[USING THE NM150 WITH ADULTICIDING] July 13, 2015

Pentesting Android Mobile Application

Microtronics technologies Mobile:

FLYPORT Wi-Fi G

Wyse Cloud Connect. Secure productivity from work, home, and on the go. Learn more. Here:

Bluetooth to Serial Adapter

Build SalesForce IoT applications with ARM mbed

The Android Breathalyzer is not a professional Breathalyzer and should be used for Amusement Purposes Only. Drive Safely!

NEC USB PortBar with the Driver Installation Diskette

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

User Guide Vodafone Mobile Wi-Fi R206-Z. Designed by Vodafone

XPort Universal Demo Board User Guide

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Introduction About ZTE Terminal Software Online Upgrade (only for USA )

BATTERY MANAGEMENT SYSTEM

GS-SL2X00 Series. GS-WTX00 Series. Enterprise Android Barcode Device. User Manual

Colorfly Tablet Upgrade Guide

Getting Started Guide with WIZ550web

FM4100 USER MANUAL V1.4

Cypress Semiconductor: Arduino Friendly PSoC Shield

ETRX3USB ETRX3USB-LRS ETRX3USB+8M ETRX3USB-LRS+8M PRODUCT MANUAL

Android Controlled Based Interface

Network connectivity controllers

Secure your Privacy. jrsys, Inc. All rights reserved.

Attacking the Traveling Salesman Point-of-sale attacks on airline travelers DEFCON 2014

General FAQ s E-Pos Systems.

Quick Start Guide. The Raspberry Pi Single Board Computer. Source: Raspberry Pi & Wiki

Why you need to monitor serial communication?

Point of View SmartTV-500 Center - Android 4.2. General notices for use...2 Disclaimer...2 Box Contents...2

Technical Document - Establishing Wireless Communications with Revolectrix Charge Control Software (CCS) Products

Model Number : J-1AK. 5,800mAh Power Case with Bluetooth Keyboard Designed for ipad Air

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Tutorial for MPLAB Starter Kit for PIC18F

Ethernet Radio Configuration Guide

Data Transfer between Two USB Flash SCSI Disks using a Touch Screen

Installing Your POS Hardware

How to setup a serial Bluetooth adapter Master Guide

Shearwater Research Dive Computer Software Manual

Easy! Smooth! GP/ST-3500 Series->GP4000 Series Replacement Guidebook

Pen Drive to Pen Drive and Mobile Data Transfer Using ARM

Web Site: Forums: forums.parallax.com Sales: Technical:

Single channel data transceiver module WIZ2-434

RC2200DK Demonstration Kit User Manual

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

User Guide for Windows 10

Android Box SNNPB73B

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

WF35 Magstripe Card Reader (MSR) Configuration Contents

Flight Controller. Mini Fun Fly

Transcription:

IRON-HID: Create your own bad USB Seunghun Han

Who am I? Security researcher at NSR (National Security Research Institute of South Korea) Operating system and firmware developer Author of the book series titled 64-bit multicore OS principles and structure, Vol.1 & 2 a.k.a kkamagui (crow or raven in English) - @kkamagui1

Contents Background and Architecture of IRON-HID Hacking a Portable Charger Testing a Vulnerability of a Smartphones Testing a Vulnerability of a POS System and a PC Bonus

Background and Architecture of IRON-HID Hacking a Portable Charger Testing a Vulnerability of the Smartphone Testing a Vulnerability of the POS System and the PC Bonus

IRON-HID Project? IRON-HID = Human Interface Device for making your tools

Features Custom device + firmware + test agent program + Android smartphone program Various types of system exploitable POS (Point-of-Sale), PC, Android, etc. Lightweight embedded hardware-based Arduino and Teensy Open-source project! https://github.com/kkamagui/iron-hid

Arduino vs Teensy Arduino Teensy Arduino Mega Larger (Palm size) 256KB Flash (ATmega16U2 + ATmega2560) Teensy++ 2.0 Smaller (Paper-clip size) 128KB Flash (AT90USB1286) 60 I/O Pins 46 I/O Pins Arduino Sketch IDE is available!

Targets Commander Proxy Device Wireless USB Test Agent Attach Custom Device

Target POS systems, PCs, smartphones Test agent (TA) program Send commands and events Install a test agent program Receive results of commands (Results of shell, screens, files) Custom device (in proxy devices) IRON-HID firmware (USB functions and a CD-ROM image) Embedded hardware (Low-powered hardware) Wireless module (WiFi, Bluetooth, Cellular, etc.) Execute shell commands Send keyboard events Capture screens Get files Receive results of commands Receive status of a proxy device Security inspector smartphone IRON-HID commander program : IRON-HID component

IRON-HID Firmware Emulates keyboard and mass-storage device It has one interrupt type endpoint for sending and logging keyboard events It has two bulk type endpoints for installing the TA program Makes a custom communication channel It has one control type endpoint for making a tunnel between the TA program and the Commander program

TA program and IRON-HID Commander TA program processes requests of Commander Command Executions, Screen Captures, File Transfers Commander is an interface of pen-testers It has control tab, command tab, key tab Penetration tester uses each tab for testing security holes

Direction Format Description Commander TA program Commander TA program Commander TA program TA program Commander Commander Firmware Commander Firmware Commander Firmware Firmware Commander Firmware Commander C;<command>; G;<filename>; S;; F;;<64byte data>; <Magic string 1> <Magic string 2> <Magic string 3> M;;<keyboard event>; D;;<debug message>; Commander requests that TA program executes a command and sends result to Commander Commander requests that TA program sends a file to Commander Commander requests that TA program captures a screenshot and sends it to Commander TA program sends results to Commander Commander changes firmware s mode to command transfer mode Commander changes firmware s mode to keyboard event mode Commander requests that firmware installs TA program into host Firmware sends user s keyboard inputs to Commander Firmware sends debug messages to Commander

We are ready to launch! Choose a target to attach it

We want a portable charger We use the smartphone everywhere!! We spend much time with the smartphone But, it doesn t have enough battery So, you should bring your charger or

So many portable chargers

So many battery rental services

Hey, You totally believe your portable charger?

PowerShock!! It is a portable charger, but not normal It has IRON-HID inside it It can test Android smartphones It can test POS(Point-Of-Sale) Systems It can test your PC It is a perfect weapon for penetration testers

Background and Architecture of IRON-HID Hacking a Portable Charger Testing a Vulnerability of the Smartphone Testing a Vulnerability of the POS System and the PC Bonus

Tools you need

Inside of the portable charger It has a very simple architecture A charger module and battery cells High capacity model More battery cells!

Cutting off battery cells Make some space for IRON-HIDs Battery cells are connected in parallel Cut off the cell connector carefully

Pin layouts of the charger module USB Connector for Input (recharging) USB Connector for Output (smartphone) GND (No.5) VCC Data- Data+ ID (No.1) GND (No.4) Data+ VCC Data- (No.1)

USB Datasheet Micro Type A Type (VCC) (GND) (VCC) (GND) Mini Type (VCC) (GND)

Pin layouts of the IRON-HID Teensy Bluetooth Serial Module (RN-42 Silver) CTS VCC GND TX RX RTS VCC Data- Data+ ID GND Teensy 5V OUT D2 (RX) D3 (TX) GND Bluetooth VCC TX RX GND

You got the power!! * Rebirth of the Portable Charger *

USB OTG (On-The-Go) It activates the USB host function of smart-phones You can connect various types of USB peripherals such as a keyboard, a massstorage (USB drive), a mouse * The final piece of the puzzle *

?! Smartphone Cables PowerShock

?! Smartphone Cables OH PowerShock THIS IS NOT WHAT I WANT

Making a custom OTG cable Connect the ID pin with the GND pin

Background and Architecture of IRON-HID Hacking a Portable Charger Testing a Vulnerability of the Smartphone Testing a Vulnerability of the POS System and the PC Bonus

Well-known Smartphone Vulnerability No No No Do you use a pattern lock? Yes Do you set a backup PIN? Yes Can you type backup PINs unlimitedly? Yes You are safe (maybe ) You are in danger

Testing the vulnerability Connect PowerShock to a smartphone with the custom OTG cable and fire!! It is really hard to test the vulnerability with your hands The PowerShock tests it instead of you It sends PINs quickly and automatically!! If someone asks you to charge a phone, charge it with PowerShock!!

Demo (Let s test the Android)

Background and Architecture of IRON-HID Hacking a Portable Charger Testing a Vulnerability of the Smartphone Testing a Vulnerability of the POS System and the PC Bonus

Inside of the POS Systems = = Parallel Port USB + LAN Serial Port PS/2 Many POS systems are PC-based!!

If the PowerShock plugs into the POS? USB POS System Recharge PowerShock Card Num: XXXX-XXXX Date: XX/XX If POS system has a vulnerability, you can grab card numbers!!

Demo (Let s test the POS system)

Background and Architecture of IRON-HID Hacking a Portable Charger Testing a Vulnerability of the Smartphone Testing a Vulnerability of the POS System and the PC Bonus

KeyboardShock Attach IRON-HID onto USB keyboards and give them to your colleagues

Find the key matrix with multimeter

The example of the keyboard matrix

ReaderShock Attach IRON-HID onto card readers and give them also to your colleagues

Then You will be the big brother for fun!! C:\> notepad no-mercy.txt C:\> format c: /q Executing commands Logging and sending keys Receiving files and capturing screenshots

Resources http://www.fourwalledcubicle.com http://cdemu.blogspot.com http://www.usb.org https://www.arduino.cc https://www.pjrc.com/teensy

Thank you! I will be waiting for your email @kkamagui1, hanseunghun@nsr.re.kr