Last reviewed 18 min read

Exploitation

SCADA/HMI Security

SCADA servers and HMI systems hold the process view an operator acts on, and often the connection to the devices behind it.

Lab only, unless the action is a read

The technique classes on this page run against a local instance of the product (a gateway, a historian, a database) with a simulated device behind it, never against the plant's own servers. Database command execution, library planting, gateway reconfiguration and anything that writes a tag or a history value change what an operator sees or what the archive records, and both can trigger a plant response that is outside anyone's control. Reading a page, enumerating endpoints, browsing an address space and listing tags are safe on live plant and are what most of this page asks you to do. Where a step would write, it is described as adversary behaviour rather than given as an action.

SCADA Architecture

SCADA Components

  • MTU - Master Terminal Unit (central server)
  • RTU - Remote Terminal Unit (field device)
  • HMI - Human Machine Interface
  • Historian - Data archive
  • OPC Server - Protocol translator

Common SCADA Software

  • Wonderware (AVEVA)
  • FactoryTalk (Rockwell)
  • WinCC (Siemens)
  • Ignition (Inductive Automation)
  • ClearSCADA (Schneider)

The component list is less useful than the trust boundaries between the components. A controller reads the process, a server or gateway polls the controller, and an operator station renders what that server says. Every hop in that chain is a place where the operator's view can diverge from the plant's state, and the divergence is what makes this layer worth attacking at all.

One distinction runs through the rest of the page: compromising the operator station changes what a human believes, and compromising the controller changes what the process does. The first is often sufficient. An operator who reads a normal pressure and therefore takes no action is a physical consequence delivered through a screen, but the two are different findings. They are proved by different evidence, they are remediated by different controls, and a report that blurs them cannot be acted on by either the network team or the process engineers.

The deployment shape decides what an attacker has to reach. A thick-client station runs the vendor's application and often the protocol drivers locally, so access to that host gives you the protocol stack, the cached project and the credentials the application stored. A thin client is only a session (RDP, a published application, a browser) onto a server that holds both the logic and the connections to the plant; owning the session gives you the operator's authority, while owning the server gives you every session it publishes. A web HMI is a thin client with no client software at all, which is the point of it and also why its gateway becomes the entire surface.

HMI Vulnerabilities

Web-Based HMI Attacks

A web-based HMI is an ordinary web application with an unusual consequence. Its session carries authority over a process, its pages are generated from a tag database, and its output is read by a person who may act on it physically. Test it the way you would test any authenticated application: session handling, authorisation on every action rather than every page, input handling in alarm, trend and comment fields, and file handling in report and export endpoints. Then add the part that has no IT equivalent: an error message, a stale page or a replayed value is not a cosmetic defect here, it is a decision input.

The endpoints are discovered, not guessed. Read the JavaScript the gateway serves, walk the menu tree with a session of your own, and check what the gateway publishes about itself. A fixed list of paths guessed against a product you have not identified produces noise in the operator's alarm log and nothing else. Identification comes first, from the response headers, the certificate and the vendor's own version endpoint, and it is also what tells you which published advisories apply.

Web HMI Identification
# Identify first: what is serving this page, and what does it load?
curl -sI https://hmi.example/            # server header, cookies, security headers
curl -s  https://hmi.example/ | grep -o 'src="[^"]*\.js"' | sort -u

# Then read the bundle for the routes it calls, and walk those routes with a
# session. A route that appears in the bundle and in a menu is a route the
# vendor supports; one that appears only in the bundle is usually internal.

The classes worth testing, and what each one would mean here: a path or filename parameter that reaches the filesystem exposes project files and configuration, which hold the tag database and often a stored credential; a query built by string concatenation against the alarm or trend store exposes history and, on some products, the account the service runs under; a diagnostic page that shells out to a system command turns a web request into host access; and unsanitised alarm text is stored cross-site scripting with a guaranteed audience, because the next operator to open the alarm summary receives it. None of these needs a product-specific path to be worth reporting. The parameter shape is enough to open the finding, and the product identifies the advisory.

Desktop HMI Attacks

A station that still runs the application is usually a station whose operating system no longer receives vendor security updates, because the plant's change control forbids the unplanned patch. The finding is real, but record it as the platform plus the vendor constraint that keeps it there, and put it in the zone risk assessment. A version number on its own tells the reader nothing they can act on.

Library loading is the classic escalation on these hosts: HMI applications have loaded libraries from directories they did not control, so an attacker who could write to the install or working directory had code run with the operator's rights. That is a description of the class, not an action. The test is whether the application loads from a writable path, which a process monitor shows you without placing anything; the control is application allowlisting plus directory permissions. The same reasoning applies to configuration files, which are frequently plain text and frequently hold database credentials and server addresses, and to project archives, which hold the logic and the network map.

inventory-station.ps1
# Read-only inventory of a station you are authorised to inspect
Get-ChildItem -Path C:\ -Recurse -Include *.acd,*.s7p,*.stu,*.aaPKG -ErrorAction SilentlyContinue

# Extensions worth recognising, and what they actually are:
#   .aaPKG   AVEVA/Wonderware InTouch application package
#   .ACD     Rockwell Studio 5000 controller project (not an HMI project)
#   .ap*, .zap*   Siemens TIA Portal project and archive
#   .STU, .XEF    Schneider Unity/EcoStruxure project files

# Read the extension off the file, not off the folder it sits in.

The station is also a place where a read is already sensitive, which is the part most assessments miss. Its screen shows the process state before you touch anything, its alarm history is a record of what has gone wrong and how the plant responded, and its startup scripts and shortcuts frequently carry credentials for the historian or the database. None of that requires exploitation to collect; all of it belongs in the report with the same care as a credential would get anywhere else.

SCADA Server Attacks

Database Exploitation

Almost every SCADA product keeps its configuration and alarm history in a relational database, and the account the product uses to reach it is the account that matters. The questions to answer are about that account's authority rather than about the database engine's version: is it a member of the sysadmin role, is command execution enabled on the instance, and does the historian write through the same account the HMI reads with. An account that can execute operating-system commands on the SCADA server is a finding you can demonstrate on a lab copy of the product; there is no reason to demonstrate it on the plant's own instance, and the demonstration is not what the finding needs.

Instance Inventory
# What the instance exposes, without touching its data
nmap -p 1433 --script ms-sql-info 192.168.100.10

# Then, from the product's own configuration or the DBA:
# - the account the SCADA service authenticates as
# - that account's server roles
# - whether command execution is enabled, and who may call it
# - which tables hold alarm history and audit records

The alarm history is the table that changes the nature of the incident. It is the record used to reconstruct what happened, to release a batch and to answer a regulator, so an attacker with write access to it can remove their own evidence without touching the process at all. It is a different compromise from a value write, and worth saying so explicitly in the report.

OPC Server Exploitation

An OPC UA server publishes its own endpoint list before any session exists, and that list is the cheapest thing to collect on a SCADA network: each entry states a URL, a security policy and a security mode, and the server's identity token policies say whether anonymous access is offered at all. An endpoint offering a security policy of None accepts plaintext sessions; a server that offers only certificate-based policies rejects a client whose certificate it does not trust, which is a control and should be recorded as one. Nothing about this step writes anything.

opcua-enumerate.py
import asyncio
from asyncua import Client

URL = "opc.tcp://192.168.100.10:4840"

async def main():
    # Discovery service: no session, no credentials, nothing to authenticate.
    discovery = Client(URL)
    for endpoint in await discovery.connect_and_get_server_endpoints():
        print(endpoint.EndpointUrl, endpoint.SecurityPolicyUri, endpoint.SecurityMode)
        for token in endpoint.UserIdentityTokens:
            print("  identity token:", token.TokenType)

    # Browsing is read-only. Anonymous works only when the endpoint list above
    # offered an anonymous token policy.
    session = Client(URL)
    async with session:
        async def browse(node, depth=0):
            if depth > 4:
                return
            for child in await node.get_children():
                print(" " * depth + str(await child.read_browse_name()))
                await browse(child, depth + 2)

        await browse(session.nodes.objects)

asyncio.run(main())

The older OPC DA interface is a different problem: it rides on DCOM, so the reachable surface is a set of Windows RPC endpoints and the access decision is made by Windows permissions rather than by the protocol. A host that can authenticate in the same domain is often able to enumerate the server's items without any ICS-specific tooling. Record the DCOM configuration and the account the server runs as; those two decide who can talk to it.

Historian Exploitation

Historians store time-series data from SCADA systems. They often contain years of operational data and may have weak access controls. The products you will meet are AVEVA's PI Data Archive and its Wonderware historian, GE Proficy Historian, Honeywell PHD and AspenTech IP.21.

A historian is two assets in one. As a data source it describes the plant better than any document: normal ranges, which loops oscillate, when shifts change, which equipment is idle at which hour, and where the alarm thresholds sit. All of that is the reconnaissance an attacker needs to choose a moment and a target, and it is available to anyone the archive will answer. As a write target it is the opposite kind of asset: a value written into history changes the evidence rather than the process, which makes it attractive to someone who wants a past event to look like it did not happen.

Historian Reachability
# PI Data Archive and its companions listen on fixed ports
#   5450  PI Data Archive
#   5457  PI AF Server (asset framework)
#   5459  PI SQL for AF clients (PI OLEDB Enterprise)
nmap -p 5450,5457,5459 192.168.100.20

# The client question is not "can I connect" but "who am I to this server":
# PI identities are mapped to Windows identities on the Data Archive, and the
# mapping, not the network path, decides what the session may read or write.

The identity model is where historian assessments usually stop being accurate. Access is granted to a PI identity, and a Windows or directory account reaches it only through a mapping configured on the archive; a mapper account is what performs that translation, so the effective permission is the intersection of the mapping and the target's security. On the client side, the supported library is the AF SDK. The AF Client and its asset model replaced the older PI SDK, and a host that still has the PI SDK installed is running a client the vendor has superseded, which is worth recording on its own. Writing to a tag is a permission on the archive, so the read-only question of which identities can write to which points is answered from the security configuration rather than by attempting a write.

Engineering Workstation Attacks

The engineering workstation is the highest-value host in the zone, because it holds the programming software, the network drawings, the project backups and the credentials for every controller it touches. It is also frequently the only place a particular program version exists, which makes it a destruction target as much as an access target: a workstation that is lost takes the recoverable copy of the logic with it.

workstation-inventory.txt
# What an engineering workstation holds:
# - PLC programming software and its licence
# - Network diagrams and address lists
# - Project backups, often the only copy
# - Credentials for controllers, servers and databases

# Project files to look for, by vendor:
# Siemens: *.ap1*, *.s7p, *.zap* (TIA Portal projects and archives)
# Allen-Bradley: *.ACD (Studio 5000 projects)
# Schneider: *.STU, *.XEF (Unity projects)

# These may contain controller addresses, stored passwords and the complete
# control logic. If the project archive is the only copy, say so.

Programming software on these hosts commonly runs with administrator rights, and the operator account is often a local administrator too, which means a session on the console is control of the host rather than access to one application. That is the pivot to record: not that a vulnerability exists, but that the account which runs the tool can also reach the controllers the tool manages, so the workstation's own segmentation is the control that limits the blast radius.

Protocol Gateway Attacks

A protocol gateway translates between two dialects, Modbus on one side and EtherNet/IP or OPC UA on the other, and in doing so it republishes one side's address space to the other. That republication is the security property to assess: which ranges are published, in which direction, and whether the upstream side can write through to the downstream one. A gateway that publishes the full register map exposes more than the consumer needs, and a bidirectional mapping turns a read-only reporting path into a control path.

The devices themselves usually carry a web interface for configuration and sometimes a serial or Telnet console, frequently with the credentials the integrator set and nobody changed. Enumerating which management interfaces answer, and from which zone, is a read. Reconfiguring a gateway, whether that is its routing, its register map or the values it passes, is an attack that shows up as false data at the controller, and it belongs to a lab copy of the device rather than the installed one. Many of these devices run an embedded Linux system, so the ordinary embedded-device classes apply once you have access, which is an argument for keeping their management interfaces off every routable path.

Common HMI/SCADA CVEs

The rows below were checked against the CVE record for the affected products and the mechanism, and they are examples of the classes above rather than a target list. Two mistakes recur when these numbers are quoted: a CVE is attributed to the wrong product, or a broadly affected product family is reduced to the one variant someone happened to test. Read the record, match the catalogue number and firmware range, and quote the consequence the vendor published.

CVE Product Vulnerability
CVE-2020-10644 Inductive Automation Ignition Gateway Deserialisation of untrusted data; sensitive information disclosed
CVE-2020-25159 499ES EtherNet/IP adaptor Stack buffer overflow from a crafted ENIP packet; denial of service or code execution
CVE-2021-22779 Schneider Modicon M580 / M340 Authentication bypass by spoofing Modbus traffic between tool and controller
CVE-2022-2003 AutomationDirect DirectLOGIC D0-06 Password returned in cleartext over the serial programming port

SCADA/HMI Testing Checklist

HMI Systems

  • Identify the product and version before testing any route
  • Test the web interface as an authenticated application
  • Check which account the application runs as on the host
  • Analyse project and configuration files for credentials and addresses

SCADA Servers

  • Establish the database account's roles and what it can execute
  • Enumerate OPC UA endpoints and their security policies
  • Record the DCOM configuration where OPC DA is in use
  • Map the inter-process paths between the product's own services

Historians

  • Establish which identities can read each tag group
  • Check whether anonymous or broad read access is offered
  • Assess the integrity controls on the archive, not only its access
  • Confirm write permission is a configuration question, not a test

Operator Impact

When testing HMI systems, consider the impact on operators. A crashed HMI means operators lose visibility into the process. Always have a rollback plan and test during planned downtime.

Read an Operator's View

Run a local Ignition gateway with a simulated device behind it. Its OPC UA server is part of the gateway, so a client can enumerate the endpoint, browse the address space, and record which tags answer before you authenticate. Done when you can list the tags the server exposed and say, for each, whether it is a process value, a setpoint or something that would be a write target — without writing anything.

Local SCADA Gateway With A Simulated Device Custom Lab medium
Local SCADA instanceOPC UA endpoint enumerationAddress-space browsingClassifying tags by consequence

Evidence to Capture

SCADA findings are about who can reach the operator interface and where the data path runs, not about a missing patch count.

Interactive path: The route from the corporate zone to any HMI or SCADA server: the rule, the protocol (RDP, HTTP, VNC), and the zone crossing. An interactive path to the operator console is the finding even when the credentials are strong.

Historian data path: Replication direction, the account it uses, and whether the replica sits in the DMZ. A bidirectional replication carrying a write-capable account across the boundary defeats the purpose of the mirror.

Workstation position: The engineering workstation network location, its routes, and whether it also has email or internet access. A dual-purpose machine in the control zone is the classic path for ICS malware.

Gateway exposure: The protocol pair the gateway translates, the register or node ranges published, and the direction. A gateway publishing the full register map exposes more than the upstream consumer needs.

Recovery evidence: The configuration backup of each HMI and SCADA server with its restore date, plus the last tested restore. A backup that has never been restored is a guess about recovery time.

Likely False Positives

An exposed interface inside the operations zone is often behaving as designed.

  • HMI web UI reachable from operations: Reachable from the operations VLAN alone is the intended design. The finding appears when the path starts in the corporate or vendor zone.
  • Historian account with broad read: A read-only service account across all tags is normal for a historian. Check whether it can write and whether the replica is one-way before scoring it.
  • Gateway with a partial register map: Publishing a curated subset is the control, not a defect. Compare the published range with the consumer requirement.
  • Unpatched HMI under vendor restriction: Where the vendor forbids patching without recertification, isolation plus application allowlisting is the accepted compensating position. Record it as such.
  • Vendor tool reachable on a maintenance port: A port open only during a supervised window is a controlled path. Permanent reachability is the finding.

Review Checklist

Reachability

  • ☐ List every interactive protocol path into the SCADA zone with its source zone.
  • ☐ Confirm no corporate workstation or vendor laptop has a direct route to the HMI.
  • ☐ Check the operator console cannot reach the internet or email.
  • ☐ Confirm remote access crosses a jump host in the DMZ rather than the firewall directly.

Data paths

  • ☐ Confirm historian replication is one-way and lands on a DMZ replica.
  • ☐ Check the gateway publishes only the required register or node ranges.
  • ☐ Confirm the data path cannot initiate writes back into the control zone.
  • ☐ Check the tag and node naming does not expose process detail beyond need.

Patch and recovery

  • ☐ Map installed versions to the vendor advisories and record which are accepted with compensation.
  • ☐ Confirm application allowlisting is enforced on the HMI and engineering workstation.
  • ☐ Check a restore was tested and its duration recorded against the recovery objective.
  • ☐ Confirm the backup is stored outside the zone it protects against losing.

Remediation

Mediate the path, then protect recovery

Structural

  • • Remove direct corporate-to-HMI paths and require every operator or vendor action to arrive through a DMZ jump host with session recording.
  • • Make historian export one-way: a replica in the DMZ written from the control zone, with the corporate side reading only from the replica.
  • • Replace a broad protocol gateway with a mediated one that publishes a named node or register subset in one direction.

Compensating

  • • Where the HMI cannot be patched, enforce application allowlisting and record the vendor constraint in the zone risk assessment.
  • • Keep a tested restore image offline and record the measured recovery time.