SlideShare a Scribd company logo
1 of 24
Philippe Lin (@miaoski)
For BSidesLV 2016
* Special thanks to Ming-Wei Cheng for his PLC-enabled house.
* Thanks Scott Erven for being my mentor 
PLC for Home Automation and
How to Make It a Honeypot
1
Home Automation
2
https://hackaday.io/post/4337
PLC for Reliability
3
• Robust – 20 years
• Install and forget
• IFTTT and HMI
(optional)
IFTTT
4
As You Enter the House ...
5
Infrared Sensor
As You Enter the House ...
6
Rolling code
Remote
Controller
As You Enter the House ...
7
Reed
Switch
> 100 dB Siren Buzzes, When ...
8
• You passed the IR sensor, but failed to unlock rolling code
controller within 1 min.
• Reed switches on doors and windows turn on.
• Any circuit got cut
Moreover ...
UPS and Double-Loop
9
16 DI
24V
RS485
Alarm
ModBus/TCP
GPRS
12V
Backup Power
DI from reed switches
Omron relays
Heater and Backup Alarm
10
RS485
GSM Alarm
Sends SMS when
PLC is broken,
DoS, etc.
Turn on the boiler
before he drives home
Monitors PLC’s heart beat
Peripherals
11
Solenoid
Valve
Leak
Detector
Gas Sensor
Patrol Helicopter
Wiring
12
ICP DAS Wise-5801
DO 0 Relay 1
DO 1 Relay 2
DO 2 Relay 3
DO 3 Relay 4
DO 4 x
DO 5 x
DO 6 x
DO 7 x
DI 0 IR Sensor
DI 1 Key lock
DI 2 Reed 1
DI 3 Reed 2
DI 4 x
DI 5 Reed 3
DI 6 Reed 4
DI 7 Reed 5
RS485 ICP CON
Email + SMS
24V DC + 12V DC Backup
ICP Con i7041PD
IN 0 Reed 6
IN 1 Reed 7
IN 2 Reed 8
IN 3 x
IN 4 x
IN 5 Reed 9
IN 6 Reed 10
IN 7 Reed 11
IN 8 Gas sensor
IN 9 Water leak
IN 10 x
IN 11 x
IN 12 x
IN 13 Reed 12
RS485 ICP DAS
Heater
Omron Relays
#1 Alarm (NC)
#2 Out
#3 Heater
#4 Alarm (NC)
#5 ATS
Sancue Heater
Power
RS485
Resets GSM Alarm
Backup power for
peripherals
How to Break Into the House?
• Trigger IR Sensor without key lock  Bam!
• Open door / windows without key unlock  Bam!
• Cut off AC power  UPS backup
• Short circuit because it’s low triggered  Maybe
• Hack into VPN  Maybe
– Send a phishing email to get IP address
– Asus home router vulnerability
– Stop countdown timer
– Change ModBus settings
– DoS PLC
13
• Sends email when door is opened
• Buzz when PLC resets
• SMS when PLC stops heartbeat
How to Break Into the House?
• UPS power-rail fails
– Backup UPS power-rail fails, too.
• Smash and grab!
– Few more minutes to cut the wire mesh glass.
• Break the PRNG in rolling code
– Replay attack  Samy Kamkar in DEFCON23.
• Use acetylene cutter
14
So, what’s next, if the house is robust?
15
1-Level Honeypot
• Discrete input = Window open / close
• Coils = Lamps or water faucets
• Input registers = temperature, humidity
• Holding registers = target temperature
Add some camouflage and make it look like some industry?
16
https://www.trendmicro.com/vinfo/us/security/news/
cybercrime-and-digital-threats/the-gaspot-experiment
1-Level Honeypot Architecture
17
PLC at Home
ModBus TCP/502
HMI written in Python
(Exposed)
Intermediate ModBus
(Exposed)
K wants to
change the coils
K browses the HMI
and feels happy
Copy the readings every t seconds
Display on
Log the changes
It’s not very interesting to simply copy the readings, though.
2-Level Honeypot
• Self-adaptive honeypot (?)
• States change in a predefined way, yet readings will match
PLC@home.
– Procrastinated
– Incremental
– Change in a given rate
• Can deploy multiple honeypots and change fuzzy factors
(ransom seeds, changing rate)
• How about binding a pseudo-pump?
18
2-Level Honeypot Architecture
19
PLC at Home
ModBus TCP/502
HMI written in Python
(read only)
Intermediate ModBus
exposed on Internet
K wants to
change the coils
K browses the HMI
and feels happy
Fuzzily matches the readings to
Display on
Log the changes
20
Ground Truth (PLC) 1-Level Honeypot
2-Level Honeypot
Heart beat pin
If someone sets CO#8 and CO#10
Delayed
21
Ground Truth (PLC) 1-Level Honeypot
2-Level Honeypot
Scaled
fallback to
ground truth
Simulate a Pump
22
DI#7
DI#6
CO#6
Increases until DI#7 goes low
Recap
• PLC with double loop for robust home security.
• Simple honeypot that copies from PLC.
• Adaptive honeypot that copies from PLC.
• Simulate a pump or other circuits based on PLC.
• Codes and materials:
https://github.com/miaoski/bsideslv-plc-home
23
Question / Demophilippe_z_lin@trendmicro.com @miaoski
Code in https://github.com/miaoski/bsideslv-plc-home
24

More Related Content

What's hot

Data sheet en_us_1871726475
Data sheet en_us_1871726475Data sheet en_us_1871726475
Data sheet en_us_1871726475amthanhbosch
 
IRJET- Voice Based Home Automation System using Raspberry Pi
IRJET-  	  Voice Based Home Automation System using Raspberry PiIRJET-  	  Voice Based Home Automation System using Raspberry Pi
IRJET- Voice Based Home Automation System using Raspberry PiIRJET Journal
 
Project presentation
Project presentationProject presentation
Project presentationShabbir Hasan
 
E55351807 1 13-b
E55351807 1 13-bE55351807 1 13-b
E55351807 1 13-bFrank Chang
 
Voice Based Home Automation
Voice Based Home AutomationVoice Based Home Automation
Voice Based Home AutomationSumukh Athrey
 
A ZigBee Based Wireless Sensor Network for an Agricultural Environment
A ZigBee Based Wireless Sensor Network for an Agricultural EnvironmentA ZigBee Based Wireless Sensor Network for an Agricultural Environment
A ZigBee Based Wireless Sensor Network for an Agricultural Environmentijsrd.com
 
Pulse oximeter Blood presure meter
Pulse oximeter Blood presure meterPulse oximeter Blood presure meter
Pulse oximeter Blood presure meterYuzishan Sivaraj
 
Arduino based home automation using tv remote
Arduino based home automation using tv remoteArduino based home automation using tv remote
Arduino based home automation using tv remoteMahbub Alam Himel
 
Wireless Message Communication Between Two Computers
Wireless Message Communication Between Two ComputersWireless Message Communication Between Two Computers
Wireless Message Communication Between Two ComputersEdgefxkits & Solutions
 
IR Based Home Automation
IR Based Home AutomationIR Based Home Automation
IR Based Home AutomationSujit Nayak
 
IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...
IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...
IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...ASHOKKUMAR RAMAR
 
Sl 28200 emerson
Sl 28200 emersonSl 28200 emerson
Sl 28200 emersonmoy725
 
Voice Control Home Automation
Voice Control Home AutomationVoice Control Home Automation
Voice Control Home AutomationSaumya Tiwari
 
Topologi bts tanpa router
Topologi bts tanpa routerTopologi bts tanpa router
Topologi bts tanpa routerArif Scooters
 
Home automation and securty using wireless networks
Home automation and securty using wireless networksHome automation and securty using wireless networks
Home automation and securty using wireless networksArun Kumar
 
Voice Control Home Automation
Voice Control Home AutomationVoice Control Home Automation
Voice Control Home AutomationAbhishek Neb
 

What's hot (17)

Data sheet en_us_1871726475
Data sheet en_us_1871726475Data sheet en_us_1871726475
Data sheet en_us_1871726475
 
002 c bandibucr22916
002 c bandibucr22916002 c bandibucr22916
002 c bandibucr22916
 
IRJET- Voice Based Home Automation System using Raspberry Pi
IRJET-  	  Voice Based Home Automation System using Raspberry PiIRJET-  	  Voice Based Home Automation System using Raspberry Pi
IRJET- Voice Based Home Automation System using Raspberry Pi
 
Project presentation
Project presentationProject presentation
Project presentation
 
E55351807 1 13-b
E55351807 1 13-bE55351807 1 13-b
E55351807 1 13-b
 
Voice Based Home Automation
Voice Based Home AutomationVoice Based Home Automation
Voice Based Home Automation
 
A ZigBee Based Wireless Sensor Network for an Agricultural Environment
A ZigBee Based Wireless Sensor Network for an Agricultural EnvironmentA ZigBee Based Wireless Sensor Network for an Agricultural Environment
A ZigBee Based Wireless Sensor Network for an Agricultural Environment
 
Pulse oximeter Blood presure meter
Pulse oximeter Blood presure meterPulse oximeter Blood presure meter
Pulse oximeter Blood presure meter
 
Arduino based home automation using tv remote
Arduino based home automation using tv remoteArduino based home automation using tv remote
Arduino based home automation using tv remote
 
Wireless Message Communication Between Two Computers
Wireless Message Communication Between Two ComputersWireless Message Communication Between Two Computers
Wireless Message Communication Between Two Computers
 
IR Based Home Automation
IR Based Home AutomationIR Based Home Automation
IR Based Home Automation
 
IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...
IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...
IEEE PROJECTS ABSTRACT-A zigbee based wireless sensor network for monitoring ...
 
Sl 28200 emerson
Sl 28200 emersonSl 28200 emerson
Sl 28200 emerson
 
Voice Control Home Automation
Voice Control Home AutomationVoice Control Home Automation
Voice Control Home Automation
 
Topologi bts tanpa router
Topologi bts tanpa routerTopologi bts tanpa router
Topologi bts tanpa router
 
Home automation and securty using wireless networks
Home automation and securty using wireless networksHome automation and securty using wireless networks
Home automation and securty using wireless networks
 
Voice Control Home Automation
Voice Control Home AutomationVoice Control Home Automation
Voice Control Home Automation
 

Similar to PLC for Home Automation and How to Make It a Honeypot

I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23Techvilla
 
DTMF based Home Applicance System
DTMF based Home Applicance SystemDTMF based Home Applicance System
DTMF based Home Applicance SystemDaksh Raj Chopra
 
Uccn1003 -may10_-_lect03c_-_ip_subnets_rules
Uccn1003  -may10_-_lect03c_-_ip_subnets_rulesUccn1003  -may10_-_lect03c_-_ip_subnets_rules
Uccn1003 -may10_-_lect03c_-_ip_subnets_rulesShu Shin
 
Any Surface Drum Kit
Any Surface Drum Kit Any Surface Drum Kit
Any Surface Drum Kit ViVek Patel
 
Comm.SEC hardware, firmware and software products, solutions and services
Comm.SEC hardware, firmware and software products, solutions and servicesComm.SEC hardware, firmware and software products, solutions and services
Comm.SEC hardware, firmware and software products, solutions and servicesiBLio
 
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday Markus Van Kempen
 
Learn the cutting edge technologies in Data Acquistion, Industrial Control an...
Learn the cutting edge technologies in Data Acquistion, Industrial Control an...Learn the cutting edge technologies in Data Acquistion, Industrial Control an...
Learn the cutting edge technologies in Data Acquistion, Industrial Control an...ICP DAS USA, Inc.
 
20620115-Programmable-Logic-Controllers.ppt
20620115-Programmable-Logic-Controllers.ppt20620115-Programmable-Logic-Controllers.ppt
20620115-Programmable-Logic-Controllers.pptmohammedsaadqureshi
 
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptCHANDRA KUMAR S
 
Modbus RTU RS-485 مودباس بالعربي
Modbus RTU RS-485 مودباس بالعربيModbus RTU RS-485 مودباس بالعربي
Modbus RTU RS-485 مودباس بالعربيEssosElectronic
 
This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...rohitvasanad
 
PLC lecture by raj nayak
PLC lecture by raj nayakPLC lecture by raj nayak
PLC lecture by raj nayakRaj Nayak
 
Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1Marcus Tarquinio
 
plc_training_manual.pdf
plc_training_manual.pdfplc_training_manual.pdf
plc_training_manual.pdfMarioHaguila
 

Similar to PLC for Home Automation and How to Make It a Honeypot (20)

Anti theft & Automation using Arduino
Anti theft & Automation using ArduinoAnti theft & Automation using Arduino
Anti theft & Automation using Arduino
 
Plc
PlcPlc
Plc
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
 
DTMF based Home Applicance System
DTMF based Home Applicance SystemDTMF based Home Applicance System
DTMF based Home Applicance System
 
Uccn1003 -may10_-_lect03c_-_ip_subnets_rules
Uccn1003  -may10_-_lect03c_-_ip_subnets_rulesUccn1003  -may10_-_lect03c_-_ip_subnets_rules
Uccn1003 -may10_-_lect03c_-_ip_subnets_rules
 
Any Surface Drum Kit
Any Surface Drum Kit Any Surface Drum Kit
Any Surface Drum Kit
 
IoT Aquarium 2
IoT Aquarium 2IoT Aquarium 2
IoT Aquarium 2
 
Comm.SEC hardware, firmware and software products, solutions and services
Comm.SEC hardware, firmware and software products, solutions and servicesComm.SEC hardware, firmware and software products, solutions and services
Comm.SEC hardware, firmware and software products, solutions and services
 
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
SNP STEAM Academy 2018 Class #1 - Burglar Alarm #Tech Wednesday
 
Basic PLC
Basic PLCBasic PLC
Basic PLC
 
Learn the cutting edge technologies in Data Acquistion, Industrial Control an...
Learn the cutting edge technologies in Data Acquistion, Industrial Control an...Learn the cutting edge technologies in Data Acquistion, Industrial Control an...
Learn the cutting edge technologies in Data Acquistion, Industrial Control an...
 
20620115-Programmable-Logic-Controllers.ppt
20620115-Programmable-Logic-Controllers.ppt20620115-Programmable-Logic-Controllers.ppt
20620115-Programmable-Logic-Controllers.ppt
 
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
PPI-MECHATRONICS
 
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
 
Basic PLC.ppt
Basic PLC.pptBasic PLC.ppt
Basic PLC.ppt
 
Modbus RTU RS-485 مودباس بالعربي
Modbus RTU RS-485 مودباس بالعربيModbus RTU RS-485 مودباس بالعربي
Modbus RTU RS-485 مودباس بالعربي
 
This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...This Document gives a complete understanding of the I3C protocol which is int...
This Document gives a complete understanding of the I3C protocol which is int...
 
PLC lecture by raj nayak
PLC lecture by raj nayakPLC lecture by raj nayak
PLC lecture by raj nayak
 
Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1Iot Bootcamp - abridged - part 1
Iot Bootcamp - abridged - part 1
 
plc_training_manual.pdf
plc_training_manual.pdfplc_training_manual.pdf
plc_training_manual.pdf
 

Recently uploaded

Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作
Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作
Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作f3774p8b
 
existing product research b2 Sunderland Culture
existing product research b2 Sunderland Cultureexisting product research b2 Sunderland Culture
existing product research b2 Sunderland CultureChloeMeadows1
 
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证gwhohjj
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...ttt fff
 
威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证kbdhl05e
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...nagunakhan
 
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...Authentic No 1 Amil Baba In Pakistan
 
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...srsj9000
 
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...Amil baba
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfchapmanellie27
 
5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)
5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)
5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)861c7ca49a02
 
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree z zzz
 
办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一
办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一
办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一diploma 1
 
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRReal Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRdollysharma2066
 
Call Girls In Munirka>༒9599632723 Incall_OutCall Available
Call Girls In Munirka>༒9599632723 Incall_OutCall AvailableCall Girls In Munirka>༒9599632723 Incall_OutCall Available
Call Girls In Munirka>༒9599632723 Incall_OutCall AvailableCall Girls in Delhi
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一ss ss
 
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一Fi sss
 
萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程1k98h0e1
 

Recently uploaded (20)

Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作
Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作
Erfurt FH学位证,埃尔福特应用技术大学毕业证书1:1制作
 
existing product research b2 Sunderland Culture
existing product research b2 Sunderland Cultureexisting product research b2 Sunderland Culture
existing product research b2 Sunderland Culture
 
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
原版1:1复刻斯坦福大学毕业证Stanford毕业证留信学历认证
 
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
毕业文凭制作#回国入职#diploma#degree美国威斯康星大学麦迪逊分校毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#d...
 
威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证威廉玛丽学院毕业证学位证成绩单-安全学历认证
威廉玛丽学院毕业证学位证成绩单-安全学历认证
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
 
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
 
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
Hifi Defence Colony Call Girls Service WhatsApp -> 9999965857 Available 24x7 ...
 
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
NO1 Qualified Best Black Magic Specialist Near Me Spiritual Healer Powerful L...
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
 
5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)
5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)
5S - House keeping (Seiri, Seiton, Seiso, Seiketsu, Shitsuke)
 
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree 毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree加拿大瑞尔森大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一
办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一
办理(CSU毕业证书)澳洲查理斯特大学毕业证成绩单原版一比一
 
Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565
 
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCRReal Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
Real Sure (Call Girl) in I.G.I. Airport 8377087607 Hot Call Girls In Delhi NCR
 
Call Girls In Munirka>༒9599632723 Incall_OutCall Available
Call Girls In Munirka>༒9599632723 Incall_OutCall AvailableCall Girls In Munirka>༒9599632723 Incall_OutCall Available
Call Girls In Munirka>༒9599632723 Incall_OutCall Available
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
 
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
 
CIVIL ENGINEERING
CIVIL ENGINEERINGCIVIL ENGINEERING
CIVIL ENGINEERING
 
萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程萨斯喀彻温大学毕业证学位证成绩单-购买流程
萨斯喀彻温大学毕业证学位证成绩单-购买流程
 

PLC for Home Automation and How to Make It a Honeypot

  • 1. Philippe Lin (@miaoski) For BSidesLV 2016 * Special thanks to Ming-Wei Cheng for his PLC-enabled house. * Thanks Scott Erven for being my mentor  PLC for Home Automation and How to Make It a Honeypot 1
  • 3. PLC for Reliability 3 • Robust – 20 years • Install and forget • IFTTT and HMI (optional)
  • 5. As You Enter the House ... 5 Infrared Sensor
  • 6. As You Enter the House ... 6 Rolling code Remote Controller
  • 7. As You Enter the House ... 7 Reed Switch
  • 8. > 100 dB Siren Buzzes, When ... 8 • You passed the IR sensor, but failed to unlock rolling code controller within 1 min. • Reed switches on doors and windows turn on. • Any circuit got cut Moreover ...
  • 9. UPS and Double-Loop 9 16 DI 24V RS485 Alarm ModBus/TCP GPRS 12V Backup Power DI from reed switches Omron relays
  • 10. Heater and Backup Alarm 10 RS485 GSM Alarm Sends SMS when PLC is broken, DoS, etc. Turn on the boiler before he drives home Monitors PLC’s heart beat
  • 12. Wiring 12 ICP DAS Wise-5801 DO 0 Relay 1 DO 1 Relay 2 DO 2 Relay 3 DO 3 Relay 4 DO 4 x DO 5 x DO 6 x DO 7 x DI 0 IR Sensor DI 1 Key lock DI 2 Reed 1 DI 3 Reed 2 DI 4 x DI 5 Reed 3 DI 6 Reed 4 DI 7 Reed 5 RS485 ICP CON Email + SMS 24V DC + 12V DC Backup ICP Con i7041PD IN 0 Reed 6 IN 1 Reed 7 IN 2 Reed 8 IN 3 x IN 4 x IN 5 Reed 9 IN 6 Reed 10 IN 7 Reed 11 IN 8 Gas sensor IN 9 Water leak IN 10 x IN 11 x IN 12 x IN 13 Reed 12 RS485 ICP DAS Heater Omron Relays #1 Alarm (NC) #2 Out #3 Heater #4 Alarm (NC) #5 ATS Sancue Heater Power RS485 Resets GSM Alarm Backup power for peripherals
  • 13. How to Break Into the House? • Trigger IR Sensor without key lock  Bam! • Open door / windows without key unlock  Bam! • Cut off AC power  UPS backup • Short circuit because it’s low triggered  Maybe • Hack into VPN  Maybe – Send a phishing email to get IP address – Asus home router vulnerability – Stop countdown timer – Change ModBus settings – DoS PLC 13 • Sends email when door is opened • Buzz when PLC resets • SMS when PLC stops heartbeat
  • 14. How to Break Into the House? • UPS power-rail fails – Backup UPS power-rail fails, too. • Smash and grab! – Few more minutes to cut the wire mesh glass. • Break the PRNG in rolling code – Replay attack  Samy Kamkar in DEFCON23. • Use acetylene cutter 14
  • 15. So, what’s next, if the house is robust? 15
  • 16. 1-Level Honeypot • Discrete input = Window open / close • Coils = Lamps or water faucets • Input registers = temperature, humidity • Holding registers = target temperature Add some camouflage and make it look like some industry? 16 https://www.trendmicro.com/vinfo/us/security/news/ cybercrime-and-digital-threats/the-gaspot-experiment
  • 17. 1-Level Honeypot Architecture 17 PLC at Home ModBus TCP/502 HMI written in Python (Exposed) Intermediate ModBus (Exposed) K wants to change the coils K browses the HMI and feels happy Copy the readings every t seconds Display on Log the changes It’s not very interesting to simply copy the readings, though.
  • 18. 2-Level Honeypot • Self-adaptive honeypot (?) • States change in a predefined way, yet readings will match PLC@home. – Procrastinated – Incremental – Change in a given rate • Can deploy multiple honeypots and change fuzzy factors (ransom seeds, changing rate) • How about binding a pseudo-pump? 18
  • 19. 2-Level Honeypot Architecture 19 PLC at Home ModBus TCP/502 HMI written in Python (read only) Intermediate ModBus exposed on Internet K wants to change the coils K browses the HMI and feels happy Fuzzily matches the readings to Display on Log the changes
  • 20. 20 Ground Truth (PLC) 1-Level Honeypot 2-Level Honeypot Heart beat pin If someone sets CO#8 and CO#10 Delayed
  • 21. 21 Ground Truth (PLC) 1-Level Honeypot 2-Level Honeypot Scaled fallback to ground truth
  • 23. Recap • PLC with double loop for robust home security. • Simple honeypot that copies from PLC. • Adaptive honeypot that copies from PLC. • Simulate a pump or other circuits based on PLC. • Codes and materials: https://github.com/miaoski/bsideslv-plc-home 23
  • 24. Question / Demophilippe_z_lin@trendmicro.com @miaoski Code in https://github.com/miaoski/bsideslv-plc-home 24

Editor's Notes

  1. Eric Tsai, Wireless home automation with OpenHAB Awesome design, $20 arduino + Raspberry Pi + RF69M
  2. Reliability, maintenance cost Work in the sands
  3. Equivalent to Arduino progs, just simpler My friend’s house
  4. IR  Remote controller to unlock keyless system
  5. Prevents replay attack – Common PRNG and compares within next 256 codes (Wikipedia)
  6. ICP DAS
  7. GSM Alarm – When PLC malfunctions
  8. IN => Pulled high when closed, LOW = trigger
  9. No glass vibration alarm
  10. Thieves might want to choose another house (mesh glass)
  11. After having a super secure house, we make it a source of hour honeypot
  12. Smith K, check Franz Kafka.
  13. Smith K, of course
  14. In 20 lines of Python
  15. Thanks Scott again