Module 3 · Industrial Control Protocols

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 22, 2026
5 min read
Read as

Last updated: April 29, 2026

Modbus, DNP3, OPC-UA, S7Comm, EtherNet/IP, BACnet — protocol attack surfaces and defenses.

Industrial Control Systems (ICS) speak protocols designed in the 1970s-90s when the network was assumed isolated. Many of those protocols are now exposed to IP networks — and they were never designed with authentication, encryption, or integrity in mind. This module covers the major ICS protocols, what they expose, and the patterns of attack and defense.

The protocols that matter

  • Modbus (TCP / RTU) — most common ICS protocol; simple register-read/write. No auth, no encryption
  • DNP3 — used heavily in electric utilities, water; some authenticated extensions exist (Secure Authentication v5) but rarely deployed
  • OPC-UA — modern, designed with security; certificates, signed messages, encryption. Widely adopted in new installations
  • OPC Classic (DA, HDA, A&E) — older OPC; built on DCOM; no native security
  • S7Comm / S7CommPlus — Siemens SIMATIC PLCs; widely used in manufacturing
  • EtherNet/IP (CIP) — Allen-Bradley / Rockwell PLCs; widely used in North America
  • Profinet — Siemens; deterministic real-time on Ethernet
  • BACnet — building automation (HVAC, lighting); often internet-exposed
  • IEC 60870-5-104 — power utilities, SCADA telemetry
  • IEC 61850 (MMS, GOOSE, SV) — substation automation

Modbus — the demonstration target

Modbus TCP runs on port 502. A request specifies a function code (read holding register, write coil, etc.), a register address, and data. No authentication. No encryption. Anyone with network access can read or write any register.

# Reading registers from a Modbus TCP device
python3 -c "
from pymodbus.client import ModbusTcpClient
c = ModbusTcpClient('192.168.1.50', port=502)
c.connect()
result = c.read_holding_registers(0, 10, slave=1)
print(result.registers)
c.close()
"

# Writing a register (could change a setpoint, open a valve, etc.)
# DO NOT RUN IN PRODUCTION WITHOUT AUTHORIZATION

If a Modbus device is exposed to the internet (and Shodan finds tens of thousands), anyone can interact with it. This is why segmentation matters.

OPC-UA — the modern standard

OPC-UA done right has:

  • X.509 certificates for client and server
  • Multiple security policies (Basic128Rsa15, Basic256Sha256, None)
  • Sign + Encrypt message security
  • User authentication (anonymous, username/password, certificate, JWT)

OPC-UA done wrong has:

  • SecurityPolicy = None — no signing or encryption
  • Anonymous user authentication enabled
  • Self-signed certs without proper trust list management
  • Default deployment with empty user store

Test: connect with anonymous + None security; if it succeeds, that’s a finding. Use UA Expert or open62541 client for testing.

S7Comm and the PLC-direct attack surface

Siemens S7-300 and S7-400 PLCs use S7Comm (port 102). Newer S7-1200/1500 use S7CommPlus with some authentication. S7Comm allows reading/writing memory, downloading code blocks, putting the CPU in STOP mode.

# Snap7 library (Python wrapper python-snap7)
import snap7
client = snap7.client.Client()
client.connect('192.168.0.1', 0, 1)         # IP, rack, slot
data = client.db_read(1, 0, 10)              # data block 1, offset 0, 10 bytes

# CPU control (DANGEROUS in production)
# client.plc_stop()

S7CommPlus added per-session keys, but vulnerabilities have been published periodically (CVE-2019-10929, CVE-2021-44480, etc.). Patches exist; deployment lags.

Discovery without breaking things

Active scanning OT networks can crash devices. Even an Nmap SYN scan has been known to cause PLCs to fault. Safer approaches:

  • Passive monitoring: SPAN port copy of OT traffic; identify devices and protocols from observed flows
  • Vendor tools: Claroty, Nozomi, Dragos do passive ICS-aware discovery
  • Manual asset inventory: walk the plant, identify devices visually, cross-reference with engineering documentation
  • Restricted active scans: if active scan needed, use ICS-aware scanners (Nessus has ICS modes), low rate, during planned maintenance, with engineering and operations on standby

Common attack patterns

Engineering workstation pivot

Most ICS attacks start with a Windows engineering workstation (level 3 in Purdue) compromised via classic IT methods (phishing, credential reuse). From the workstation, the attacker has tools that can reprogram PLCs without separate authentication — the PLCs trust the workstation’s network position.

Removable media (USB)

Stuxnet’s path. Engineering workstations rarely connect to internet; updates and configs flow via USB. A compromised USB introduced via maintenance contractor or insider can drop malware that propagates within OT.

Vendor remote access

Nearly every ICS site has vendor remote access for support — often via TeamViewer, AnyDesk, or VPN with weak controls. These bypass DMZ defenses by design. Compromise the vendor (or their account) and you have direct OT access.

HMI compromise

Human-Machine Interfaces (HMIs) on level 2 are often Windows boxes. Attacker on HMI can directly control the process — the HMI’s job is to issue commands.

Defenses in depth

  1. Network segmentation — strict firewall between Purdue levels; default-deny; allow specific protocols only
  2. OT DMZ — historian, jump server, vendor access portal in a DMZ between IT and OT; nothing direct
  3. Application whitelisting on engineering workstations and HMIs (only signed, approved binaries run)
  4. USB control — physical port disable, software whitelisting (only approved devices), USB scan kiosks before insertion
  5. OT-aware monitoring — passive sensors (Claroty/Nozomi/Dragos) for anomaly detection
  6. Strict change control — no PLC programming changes outside approved windows; logged + reviewed
  7. Backup configurations — every PLC’s program backed up; restore-from-backup procedures tested

Safety vs security

OT engineers prioritise safety; security teams prioritise CIA triad (with availability often compromised in IT). In OT, availability is safety. A misconfigured firewall that blocks legitimate traffic can shut down a process and create a hazard. Security controls in OT must be:

  • Discussed with engineering before deployment
  • Tested in a non-production environment first
  • Backed by rollback procedures
  • Aligned with safety system architecture (security must not interfere with safety interlocks)

Standards and frameworks

  • IEC 62443 — the industry-standard ICS security framework. Defines security levels, requirements per zone
  • NIST SP 800-82 — US guide to ICS security; freely available
  • NERC CIP — North American electric reliability standards; mandatory for utilities
  • India-specific: CERT-In ICS guidance (2024 update); CEA cybersecurity guidelines for power utilities; NCIIPC (National Critical Information Infrastructure Protection Centre) advisories

What the next module covers

Module 4 covers OT security testing methodology — what’s safe in a live environment, how to scope and execute a non-disruptive ICS assessment, and the report format that resonates with both engineering and security stakeholders.

🧠
Check your understanding

Module Quiz · 15 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants