U.S. federal agencies, including the NSA and CISA, have issued a joint advisory warning of an active threat campaign targeting Siemens S7 Series Programmable Logic Controllers (PLCs) within U.S. critical infrastructure. According to a CYFIRMA intelligence report from August 28, 2026, threat actors are leveraging Artificial Intelligence (AI) to accelerate the development of exploit scripts. The campaign involves scanning the internet for exposed PLCs and then using these AI-generated tools, which are based on open-source libraries like python-snap7, to probe the devices. This activity is currently assessed as reconnaissance and capability development, indicating that attackers are preparing the battlefield for potential future disruptive or destructive attacks against the nation's critical infrastructure.
The campaign represents a significant evolution in OT/ICS threats by incorporating AI into the attack lifecycle. This lowers the barrier to entry for less sophisticated actors and speeds up development for advanced ones.
python-snap7 library. This library provides functions for communicating with Siemens S7 PLCs.The ultimate goal appears to be pre-positioning assets for a future attack that could disrupt physical processes in critical sectors.
The use of AI to generate the exploit code is the novel aspect of this campaign. By providing an LLM with the python-snap7 library documentation and a malicious objective (e.g., "write a script to read all memory blocks from an S7-1200 PLC at a given IP address"), an attacker can quickly generate functional code without deep programming or protocol expertise.
T0886 - Remote Services: Attackers are scanning for and connecting to the S7 communication service (typically on TCP port 102).T0845 - Program Download: The malicious scripts can be used to read or modify the ladder logic program running on the PLC.T0831 - Manipulation of View: By manipulating the PLC's memory, attackers could alter the data being sent to HMI screens, hiding their malicious activity from human operators.The campaign targets a broad range of the Siemens S7 family, which are ubiquitous in industrial environments worldwide.
The targeted sectors include energy, water and wastewater, critical manufacturing, chemical, food and agriculture, and the defense industrial base.
While the current phase is reconnaissance, a successful follow-on disruptive attack could have catastrophic consequences:
The use of AI to scale these attacks means that a larger number of devices could be targeted more quickly than in previous campaigns.
The following patterns may help identify vulnerable or compromised systems:
102python-snap7 or snap7.dllUnusual S7comm trafficAsset Inventory: Identify all Siemens S7 PLCs within the environment and determine if any are exposed to the internet. Use public scanners like Shodan or Censys to check your own IP ranges for exposed port 102.
Network Security Monitoring (NSM): Deploy NSM solutions with deep packet inspection (DPI) for industrial protocols like S7comm. Baseline normal communication patterns and alert on anomalies, such as connections from untrusted sources or unexpected function calls (e.g., program block uploads/downloads). This is a direct application of D3FEND's Network Traffic Analysis.
Host-Based Monitoring: On engineering workstations, monitor for the presence and use of tools like python-snap7. Their execution from non-standard user accounts or scripts is highly suspicious.
Federal agencies have issued strong recommendations for all critical infrastructure asset owners:
Isolate Control Systems: The most critical mitigation is to ensure that no PLCs or other ICS/SCADA devices are directly accessible from the internet. All remote access should be managed through a secure, multi-factor authenticated VPN with strict access controls, terminating in a DMZ. This aligns with D3FEND's Network Isolation.
Network Segmentation: Implement robust network segmentation between IT and OT networks. Use firewalls to strictly control all traffic flowing between the two environments.
Patch Management: While many OT environments have challenges with patching, apply vendor-supplied security patches to PLCs whenever feasible, especially for those that address known remote code execution vulnerabilities.
Strong Access Controls: Change default passwords on all PLCs and use strong, unique credentials. Implement access control lists on the devices themselves where possible.
New research shows AI can port PLC exploits in hours for minimal cost, validating concerns about AI lowering the barrier for OT attacks and increasing threat speed.
This is the most critical mitigation for ICS. Isolate OT networks from IT networks and the internet to prevent unauthorized access.
Use firewalls to strictly control traffic between IT and OT segments, allowing only necessary protocols and sources.
Use application control on engineering workstations to prevent the execution of unauthorized scripts or tools.
The absolute highest priority for any organization using Siemens S7 PLCs or any other industrial control system is to ensure they are not exposed to the public internet. Asset owners must immediately audit their network perimeter and use tools like Shodan and Censys to identify any PLCs with open ports (especially TCP/102). Any exposed device must be immediately placed behind a firewall and removed from public access. OT networks must be rigorously segmented from IT networks, and all remote access must be routed through a secure gateway in a DMZ, requiring multi-factor authentication. This single countermeasure directly prevents the initial reconnaissance and access phase of the attack campaign described in the advisory.
For organizations with established OT networks, deploy an ICS-aware Network Security Monitoring (NSM) solution capable of deep packet inspection for the S7comm protocol. Use this tool to establish a baseline of normal communication patterns within the control network. Create alerts for any anomalous activity, such as: S7comm traffic originating from the IT network or any untrusted source; attempts to upload/download new program blocks; an unusual number of read/write requests; or attempts to stop or start the PLC CPU. Since the current campaign is focused on reconnaissance, detecting these initial probing activities is key to preventing a future disruptive attack. This provides critical visibility into a network segment that is often a blind spot for security teams.
CYFIRMA and other outlets report on a joint US government advisory about AI-generated scripts targeting Siemens PLCs.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.