25
OPC Foundation 11-2019 OPC UA Security Overview Jouni Aro, Prosys OPC Jouni Aro Chief Technology Officer [email protected]

OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

OPC UA Security OverviewJouni Aro, Prosys OPC

Jouni AroChief Technology Officer

[email protected]

Page 2: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Industrial Control System (ICS) Cyber attacks are accelerating

4

Reuters

Crash Override - Ukraine, 2016Stuxnet - Iran, 2010

Page 3: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

5

Sub-net

Cloud

OPC UA

OPC UA

OPC UA

OPC UAOPC UA

Page 4: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

6

Made in China

2025

Internet +

Page 5: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

IO Level

Consortia

Engineering

Energy

Process

Automation

Factory Automation

Industries

IT

The Industrial Interoperability Standard

Page 6: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Key Concepts

Page 7: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

IT World OT World

IIoT World

(Industrie4.0)

Safety | Security | Resilience | Reliability | Privacy

Page 8: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Trusted Information (CIA triad)

◦ Confidentiality

◦ Integrity

◦ Availability

Access Control (AAA principle)

◦ Authentication

◦ Authorization

◦ Accounting (Auditability)

Information

Security

Availability

Page 9: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

11

Data Security

11

Data at Rest Data in Process Data in Motion

Page 10: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Secure by Design

Page 11: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

1)Concepts

2)Security Model

3)Address Space Model

4)Services

5)Information Model

6)Mappings

7)Profiles

8) Data Access

9) Alarms and Conditions

10) Programs

11) Historical Access

12) Discovery

13) Aggregates

14) PubSub

Red: directly relevant for IT security

Page 12: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

OPC UA addresses the core security aspects:

Page 13: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Confidentiality Encrypting of Messages

Integrity Signing of Messages

Examples:

• Restricting message size

• No security related error codes returned

Availability Minimal message processing before authentication

Page 14: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Authentication of applications◦ Application instance certificates

◦ Certificate Authority (CA)

25

Authentication of users◦ Username / password, WS-Security Token or X.509 certificates,OAuth

◦ Fits into existing infrastructures like Active Directory

Auditability◦ Generating audit events for security related operations

Authorization (Server Specific)◦ Fine-granular information in address space (Read, Write, Browse)

◦ Writing of meta data, calling methods

Page 15: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

User Management◦ User Roles not standardized: server-specific or in companion specifications ◦ No rules for password policies ◦ Authentication mechanisms not addressed (ex. biometric authentication)

Data Ownership Organizational issues◦ Physical access control, definition of zones, security lifecycle or security

policies◦ Personnel training

These are addressed by other specifications like◦ IEC 62443 (ISA 99)◦ NERC CIP◦ Regulations and Corporate Standards◦ …

Page 16: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Testing & Evolution

Page 17: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

28

Page 18: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Threats and Impact on Security Objectives

Authentication Authorization Confidentiality Integrity Auditability Availability

Message Flooding X

Eavesdropping X

Message Spoofing X X

Message Alteration X X

Message Replay X

Malformed

Messages

X

Server Profiling X X X X X X

Session Hijacking X X X

Rogue Server X X X X X

Compromising

User Credentials

X X

Page 19: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Message Flooding◦ Minimize processing of packets before they are authenticated

Eavesdropping – record and capture packets◦ Encryption

Message Spoofing – attacker forges messages from client/server◦ Message signing, valid Session ID, Channel ID, timestamp, …

Message Alteration & Replay – messages captured, modified, resent◦ Session IDs, Secure Channel ID, Timestamps, Sequence# and Request IDs

Malformed Messages◦ Validating message structure and valid parameter values or discard

Server Profiling, Session Hijacking, etc…

Page 20: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

31

Source: BSI, “OPCUA Security Analysis” (02/03/2017)

Page 21: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Pub / Sub◦ JSON Web Token (JWT)

Roles & Claim Based security

Security Management

Session-less Service calls

ReverseHello

32

Page 22: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

UA Client Server

UA PubSub

OAuth2 over HTTPS

Security KeyService

AuthorizationService

IdentityProvider

Publisher Subscriber

SubscriberPublisher

ConfigurationTool

MQTT

Broker

Page 23: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

Roles are assigned Permissions on Nodes;

Sessions are granted Roles based on credentials;

Access to Nodes based on the Permissions granted to the Roles assigned to the current Session;

Role

Client

Session

Creates

Granted

Permission

Namespace

Node

RolePermission

Assigned

Assigned

Interacts

Inherits

AccessRestriction

Assigned

Assigned

Page 24: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

OPC UA is secure-by-design: Implements CIA

Confidentiality and Integrity by signing and encrypting messages

Availability by minimum processing before authentication

Implements AAA

Authentication and Authorization of Users and Application instances

Auditability by defined audit events for OPC UA operations

Facilitates use of different levels of security to match application/hardware

OPC UA continually evolving to meet new threats and capabilities

Use of OPC UA security enhances overall system security (defense in depth)

Page 25: OPC UA Security Overview - Automaatioseura · OPC Foundation 11-2019 Message Flooding Minimize processing of packets before they are authenticated Eavesdropping –record and capture

OPC Foundation 11-2019

OPC Day Seminar: 13:00-17:30 Meeting room 203, 2nd

floor