SlideShare a Scribd company logo
1 of 13
Download to read offline
1024-bit Encrypted, Cloud-Based
             Garage
                Daniel Ng 2012
               @embeddedmelb

  *Desired Encryption level proportional to paranoia
  **Cloud-base-edness optional extra
What?
•   Open your garage door from your phone
•   Over Wi-Fi
•   Secure-enough
•   Could be over the Internet if you really want
Why?
•   Garage only had 1 working remote control
•   Original replacement cost $200+
•   Dodgy after-market replacements
•   Phone == Universal Controller
•   Just for fun, curiosity, learning.
The Gear
• Original push-button
  local wired controller

• Any phone with an SSH
  Client

• Dreamplug (overkill)

• mbed (also overkill)

• Simple transistor switch
  circuit
Dreamplug
• Fanless Plug Computer

• <5W consumption

• Built-in Wi-Fi Access
  Point

• Runs Linux

• Many other bells &
  whistles
Phone
• Phone connects to Dreamplug’s built-in Wi-Fi
  Access Point
• Phone logs in to Dreamplug with specific
  username eg. ‘g’
• Use any phone with a SSH Client
• Eg. ‘ConnectBot’ on an Android Phone
• Optional:
  – ConnectBot also has Public-Key Encryption feature
     • Convenience of not having to type a password
Hacking The Dreamplug
• Hack /etc/passwd for user ‘g’:
     g:x:1000:1000:g,,,:/home/g:/sbin/garage
• Create /sbin/garage:
     #!/bin/sh
     echo "ggg"
     echo '1' > /dev/ttyACM0
• Optional:
  – Create (eg. 1024-bit) public-key pair for
    convenience of not having to type password:
    ssh-keygen
mbed
• 32-bit ARM Core

• USB

• Lots of GPIOs

• Many other bells &
  whistles
Hacking The mbed
Now What?
• GPIO pin on mbed goes high for 1 sec.
• We want this to cause the button on the old
  controller to be pressed
  – ie. close the circuit across the button terminals
• How?
Transistor
        Circuit
• Transistor acts as a
  simple switch
Transistors Simplified
• Current entering the Base flows
  when the mbed’s GPIO goes HIGH
• The Collector is wired to one of the
  button terminals
• The Emitter is wired to the other
  button terminal
• Current entering the Base causes
  current to flow between the
  Collector and Emitter ie. closing the
  circuit between the button terminals
Summary
• Phone connects to Dreamplug’s Wi-Fi Access
  Point
• Phone logs in
• Dreamplug executes hacked login script which
  sends a ‘1’ to the USB port
• mbed sees the ‘1’ and turns on the transistor
  switch
• Transistor switch ‘presses’ the garage door
  button

More Related Content

Viewers also liked

Fdi circular 2015
Fdi circular 2015Fdi circular 2015
Fdi circular 2015Rohit Gupta
 
Highline Canal Trail Observed
Highline Canal Trail ObservedHighline Canal Trail Observed
Highline Canal Trail ObservedJeff Dunham
 
French revolution
French revolutionFrench revolution
French revolutionRohit Gupta
 
Presentation powerpoint
Presentation powerpointPresentation powerpoint
Presentation powerpointcar_net
 
persebaran fauna didunia
persebaran fauna diduniapersebaran fauna didunia
persebaran fauna diduniaahmad_asadur
 

Viewers also liked (9)

Fdi circular 2015
Fdi circular 2015Fdi circular 2015
Fdi circular 2015
 
Highline Canal Trail Observed
Highline Canal Trail ObservedHighline Canal Trail Observed
Highline Canal Trail Observed
 
French revolution
French revolutionFrench revolution
French revolution
 
Mohans Resume
Mohans ResumeMohans Resume
Mohans Resume
 
Biosfer
BiosferBiosfer
Biosfer
 
Presentation powerpoint
Presentation powerpointPresentation powerpoint
Presentation powerpoint
 
persebaran fauna didunia
persebaran fauna diduniapersebaran fauna didunia
persebaran fauna didunia
 
John henao
John  henaoJohn  henao
John henao
 
John henao
John  henaoJohn  henao
John henao
 

Similar to 1024-bit Encrypted Cloud-Based Garage Door Control

SIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaSIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaNicolas Lesconnec
 
A million little tracking devices - Don Bailey
A million little tracking devices - Don BaileyA million little tracking devices - Don Bailey
A million little tracking devices - Don Baileyidsecconf
 
7 reasons why video conferencing world will never
7 reasons why video conferencing world will never7 reasons why video conferencing world will never
7 reasons why video conferencing world will neverTrueConf
 
LeadDesk telephone technology
LeadDesk telephone technologyLeadDesk telephone technology
LeadDesk telephone technologyLeadDesk
 
Innovative input devices for openHAB
Innovative input devices for openHABInnovative input devices for openHAB
Innovative input devices for openHABPatrickFink10
 
Swarm of temperature monitoring sensors - Ixia Connect #2
Swarm of temperature monitoring sensors - Ixia Connect #2Swarm of temperature monitoring sensors - Ixia Connect #2
Swarm of temperature monitoring sensors - Ixia Connect #2IxiaRomania
 
Fun with Linux Telephony
Fun with Linux TelephonyFun with Linux Telephony
Fun with Linux TelephonyDonald Burr
 
Taylor Santiago - ECE 561 - Smart Home Controller
Taylor Santiago - ECE 561 - Smart Home ControllerTaylor Santiago - ECE 561 - Smart Home Controller
Taylor Santiago - ECE 561 - Smart Home Controllertsant928
 
Network Security: Protecting SOHO Networks
Network Security: Protecting SOHO NetworksNetwork Security: Protecting SOHO Networks
Network Security: Protecting SOHO NetworksJim Gilsinn
 
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...CODE BLUE
 
SIP Door Phone – Dinstar India
SIP Door Phone – Dinstar IndiaSIP Door Phone – Dinstar India
SIP Door Phone – Dinstar IndiaDinstar India
 
CNIT 141 11. Diffie-Hellman
CNIT 141 11. Diffie-Hellman	CNIT 141 11. Diffie-Hellman
CNIT 141 11. Diffie-Hellman Sam Bowne
 
11. Diffie-Hellman
11. Diffie-Hellman11. Diffie-Hellman
11. Diffie-HellmanSam Bowne
 
Wireless Hotspot: The Hackers Playground
Wireless Hotspot: The Hackers PlaygroundWireless Hotspot: The Hackers Playground
Wireless Hotspot: The Hackers PlaygroundJim Geovedi
 
Automating with the Internet of Things
Automating with the Internet of ThingsAutomating with the Internet of Things
Automating with the Internet of ThingsJustin Denton
 
Home Automation Benchmarking Report
Home Automation Benchmarking ReportHome Automation Benchmarking Report
Home Automation Benchmarking ReportSynack
 

Similar to 1024-bit Encrypted Cloud-Based Garage Door Control (20)

SIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - MadridSIGFOX Makers Tour - Madrid
SIGFOX Makers Tour - Madrid
 
SIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - BarcelonaSIGFOX Makers Tour - Barcelona
SIGFOX Makers Tour - Barcelona
 
A million little tracking devices - Don Bailey
A million little tracking devices - Don BaileyA million little tracking devices - Don Bailey
A million little tracking devices - Don Bailey
 
7 reasons why video conferencing world will never
7 reasons why video conferencing world will never7 reasons why video conferencing world will never
7 reasons why video conferencing world will never
 
LeadDesk telephone technology
LeadDesk telephone technologyLeadDesk telephone technology
LeadDesk telephone technology
 
Innovative input devices for openHAB
Innovative input devices for openHABInnovative input devices for openHAB
Innovative input devices for openHAB
 
Swarm of temperature monitoring sensors - Ixia Connect #2
Swarm of temperature monitoring sensors - Ixia Connect #2Swarm of temperature monitoring sensors - Ixia Connect #2
Swarm of temperature monitoring sensors - Ixia Connect #2
 
Fun with Linux Telephony
Fun with Linux TelephonyFun with Linux Telephony
Fun with Linux Telephony
 
Taylor Santiago - ECE 561 - Smart Home Controller
Taylor Santiago - ECE 561 - Smart Home ControllerTaylor Santiago - ECE 561 - Smart Home Controller
Taylor Santiago - ECE 561 - Smart Home Controller
 
Network Security: Protecting SOHO Networks
Network Security: Protecting SOHO NetworksNetwork Security: Protecting SOHO Networks
Network Security: Protecting SOHO Networks
 
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
 
Zigbee 2
Zigbee 2Zigbee 2
Zigbee 2
 
BLE Talk
BLE TalkBLE Talk
BLE Talk
 
SIP Door Phone – Dinstar India
SIP Door Phone – Dinstar IndiaSIP Door Phone – Dinstar India
SIP Door Phone – Dinstar India
 
ppt
pptppt
ppt
 
CNIT 141 11. Diffie-Hellman
CNIT 141 11. Diffie-Hellman	CNIT 141 11. Diffie-Hellman
CNIT 141 11. Diffie-Hellman
 
11. Diffie-Hellman
11. Diffie-Hellman11. Diffie-Hellman
11. Diffie-Hellman
 
Wireless Hotspot: The Hackers Playground
Wireless Hotspot: The Hackers PlaygroundWireless Hotspot: The Hackers Playground
Wireless Hotspot: The Hackers Playground
 
Automating with the Internet of Things
Automating with the Internet of ThingsAutomating with the Internet of Things
Automating with the Internet of Things
 
Home Automation Benchmarking Report
Home Automation Benchmarking ReportHome Automation Benchmarking Report
Home Automation Benchmarking Report
 

Recently uploaded

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

1024-bit Encrypted Cloud-Based Garage Door Control

  • 1. 1024-bit Encrypted, Cloud-Based Garage Daniel Ng 2012 @embeddedmelb *Desired Encryption level proportional to paranoia **Cloud-base-edness optional extra
  • 2. What? • Open your garage door from your phone • Over Wi-Fi • Secure-enough • Could be over the Internet if you really want
  • 3. Why? • Garage only had 1 working remote control • Original replacement cost $200+ • Dodgy after-market replacements • Phone == Universal Controller • Just for fun, curiosity, learning.
  • 4. The Gear • Original push-button local wired controller • Any phone with an SSH Client • Dreamplug (overkill) • mbed (also overkill) • Simple transistor switch circuit
  • 5. Dreamplug • Fanless Plug Computer • <5W consumption • Built-in Wi-Fi Access Point • Runs Linux • Many other bells & whistles
  • 6. Phone • Phone connects to Dreamplug’s built-in Wi-Fi Access Point • Phone logs in to Dreamplug with specific username eg. ‘g’ • Use any phone with a SSH Client • Eg. ‘ConnectBot’ on an Android Phone • Optional: – ConnectBot also has Public-Key Encryption feature • Convenience of not having to type a password
  • 7. Hacking The Dreamplug • Hack /etc/passwd for user ‘g’: g:x:1000:1000:g,,,:/home/g:/sbin/garage • Create /sbin/garage: #!/bin/sh echo "ggg" echo '1' > /dev/ttyACM0 • Optional: – Create (eg. 1024-bit) public-key pair for convenience of not having to type password: ssh-keygen
  • 8. mbed • 32-bit ARM Core • USB • Lots of GPIOs • Many other bells & whistles
  • 10. Now What? • GPIO pin on mbed goes high for 1 sec. • We want this to cause the button on the old controller to be pressed – ie. close the circuit across the button terminals • How?
  • 11. Transistor Circuit • Transistor acts as a simple switch
  • 12. Transistors Simplified • Current entering the Base flows when the mbed’s GPIO goes HIGH • The Collector is wired to one of the button terminals • The Emitter is wired to the other button terminal • Current entering the Base causes current to flow between the Collector and Emitter ie. closing the circuit between the button terminals
  • 13. Summary • Phone connects to Dreamplug’s Wi-Fi Access Point • Phone logs in • Dreamplug executes hacked login script which sends a ‘1’ to the USB port • mbed sees the ‘1’ and turns on the transistor switch • Transistor switch ‘presses’ the garage door button