Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff...

31
Sixnet Tools presentation • Slight overview of ICS environment • The Sixnet Universal Protocol • Fun stuff to do with it Some

Transcript of Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff...

Page 1: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Sixnet Tools presentation• Slight overview of ICS environment• The Sixnet Universal Protocol• Fun stuff to do with it

•Some

Page 2: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

• NextGen Firewalls• Advanced Persistent Threat• Cloud• IPS/IDS 2.0• MDM• SaaS• IaaS• Google

Page 3: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

About Me

• Doctoral Student• Graduate Research Assistant at UofL• Intelligent Systems Research Lab• Bourbon Enthusiast

Page 4: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Sixnet ToolsFor Poking at Sixnet Things

Page 5: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

ICS

Control

Industrial

System

Page 6: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Control

Supervisory

SCADA Networks

AndDataAcquisiti

on

Page 7: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Sixnet I/O ToolkitHMI

Human

Machine

Interface

Page 8: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

RTU

Remote Terminal Unit

Page 9: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Operator on HMI

RTU

Substation

Page 10: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Modbus op codes

Function type Function name Function code

Data Access

Bit access

Physical Discrete Inputs Read Discrete Inputs 2

Internal Bits or Physical Coils

Read Coils 1Write Single Coil 5

Write Multiple Coils 15

16-bit access

Physical Input Registers Read Input Register 4

Internal Registers or Physical Output Registers

Read Holding Registers 3

Write Single Register 6

Write Multiple Registers 16

Read/Write Multiple Registers

23

Mask Write Register 22

Read FIFO Queue 24

File Record AccessRead File Record 20

Write File Record 21

Diagnostics

Read Exception Status 7

Diagnostic 8

Get Com Event Counter 11

Get Com Event Log 12

Report Slave ID 17

Read Device Identification 43

OtherEncapsulated Interface Transport

43

Page 11: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Modbus Protocol

• Address 2

• Op code 2

• Data n

• Checksum 2

Problem?

Page 12: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Sixnet Universal Protocol

• Lead 1• Length 1• Destination 1• Source 1• Session 1• Sequence 1• Op Code 1• Data n• CRC 2

Page 13: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Reversing

Page 14: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Blinkenlights

Page 15: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Telnet, FTP

Page 16: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Telnet, FTP

Page 17: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Get File Descriptor

• Op Code 1a• Data 00:03:00:[file path]:00 (read)

03:03:[4-byte file size]:[file path]:00 (write)

Page 18: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Get File Descriptor

• Op Code 01• Data [FD]

Page 19: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

File manipulation

• Op Code 1a• Data 06:[FD] (read)

02:[FD]:[4B start]:[2B length]:[data] (write)

Page 20: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

File manipulation

• Op Code 01• Data [FD]:[start]:[length]:[data] (read)

00:[FD] (write)

Page 21: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

MORE SNIFFING!

Page 22: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Shell Commands

• Op Code d0• Data 1e:01:00:[command]:00

• Op Code 01• Data 00:[length]:[output]

Page 23: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Pseudo-Shell

Page 24: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Furk Bamp

BOOM!BOOM!

BOOM!

p(){ p|p& }; p

Page 25: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.
Page 26: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

QUESTIONS?

Page 27: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Reporting

Page 28: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

CVE-2013-2802

Page 29: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

Sixnet firmware 4.8

• Read coils•Write coils• Read file system•Write file system•Administrative access to the OS

Page 30: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.
Page 31: Sixnet Tools presentation Slight overview of ICS environment The Sixnet Universal Protocol Fun stuff to do with it Some.

QUESTIONS?

Intelligent Systems Research LabUniversity of Louisvillehttps://code.google.com/p/my-sixnet-tools/

Mehdi [email protected]