Difference between revisions of "Pentesting Smart Grid and SCADA with SamuraiSTFU"
From BruCON 2017
|Line 113:||Line 113:|
''- 25 September (09:00 - 17:00)''
[[Training|Back to Training Overview]]
[[Training|Back to Training Overview]]
Revision as of 15:59, 25 April 2013
Pentesting ICS and Smart Grid by Justin Searle
This is not your traditional SCADA security course! This course teaches hands-on penetration testing techniques used to test embedded electronic field devices, network protocols, RF communications, and controlling servers of ICS and Smart Grid systems like PLCs, RTUs, smart meters, Home Area Networks (HAN), smart appliances, SCADA, substation automation, and synchrophasors. This course is structured around the formal penetration testing methodology created by the National Energy Sector Cybersecurity Organization Resource (NESCOR), a United States Department of Energy project. Using this methodology and SamuraiSTFU (Security Testing Framework for Utilities), an open source Linux distribution for pentesting energy sector systems and other critical infrastructure, we'll perform hands-on penetration testing tasks on embedded electronic field devices, their RF communications, and the myriad of user interfaces used throughout smart grid systems. We’ll tie these techniques and exercises back to the smart grid devices that can be tested using these techniques. We will also do exercises on dissecting and fuzzing smart grid protocols like modbus, DNP3, IEC 61850, ICCP, ZigBee, C37.118, and C12.22. The course exercises will be performed on a mixture of real world and simulated devices to give students the most realistic experience as possible in a portable classroom setting.
Advances in modern ICS systems such as the energy sector’s "Smart Grid" brings great benefits for electric utilities and customer alike, however these benefits come at a cost from a security perspective. With increased functionality and addition inter-system communication, the smart grid brings with it a greater risk of compromise that both utilities and customers must accept. To minimize this risk, penetration testing must be performed to minimize vulnerabilities before attackers can exploit the critical infrastructures that exist in all countries around the world.
- Attendees will be able to explain the steps and methodology used in performing penetration tests on Industrial Control and Smart Grid systems.
- Attendees will be able to use the free and open source tools in SamuraiSTFU to discover and identify vulnerabilities in web applications.
- Attendees will be able to exploit several hardware, network, user interface, and server-side vulnerabilities.
- Basic penetration testing experience is desirable, but not required.
- It is assumed that attendees will have no knowledge of ICS, Smart Grid, SCADA, or critical infrastructure.
- This course is designed for intermediate level security professionals, be they engineers, technicians, analysts, managers, or penetration testers.
Recommended Reading before the Course
- No Starch Press' Hacking the Xbox - great introduction to pentesting embedded electronic hardware
Resources You Are Responsible to Bring
- Laptop with at least two USB ports (three ports preferred). If you only have two USB ports and they are right next to each other, you will need to bring a USB extension cable.
- Latest VMware Player, VMware Workstation, VWware Fusion installed. Other virtualization software such as Parallels or VirtualBox will probably work if the attendee is familiar with its functionality, however VMware Player should be prepared as a backup just in case.
- Ability to disable all security software on their laptop such as Antivirus and/or firewalls
- At least twenty (20) GB of hard drive space
- At least four (4) GB of RAM
Resources Provided at the Course
- Power for your laptop
- Internet connectivity may or may not be available depending on the facility hosting the course
- Latest version of SamuraiSTFU (Security Testing Framework for Utilities)
- PDF version of the course slide deck
- Student hardware kits to use in class that must be returned at the end of class
- List of hardware items in the student kits and links to where students can purchase their own kits
Day 1 – Pentesting ICS Network Protocols
- Introduction to SamuraiSTFU (Security Testing Framework for Utilities)
- Setting up the virtual machine
- Walk through the tools and functionality
- Introduction to the student hardware kits
- Different levels of network communication penetration testing
- Testing of network mediums vs network protocols
- Where security defenses should be place …… and tested
- Serial communications
- RS-485 and RS-232
- Modbus RTU
- 16-bit unsigned registers and single bit coils
- Pentesting RF communications between master servers and field devices
- Hands-on RF spectrum analysis and signal capture
- Spread Spectrum types and strategies
- Hands-on signal demodulation with GNU Radio
- Hands-on network traffic extraction
- Traffic transmission and exploitation
- Pentesting TCP/IP based ICS protocols
- Protocol capture and analysis
- modbus, DNP3, IEC 61850, ICCP, ZigBee, C37.118, and C12.22
- Dealing with unknown protocols
- Hands-on entropy analysis of network payloads
- Reverse engineering unknown protocols
- Hands-on ICS protocol fuzzing
Day 2 – Pentesting ICS Field and Floor Devices
- Pentesting technician interfaces on ICS field and floor devices
- Functional analysis of field technician interfaces
- Hands-on exercise capturing USB communications to tech interfaces
- Hands-on exercise analyzing captured USB communications
- Impersonating endpoints in field tech interface communications
- Hands-on exercises fuzzing AMI Smart Meter c12.18 optical interfaces
- Exploiting vulnerabilities found during analysis
- Analyzing field and floor device firmware
- Obtaining field and floor device firmware
- Hands-on exercise disassembling firmware
- Hands-on exercise analyzing disassembled firmware
- Exploiting firmware flaws
- Overview of pentesting field and floor device embedded circuits
- Local attack through physically exposed devices
- Expanding physical attacks to remote attacks
- Cryptographic keys and firmware
- Analysis of embedded electronics in ICS field and floor devices
- Discussion of device disassembly
- Component analysis on embedded circuits
- Datasheet acquisition and analysis for target components
Day 3 – Pentesting ICS Field and Floor Devices Continued
- Dumping data at rest on embedded circuits
- Using the Bus Pirate and other similar tools
- Overview of I2C or two-wire serial protocol
- Hands-on exercise dumping I2C EEPROMs
- Overview of SPI serial protocol
- Hands-on exercise dumping SPI EEPROMs
- Overview of JTAG
- Hands-on exercise interfacing with JTAG
- Bus Snooping on embedded circuits
- Overview of bus snooping
- Hands-on exercise snooping busses
- Analyzing data obtained from data dumping and bus snooping
- Hands-on exercise doing string analysis of datasets
- Hands-on exercise doing entropy analysis of datasets
- Hands-on exercise doing systematic key searches through datasets
- Hands-on exercise doing file carving from datasets
- End-to-end analysis and reporting
- Strategies for end-to-end analysis after targeted pentesting
- Strategies for reporting and remediation recommendations
More information is available on Meeas Security blog
23 - 25 September (09:00 - 17:00)