Five U.S. agencies say hackers are using artificial intelligence to write exploit code for internet-exposed Siemens S7 programmable logic controllers — the industrial computers that open valves, run pumps and control machinery across water, energy and manufacturing plants.
The joint advisory, published August 19 by the National Security Agency, the Cybersecurity and Infrastructure Security Agency (CISA), the FBI, the Department of Energy and the Environmental Protection Agency, covers the S7-200, S7-300, S7-400, S7-1200 and S7-1500 controller families, including F-series safety models. According to the agencies, threat actors scan the internet with tools such as Censys and ZoomEye for S7 devices left reachable over port 102, the S7comm protocol port, then pair open-source automation libraries like python-snap7 with AI-generated scripts to read a controller’s data and, in some cases, rewrite its logic.
“Not a theoretical risk”
“Using AI to generate exploitation scripts represents an evolution in threat actor capabilities, dramatically reducing the technical expertise and time required to develop working ICS exploitation scripts,” the agencies wrote, calling the activity “not a theoretical risk — it is an active threat.”
Targeted sectors include critical manufacturing, energy, water and wastewater treatment, chemical processing, and food and agriculture, the advisory says. Because some flagged S7 models also run safety-instrumented functions, the agencies warn that a successful intrusion could go beyond data theft to equipment damage or safety incidents.
The warning extends a pattern security researchers have raised all year: as AI-driven cyberattacks grow more autonomous, the same automation that helps defenders is also helping attackers skip past the manual work that once slowed them down. It echoes separate findings that AI systems can independently produce malicious code, even outside a deliberate attack.
What operators are told to do
The agencies recommend that operators of critical infrastructure inventory every Siemens S7 device on their networks, apply Siemens’ security patches, take controllers off the public internet, strengthen access controls, and monitor for signs of compromise. CISA has pushed the same core advice — keep industrial controllers off the internet — for years; what has changed, the agencies say, is how quickly AI now lets an attacker turn a public internet scan into working exploit code, shrinking plant operators’ cybersecurity response window.