arXiv:2609.06306cs.CRSep 2026

Manuscript Offprint

arXiv:2609.06306

MARS: Detecting Unauthorized Variable Manipulations in Multi-Application PLC Runtimes

Syed Ghazanfar Abbas, Dongyan Xu

Abstract

Programmable Logic Controllers (PLCs) increasingly run multiple applications alongside the main control program, with shared access to PLC variables. Yet, Industrial Control System (ICS) defenses primarily detect malicious updates by checking whether variable values violate expected bounds, without considering which application performed the update. A malicious application can exploit this gap by modifying variables within normal bounds while still driving the physical process toward an unsafe state. Even when such manipulation is detected, operators cannot identify the responsible application because PLCs do not associate variable updates with application identity.

We present MARS, an automated framework for application-level authorization and attribution of PLC variable manipulations. MARS profiles applications on an isolated virtual PLC (vPLC) to derive application-specific variable-access policies and uses a shadow vPLC during operation to attribute production-PLC updates to individual applications without instrumenting the production controller. MARS also detects manipulations that occur only on the production PLC and therefore have no corresponding update on the shadow vPLC. We evaluate MARS on manufacturing, chemical, and water-treatment systems against attacks in which unauthorized applications manipulate PLC variables while remaining within normal bounds. Our results show that MARS detects these manipulations and identifies the responsible application.

1 Introduction

Programmable Logic Controllers (PLCs) have been repeatedly targeted in attacks against critical infrastructure, where adversaries manipulated PLC variables to influence physical processes. In 2026, the National Security Agency (NSA) and partner agencies warned that cyber actors were actively targeting PLCs across critical-manufacturing, energy, water, and chemical sectors using AI-generated exploitation scripts disguised as legitimate monitoring tools [26]. Earlier incidents demonstrated the physical consequences of PLC-variable manipulation: Stuxnet altered centrifuge-control variables on Siemens PLCs while concealing the resulting physical behavior from plant monitoring [14], and the Oldsmar water-treatment intrusion attempted to modify a chemical-dosing setting to a dangerous level [31]. Similar attacks have affected power distribution [7] and manufacturing systems [25, 38].

Multi-Application PLCs. Modern PLCs are increasingly becoming multi-application platforms. Alongside the main control program [35], operators deploy vendor- and third-party applications within the PLC runtime for visualization, diagnostics, logging, maintenance, communication, and cloud connectivity [10, 12, 32]. These applications extend PLC functionality, but they can also access variables used by the control program to make control decisions [1]. If one of these applications is vulnerable or compromised, an attacker can modify such variables without altering the control program itself [29]. The unchanged control program can then consume the manipulated value and drive the physical process accordingly.

Application-Agnostic ICS Defenses. Existing ICS defenses largely detect PLC-variable manipulation by determining whether observed values or process behavior violate expected constraints [1, 8, 15, 20, 41]. Such defenses detect abnormal process behavior, but generally reason about the resulting value or state rather than the runtime application that produced the modification. In a multi-application PLC, the same variable may be accessible to multiple co-running applications, while each application has a different authorization scope. Observing a valid variable value therefore does not establish that the application responsible for the write was permitted to modify that variable.

This gap affects both attack detection and operator response. A compromised application may change a valid setpoint, mode, or control variable to alter production, dosing, or actuator behavior while keeping the resulting value within expected ranges. Even when such a manipulation eventually produces an observable anomaly and is detected, the operator may still be unable to determine which co-running application caused the modification because commodity PLC runtimes generally do not expose writer identity. Identifying the responsible runtime application is therefore necessary not only for detecting unauthorized writes that remain value-valid, but also for diagnosing the source of detected manipulations and supporting targeted response.

Approach. We present MARS¹, an automated framework for detecting unauthorized PLC-variable writes and recovering their runtime-application origin in multi-application PLC runtimes. MARS uses instrumented virtual PLCs (vPLCs) to recover application-labeled variable writes and runtime-application execution information without modifying the live production controller.

Before deployment, MARS runs the PLC project and its runtime applications on an isolated instrumented vPLC. This allows MARS to observe which applications write monitored variables and validate those writes against an operator-supplied policy specifying which applications are authorized to modify each variable.

During plant operation, MARS runs an instrumented shadow vPLC alongside the live PLC. The live PLC provides the variable modifications that actually occur, while the shadow provides runtime-application execution information that the live PLC does not expose. MARS aligns the two controllers at control-cycle granularity rather than assuming timestamp-level lockstep.

The central challenge is that a malicious write may occur only on the live PLC and therefore have no corresponding write on the shadow. For each live-PLC modification, MARS first checks for a corresponding application-labeled write on the shadow vPLC. If none exists, MARS uses nearby shadow-vPLC application executions as bounded candidate evidence of the possible writer. It reports a unique application only when the available evidence supports one; otherwise, it preserves ambiguity and reports only the authorization conclusion supported by the candidate set.

We evaluate MARS on manufacturing, chemical-processing, and water-treatment systems using 15 application-level attacks in which compromised runtime applications modify PLC variables while keeping the written values within their legitimate domains. MARS detects all 15/15 attacks during pre-deployment validation. In the harder setting, the malicious branch executes only on the live PLC and does not appear on the shadow. Across 150 repeated live-PLC executions, MARS identifies all evaluated authorization violations and uniquely attributes the responsible runtime application in 140/150 runs (93.3%); the remaining 10 executions are reported with ambiguous origin, with no incorrect unique attribution. Across 59,810 held-out benign PLC-variable updates, MARS produces no false unauthorized-write alerts. Median application-aware decision latency ranges from 24.3–32.7 ms across the three evaluated platforms.

Figure

Figure 1: Multi-app PLC runtime and MARS threat model.

In summary, this paper makes the following contributions:

  • Application-level PLC-variable authorization. We identify a security gap in multi-application PLC runtimes where a PLC-variable value can remain legitimate while the runtime application performing the write is not authorized to modify that variable.

  • Black-box pre-deployment write validation. We recover application-labeled PLC-variable writes from closed-source runtime applications on an instrumented vPLC and validate them against independently supplied application write policies, enabling unauthorized writes to be detected before deployment.

  • Evidence-based attribution of live-PLC-only writes. We design a shadow-vPLC technique that detects PLC-variable modifications that occur only on the live PLC and uses bounded runtime-application execution evidence to attribute their origin when the evidence is sufficient, while explicitly preserving ambiguity otherwise.

  • Cross-platform evaluation. We evaluate MARS on three ICS testbeds using 15 application-level attacks. MARS detects all evaluated attacks, uniquely attributes the responsible application in 140 of 150 live-PLC executions (93.3%), reports the remaining 10 as ambiguous with no incorrect unique attribution, produces no false unauthorized-write alerts across 59,810 benign updates, and achieves 24.3–32.7 ms median application-aware decision latency.

References (26)