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

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

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