100%
cybics CybICS view
Description

Imported from GitHub: mniedermaier/CybICS · commit fa167ea · license MIT

Description

Understanding industrial Cybersecurity.

README


License KiBot C/C++ CI flawFinder C TruffleHog devContainer pytest CodeQL


What is CybICS?

CybICS (Cybersecurity for Industrial Control Systems) is an open-source training platform designed to help cybersecurity professionals, students, and researchers understand the unique challenges of securing industrial control systems (ICS) and SCADA environments.

The platform simulates a realistic industrial gas pressure control system complete with:

  • PLC (Programmable Logic Controller) - OpenPLC
  • HMI (Human-Machine Interface) - FUXA
  • Physical Process Simulation - Gas pressure control system
  • Multiple Industrial Protocols - Modbus TCP, OPC-UA, S7comm, DNP3, EtherNet/IP

Why CybICS?

  • Hands-on Learning: Practice real-world ICS security techniques in a safe environment
  • Cost-Effective: Free and open-source
  • Flexible: Choose between virtual (Docker) or physical (Raspberry Pi + STM32) deployment
  • Comprehensive: Covers reconnaissance, exploitation, and defense
  • CTF-Ready: Built-in capture-the-flag challenges for training exercises

Table of Contents


Deployment Options

CybICS offers two deployment modes to suit different learning needs and budgets:

💻 Virtual (Recommended for Beginners)

Docker-based deployment for easy setup

🔧 Physical (Advanced)

Hardware-based deployment with Raspberry Pi

Advantages:

  • ✅ No hardware required
  • ✅ Quick setup (5 minutes)
  • ✅ Easy to reset and reproduce
  • ✅ Perfect for classroom/online training
  • ✅ Runs on Windows, Linux, macOS

Advantages:

  • ✅ Realistic physical hardware
  • ✅ Learn embedded systems security
  • ✅ Practice hardware attacks (UART, SWD)
  • ✅ Portable standalone device
  • ✅ Visual LED indicators

Requirements:

  • Docker & Docker Compose
  • 4GB RAM minimum
  • 10GB disk space

Requirements:

  • Raspberry Pi Zero 2 W
  • Custom CybICS PCB (~50 EUR)
  • LCD display
  • MicroSD card

Use Cases:

  • Learning ICS security fundamentals
  • Developing attack/defense techniques
  • Classroom training sessions
  • CTF competitions

Use Cases:

  • Advanced ICS security training
  • Hardware hacking workshops
  • Demonstrations at conferences
  • Permanent lab installations

🚀 Quick Start - Virtual Testbed

Get CybICS running in under 5 minutes using the virtual environment!

Prerequisites

  • Docker and Docker Compose installed
  • Git for cloning the repository
  • At least 4GB of free RAM
  • Linux, macOS, or Windows with WSL2

Installation

  1. Clone the repository:

    git clone https://github.com/mniedermaier/CybICS.git --recursive
    cd CybICS
    
  2. Start the virtual environment:

    ./cybics.sh start
    
  3. Access the services:

    Once started, open your browser and navigate to:

    ServiceURLDefault Credentials
    Landing Pagehttp://localhost-

Managing the Environment

# Check status of all services
./cybics.sh status

# View logs from all containers
./cybics.sh logs

# Stop the environment
./cybics.sh stop

# Restart the environment
./cybics.sh restart

# Update Docker images to latest version
./cybics.sh update

Physical Process Description

CybICS simulates a gas pressure control system commonly found in industrial environments. This simple yet realistic process provides an excellent foundation for learning ICS cybersecurity concepts.

System Overview

The system maintains gas pressure in a High Pressure Tank (HPT) using gas from a Gas Storage Tank (GST). A PLC controls a compressor that transfers gas between tanks while monitoring pressure levels and safety conditions.

Components

Gas Storage Tank (GST)

Buffer tank for the external gas supply. The PLC maintains GST pressure between 60-240 bar.

PressureStatusRange (bar)Color Indicator
<50Low0-49Red
50-149Normal50-149Green
150+Full150-255Blue

Control Loop:

  • When GST < 60 bar → Start filling from external supply
  • Continue until GST ≥ 240 bar → Stop filling
  • Prevents compressor operation when GST is too low

High Pressure Tank (HPT)

Main buffer tank providing pressure to the system. Target range: 60-90 bar.

PressureStatusRange (bar)Meaning
0Empty0System offline
1-49Low1-49Below operating range
50-99Normal50-99Safe operating range
100-149High100-149Above target, but safe
150+Critical150+Dangerous overpressure

Control Loop:

  • When HPT < 60 bar AND GST > 50 bar → Start compressor
  • Continue until HPT ≥ 90 bar → Stop compressor
  • Compressor disabled if GST < 50 bar (safety interlock)

System Operation

The system can operate normally when HPT is between 50-100 bar:

  • HPT < 50 bar → System cannot operate (insufficient pressure)
  • HPT > 100 bar → System at risk of damage

Safety: Blowout Valve (BO)

Mechanical safety valve (not PLC-controlled) that prevents catastrophic failure:

  • Opens when HPT > 220 bar
  • Vents toxic gas to atmosphere
  • Closes when HPT < 200 bar
  • Security implication: Triggering the blowout releases toxic gas

Hardware

For those choosing the physical deployment, CybICS uses affordable, off-the-shelf components.

Detailed instructions: Hardware Guide | PCB Ordering Guide


Training Modules

CybICS includes 13+ hands-on training modules covering the full ICS security lifecycle:

Each module includes:

  • 📖 Background theory
  • 🎯 Hands-on exercises
  • 🚩 CTF-style flags
  • 💡 Hints and solutions

Start training: Training Overview


Documentation

Comprehensive documentation is available for all components:

Getting Started

Hardware

Software


Abbreviations

AbbreviationFull NameDescription
BOBlowoutSafety valve that vents gas at critical pressure
CTFCapture The FlagSecurity training challenge format
DNP3Distributed Network Protocol 3SCADA communication protocol
GSTGas Storage TankBuffer tank for external gas supply
HMIHuman-Machine InterfaceOperator control and monitoring interface
HPTHigh Pressure TankMain system pressure buffer
I2CInter-Integrated CircuitSerial communication protocol
ICSIndustrial Control SystemSystems controlling industrial processes
LEDLight-Emitting DiodeVisual indicator on hardware
OPC-UAOPC Unified ArchitectureIndustry 4.0 communication standard
PCBPrinted Circuit BoardCybICS custom hardware board
PLCProgrammable Logic ControllerIndustrial controller (OpenPLC)
RTOSReal-Time Operating SystemZephyr (on STM32)
SCADASupervisory Control and Data AcquisitionIndustrial monitoring system
STM32STMicroelectronics 32-bit MCUMicrocontroller on CybICS PCB
SWDSerial Wire DebugProgramming/debugging interface for STM32
UARTUniversal Asynchronous Receiver-TransmitterSerial communication

Contributing

We welcome contributions from the community! Here's how you can help:

Ways to Contribute

  • 🐛 Report bugs via GitHub Issues
  • 💡 Suggest features or improvements
  • 📝 Improve documentation (typos, clarity, examples)
  • 🎓 Create training modules for new attack/defense techniques
  • 🔧 Submit code improvements via Pull Requests
  • 🌍 Translate documentation to other languages

Development Setup

  1. Fork the repository
  2. Clone your fork: git clone --recursive https://github.com/YOUR_USERNAME/CybICS.git
  3. Create a branch: git checkout -b feature/your-feature-name
  4. Make changes and test thoroughly
  5. Commit: git commit -m "Description of changes"
  6. Push: git push origin feature/your-feature-name
  7. Open a Pull Request

License

CybICS is released under the MIT License. See LICENSE for details.

Third-Party Components

  • OpenPLC: GPL-3.0 License
  • FUXA: MIT License
  • Zephyr RTOS: Apache-2.0 License

Acknowledgments

CybICS is developed for educational purposes to improve ICS cybersecurity awareness. Special thanks to the open-source community and all contributors.

Disclaimer: This platform is designed for authorized training and education only. Unauthorized use against production systems is illegal and unethical.


Comments
Sign in to comment

No comments yet. Be the first to ask about this board.