54
Marina Krotofil PHDays, Moscow, Russia 29.06.2015 Damn Vulnerable Chemical Process, vol.2 ENCS

Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

  • Upload
    phamnga

  • View
    216

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Marina Krotofil

PHDays, Moscow, Russia

29.06.2015

Damn Vulnerable Chemical Process, vol.2

ENCS

Page 2: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Who I am

(Ex)Academic

� Have been teaching security topics

for 10 semesters

� Prefer physics over web

technologies

� Most frequently asked question:

HOW DID I LEARN ALL THESE

THINGS??

Page 3: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

What this talk about

ENCS

Page 4: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Industrial Control Systems

Physical

application

Curtesy: Compass Security Germany GmbH

Page 5: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Control loop

Actuators

Control

system

Physical process

Sensors

Measure process

state

Computes control commands for

actuators

Adjust themselves to influence

process behavior

Page 6: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

� Converts analog signal into digital

� Sensors pre-process the measurements

� May send data directly to actuators

� IP-enabled (part of the “Internet-of-Things”)

Computational

element

Sensor

Smart instrumentation

Old generation

temperature sensor

Page 7: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

� Cyber-physical systems are IT systems “embedded” in an

application in the physical world

Cyber-Physical Systems

� Attack goals:

o Get the physical system in a state

desired by the attacker

o Make the physical system perform

actions desired by the attacker

Page 8: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Promise from the vendors:

Expect instruments of the future

to have multiple communication

channels, each one with built-in

security (LOL), much like a present-

day Ethernet switch. These

channels will be managed with IP

adressing and server technology,

allowing the instrument to

become a true data server

VendorsVendorsVendors

Instrumentation of the future

Page 9: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Chemical plants

Source: simentari.com

Page 10: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Here’s a plant. Go hack it.

Page 11: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Damn Vulnerable Chemical Process, vol. 1

Compliance violation

� Safety

� Pollution

� Contractual agreements

Production damage

� Product quality and

product rate

� Operating costs

� Maintenance efforts

Equipment damage

� Equipment overstress

� Violation of safety limits

Purity Price, EUR/kg

98% 1

99% 5

100% 8205

Paracetamol

Source: http://www.sigmaaldrich.com/

Page 12: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Here’s a plant. Go hack it.

Attack scenario: persistent economic damage

Page 13: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Plants for sale

From LinkedIn

Page 14: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Vinyl Acetate Monomer plant

Page 15: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Stages of cyber-physical attacks

ENCS

Page 16: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Attack objective

Evil

motivation

Cyber-physical

payload

Page 17: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Stages of SCADA attack

Control

Access

DiscoveryCleanup

Damage

Jason Larsen „Breakage“. Black Hat Federal, 2007

Page 18: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Control

Access

DiscoveryCleanup

Damage

Stages of SCADA attack

Page 19: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Control

Access

DiscoveryCleanup

Damage

Stages of SCADA attack

Page 20: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Access

ENCS

Page 21: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Traditional IT hacking

• 1 0day

• 1 Clueless user

• AntiVirus and Patch Management

• Database Links

• Backup Systems

Page 22: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Invading field devices

� Jason Larsen at Black Hat’15 “Miniaturization”

o Inserting rootkit into firmware

Attack scenario: pipe damage with

water hammer

Page 23: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Discovery

ENCS

Page 24: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Process discovery

What and how the

process is producing

How it is build and

wired

How it is controlledEspionage

Espionage,

reconnaissance

Espionage,

reconnaissance

Page 25: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Process discovery

Page 26: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Know the equipment

Stripping columnStripper is...

Page 27: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

RefinementReaction

Max economic damage?

Final

product

Page 28: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Available controls

fixed

Page 29: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Understanding points and logic

Piping and instrumentation diagram

Ladder logicProgrammable Logic Controller

Pump on the plantCourtesy: Jason Larsen

Page 30: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Available controls

Page 31: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Available controls

� Obtaining control is not being in

control

� Obtained control might not be

useful for attack goal

� Attacker might not necessary be

able to control obtained controls

WTF???

Page 32: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Control

ENCS

Page 33: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Physics of process control

� Once hooked up together, physical components they

become related to each other by the physics of the process

� If we adjust one a valve what happens to everything else?

o Adjusting temperature also increases pressure and flow

o All the downstream effects need to be taken into account

� How much does the process can be changed before releasing

alarms or it shutting down?

Page 34: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Process control challenges

Controller Process

Transmitter

Final control element

Set point

Load

Operator practice

Control strategy

Tuning

Algorithm

Configuration

Sizing

Dead band

Flow properties Equipment design

Process design

Sampling frequency

Filtering

Page 35: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Process control challenges

� Process dynamic is highly non-linear (???)

� Behavior of the process is known to the extent of its modelling

o So to controllers. They cannot control the process beyond their

control model

UNCERTAINTY!

Page 36: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Control loop ringing

Caused by a negative real

controller poles

Amount of chemical entering

the reactor

Page 37: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Types of attacks

Step attack

Periodic attack

Magnitude of manipulation

Recovery time

Page 38: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Outcome of the control stage

Sensitivity Magnitude of manipulation Recovery time

High XMV {1;5;7} XMV {4;7}

Medium XMV {2;4;6} XMV {5}

Low XMV{3} XMV {1;2;3;6}

Reliably useful controls

Page 39: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Alarm propagation

Alarm Steady state attacks Periodic attacks

Gas loop 02 XMV {1} XMV {1}

Reactor feed T XMV {6} XMV {6}

Rector T XMV{7} XMV{7}

FEHE effluent XMV{7} XMV{7}

Gas loop P XMV{2;3;6} XMV{2;3;6}

HAc in decanter XMV{2;3;7} XMV{3}

Page 40: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Damage

ENCS

Page 41: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

“It will eventually

drain with the

lowest holes loosing

pressure last”

“It will be fully

drained in 20.4

seconds and the

pressure curve

looks like this”

Technician Engineer

Technician vs. engineer

„SCADA triangles: reloaded“. Jason Larsen, S4.

Page 42: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Process observation

An

aly

zato

r

An

aly

zato

r

An

aly

zato

r

An

aly

zato

r

• Reactor exit flowrate

• Reactor exit temperature

FTTT

Chemical composition

FT

Page 43: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Technician answer

Reactor with cooling

tubes

0,00073

0,00016

Page 44: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Engineering answer

Vinyl Acetate production

Page 45: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Product loss

Product per day: 96.000$

,

Page 46: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Outcome of the damage stage

Product loss, 24 hours Steady-state attacks Periodic attacks

High, ≥ 10.000$ XMV {2} XMV {4;6}

Medium, 5.000$ -

10.000$

XMV {6;7} XMV {5;7}

Low, 2.000$ - 5.000$ - XMV {2}

Negligible, ≤ 2.000$ XMV {1;3} XMV {1;2}

Product per day: 96.000$

Still might be useful

Page 47: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Clean-up

ENCS

Page 48: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Socio-technical system

• Maintenance stuff

• Plant engineers

• Process engineers• ……

Cyber-physical system

Page 49: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Creating forensics footprint

� Process operators may get concerned after noticing persistent decrease in production and may try to fix the problem

� If attacks are timed to a particular maintenance work, plant employee will be investigated rather than the process

1. Pick several ways that the temperature can be increased

2. Wait for the scheduled instruments calibration

3. Perform the first attack

4. Wait for the maintenance guys being screamed at

and recalibration to be repeated

5. Play next attack

6. Go to 4

Page 50: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Creating forensics footprint

Four different attacks

Page 51: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Defeating chemical forensics

Page 52: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Conclusion

ENCS

Page 53: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

Defense opportunities

� Better understanding the hurdles the attacker has to

overcome

o Understanding what she needs to do and why

o Eliminating low hanging fruits

o Making exploitation harder

� Wait for the attacker

o Certain access/user credentials need to be obtained

o Certain information needs to be gathered

� Building attack-resilient processes

o Put mechanical protections (e.g. manual valve)

o By design (slow vs. fast valves)

o Hardening (adjusting control cycle and/or parameters)

Page 54: Damn Vulnerable Chemical Process, vol.2 Marina Krotofil · PDF fileNegligible, ≤ 2.000$ XMV {1;3} XMV {1;2} Product per day: 96.000$ Still might be useful. Clean-up ENCS. Socio-technical

TE: http://github.com/satejnik/DVCP-TE

VAM: http://github.com/satejnik/DVCP-VAM

Marina Krotofil

[email protected]

ENCS

Damn Vulnerable Chemical Process