colemac
Hey OpenPLC Forum,

I'm extremely new to Operational Technology and the whole configuration of PLCs, etc but I work in CyberSecurity and I'm looking for some "sexy" demonstrations using OpenPLC and "something" to show how an attack on a PLC can cause damage.

I have started to play with FactoryIO but just wondering if people on the forum have some good demos that are easily repeatable for a "newbie".

Ideally looking for something that is distributed I.e. a PLC on one device and "something" on another device - so I can show traffic going between levels of the Purdue model, etc.

If there is anything out there the community can share it would be great - as I say I am new to programming of anything PLC related but keen to understand.

Thanks 
Craig 
Reply 0 0
ji3sticks

https://github.com/Fortiphyd/GRFICSv2

This might be right up your alley. Includes an exploding tank of your attack is successful!

Reply 1 0
thiagoralves
That project is pretty cool, but as far as I know it uses OpenPLC v2 which is old and unsupported. I will check to see if the devs have updated it to OpenPLC v3. Also, I have a repository about my exploits from DEFCON 26. You might wanna check what is in there: https://github.com/thiagoralves/defcon26

Here is the DEFCON presentation:
https://www.youtube.com/watch?v=-KHel7SyXsU
Reply 3 0
ji3sticks
Thanks, Thiago! And double thanks for the OpenPLC project. It’s great for us cybersecurity pros wanting to learn more about OT. Speaking of DEFCON, there was a cool workshop this year in the ICS village called “Hack the Microgrid” it doesn’t run on OpenPLC but can be adapted too. I’m doing so as a side project. Mainly as a way learn more about programming PLCs.

https://github.com/deptofdefense/dds-at-DEFCON/tree/master/2022/hack-the-microgrid
Reply 0 0
colemac
Thank you both - this is potentially exactly what i was looking for. I work for a Cyber company so likely would look to replace the pfsense with our product but i assume this is not an issue? also, it shows use in virtualbox - i assume ESXi is just as suitable?

If you come across any others akin to this it would be great. The aim is to demonstrate some examples of poor cyber security and the results with suitable segmentation, and appropriate security to stop such attacks, etc

Massively appreciate the share here guys - this is fantastic.
Reply 0 0
nmambre
I started to recreate this tutorial, but didn't finish it. It also uses OpenPLC (along with ScadaBR, Factory I/O and pfsense). Maybe that write up can give you ideas for your own demo.
https://rodrigocantera.com/en/virtual-industrial-cybersecurity-part-0-road-to-virtualization/
Reply 0 0
colemac
@ji3sticks - i am now finally getting round to downloading the above you have shared. This looks on the face of it fantastic and something i look forward to testing/demo'ing.

One question - obviously i can see the addressing, etc is using pre-set as per your lab - is this a simple thing to change to fit in with my current scheme? its not an issue per-se just wondering if its easy enough to do?
Reply 0 0
colemac
ji3sticks wrote:

 

 

This might be right up your alley. Includes an exploding tank of your attack is successful!



@ji3sticks - i dont suppose you have these available in a format useable in ESXi do you? i have been struggling to get them imported into ESXi where most of my kit resides.....

Thanks in advance
Craig
Reply 0 0
colemac
nmambre wrote:
I started to recreate this tutorial, but didn't finish it. It also uses OpenPLC (along with ScadaBR, Factory I/O and pfsense). Maybe that write up can give you ideas for your own demo.


thanks @nmambre - i have been looking into FactoryIO but not sure how easy it is to attack the OpenPLC to cause a break in the factory lab process...... have you managed to do this as yet?
Reply 0 0
ji3sticks

@colemac
Each VM in the Github repo has instructions on manually setting them up starting from a base Ubuntu instance. The only one that is a little complicated is the visualization. The workstation, PLC and ScadaBR are quite simple. You could actually use videos on the OpenPLC YouTube channel for everything but the visualization 

The pfSense docs have a guide on ESXi as well.

pfSense® software Configuration Recipes — Virtualizing pfSense Software with VMware vSphere / ESXi | pfSense Documentation (netgate.com)

 

Reply 0 0
nmambre
@colemac
I guess it will depend on what you want to achieve. IIRC, the last step of the blog I linked is just having the robotic arm missing the boxes, the one of the Fortiphyd/GRFICSv2 will have a tank exploding. You'll have to decide on an attack, maybe something as simple open/shut valves after snooping the network for devices to attack. Factory IO (or other similar packages) is more to visually present something more appealing to the user/customer.
Reply 0 0
colemac
@ji3sticks

Thanks for that - I didn't realise this. I've now managed to build this manually into ESXi and actually re-addressed the devices to fit in my lab setup already.
So far looks to be working great - just need to apply the attack and then look at blocking with my Fortigate (instead of pfsense).

Appreciate this - really good demo.
Reply 0 0
colemac

@nmambre - yeah I think your right. I'll defo look at this again as I think some of the labs in FactoryIO are visually great. 

I'm new to this side of the dense (hacking, etc) so just need to workout what I can do to cause damage from an "attack" and then apply security to stop said attack - I.e. Inspection at the protocol layer.

Appreciate the replies.

Reply 0 0
Reply