dlms/cosem over · pdf file2nd october 2007 metering europe vienna, 2-4 october 2007 1...

25
2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy President – DLMS User Association

Upload: vunga

Post on 13-Feb-2018

247 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

1

DLMS/COSEM over PLC –security of meter data exchange over open

networks

Győző KmethyPresident – DLMS User Association

Page 2: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

2

Contents

• Changes in the metering landscape• DLMS/COSEM and smart metering• Information security controls in DLMS/COSEM

Page 3: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

3

Changes in the metering landscape

• Meter data exchange developments– local reading– remote one-way control– HHU reading– remote two-way data exchange

• from private to public and exposed networks• from proprietary protocols to public protocols• functional enrichment• variety of communication media

– from dumb meters to smart meters• Market developments

– from monopolistic to regulated markets– from stable bi-lateral relationship to dynamic multi-lateral

relationships

Page 4: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

4

The smart grid vision

• “Critical infrastructure”

• Smart grids need smart meters

Page 5: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

5

What is a smart meter?- Multiple tariffs- Load profiles- Bi-directional flow- Voltage quality- Anti-tamper- Utility interface

- Data exchange- Remote parametrization- Load control - Contract management- Payment management

- Customer interface- Interface for other meters

Measurement Processing

Utilityinterface

Customerinterface

Other meters

Electricity meter

All data must be integrated into business processes

Page 6: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

6

DLMS/COSEM communication profiles

DLMS/COSEM and smart metering

COSEM

object

model

DLMS

• Modelling smart meter functionality

• Adding new data security elements

• Adding new communication profiles

Due to the orthogonality of DLMS/COSEM, the object model and the communication profiles can be developed independently

Page 7: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

7

What kind of data for smart metering

• Measurement data• Configuration data• Contract data• Customer information• Load control commands

Authentication and confidentiality may become important

Page 8: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

8

DLMS/COSEM communication profilesCOSEM model

COSEM Application layerACSE xDLMS Security

ASEPLC conn.

SNDCP

Appl

. lay

er

802.2 LLC

MAC + PhyIEC 61334-5

LLCIEC 61334-4-32

LLC

Sup

p. la

yer

HDLC

802.2 LLC

Phy layer

TCP

Appl

. lay

er

IPv4

Supportinglayers

Phy conn. TCP conn.

PhL TL

AL

3-layer,CO HDLC

TCP-UDP/IP IEC 61334-5 PLC profiles

Appl

. lay

er

Appl

. lay

er

MAC +PhyIEC 61334-5-1

S-FSK

Wrapper

TCP

IPv4

Wrapper

HDLC

802.2 LLC

MAC +PhyIEC 61334-5-1

S-FSK

AL

Page 9: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

9

DLMS/COSEM security toolbox

• Access security– peer authentication: client only (LLS) or client / server (HLS)– association specific view of objects: list, access rights

• Security event logs• Message security

– authentication to ensure integrity and authenticity (legitimate source)

– encryption to prevent an illegitimate user to obtain unauthorised information

– encrypted authentication

Page 10: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

10

Peer authentication

Client Server

Association request (SID, CID, PW)

M1

CID

CID: Client address, SID: Server address, Ck: shared secret, X: client challenge to server, Y: server challenge to client,H: Hash function, producing the message digest, II: concatenation operation

PW =OK?Assn. resp. (CID, SID, Acc / Rej)

M2

Mn

Mn+1

Assn. release request (SID, CID)

Assn. release response (CID, SID)

Low level security

Client Server

Association request (SID, CID, X

M1

CIDCk

Assn. resp. (CID, SID, Y, Acc / Rej)

M2

Mn

High levelsecurity SID

Ck

H(Y II Ck)

H(X II Ck)

SID

Digest =OK?

Digest =OK?

Mn+1

Assn. release request (SID, CID)

Assn. release response (CID, SID)

Page 11: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

11

Security event logs

• Log each application association establishment (successful and failed)– date_time– event code– event data

• Log changes of security management information

Page 12: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

12

Message security tools

Non-cryptographic: Protection against unintentional changes

• Parity bits• Cyclic Redundancy

Check (CRC)– suitable for larger

streams of data

Cryptographic: Protection against attacks

• Hash functions (digest)– integrity

• Symmetric key cryptography– confidentiality– authentication– encrypted authentication

• Asymmetric (public) key cryptography– (encryption)– digital signature– non-repudiation (with TTP)

Page 13: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

13

Hash functions

• Short representation of a longer message: digest• Suitable to verify that the message has not changed• Used also in keyed message authentication (HMAC) and digital

signature algorithms• Selected algorithms: MD-5 (RFC 1321), SHA-1 (FIPS 180)

Hash functionM1 H1

Generation

Hash functionM2 H2

Verification

H1

=?

Page 14: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

14

Symmetric / asymmetric key cryptography

Symmetric keys• same key to apply and

remove protection• keys must be kept secret• unique key for each

relationship and for each purpose– encryption– authentication– key wrapping

• not computation intensive• suitable for single-authority

single-user environments

Asymmetric (public) keys• private / public key pair

– to sign data– for each type of key

agreement process– to receive transported key

• no unique key needed for each relationship

• computation intensive• best suited for open multi-

user environment

Page 15: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

15

Message encryption

• two identical secret keys

• selected encryption algorithms: TDES, AES

• stream or block cipher

• modes of operation for block cipher:

– Cipher Block Chaining Mode

– Counter Mode

• selected algorithms: TDES-CBC, AES-CBC-128

Encryption

Decryption

Key

Key

Plaintext

Cyphertext

Cyphertext

Plaintext

Page 16: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

16

Message authentication

Protects message integrity and authenticity

• Selected algorithms:

• HMAC-MD5, HMAC-SHA-1-96 (FIPS 198)• AES-X-CBC-MAC-96, RFC 3566 (variable length plaintext)

Sender

Message

MACAlgorithm

MAC

Key(K) MessageMAC

Message

MAC

Key(K)

MAC

Receiver

MACAlgorithm

= ?

Page 17: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

17

Authenticated encryption

• Provides authenticity and confidentiality of the payload

• Provides authenticity of additional information• Selected algorithms:

– CCM: Counter with Block Chaining Message Authentication code (NIST 800-38C)

– Galois-Counter mode (NIST 800-38D)

Page 18: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

18

Key wrapping

• Encryption algorithm to encapsulate cryptographic keys – protecting keys while in untrusted storage– transmitting key over untrusted networks– session keys can be transported by encrypting

them under a long-term encryption key• Selected algorithms:

– TDES-WRAP, – AES-WRAP

Page 19: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

19

Digital signature

• Uses a pair of Private key / Public key• Links a message with a particular person (application process)• Can provide non-repudiation in co-operation with a TTP• Provides the basis of SELMA

Message

Hash

EncryptionPrivatekey

Signature

Message

Hash

Decryption

Hash

= ?

Publickey

Message

Signature

Page 20: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

20

Security implementation in DLMS/COSEM

• Association objects control application associations

• Security setup objects allow to manage security features

• ACSE negotiates application context and authentication mechanism

• Lower layers provide CRC

COSEM object model

Applicationobject

Applicationobject

Associationobject

Associationobject

Associationobject Security setup

objects

COSEM application layer

Unprotected xDLMS APDUs +security status

Supporting layers

Data(ACSE APDU) +Data(Protected xDLMS APDU)

ACSE xDLMS Securitycontext

Applicationobject

Page 21: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

21

Managing security

• Application-context allows to negotiate if ciphered APDUs are used or not

• Mechanism-name allows to negotiate the authentication and encryption algorithm to be used

• A new security setup object manages the security policy and key update

• New version of Association LN / Association SN class specifies new access rights to attributes and methods: authenticated R / W / R-W

Page 22: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

22

Secured COSEM APDUs

• Security header: – Security control: Security_suite_id + A + E– Security suite dependent parameters

Unsecured COSEM APDU

Encryption /Authentication /

Authenticated encryptionSecurity material

Secured COSEM APDU

Secured payloadSecurityheader

Page 23: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

23

Costs of cryptography

Direct costs Indirect costs

Acquiring,implementing,

integratingcryptographic

modules

Managingcryptography

e.g. keys

Decrease insystem

performance

Changes in userinteraction

Security controls must be cost-effective

Page 24: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

24

Summary

• DLMS/COSEM is being extended for smart metering applications– object model– security elements– communication profiles

Page 25: DLMS/COSEM over  · PDF file2nd October 2007 Metering Europe Vienna, 2-4 October 2007 1 DLMS/COSEM over PLC – security of meter data exchange over open networks Győző Kmethy

2nd October 2007 Metering Europe Vienna, 2-4 October 2007

25

Thank you for your attention!