PISA Pakistan — Community CERT

← ⚙️ Red Team Fundamentals (Ethical)

25. Attacking Industrial Control Systems (ICS) & SCADA in Critical Infrastructure

⏱ 10 min

Attacking Industrial Control Systems (ICS) & SCADA in Critical Infrastructure

Why ICS Security Matters in Pakistan

Pakistan’s power grid (NTDC/WAPDA), water‑treatment plants, and oil‑gas pipelines rely on SCADA (Supervisory Control and Data Acquisition) systems. A compromised PLC can cause outages or safety incidents, making these assets prime targets for nation‑state and criminal actors. Under the National Cyber‑Coordination Centre (NCC) and NCCIA guidelines, ethical red teams must understand the Purdue Model of network segmentation before touching any OT environment.

Reconnaissance & Enumeration

  • Passive recon: Search Shodan for Pakistan‑based Modbus, S7‑COMM, or DNP3 devices.
  • Active scan: Use nmap --script=modbus-discover or s7-comm-brute to identify live PLCs.
    nmap -p 102 --script=s7-comm-info <target>
    
  • Protocol analysis: Capture traffic with Wireshark on a mirrored span port. Look for clear‑text credentials or undocumented function codes.

Exploitation Tools & Techniques

  • plcscan.py – enumerates Siemens S7‑300/400 CPUs.
  • Metasploit modules (auxiliary/scanner/scada/s7_comm) for fingerprinting.
  • PLCio (by Rapid7) to read/write tags on Modbus‑enabled devices.
  • SET (Social‑Engineering Toolkit) can be used to craft phishing lures that deliver a macro‑enabled document to an engineering workstation, pivoting into the OT network.

Post‑Exploitation & Impact

Once a PLC is accessed, an attacker may:

  • Denial‑of‑Service (stop/start processes).
  • Modify set‑points (e.g., raise pressure thresholds).
  • Pivot to HMI via exposed Ethernet ports, potentially altering control logic.

Defensive Takeaways & Reporting

  • Segment OT networks from corporate IT using firewalls and unidirectional gateways.
  • Deploy ICS‑aware IDS (e.g., Snort rules for Modbus function codes).
  • Document every step in your red‑team report, mapping findings to MITRE ATT&CK for ICS (T0804 – Modbus Exploit).

Do / Don't

  • Do obtain written authorization covering each Purdue level.
  • Do use a dedicated lab that mirrors production ICS configurations.
  • Don't attempt to manipulate live PLCs without explicit permission.
  • Don't disclose specific asset IPs publicly; report to NCCIA 1799 if a real compromise is discovered.

Takeaway: Today, map your organization’s OT network boundaries and verify that a DMZ separates IT and ICS assets. Use nmap with SCADA scripts against your test rig to confirm visibility of PLCs and flag any exposed devices.

← PrevNext →