Back to exam

ICS-SCADA Cheatsheet

ICS/SCADA Cybersecurity

Download free PDF

Industrial control foundations

Control components and generations

  • **ICS** controls physical processes. **PLCs** execute control logic; **RTUs** collect remote telemetry and control field equipment. Sensors measure the process and actuators change it.
  • **SCADA** provides supervisory control across dispersed assets. An **HMI** presents status and operator controls; a **historian** stores process data. Engineering workstations configure controllers and logic.
  • Traditional SCADA generations: **first = monolithic**, with centralized proprietary systems; **second = distributed**, with functions shared over local networks; **third = networked**, with interconnected systems and more open protocols.
  • Industrial devices may have **limited processing**, fragile network stacks, long service lives and legacy software. Test traffic and security agents against device capacity and timing requirements.

Safety and security objectives

  • **Safety and reliable operation** drive OT decisions. Availability often leads the CIA priorities, while integrity protects commands and measurements. Confidentiality commonly has lower operational priority but still matters.
  • **Interruption** threatens availability; **modification** threatens integrity; **interception or eavesdropping** threatens confidentiality. **Masquerade** impersonates an identity and undermines authenticity.
  • A **denial of service** can exhaust a controller or network without stealing data. Flooding a switch or saturating a link can disrupt time-sensitive control traffic.
  • Treat **physical access**, logical access and process consequences together. Protect cabinets, engineering ports and removable media; validate changes and keep recoverable controller configurations.

Standards and security levels

  • **NIST SP 800-82** provides OT security guidance. **SP 800-53** is a security and privacy control catalog; control organization and counts depend on the publication revision.
  • **ISA/IEC 62443** applies security across industrial systems and their lifecycle. **Zones** group assets with shared security requirements; **conduits** control communication between zones.
  • **Security levels** describe resistance to threats: **SL 1** addresses casual or accidental violations; **SL 2** addresses intentional attacks using simple means, low resources and generic skills.
  • **SL 3** addresses sophisticated attacks with moderate resources and industrial skills; **SL 4** addresses sophisticated attacks with extended resources and high motivation. Select targets through risk assessment, rather than attacker labels alone.

Industrial and network protocols

Modbus fundamentals

  • **Modbus**, developed by **Modicon**, uses request/response exchanges. **Modbus RTU** carries binary messages over serial links, commonly RS-485; **Modbus TCP** uses TCP port **502**.
  • The **function code** selects an operation such as reading registers or writing coils. The **unit identifier** identifies the addressed unit, especially behind a gateway; it does not specify the operation.
  • **Coils** are single-bit read/write values; **discrete inputs** are single-bit read-only values. **Holding registers** are 16-bit read/write values; **input registers** are 16-bit read-only values.
  • Traditional Modbus supplies no native authentication or encryption. Restrict permitted peers and functions, isolate control traffic, and monitor unexpected writes or changes to operating values.

Ethernet, IP and TCP

  • A conventional **Ethernet switch** forwards frames using MAC addresses at **Layer 2**. A router forwards IP packets at Layer 3; multilayer switches can also perform routing.
  • A standard Ethernet **MTU is 1,500 bytes** of payload. An untagged frame can be **1,518 bytes including FCS**, excluding preamble and interframe gap. Frame size and IP payload size are different quantities.
  • **TCP** is connection-oriented and supplies an ordered, reliable byte stream. **UDP** carries independent datagrams. IP protocol number **6** identifies TCP; it is not a TCP port number.
  • TCP **sequence** and **acknowledgment** fields are each **32 bits / 4 bytes**. Sequence numbers track byte positions; acknowledgments normally identify the next expected byte.

Flags and diagnostics

  • TCP flags: **SYN** starts synchronization, **ACK** validates the acknowledgment field, **FIN** closes gracefully, **RST** resets a connection, and **URG** marks the urgent pointer as significant.
  • **PSH** requests prompt delivery of buffered TCP data to the receiving application. It is not a general flag meaning that a segment contains payload; ACK segments can carry data too.
  • For **ICMPv4**, type **8** is an echo request and type **0** an echo reply. Windows ping ordinarily sends **32 bytes of echo data**; this excludes ICMP and IP headers.
  • **netstat -r** displays the routing table. Routing tables describe next-hop decisions; a successful ping demonstrates an echo exchange, not that an industrial application is functioning.

Segmentation and defensive monitoring

Defense in depth and boundaries

  • **Defense in depth** combines physical protection, segmentation, access control, hardening, monitoring and recovery. Independent layers reduce the consequences of one failed control.
  • An **industrial DMZ** mediates exchanges between enterprise and control networks. A common design uses two filtering boundaries around the DMZ; the correct firewall count depends on architecture and risk.
  • A **data diode** enforces one-way data transfer. It suits outbound telemetry but cannot directly support ordinary bidirectional sessions; protocol handling must fit the permitted direction.
  • For **remote maintenance**, use authenticated, approved access through controlled gateways or jump hosts. Limit duration and privileges, record sessions, and avoid direct internet exposure of controllers.

Filtering and traffic visibility

  • **Ingress** filtering evaluates inbound traffic; **egress** filtering evaluates outbound traffic. Permit only required sources, destinations, services and directions across each boundary.
  • **Default deny** permits explicitly authorized traffic and blocks the remainder. **Default permit** blocks listed traffic and allows the remainder. Verify actual rules rather than relying on stance labels.
  • A **SPAN / mirror port** copies selected switch traffic to a sensor. Oversubscription can drop mirrored packets. A **network TAP** provides a dedicated observation point; its capabilities depend on the device.
  • A switch ordinarily hides unrelated unicast frames from an observer's port. Use an authorized **mirror or TAP** for visibility; encryption protects readable content even when packets can be captured.

IDS, IPS and alert quality

  • An **IDS** collects observations, analyzes activity and generates alerts. An **IPS** can block traffic or activity. Inline prevention must be tested for latency, failure behavior and process disruption.
  • **Network sensors** inspect visible traffic. **Host sensors** can observe supported activity after local decryption; a network sensor cannot read encrypted payloads without an authorized decryption path.
  • **True positive** means an actual threat was detected; **false positive** means benign activity was flagged. **False negative** means a threat was missed; **true negative** means benign activity stayed unflagged.
  • **Normalization** converts logs to common fields, **enrichment** adds context, and **correlation** links related events. Synchronize clocks and connect alerts to asset roles and expected process behavior.

IPsec and protected connections

AH, ESP and operating modes

  • **Authentication Header (AH)** provides integrity and data-origin authentication, with anti-replay support. It does **not encrypt** data; mutable IP header fields are excluded from its integrity calculation.
  • **Encapsulating Security Payload (ESP)** supports confidentiality and can provide integrity, origin authentication and anti-replay protection. The negotiated algorithms determine the protection actually supplied.
  • **Transport mode** protects the upper-layer payload while retaining the original IP header for routing. It commonly supports host-to-host protection and does not conceal original endpoint addresses.
  • **Tunnel mode** encapsulates the entire original IP packet inside a new IP packet. With ESP encryption, inner addresses are concealed; outer tunnel endpoint addresses remain visible.

Security associations and SPI

  • A **Security Association (SA)** defines one direction of protection, including algorithms, keys, lifetimes and related parameters. Bidirectional protected traffic normally needs at least **two data SAs**.
  • The **Security Parameters Index (SPI)** is a **32-bit** value present in both AH and ESP. It helps the receiver select the SA; it does not itself contain the encryption key.
  • The conventional SA identification tuple is **SPI + destination IP address + AH/ESP protocol**. Implementations may use a receiver-unique SPI for lookup; an SPI alone is not a universal global identifier.
  • **IKE** authenticates peers and negotiates IPsec protection. The IKE SA differs from data SAs. Rekeying or multiple traffic selectors can produce more than one inbound/outbound pair.

Windows connection security

  • Windows **connection security rules** define IPsec authentication or encryption requirements. **Firewall rules** define traffic permission; configuring IPsec does not automatically allow the application through the firewall.
  • The connection security wizard offers **five rule types**: isolation, authentication exemption, server-to-server, tunnel and custom. These are rule templates, not five IPsec operating modes.
  • **Isolation** restricts connections by authentication criteria. **Authentication exemption** identifies peers that need an exception. **Server-to-server** specifies protected communication between chosen endpoints.
  • **Tunnel** rules configure encapsulation between tunnel endpoints. **Custom** rules handle requirements outside the other templates. Match policies on both peers and inspect negotiated SAs when troubleshooting.

Discovery and vulnerability assessment

Reconnaissance and enumeration

  • **Footprinting / OSINT** builds context from available information, including address ranges, domains and suppliers. **Scanning** probes reachable systems; **enumeration** extracts details such as services, versions and identities.
  • A **registrar** handles domain registration; a **regional internet registry (RIR)** allocates internet number resources. RIR records concern IP addresses and AS numbers, not universal domain ownership.
  • RIR regions: **RIPE NCC** covers Europe, the Middle East and parts of Central Asia; **LACNIC** covers Latin America and parts of the Caribbean; **ARIN**, **AFRINIC** and **APNIC** serve other regions.
  • The **Wayback Machine** stores historical website captures. Archived pages and banners may reveal former technologies or addresses, but incomplete or stale captures do not prove a current configuration.

Assessment tools and limitations

  • **Nmap** discovers hosts and services. Its scripting engine uses **.nse** files; a common Linux script directory is **/usr/share/nmap/scripts**. Installation paths vary by platform and package.
  • **Nessus** primarily assesses vulnerabilities and configuration. **Metasploit**, **Core Impact** and **CANVAS** are exploitation frameworks; a scanner finding does not establish successful exploitation.
  • **tcpdump** captures packets and displays command-line output; **Wireshark** provides graphical decoding. Raw hexadecimal or ASCII views are representations of captured bytes, while protocol decoding interprets those bytes.
  • Scanners can miss assets behind filters, require credentials, or misidentify versions. Favor **passive discovery** in fragile OT environments; validate active tests and use approved maintenance windows.

CVSS and risk prioritization

  • **CVSS v3.1** has **Base**, **Temporal** and **Environmental** metric groups. Base describes intrinsic severity; Temporal reflects changing conditions; Environmental adapts the score to a deployment.
  • Base **exploitability** uses **Attack Vector**, **Attack Complexity**, **Privileges Required** and **User Interaction**. Base **impact** considers confidentiality, integrity and availability, with Scope affecting the score.
  • Temporal metrics are **Exploit Code Maturity**, **Remediation Level** and **Report Confidence**. Attack Vector and User Interaction are Base metrics. Read the declared CVSS specification before interpreting metric names.
  • A **severity score** is not a complete risk decision. Combine exploit activity, exposure, process criticality and compensating controls; plan patches around safe validation and recovery requirements.

Malware, attack paths and recovery

Malware delivery and actors

  • A **dropper** places or installs a payload. A **downloader** retrieves one; a **stager** prepares or loads a later stage. Malware families can combine these roles.
  • A **drive-by compromise** exploits a visit to malicious or compromised content. A **watering-hole attack** compromises a site used by the intended targets. A poisoned installer or update is a **software supply-chain** path.
  • A **zero-day vulnerability** is unknown to the relevant defender or lacks an available fix when exploited. Disclosure before patch availability creates exposure but does not by itself prove active exploitation.
  • **Hacktivism** uses cyber activity to promote a cause. Criminal, ideological, insider and state-linked actors differ in motives and resources; identity alone does not establish their technical capability.

Industrial and general malware

  • **Stuxnet** targeted industrial processes by manipulating **Siemens S7 PLC** logic through engineering software. Compromised control logic and misleading operator views can produce physical effects.
  • **Havex** is associated with industrial espionage and OPC-related discovery. **Flame** is espionage malware; **Code Red** targeted IIS web servers. Distinguish industrial targeting from malware that merely reaches an OT workstation.
  • **WannaCry** combined ransomware with worm-like spread through **SMBv1** vulnerabilities addressed by **MS17-010**. Legacy SMB exposure can bridge business and operational environments.
  • **SMB** provides file sharing and related services. **IPC$** supports interprocess communication over named pipes; **ADMIN$** and **C$** are administrative shares. Share names and an SMB protocol vulnerability are different concepts.

Operational response and recovery

  • **Containment** must preserve a safe process state. Coordinate with operators before disconnecting controllers, blocking dependencies or shutting down an engineering workstation.
  • Protect against known malware with validated patches, restricted services, application allowlisting and controlled removable media. Verify supplier packages and updates before deployment.
  • Keep **offline or protected backups** of controller logic, device configurations and supporting systems. Test restoration, rebuild dependencies and define who authorizes the return to service.
  • During recovery, compare configurations and process behavior with trusted baselines. Restore visibility and required communications, verify safe operation, and retain evidence for root-cause analysis.