arXiv:2608.26882cs.CRAug 2026

Manuscript Offprint

arXiv:2608.26882

PLCBench: Can Autonomous LLM Agents Turn PLC Access into Sustained Physical Impact?

Yitian Zhou, Jingyu Zheng, Qiliang Jiang, Linkang Du, Haoming Liu, Lichao Wu, Shiyi Zhao, Mengxiang Liu, Ruilong Deng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Industrial control systems (ICSs) rely on programmable logic controllers (PLCs) to connect networked computation with physical control. Tool-using large language model (LLM) agents represent an emerging attack threat: can an autonomous agent convert a network-reachable PLC into sustained adverse physical impact? However, existing evaluations focus on digital tasks or individual stages of PLC testing. In ICSs, evaluations that stop at software exploitation, an accepted write, or tool access may therefore mischaracterize physical risk.

We present PLCBENCH, to our knowledge, the first real-PLC hardware-in-the-loop (HIL) framework for characterizing this cyber-to-physical capability and its boundaries. It combines vendor-native interaction, commercial PLC execution, closed-loop reduced-order process simulation, and independent outcome verification. A deterministic evaluator applies fixed rules to runner, communication, PLC-object, and process records to assign six hidden diagnostic flags, distinguishing usable PLC interaction, process-linked manipulation, and sustained physical impact. We instantiate PLCBENCH on four commercial PLCs crossed with four closed-loop workloads. Across five LLM families and 240 real-PLC episodes, 75 episodes (31.3%) sustain their respective physical objectives. Stagewise results show that 98 episodes stop before a valid native read, whereas 62 reach a process-linked write but do not sustain the final objective. Notably, richer process observation is associated with an increase in conditional objective attainment after a process-linked write from 44.2% to 64.0%. These measurements localize failure in configured PLC-process deployments and identify intervention points for future defense evaluation. To support reproducibility, we describe a release boundary for the safely disclosable PLCBENCH code and a software-only reproduction pipeline, which will be made available through a separate artifact release.

1 Introduction

Industrial control systems (ICSs) coordinate physical processes across critical infrastructure, so cyber compromise can cause operational disruption and safety consequences [24,34]. Programmable logic controllers (PLCs) sit at this cyber-physical boundary. They execute control logic that drives the process while exposing network services to engineering and supervisory systems [24,30]. Stuxnet, BlackEnergy, and Triton showed that compromised industrial control or protection functions can affect physical operations [17,19,20,33]. More recently, CERT Polska reported destructive activity involving both information-technology systems and industrial devices [4]. A security evaluation of a configured, network-accessible PLC-process deployment must therefore go beyond finding an open service or an accepted write. It must determine whether that access can produce a sustained hazardous physical condition.

Tool-using large language model (LLM) agents introduce an emerging attack threat at this security boundary. They can autonomously probe unfamiliar systems, identify viable attack paths, execute state-changing actions, and adapt subsequent steps from live feedback with limited human guidance. General benchmarks evaluate this behavior in interactive software environments [22, 40]. Cybersecurity benchmarks extend it to penetration testing and interactive security tasks [7, 41, 44], including real vulnerabilities [46]. These evaluations demonstrate increasingly capable automation of digital cyber tasks, but software exploitation, an accepted write, or an individual tool permission is only an intermediate outcome in ICSs. A valid PLC write may be process-irrelevant, overwritten by control logic, or insufficient to sustain a physical condition.

Existing works cover complementary parts of this PLC security evaluation path. Prior PLC/ICS security studies analyze controller behavior, automate security testing, or connect cyber activity to process-level effects [14, 29, 32, 37, 45], establishing increasingly realistic evaluation on controllers and closed-loop processes. More recent LLM-based systems bring language models and agents into PLC engineering and security tasks, including code generation, controller testing, and attack synthesis [5, 6, 11, 23]. These two lines of research con-tribute critical elements to the overall evaluation framework. However, the existing works barely provide a comprehensive end-to-end assessment of the attack capabilities of an online autonomous agent that (i) interacts via vendor-native interfaces with heterogeneous, real programmable logic controllers (PLCs), (ii) adapts its behavior based on closed-loop process feedback, and (iii) achieves a physically realized objective that is independently verified. Table 1 summarizes this landscape. Its four columns capture online agent interaction, real-PLC execution, closed-loop process integration, and physical validation.

Table 1: Representative ICS and LLM/Agent Security Studies

System / StudyOnline agentReal PLCClosed-loop processPhysical validation
ICS securityVetPLC [45]×○✓○
SCAPHY [14]×○✓✓
PLCHound [29]×✓××
ICSFlux [32]×✓✓✓
LLM / AgentLLM4PLC [11]○✓✓○
Agents4PLC [23]○○○○
LogicFuzz [5]○✓××
LLM attack synthesis [6]○✓×○
OursPLCBench✓✓✓✓

√ yes; ○ partial, indirect, or not the primary evaluated objective; × no.

We investigate the extent to which a tool-augmented LLM agent can translate PLC reachability into sustained physical impact, and we systematically characterize the conditions and failure modes under which this capability breaks down. Three technical challenges remain to answer this question. First, long-horizon agent interaction must remain reliable across heterogeneous real PLCs over extended execution periods without abstracting away vendor-native protocol and runtime behavior. Second, binary outcomes are insufficient: evaluation must localize capability progress from interface acquisition to sustained physical impact using independent evidence. Third, persistent PLC and process state complicates fair repeated measurement, requiring automated reset, verification, and consistent execution across runs.

To this end, we present PLCBENCH, a modular LLM-powered hardware-in-the-loop (HIL) framework for real-PLC security evaluation. It combines a common agent framework, a closed-loop PLC-process platform, and a deterministic evaluator. The agent framework uses a fixed prompt contract, audited tools, and deterministic context management. In the HIL platform, each process workload defines executable plant dynamics, sensor–actuator roles, visible feedback, and the physical objective. Each PLC integration provides native access, the controller program and object binding, and reset and evidence configuration. Hidden runner, network, PLC, and process evidence produces six diagnostic flags. Explicit model, PLC, and workload interfaces allow components to be recombined without changing the episode loop or evaluator. Our contributions are:

  1. We introduce PLCBENCH, a modular framework for evaluating LLM-agent cyber-to-physical capability through plug-and-play composition of configured LLM backends, commercial PLCs, and process workloads. Explicit interfaces retain each controller's native runtime semantics while allowing models, controllers, and workloads to be recombined under a common episode and evaluation loop.

  2. We develop a dedicated long-horizon agent framework and measurement workflow. Audited tools and deterministic context management support native PLC interaction, while hidden multi-source evidence and verified resets localize failure to interface acquisition or physical conversion.

  3. Across five LLMs, four commercial PLCs, and four workloads, 75/240 episodes reach impact (31.3%) over 118.0 aggregate PLC-hours, with at least one successful episode in all 16 PLC-workload configurations. Stagewise results reveal two distinct barriers in interface acquisition and impact conversion, while richer process observation raises conditional post-write objective attainment from 44.2% to 64.0%. Together, these results characterize the breadth, bottlenecks, and feedback sensitivity of current LLM-agent attack capability.

The rest of the paper provides background in Section 2, describes the framework and its implementation in Sections 3 and 4, and presents the evaluation in Section 5. Sections 6 and 7 discuss the findings and related work, followed by the conclusion in Section 8.

References (42)