SlideShare a Scribd company logo
1 of 85
Download to read offline
Car Hacking: For Poories
Dr. Charlie Miller (@0xcharlie)
Chris Valasek (@nudehaberdasher)
Introduction
Who
• Charlie Miller
[Security Engineer]
|Twitter|
• Chris Valasek
[Director of Security Intelligence]
|IOActive|
Agenda
• Anatomy of an attack
• Why this research is hard
• Car hardware for software people
• The Workbench
• The Mobile Platform
Anatomy of an Attack
Step 1: Code execution
• Remote
Telematics unit
TPMS
Bluetooth
“Connectivity” apps,
Web browser, etc
Step 1: Code execution (cont.)
• Local
Step 2: CAN message injection
Compromised ECU ABS ECU Steering ECU
Other ECUs…
Step 2.5: Gateway bypass/reprogramming
Attacks
• Steering
• Braking
• Acceleration
• Microphone
• Display
Car Hacking is Hard
Expensive: Ford
Expensive: Toyota
Other costs
Cost of research
$0 $5,000 $10,000 $20,000 $40,000
Can we get the cost
of car hacking research
down here?
Car Hacking, for the poors
‘What, the poories want free healthcare? Shut it all down’ – Jesus Christ
Lower the cost!
• Cars are expensive
• Used/New ECUs are not in comparison
• Isolated ECUs can be used to identify CAN IDs and application data
• Error and legitimate data can be identified by adding/removing
connections
• Develop a mobile platform for testing requiring movement
• Brakes, Steering, Intelligent Transportation System
Hardware is hard
(for software people)
Before you begin…
• Basic electronics
• Grounds, power, multimeter, soldering, twisting wires together, duct tape
• CAN Architecture / topology
• How ECUs are connected, interact, and CAN Gateways
• General wiring diagrams, specifically for cars
• This will save you hours of time. It took us a while to trust the diagrams, because
we’re software idiots
• Automotive disassembly
• Instructions or crowbar+hammer
• Patience
• Everything takes way longer if you’re not mechanics / very familiar with cars
CAN Basics
Physical Edition
CAN Basics
• CAN-H (dominant) and CAN-L (recessive)
• Twisted pair wire
• Does not _HAVE_ to be over short distances
• Terminated by two 120ohm resistors
http://www.ni.com/cms/images/devzone/tut/a/5ca99f541439.gif
CAN Basics: Breadboard
CAN Basics: ECOM Cable
ECUBasics
Physical Edition
ECU Basics
• Minimally need power, ground, CAN-H, CAN-L to see traffic
• Sometimes multiple power (+) lines will be required
• Cars have battery and ignition, which you can run positive to both
• CAN-H & CAN-L
• Some ECUs may have multiple pairs, for example Gateway ECUs
• Others use multiple pairs for sub-networks (example: Toyota LKA)
• Wiring diagrams and mechanics accounts
• http://www.i-car.com/html_pages/technical_information/technical_info.shtml
• Hooking these up appropriately should be enough for the ECU to emit its
traffic
• Potentially response to diagnostic messages
• Honestly, this usually isn’t enough to get real-world results
ECU Basics: Harness Diagrams
https://techinfo.toyota.com/t3Portal/resources/jsp/siviewer/index.jsp?dir=rm/RM1290U&href=xhtml/RM000000VVK01BX.html&locale=en&model=Prius&MY=2010&keyWord=seat belt
ecu&t3id=RM000000VVK01BX&User=false&publicationNumber=RM1290U&objType=rm&docid=1361488&context=ti
ECU Basics: Wiring Diagrams
https://techinfo.toyota.com/t3Portal/ewdappu/index.jsp?ewdNo=EM1290U&model=Prius&MY=2010&keyWord=seat belt
ecu&locale=en&systemcode=SYS037&t3id=EM1290U_SYS037&User=false&publicationNumber=EM1290U&objType=ewdappu&docTitle=Vehicle+Interior%3A+Pre-
Collision+System%3B+2010+MY+Prius+%5B04%2F2009+-+%5D&docid=1080347&context=ti
ECU Isolation
The Hard Way
ECU Isolation: CAN Bridge
• We figured ECU in the car == fully functional
• We could then see which messages it was spitting out
• Pass them along to the bus
• Pass the traffic from the bus to the ECU
ECU Isolation: CAN Bridge
ECU Isolation: CAN Bridge II
ECU Isolation: CAN Bridge III
ECU Isolation: CAN Bridge
• Pros
• Isolate ECUs in the car; know that all the other inputs/outputs are correct
• Ability to modify or filter data
• I think this is similar to what people are releasing at BH Asia
• Cons
• Still requires a car
• Ecom->PC->Ecom is very slow and CPU intensive
• Not very practical if you’re going to clip or modify wires
• What is the solution?
ECU Isolation
The Right Way
ECU Isolation: The Workbench
• Remove ECUs from the automobile all together
• This also permits you to buy ECUs online w/o a car
• Use wiring diagrams and harness information to setup a single ECU
• We now have isolated ECUs that will emit traffic working outside of
the vehicle
• Just because it ‘turns on’ doesn’t mean it’s working…
ECU Isolation: Real Life
ECU Isolation: Does it work? | AV
ECU Isolation: Does it work? | Emit Traffic
ECU Isolation: Is it REALLY working?
• Best way is to compare a capture made from a car with the ECU
• Not always possible, but you can rent/borrow a car for a capture
• Below is the seat belt ECU from the Prius
In Car (ODB-II) On Bench (No sensors/actuators)
IDH: 03, IDL: 9C, Len: 01, Data: 08 TS: 35060
IDH: 03, IDL: 9C, Len: 01, Data: 08 TS: 50684
IDH: 03, IDL: 9C, Len: 01, Data: 08 TS: 66307
IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 81945
IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 97569
IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 113195
IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 128816
IDH: 03, IDL: 9C, Len: 01, Data: 08 ,TS: 28460,BAUD: 1
IDH: 03, IDL: 9C, Len: 01, Data: 08 ,TS: 44086,BAUD: 1
IDH: 03, IDL: 9C, Len: 01, Data: 09 ,TS: 59711,BAUD: 1
IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 75338,BAUD: 1
IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 90963,BAUD: 1
IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 106588,BAUD: 1
IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 122214,BAUD: 1
ECU Isolation
Making it Work
MiW: Attach Sensors / Actuators
• Why didn’t you poories already think of this?
Too poor for sensors? Fake it
What else?
• ECUs need sensors and actuators to be happy
• In order to fully function, they also need CAN traffic
• In the year 3000……
MiW: CAN-Simulator 3000
MiW: Real Life
Sending messages for ECUs
More messages!
MiW: Collect them All!
MiW: Collect them All!
ECU Attacks
Hacking a car without a car
ECU Attacks: Instrument cluster
CAN injection - Ford speedometer
ECU Attacks: LKA
Ford steering on the bench
ECU Attacks: Back camera / sensors
Wheel sensor in action
ECU Attacks: Infotainment
Disable brakes (via bleeding)
Mechanics tools over ODB-II
The Bench
The Bench: Pros
• CAN ID isolation saves you valuable time
• Example: No more looking at a huge capture for steering packets
• Many diagnostic tests can be administered
• Think securityAccess + mechanics tools
• Try attacks / fuzzing on the bench w/o fear for your life
• Remote attack research
• Bluetooth, WiFi, Telephony, etc
• All without a car!*
• *Might require a rental/zipcar to get baseline capture (no biggie)
The Bench: Cons
• Potentially need a baseline
• Hard to retrieve some items from the automobile
• Engine, brakes, suspension, etc
• The bench does not move
• Things like PCS require movement
Mobile Testing Platform
The Cart
The Cart: Base model
http://gokartsusa.com/kandi-150-kd-150fs-buggy-gokart.aspx
The Cart: Miller-Valasek Mods
Worlds most sophisticated gocart
The Cart: Miller-Valasek Mods
The Cart: Modifications
• Multiple CAN networks
• Sensors
• Parking, camera, backup, millimeter wave sensor, etc
• Actuators
• Power steering, LKA, seat belt motors, etc
• Required additional car battery
The Cart: Pros
• Mobility allows for better testing
• Millimeter wave sensor needs to ‘see’ objects coming towards it
• Teaches you a bit about how a (primitive) car would be put together
• Learn how parts react with & without proper sensors/actuators
• It’s badass
The Cart: Cons
• Wiring these things is awful
• Car parts do NOT fit go-carts
• Who would have guessed
• Probably should have bought this:
http://www.wired.com/autopia/2014/02/open-source-
vehicle/?cid=18110044#slide-id-152661
The Cart: FUN!
Dune buggy Charlie
The Cart: Steering
Speedometer
Pitfalls
There are/were many
Pitfalls
• Unless re-flashing, don’t get too worried about ‘frying’ an ECU
• They are quite resilient
• ECUs may send ‘OK’ messages and respond normally to diagnostic
requests, but physical attributes may not work
• We haven’t really figured all this out, but it’s probably due to
sensors/actuators/simulated traffic
• Baseline CAN captures can be a problem
• Mechanics accounts are a must
• Toyota’s was around $1100 USD for a year
Pitfalls: WIRING!
Pitfalls: WIRING!
Debugging…sucks!
Pitfalls: WIRING!
ECU Pricing Examples
• Sometimes you can’t find used ECUs
• USED
• Prius ECM => ~200 USD
• Transmission ECU => ~150 USD
• TPMS ECU => ~50 USD
• New
• Prius Seatbelt ECU => ~1100 USD
Conclusions
Conclusions
• While not perfect, automotive research can be done without a car
• Cheap, moving alternatives can provide locomotion for a lack of car
• Hopefully this will get even more people involved in autosec
• Trademark pending
• The government bought us 2 cars and 2 go-carts
• SUCK IT GRUGQ!
Questions?
Questions?
• Dr. Charlie Miller (@0xcharlie)
• Twitter Guy
• cmiller@openrce.org
• Chris Valasek (@nudehaberdasher)
• Director of Security Intelligence @ IOActive
• cvalasek@gmail.com

More Related Content

What's hot

Vehicle Telematics
Vehicle TelematicsVehicle Telematics
Vehicle Telematics
sagrawal2003
 
Network Security for Automotive Embedded Systems
Network Security for Automotive Embedded SystemsNetwork Security for Automotive Embedded Systems
Network Security for Automotive Embedded Systems
Tonex
 

What's hot (20)

Current state of automotive network security
Current state of automotive network securityCurrent state of automotive network security
Current state of automotive network security
 
Connected Car APIs and Connectivity
Connected Car APIs and ConnectivityConnected Car APIs and Connectivity
Connected Car APIs and Connectivity
 
Addressing Security in the Automotive Industry
Addressing Security in the Automotive IndustryAddressing Security in the Automotive Industry
Addressing Security in the Automotive Industry
 
COMMUNICABLE AUTONOMOUS SECURED VEHICLE
COMMUNICABLE AUTONOMOUS SECURED VEHICLECOMMUNICABLE AUTONOMOUS SECURED VEHICLE
COMMUNICABLE AUTONOMOUS SECURED VEHICLE
 
eCall
eCalleCall
eCall
 
smart car
smart carsmart car
smart car
 
Autonomous cars
Autonomous carsAutonomous cars
Autonomous cars
 
Connected and Automated Vehicles: Where Are We Going and What Happens When We...
Connected and Automated Vehicles: Where Are We Going and What Happens When We...Connected and Automated Vehicles: Where Are We Going and What Happens When We...
Connected and Automated Vehicles: Where Are We Going and What Happens When We...
 
E call ppt
E call pptE call ppt
E call ppt
 
Vehicle Telematics
Vehicle TelematicsVehicle Telematics
Vehicle Telematics
 
Network Security for Automotive Embedded Systems
Network Security for Automotive Embedded SystemsNetwork Security for Automotive Embedded Systems
Network Security for Automotive Embedded Systems
 
Emocon 2015 - 웹 앱 개발자가 모르는 임베디드세상(오토모티브 월드)
Emocon 2015 - 웹 앱 개발자가 모르는 임베디드세상(오토모티브 월드)Emocon 2015 - 웹 앱 개발자가 모르는 임베디드세상(오토모티브 월드)
Emocon 2015 - 웹 앱 개발자가 모르는 임베디드세상(오토모티브 월드)
 
2015 Florida Automated Vehicles Initiative - FDOT - FTA
2015 Florida Automated Vehicles Initiative - FDOT - FTA2015 Florida Automated Vehicles Initiative - FDOT - FTA
2015 Florida Automated Vehicles Initiative - FDOT - FTA
 
Automotive electronics
Automotive electronicsAutomotive electronics
Automotive electronics
 
What is Telematics & How Does It Work?
What is Telematics & How Does It Work?What is Telematics & How Does It Work?
What is Telematics & How Does It Work?
 
SMART ANTI THEFT SYSTEM FOR VECHILE SECURITY USING GSM
SMART ANTI THEFT SYSTEM FOR VECHILE SECURITY USING GSMSMART ANTI THEFT SYSTEM FOR VECHILE SECURITY USING GSM
SMART ANTI THEFT SYSTEM FOR VECHILE SECURITY USING GSM
 
Smart vehicle mini project
Smart vehicle mini projectSmart vehicle mini project
Smart vehicle mini project
 
E call rg
E call rgE call rg
E call rg
 
EENA 2016 - Standards Update (3/3)
EENA 2016 - Standards Update (3/3)EENA 2016 - Standards Update (3/3)
EENA 2016 - Standards Update (3/3)
 
Inteliģentās transporta sistēmas: Britu pieredze, Latvijas plāni
Inteliģentās transporta sistēmas: Britu pieredze, Latvijas plāniInteliģentās transporta sistēmas: Britu pieredze, Latvijas plāni
Inteliģentās transporta sistēmas: Britu pieredze, Latvijas plāni
 

Viewers also liked

Breaking Vaults - Stealing Lastpass Protected Secrets by Martin Vigo
Breaking Vaults - Stealing Lastpass Protected Secrets by Martin VigoBreaking Vaults - Stealing Lastpass Protected Secrets by Martin Vigo
Breaking Vaults - Stealing Lastpass Protected Secrets by Martin Vigo
Shakacon
 
There's Waldo by Patrick Wardle & Colby Moore
There's Waldo by Patrick Wardle & Colby MooreThere's Waldo by Patrick Wardle & Colby Moore
There's Waldo by Patrick Wardle & Colby Moore
Shakacon
 
Consumer electronics-servicing-learning-module
Consumer electronics-servicing-learning-moduleConsumer electronics-servicing-learning-module
Consumer electronics-servicing-learning-module
Bogs De Castro
 

Viewers also liked (15)

Breaking Vaults - Stealing Lastpass Protected Secrets by Martin Vigo
Breaking Vaults - Stealing Lastpass Protected Secrets by Martin VigoBreaking Vaults - Stealing Lastpass Protected Secrets by Martin Vigo
Breaking Vaults - Stealing Lastpass Protected Secrets by Martin Vigo
 
Social Engineering the Windows Kernel by James Forshaw
Social Engineering the Windows Kernel by James ForshawSocial Engineering the Windows Kernel by James Forshaw
Social Engineering the Windows Kernel by James Forshaw
 
Exploiting Elevator Security Weaknesses by Deviant Ollam
Exploiting Elevator Security Weaknesses by Deviant OllamExploiting Elevator Security Weaknesses by Deviant Ollam
Exploiting Elevator Security Weaknesses by Deviant Ollam
 
I am the 100% [*] by Chris Evans & Natalie Silvanovich
I am the 100% [*] by Chris Evans & Natalie SilvanovichI am the 100% [*] by Chris Evans & Natalie Silvanovich
I am the 100% [*] by Chris Evans & Natalie Silvanovich
 
Mi sp 350 350 plus - Servicio Tecnico Fagor
Mi sp 350 350 plus - Servicio Tecnico FagorMi sp 350 350 plus - Servicio Tecnico Fagor
Mi sp 350 350 plus - Servicio Tecnico Fagor
 
There's Waldo by Patrick Wardle & Colby Moore
There's Waldo by Patrick Wardle & Colby MooreThere's Waldo by Patrick Wardle & Colby Moore
There's Waldo by Patrick Wardle & Colby Moore
 
Hacking Highly Secured Enterprise Environments by Zoltan Balazs
Hacking Highly Secured Enterprise Environments by Zoltan BalazsHacking Highly Secured Enterprise Environments by Zoltan Balazs
Hacking Highly Secured Enterprise Environments by Zoltan Balazs
 
Lock picking 2600
Lock picking 2600Lock picking 2600
Lock picking 2600
 
Hacking the Internet of Things
Hacking the Internet of ThingsHacking the Internet of Things
Hacking the Internet of Things
 
The Search for the Perfect Door - Deviant Ollam
The Search for the Perfect Door - Deviant OllamThe Search for the Perfect Door - Deviant Ollam
The Search for the Perfect Door - Deviant Ollam
 
Medical Devices Passwords to Pwnage by Scott Erven
Medical Devices Passwords to Pwnage by Scott ErvenMedical Devices Passwords to Pwnage by Scott Erven
Medical Devices Passwords to Pwnage by Scott Erven
 
Car hacking
Car hackingCar hacking
Car hacking
 
Consumer electronics-servicing-learning-module
Consumer electronics-servicing-learning-moduleConsumer electronics-servicing-learning-module
Consumer electronics-servicing-learning-module
 
Hacking & its types
Hacking & its typesHacking & its types
Hacking & its types
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 

Similar to Suns Out Guns Out: Hacking without a Vehicle by Charlie Miller & Chris Valasek

Automotive electronics
Automotive  electronicsAutomotive  electronics
Automotive electronics
jeet1991
 
Oscilloscopes and Scan Tools
Oscilloscopes and Scan ToolsOscilloscopes and Scan Tools
Oscilloscopes and Scan Tools
Praneel Chand
 
Marine Automation 20151107c
Marine Automation 20151107cMarine Automation 20151107c
Marine Automation 20151107c
Stephen Wright
 

Similar to Suns Out Guns Out: Hacking without a Vehicle by Charlie Miller & Chris Valasek (20)

Embedded Systems in Automotive
Embedded Systems in Automotive Embedded Systems in Automotive
Embedded Systems in Automotive
 
Carlos Sahuquillo - Car Hacking: de Angelina Jolie a Charlize Theron [rootedv...
Carlos Sahuquillo - Car Hacking: de Angelina Jolie a Charlize Theron [rootedv...Carlos Sahuquillo - Car Hacking: de Angelina Jolie a Charlize Theron [rootedv...
Carlos Sahuquillo - Car Hacking: de Angelina Jolie a Charlize Theron [rootedv...
 
ECU: Electronic Control Units in Electric Two Wheeler
ECU: Electronic Control Units in Electric Two WheelerECU: Electronic Control Units in Electric Two Wheeler
ECU: Electronic Control Units in Electric Two Wheeler
 
ITS "Intelligent Transportation System" Guided Vehicle using IOT Project
ITS "Intelligent Transportation System" Guided Vehicle using IOT ProjectITS "Intelligent Transportation System" Guided Vehicle using IOT Project
ITS "Intelligent Transportation System" Guided Vehicle using IOT Project
 
Gentlemen, Start Your Engines 20120514
Gentlemen, Start Your Engines 20120514Gentlemen, Start Your Engines 20120514
Gentlemen, Start Your Engines 20120514
 
Automotive electronics
Automotive  electronicsAutomotive  electronics
Automotive electronics
 
Gentlemen, Start Your Engines 20120419
Gentlemen, Start Your Engines 20120419Gentlemen, Start Your Engines 20120419
Gentlemen, Start Your Engines 20120419
 
Emic Effects on controlling automobile safety
Emic Effects on controlling automobile safety Emic Effects on controlling automobile safety
Emic Effects on controlling automobile safety
 
Asia 14-garcia-illera-dude-wtf-in-my-can
Asia 14-garcia-illera-dude-wtf-in-my-canAsia 14-garcia-illera-dude-wtf-in-my-can
Asia 14-garcia-illera-dude-wtf-in-my-can
 
Smart riding system using embedded systems by sakthivel.s praveen.r
Smart riding system using embedded systems by sakthivel.s praveen.rSmart riding system using embedded systems by sakthivel.s praveen.r
Smart riding system using embedded systems by sakthivel.s praveen.r
 
LDR Counter
LDR CounterLDR Counter
LDR Counter
 
Canbus presentation
Canbus presentationCanbus presentation
Canbus presentation
 
Draft 2022.09.24.09.40 PDT TMC S.7 Mini-Tech Slides.pptx
Draft 2022.09.24.09.40 PDT TMC S.7 Mini-Tech Slides.pptxDraft 2022.09.24.09.40 PDT TMC S.7 Mini-Tech Slides.pptx
Draft 2022.09.24.09.40 PDT TMC S.7 Mini-Tech Slides.pptx
 
Auto ecu(engine control unit) chip tuning
Auto ecu(engine control unit) chip tuningAuto ecu(engine control unit) chip tuning
Auto ecu(engine control unit) chip tuning
 
Foxwell i70-android-diagnostic-scanner-371
Foxwell i70-android-diagnostic-scanner-371Foxwell i70-android-diagnostic-scanner-371
Foxwell i70-android-diagnostic-scanner-371
 
Oscilloscopes and Scan Tools
Oscilloscopes and Scan ToolsOscilloscopes and Scan Tools
Oscilloscopes and Scan Tools
 
Mechatronic Design Lab [EE192 Spring '15]
Mechatronic Design Lab [EE192 Spring '15]Mechatronic Design Lab [EE192 Spring '15]
Mechatronic Design Lab [EE192 Spring '15]
 
V.c.a.s.
V.c.a.s.V.c.a.s.
V.c.a.s.
 
Automatic Toll Tax Collection System by Using RFID
Automatic Toll Tax Collection System by Using RFIDAutomatic Toll Tax Collection System by Using RFID
Automatic Toll Tax Collection System by Using RFID
 
Marine Automation 20151107c
Marine Automation 20151107cMarine Automation 20151107c
Marine Automation 20151107c
 

More from Shakacon

Pwned in Translation - from Subtitles to RCE
Pwned in Translation - from Subtitles to RCEPwned in Translation - from Subtitles to RCE
Pwned in Translation - from Subtitles to RCE
Shakacon
 
Oversight: Exposing spies on macOS
Oversight: Exposing spies on macOS Oversight: Exposing spies on macOS
Oversight: Exposing spies on macOS
Shakacon
 
A Decompiler for Blackhain-Based Smart Contracts Bytecode
A Decompiler for Blackhain-Based Smart Contracts BytecodeA Decompiler for Blackhain-Based Smart Contracts Bytecode
A Decompiler for Blackhain-Based Smart Contracts Bytecode
Shakacon
 
Reviewing the Security of ASoC Drivers in Android Kernel
Reviewing the Security of ASoC Drivers in Android KernelReviewing the Security of ASoC Drivers in Android Kernel
Reviewing the Security of ASoC Drivers in Android Kernel
Shakacon
 
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
Shakacon
 

More from Shakacon (20)

Web (dis)assembly
Web (dis)assemblyWeb (dis)assembly
Web (dis)assembly
 
Macdoored
MacdooredMacdoored
Macdoored
 
I can be apple and so can you
I can be apple and so can youI can be apple and so can you
I can be apple and so can you
 
Cloud forensics putting the bits back together
Cloud forensics putting the bits back togetherCloud forensics putting the bits back together
Cloud forensics putting the bits back together
 
Pwned in Translation - from Subtitles to RCE
Pwned in Translation - from Subtitles to RCEPwned in Translation - from Subtitles to RCE
Pwned in Translation - from Subtitles to RCE
 
Oversight: Exposing spies on macOS
Oversight: Exposing spies on macOS Oversight: Exposing spies on macOS
Oversight: Exposing spies on macOS
 
Modern Reconnaissance Phase on APT - protection layer
Modern Reconnaissance Phase on APT - protection layerModern Reconnaissance Phase on APT - protection layer
Modern Reconnaissance Phase on APT - protection layer
 
Shamoon
ShamoonShamoon
Shamoon
 
A Decompiler for Blackhain-Based Smart Contracts Bytecode
A Decompiler for Blackhain-Based Smart Contracts BytecodeA Decompiler for Blackhain-Based Smart Contracts Bytecode
A Decompiler for Blackhain-Based Smart Contracts Bytecode
 
Honey, I Stole Your C2 Server: A Dive into Attacker Infrastructure
Honey, I Stole Your C2 Server:  A Dive into Attacker InfrastructureHoney, I Stole Your C2 Server:  A Dive into Attacker Infrastructure
Honey, I Stole Your C2 Server: A Dive into Attacker Infrastructure
 
Dock ir incident response in a containerized, immutable, continually deploy...
Dock ir   incident response in a containerized, immutable, continually deploy...Dock ir   incident response in a containerized, immutable, continually deploy...
Dock ir incident response in a containerized, immutable, continually deploy...
 
Reviewing the Security of ASoC Drivers in Android Kernel
Reviewing the Security of ASoC Drivers in Android KernelReviewing the Security of ASoC Drivers in Android Kernel
Reviewing the Security of ASoC Drivers in Android Kernel
 
Silent Protest: A Wearable Protest Network
Silent Protest:  A Wearable Protest NetworkSilent Protest:  A Wearable Protest Network
Silent Protest: A Wearable Protest Network
 
WiFi-Based IMSI Catcher
WiFi-Based IMSI CatcherWiFi-Based IMSI Catcher
WiFi-Based IMSI Catcher
 
Sad Panda Analysts: Devolving Malware
Sad Panda Analysts:  Devolving MalwareSad Panda Analysts:  Devolving Malware
Sad Panda Analysts: Devolving Malware
 
reductio [ad absurdum]
reductio [ad absurdum]reductio [ad absurdum]
reductio [ad absurdum]
 
XFLTReat: a new dimension in tunnelling
XFLTReat:  a new dimension in tunnellingXFLTReat:  a new dimension in tunnelling
XFLTReat: a new dimension in tunnelling
 
Windows Systems & Code Signing Protection by Paul Rascagneres
Windows Systems & Code Signing Protection by Paul RascagneresWindows Systems & Code Signing Protection by Paul Rascagneres
Windows Systems & Code Signing Protection by Paul Rascagneres
 
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
When Encryption is Not Enough...Sumanth Naropanth, Chandra Prakash Gopalaiah ...
 
Swift Reversing by Ryan Stortz
Swift Reversing by Ryan StortzSwift Reversing by Ryan Stortz
Swift Reversing by Ryan Stortz
 

Recently uploaded

如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
avy6anjnd
 
Abortion pills Dubai (+918133066128) Cytotec 200mg pills UAE Abudhabi
Abortion pills Dubai (+918133066128) Cytotec 200mg pills UAE AbudhabiAbortion pills Dubai (+918133066128) Cytotec 200mg pills UAE Abudhabi
Abortion pills Dubai (+918133066128) Cytotec 200mg pills UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
62qaf0hi
 
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
ezgenuh
 
如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一
如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一
如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一
avy6anjnd
 
CELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides forCELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides for
euphemism22
 
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
Health
 
如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一
如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一
如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一
opyff
 
如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一
如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一
如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一
avy6anjnd
 
Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...
gajnagarg
 
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
nirzagarg
 

Recently uploaded (20)

如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
 
Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...
Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...
Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...
 
Washim Call Girls 📞9332606886 Call Girls in Washim Escorts service book now C...
Washim Call Girls 📞9332606886 Call Girls in Washim Escorts service book now C...Washim Call Girls 📞9332606886 Call Girls in Washim Escorts service book now C...
Washim Call Girls 📞9332606886 Call Girls in Washim Escorts service book now C...
 
Marathi Call Girls Santacruz WhatsApp +91-9930687706, Best Service
Marathi Call Girls Santacruz WhatsApp +91-9930687706, Best ServiceMarathi Call Girls Santacruz WhatsApp +91-9930687706, Best Service
Marathi Call Girls Santacruz WhatsApp +91-9930687706, Best Service
 
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
 
Changodar Call Girls Book Now 7737669865 Top Class Escort Service Available
Changodar Call Girls Book Now 7737669865 Top Class Escort Service AvailableChangodar Call Girls Book Now 7737669865 Top Class Escort Service Available
Changodar Call Girls Book Now 7737669865 Top Class Escort Service Available
 
Abortion pills Dubai (+918133066128) Cytotec 200mg pills UAE Abudhabi
Abortion pills Dubai (+918133066128) Cytotec 200mg pills UAE AbudhabiAbortion pills Dubai (+918133066128) Cytotec 200mg pills UAE Abudhabi
Abortion pills Dubai (+918133066128) Cytotec 200mg pills UAE Abudhabi
 
Is Your Mercedes Benz Trunk Refusing To Close Here's What Might Be Wrong
Is Your Mercedes Benz Trunk Refusing To Close Here's What Might Be WrongIs Your Mercedes Benz Trunk Refusing To Close Here's What Might Be Wrong
Is Your Mercedes Benz Trunk Refusing To Close Here's What Might Be Wrong
 
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
 
What Does It Mean When Mercedes Says 'ESP Inoperative See Owner's Manual'
What Does It Mean When Mercedes Says 'ESP Inoperative See Owner's Manual'What Does It Mean When Mercedes Says 'ESP Inoperative See Owner's Manual'
What Does It Mean When Mercedes Says 'ESP Inoperative See Owner's Manual'
 
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
 
如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一
如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一
如何办理(Waterloo毕业证书)滑铁卢大学毕业证毕业证成绩单原版一比一
 
Bhilai Escorts Service Girl ^ 8250092165, WhatsApp Anytime Bhilai
Bhilai Escorts Service Girl ^ 8250092165, WhatsApp Anytime BhilaiBhilai Escorts Service Girl ^ 8250092165, WhatsApp Anytime Bhilai
Bhilai Escorts Service Girl ^ 8250092165, WhatsApp Anytime Bhilai
 
CELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides forCELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides for
 
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
 
如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一
如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一
如何办理多伦多大学毕业证(UofT毕业证书)成绩单原版一比一
 
如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一
如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一
如何办理(NCL毕业证书)纽卡斯尔大学毕业证毕业证成绩单原版一比一
 
Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Anand [ 7014168258 ] Call Me For Genuine Models We ...
 
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
 
❤️Panchkula Enjoy 24/7 Escort Service sdf
❤️Panchkula Enjoy 24/7 Escort Service sdf❤️Panchkula Enjoy 24/7 Escort Service sdf
❤️Panchkula Enjoy 24/7 Escort Service sdf
 

Suns Out Guns Out: Hacking without a Vehicle by Charlie Miller & Chris Valasek

  • 1. Car Hacking: For Poories Dr. Charlie Miller (@0xcharlie) Chris Valasek (@nudehaberdasher)
  • 3. Who • Charlie Miller [Security Engineer] |Twitter| • Chris Valasek [Director of Security Intelligence] |IOActive|
  • 4. Agenda • Anatomy of an attack • Why this research is hard • Car hardware for software people • The Workbench • The Mobile Platform
  • 5. Anatomy of an Attack
  • 6. Step 1: Code execution • Remote Telematics unit TPMS Bluetooth “Connectivity” apps, Web browser, etc
  • 7. Step 1: Code execution (cont.) • Local
  • 8. Step 2: CAN message injection Compromised ECU ABS ECU Steering ECU Other ECUs…
  • 9. Step 2.5: Gateway bypass/reprogramming
  • 10. Attacks • Steering • Braking • Acceleration • Microphone • Display
  • 15. Cost of research $0 $5,000 $10,000 $20,000 $40,000 Can we get the cost of car hacking research down here?
  • 16. Car Hacking, for the poors ‘What, the poories want free healthcare? Shut it all down’ – Jesus Christ
  • 17. Lower the cost! • Cars are expensive • Used/New ECUs are not in comparison • Isolated ECUs can be used to identify CAN IDs and application data • Error and legitimate data can be identified by adding/removing connections • Develop a mobile platform for testing requiring movement • Brakes, Steering, Intelligent Transportation System
  • 18. Hardware is hard (for software people)
  • 19. Before you begin… • Basic electronics • Grounds, power, multimeter, soldering, twisting wires together, duct tape • CAN Architecture / topology • How ECUs are connected, interact, and CAN Gateways • General wiring diagrams, specifically for cars • This will save you hours of time. It took us a while to trust the diagrams, because we’re software idiots • Automotive disassembly • Instructions or crowbar+hammer • Patience • Everything takes way longer if you’re not mechanics / very familiar with cars
  • 21. CAN Basics • CAN-H (dominant) and CAN-L (recessive) • Twisted pair wire • Does not _HAVE_ to be over short distances • Terminated by two 120ohm resistors http://www.ni.com/cms/images/devzone/tut/a/5ca99f541439.gif
  • 25. ECU Basics • Minimally need power, ground, CAN-H, CAN-L to see traffic • Sometimes multiple power (+) lines will be required • Cars have battery and ignition, which you can run positive to both • CAN-H & CAN-L • Some ECUs may have multiple pairs, for example Gateway ECUs • Others use multiple pairs for sub-networks (example: Toyota LKA) • Wiring diagrams and mechanics accounts • http://www.i-car.com/html_pages/technical_information/technical_info.shtml • Hooking these up appropriately should be enough for the ECU to emit its traffic • Potentially response to diagnostic messages • Honestly, this usually isn’t enough to get real-world results
  • 26. ECU Basics: Harness Diagrams https://techinfo.toyota.com/t3Portal/resources/jsp/siviewer/index.jsp?dir=rm/RM1290U&href=xhtml/RM000000VVK01BX.html&locale=en&model=Prius&MY=2010&keyWord=seat belt ecu&t3id=RM000000VVK01BX&User=false&publicationNumber=RM1290U&objType=rm&docid=1361488&context=ti
  • 27. ECU Basics: Wiring Diagrams https://techinfo.toyota.com/t3Portal/ewdappu/index.jsp?ewdNo=EM1290U&model=Prius&MY=2010&keyWord=seat belt ecu&locale=en&systemcode=SYS037&t3id=EM1290U_SYS037&User=false&publicationNumber=EM1290U&objType=ewdappu&docTitle=Vehicle+Interior%3A+Pre- Collision+System%3B+2010+MY+Prius+%5B04%2F2009+-+%5D&docid=1080347&context=ti
  • 29. ECU Isolation: CAN Bridge • We figured ECU in the car == fully functional • We could then see which messages it was spitting out • Pass them along to the bus • Pass the traffic from the bus to the ECU
  • 31. ECU Isolation: CAN Bridge II
  • 32. ECU Isolation: CAN Bridge III
  • 33. ECU Isolation: CAN Bridge • Pros • Isolate ECUs in the car; know that all the other inputs/outputs are correct • Ability to modify or filter data • I think this is similar to what people are releasing at BH Asia • Cons • Still requires a car • Ecom->PC->Ecom is very slow and CPU intensive • Not very practical if you’re going to clip or modify wires • What is the solution?
  • 35. ECU Isolation: The Workbench • Remove ECUs from the automobile all together • This also permits you to buy ECUs online w/o a car • Use wiring diagrams and harness information to setup a single ECU • We now have isolated ECUs that will emit traffic working outside of the vehicle • Just because it ‘turns on’ doesn’t mean it’s working…
  • 37. ECU Isolation: Does it work? | AV
  • 38. ECU Isolation: Does it work? | Emit Traffic
  • 39. ECU Isolation: Is it REALLY working? • Best way is to compare a capture made from a car with the ECU • Not always possible, but you can rent/borrow a car for a capture • Below is the seat belt ECU from the Prius In Car (ODB-II) On Bench (No sensors/actuators) IDH: 03, IDL: 9C, Len: 01, Data: 08 TS: 35060 IDH: 03, IDL: 9C, Len: 01, Data: 08 TS: 50684 IDH: 03, IDL: 9C, Len: 01, Data: 08 TS: 66307 IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 81945 IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 97569 IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 113195 IDH: 03, IDL: 9C, Len: 01, Data: 00 TS: 128816 IDH: 03, IDL: 9C, Len: 01, Data: 08 ,TS: 28460,BAUD: 1 IDH: 03, IDL: 9C, Len: 01, Data: 08 ,TS: 44086,BAUD: 1 IDH: 03, IDL: 9C, Len: 01, Data: 09 ,TS: 59711,BAUD: 1 IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 75338,BAUD: 1 IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 90963,BAUD: 1 IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 106588,BAUD: 1 IDH: 03, IDL: 9C, Len: 01, Data: 01 ,TS: 122214,BAUD: 1
  • 41. MiW: Attach Sensors / Actuators • Why didn’t you poories already think of this?
  • 42. Too poor for sensors? Fake it
  • 43. What else? • ECUs need sensors and actuators to be happy • In order to fully function, they also need CAN traffic • In the year 3000……
  • 50. ECU Attacks Hacking a car without a car
  • 52. CAN injection - Ford speedometer
  • 54. Ford steering on the bench
  • 55. ECU Attacks: Back camera / sensors
  • 56. Wheel sensor in action
  • 58. Disable brakes (via bleeding)
  • 61. The Bench: Pros • CAN ID isolation saves you valuable time • Example: No more looking at a huge capture for steering packets • Many diagnostic tests can be administered • Think securityAccess + mechanics tools • Try attacks / fuzzing on the bench w/o fear for your life • Remote attack research • Bluetooth, WiFi, Telephony, etc • All without a car!* • *Might require a rental/zipcar to get baseline capture (no biggie)
  • 62. The Bench: Cons • Potentially need a baseline • Hard to retrieve some items from the automobile • Engine, brakes, suspension, etc • The bench does not move • Things like PCS require movement
  • 64. The Cart: Base model http://gokartsusa.com/kandi-150-kd-150fs-buggy-gokart.aspx
  • 68. The Cart: Modifications • Multiple CAN networks • Sensors • Parking, camera, backup, millimeter wave sensor, etc • Actuators • Power steering, LKA, seat belt motors, etc • Required additional car battery
  • 69. The Cart: Pros • Mobility allows for better testing • Millimeter wave sensor needs to ‘see’ objects coming towards it • Teaches you a bit about how a (primitive) car would be put together • Learn how parts react with & without proper sensors/actuators • It’s badass
  • 70. The Cart: Cons • Wiring these things is awful • Car parts do NOT fit go-carts • Who would have guessed • Probably should have bought this: http://www.wired.com/autopia/2014/02/open-source- vehicle/?cid=18110044#slide-id-152661
  • 76. Pitfalls • Unless re-flashing, don’t get too worried about ‘frying’ an ECU • They are quite resilient • ECUs may send ‘OK’ messages and respond normally to diagnostic requests, but physical attributes may not work • We haven’t really figured all this out, but it’s probably due to sensors/actuators/simulated traffic • Baseline CAN captures can be a problem • Mechanics accounts are a must • Toyota’s was around $1100 USD for a year
  • 81. ECU Pricing Examples • Sometimes you can’t find used ECUs • USED • Prius ECM => ~200 USD • Transmission ECU => ~150 USD • TPMS ECU => ~50 USD • New • Prius Seatbelt ECU => ~1100 USD
  • 83. Conclusions • While not perfect, automotive research can be done without a car • Cheap, moving alternatives can provide locomotion for a lack of car • Hopefully this will get even more people involved in autosec • Trademark pending • The government bought us 2 cars and 2 go-carts • SUCK IT GRUGQ!
  • 85. Questions? • Dr. Charlie Miller (@0xcharlie) • Twitter Guy • cmiller@openrce.org • Chris Valasek (@nudehaberdasher) • Director of Security Intelligence @ IOActive • cvalasek@gmail.com