session id: tech-t09 smart megalopolises. how safe and … · 2018-03-20 · session id: #rsac...

38
SESSION ID: RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global Research and Analytics Team, Kaspersky Lab @Legezo

Upload: others

Post on 03-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

SESSION ID:

#RSAC

Denis Legezo

Smart Megalopolises. How Safe and Reliable Is Your Data?

TECH-T09

Global Research and Analytics Team, Kaspersky Lab@Legezo

Page 2: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Megalopolises are changing fast

2

Page 3: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

The plan for today

3

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 4: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Why cities need all this stuff?

4

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 5: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Why do cities have be smart?

5

Investments

Staff

Infrastructure

Data centers

Operation center

Page 6: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Raw data for planning

6

Page 7: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

…And for traffic management

7

Possible to use for the traffic lights

Counting vehicles number and change timings

Counting pedestrians as well

Page 8: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Radars are the source of such data

8

Page 9: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

The first phase

9

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 10: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Appearance is a great help

10

Page 11: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

..Any IDs you can get are also

11

MACs

Names

Any IDs

Page 12: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

What we are gathering?

12

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 13: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Look, interfaces

13

Page 14: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

And a lots of data on-board

14

Page 15: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

What's inside the data?

15

Vehicle type

Number of vehicles

Median speed

Station occupancy

Page 16: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

The Holy Grail

16

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 17: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Can we add some functions?

17

Through interface

Debugger?

Commands?

What is format?

Page 18: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Format looks like iHex or SREC

18

Page 19: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

But for which controller is it?

19

Page 20: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

LinkedIn isn't only for HR

20

Page 21: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

..but it happens anyway

21

For me in a blackbox mode it looks like dead end

But does it means dead end at all?

Of course not!

Page 22: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Even with the stock firmware..

22

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 23: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Reconnaissance first

23

I started with script + C

Bluetooth tools

adb to get GPS from phone

C code for sending

What to send?

Page 24: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Commands are partly known

24

Page 25: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

So we can automate

25

Page 26: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Sensor will answer

26

Page 27: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

What about the small DDoS?

27

Driving by, changing settings

Time: all traffic at night

Types: all traffic trucks

Page 28: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Python + PostgreSQL seems better

28

Page 29: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Resolve vendor and address offline

29

Page 30: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

What to do further and else?

30

Smart cities: Sensors' role

Reconnaissance: Vendors, locations, etc.

Sensors' functionality: Interfaces and data

Firmware: The Holy Grail of embedded

Automation: Let's send some bytes

Smart cities: Outside sensors

Page 31: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Side effects

31

Gather Wi-Fi data and filter it with Postgres views

MACs can be anonymous

WEP is still alive

Page 32: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Where is always place for fuzzing

32

Where are undocumented commands

Page 33: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

So much other stuff

33

Page 34: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

...even speeding penalties

34

Smart cities security perimeter if huge

So is the surface of attacks

Different authorities are in charge of the infrastructure

Page 35: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

...And tools

35

Page 36: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

What to apply?

36

Change appearance and default names

Don't rely only on standard authentication

Cooperate with third-party researches

Think a little bit like malefactor or hire someone who can

I know embedded devices vendors with generous bug bounty program. Respect

Cities also could participate

Page 37: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

Summary

37

Smart city infrastructure is visible due to ID

Kudos to vendor, firmware is strong

Automation is possible with change of any settings

Interesting side effects with wireless protocols

Go further!

Page 38: SESSION ID: TECH-T09 Smart Megalopolises. How Safe and … · 2018-03-20 · SESSION ID: #RSAC Denis Legezo Smart Megalopolises. How Safe and Reliable Is Your Data? TECH-T09 Global

#RSAC

[email protected]

Denis Legezo