Labshock: Run OT Labs Locally on macOS with Docker

Listen to this Post

Featured Image
If you’re on a Mac (even an M1/M2/M3 with just 8GB RAM) and want to run Operational Technology (OT) labs without VMs, cloud, or lag, Labshock is the solution. This lightweight setup uses Docker + Git and installs in just 5 minutes, providing:
– PLC simulation
– SCADA panel
– Attack tools
– Network traffic analysis

Installation Steps

1. Install Docker Desktop for macOS (ARM-compatible version).

brew install --cask docker 

2. Clone the Labshock repository:

git clone https://github.com/[Labshock-Repo].git 

3. Run the setup script:

cd Labshock && ./install.sh 

4. Launch the environment:

docker-compose up -d 

You Should Know:

  • Access SCADA Dashboard: Open `http://localhost:8080` in your browser.
  • Simulate PLC Attacks: Use tools like `modbus-cli` to interact with the simulated PLC:
    modbus read --ip 127.0.0.1 --port 502 --slave 1 --address 0 --count 10 
    
  • Capture Network Traffic: Run Wireshark or tcpdump to analyze Modbus/TCP traffic:
    sudo tcpdump -i lo0 port 502 -w ot-traffic.pcap 
    
  • Exploit Vulnerabilities: Use Metasploit modules for PLC exploits (ensure you’re in a lab environment):
    msfconsole -q -x "use exploit/plc/example_module; set RHOSTS 127.0.0.1; run" 
    

What Undercode Say

Labshock bridges the gap for macOS users in OT security, eliminating cloud dependencies. Key takeaways:
– Lightweight: Runs on ARM Macs with minimal RAM.
– Hands-On: Perfect for practicing ICS/SCADA attacks safely.
– Expandable: Integrate with Kali tools (e.g., nmap, hydra).

Try these commands to deepen your lab experience:

 Scan for open Modbus ports 
nmap -p 502 --script modbus-discover 127.0.0.1

Bruteforce PLC credentials (ethical use only) 
hydra -L users.txt -P passwords.txt 127.0.0.1 modbus 

Expected Output:

  • SCADA panel accessible at localhost:8080.
  • Successful Modbus/TCP communication logs in Docker.
  • Captured attack traffic in `.pcap` files.

Prediction: OT security labs will increasingly adopt lightweight, containerized solutions, making ICS training more accessible.

Watch the Labshock Installation Guide

References:

Reported By: Https: – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 Telegram