how i learned to stop worrying and love the smart meter

23
How I Learned To Stop Worrying and Love the Smart Meter September 30th, 2012 DerbyCon 2.0 Spencer McIntyre

Upload: zerosteiner

Post on 12-Aug-2015

234 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: How I Learned To Stop Worrying And Love the Smart Meter

How I Learned To Stop Worrying and

Love the Smart Meter

September 30th, 2012DerbyCon 2.0

Spencer McIntyre

Page 2: How I Learned To Stop Worrying And Love the Smart Meter

2

About Your Presenter

Spencer McIntyre

Security Consultant on SecureState's

Research and Innovation team

Background/Specialization

Tool development

“Special Projects”

Page 3: How I Learned To Stop Worrying And Love the Smart Meter

3

Agenda:Meter Back GroundAttacking Meters

Page 4: How I Learned To Stop Worrying And Love the Smart Meter

4

Background What is AMI

AMI (Advanced Metering Infrastructure)The infrastructure to communicate with gas, water

and electric metersAllows two way communication with the meter

○ Compared to AMR which only allows for one way communication

Component in a smart grid Allows automatic, remote readings and

configuration Today, we’re focusing on the meter component

Page 5: How I Learned To Stop Worrying And Love the Smart Meter

5

Background

The old days of stealing with magnets are ending

USA Today estimate $6 billion in power stolen each year

AMI is still being deployed in many locations

Page 6: How I Learned To Stop Worrying And Love the Smart Meter

6

Why Attack Smart Meters? Same two reasons we typically attack

anythingInformation

○ Control of informationAccess

Consumers have physical accessSmart Meters are growing in popularity

Page 7: How I Learned To Stop Worrying And Love the Smart Meter

7

Meters store usage information Information can be modified to affect

billingModification results in fraud

Usage can be profiled Electric meters would be best betPeak usage can identify when occupants

are home or building is in use

Information

Page 8: How I Learned To Stop Worrying And Love the Smart Meter

8

Some meters can access the service provider’s internal network via Cellular connectionNot the case when a central unit is used to

collect data Meter has a SIM card

Requires typical SIM card settings (APN, username, password, etc.)

Either direct internet access or private network access

Access

Page 9: How I Learned To Stop Worrying And Love the Smart Meter

9

Attacker with physical access can open the meter and retrieve the SIM card

Guess/Bruteforce SettingsAPNUsername (if set)Password (if set)

Internal network access

Case Study

Page 10: How I Learned To Stop Worrying And Love the Smart Meter

10

Accessing Meters

At a basic level, there are two mechanismsWireless

○ Zigbee○ Cellular

Wired (We’re only covering this one)○ Optical Interface

Page 11: How I Learned To Stop Worrying And Love the Smart Meter

11

Wired Access

Meters can be accessed using a physical connectionANSI Type-2 Optical Probe (sounds dirty)

Couple of standards in use hereC12.18

○ Defines standards for accessing data (requests/responses)

C12.19○ Defines standards for data formats

Page 12: How I Learned To Stop Worrying And Love the Smart Meter

12

C12.19 Background

Tables are broken up into “decades” based on IDsGeneral Configuration 0-9Security Tables 40-49

○ Defines access permissionsHistory and Event Logs 70-79Telephone/Modem Control 90-99About 10 more defined by C12.19-2008

Standard

Page 13: How I Learned To Stop Worrying And Love the Smart Meter

13

Physical Equipment

Optical Probes are expensive (~$500)Can be created

for cheaper? Use infrared

transceivers

Page 14: How I Learned To Stop Worrying And Love the Smart Meter

14

Introduction: Termineter

The “Termineter” Framework provides access to meters over C12.18

Modeled after the Metasploit Framework for ease of use

Implemented in PythonIncludes full C12.18 stack and C12.19 library

Released last week Open Source

http://code.google.com/p/termineter

Page 15: How I Learned To Stop Worrying And Love the Smart Meter

15

Termineter: Features

Currently interacts with meters via a serial connection

Core features implemented as modules12 modules in total

Modules mostly focus on reading/writing to C12.19 tables

Everything involves reading/writing to tablesEven running “Procedures”

Page 16: How I Learned To Stop Worrying And Love the Smart Meter

16

Termineter: Modules

Included Modules:Basic information

retrievalBrute forcing

authenticationReading/Writing to

tables (low-level)

Page 17: How I Learned To Stop Worrying And Love the Smart Meter

17

Termineter: Modules

Modules require some knowledge (not quite script-kiddie ready)Mostly of valid data to write to tablesProcedures can be tricky, check the

documentation Some modules can automate common

tasksChanging the Meter’s IDSetting the Meter’s operating mode

Page 18: How I Learned To Stop Worrying And Love the Smart Meter

18

Terminating with Termineter

Common security issuesSome table values can be modified without proper

authentication (via invalid password)Some meters ignore username and user ID field with

authenticating usersNo lock out, just logging of failed attempts

Page 19: How I Learned To Stop Worrying And Love the Smart Meter

19

Termineter Demo

Let the demos begin!

Page 20: How I Learned To Stop Worrying And Love the Smart Meter

20

Termineter Future

Getting this far has been a fight Future plans include

Zigbee integrationSupport for character sets beyond 7-bitAdditional modules

○ Easier access to procedures

Page 21: How I Learned To Stop Worrying And Love the Smart Meter

21

Page 22: How I Learned To Stop Worrying And Love the Smart Meter

22

References

ANSI C12.18 Standard ANSI C12.19 Standard

Page 23: How I Learned To Stop Worrying And Love the Smart Meter

23

Thank you for your time!Spencer McIntyre

Email: [email protected]

Twitter: @zeroSteiner

Termineter Homepage: http://code.google.com/p/termineter

AQ&Q U E S T I O N S

A N S W E R S