CISA/NSA/FBI/DOE/EPA Joint Advisory: AI-Generated Scripts Actively Attacking Siemens S7 PLCs Have Entered Pre-Positioning Across Multiple Critical Infrastructure Sectors
NSA, CISA, FBI, DOE, and EPA jointly issued advisory AA26-231A on August 19, confirming attackers are using AI-generated Python scripts to actively scan and probe Siemens S7-series PLCs. Targets span energy, water, chemicals, critical manufacturing, and the Defense Industrial Base. Block TCP/102 at the perimeter immediately and inventory engineering workstations.
NSA, CISA, FBI, DOE, and EPA jointly issued security advisory AA26-231A on August 19, 2026, confirming attackers are actively scanning and probing Siemens S7-series programmable logic controllers (PLCs) with AI-generated Python scripts. Coverage includes S7-200, S7-300, S7-400, S7-1200, S7-1500, and the full F-series safety PLC family. The advisory states this is a live, ongoing threat affecting critical manufacturing, energy, water and wastewater, chemicals, food and agriculture, and commercial facilities. The Defense Industrial Base is named because it likewise depends on S7. Inventory engineering workstations immediately and block TCP/102.
Incident Overview
AA26-231A is jointly signed by the five agencies. Current attacks are in the pre-positioning phase. Attackers have not yet issued destructive write commands at scale, but are using internet scanning services such as Censys and ZoomEye to identify exposed or weakly segmented S7 PLCs and performing read operations to learn the target environment. Key risk at this stage: once read access is obtained, attackers can map process flows, identify control logic, and understand safety dependencies, preparing for later writes (modify logic, setpoints, alarms, safety interlocks, emergency shutdown).
The advisory notes threat actors are using legitimate open-source industrial automation tools snap7.dll and the python-snap7 library—standard components for system integrators and automation engineers. Attackers wrap snap7 calls with AI-generated packaging that resembles legitimate OT monitoring tools, evading security-team attention. AI lets attackers build custom scripts without deep ICS protocol expertise. ICS attack bar drops significantly.
Technical Details
Attack path has two stages:
- Stage 1: Reconnaissance. Censys and ZoomEye identify internet-exposed or weakly segmented Siemens S7 PLCs, typically running outdated firmware or using default passwords / minimal authentication. Attackers mass-scan via S7comm (TCP 102);
- Stage 2: Read and pre-position. Once a target is locked, snap7 constructs legitimate read/write requests that can read PLC memory, configuration, data blocks (DB), and ladder logic. Reads are disguised as routine engineering maintenance and do not trip traditional SIEM/IDS alerts.
AI's role in this campaign:
- Rapid generation of S7comm communication scripts. AI-assisted development shortens time from internet scan to read/write;
- Per-model tooling. AI iterates tools quickly against different CPU types and firmware versions;
- Masquerade as legitimate OT monitoring tools. AI-generated naming, comments, and behavior mimic engineer scripts.
The read phase yields PLC project files, user programs, HMI tags, and safety-system configuration—enough to draw process flow diagrams and identify critical safety interlocks. Destructive writes not yet issued; physical-damage capability already present.
Impact Assessment
Siemens S7 is a core node in global industrial control systems: power plants, substations, water treatment, chemical plants, food processing, assembly lines, commercial-building HVAC, and defense equipment. AA26-231A lists high-exposure sectors: critical manufacturing, energy, water, chemicals, food and agriculture, commercial facilities, and the Defense Industrial Base. Escalation from read to write spreads across process: process interruption (altered recipes or timing halt production), equipment damage (process parameters drive physical equipment into hazardous ranges), safety incidents (disabled interlocks or emergency shutdown systems create real personnel risk), data theft (recipes, process parameters, customer data), cascading impact (single-site outage propagates through the supply chain).
AA26-231A also flags third-party exposure: asset owners whose PLCs are remotely accessed by system integrators or managed service providers may not realize those PLCs are internet-reachable. This advisory follows a July compromise of 30+ Minnesota water-utility PLCs, further confirming that U.S. critical-infrastructure PLC exposure is under continuous scan.
Remediation
AA26-231A's action list is operational:
- Inventory all Siemens S7 controllers immediately. Record model, firmware version, network topology, exposure, and third-party maintenance access paths;
- Block TCP/102 at the perimeter firewall. Confine S7comm strictly to the enterprise network. Do not expose it to the internet;
- Take internet-reachable PLCs offline immediately. Any S7 still reachable on port 102 is a high-risk asset;
- Apply official Siemens firmware updates. Obtain model-specific patches from Siemens ProductCERT. Validate OT upgrades on a test segment first;
- Enable PLC password protection and read/write protection. Set a strong password on every controller. Disable read/write for low-privilege sessions;
- Restrict engineering access. Allow TIA Portal and STEP 7 only from authorized engineer workstations. Control via MAC/IP allowlists;
- Disable PLC web services. Disable unused protocols (SNMP, HTTP/HTTPS web);
- Enable know-how protection and complete restart protection. These TIA Portal protections restrict program download and CPU restart;
- Deploy ICS-aware monitoring. Baseline S7comm. Detect S7comm connections not from engineering workstations, read/write outside planned maintenance windows, bulk port-102 scans, and Python processes loading snap7.dll on engineering workstations;
- Audit third-party maintenance. Reassess remote-access channels used by system integrators and MSPs. Require equivalent security standards;
- Incident reporting. Report suspicious activity immediately to CISA or FBI IC3. DOE-affiliated entities follow DOE reporting procedures.
AA26-231A is the first federal advisory to explicitly list AI-assisted script generation as an active threat to critical infrastructure. OT security operations need real-time detection and automated response comparable to an IT SOC, plus dedicated protocol parsing at the OT/IT boundary.
References
- NSA, CISA, FBI, DOE, and EPA Warn of Active AI-Assisted Attacks on Siemens S7 PLCs
- NSA and CISA Warn of Active Cyber Threat Targeting Siemens S7 PLCs
- CISA Advisory AA26-231A
- Hackers use AI scripts to probe Siemens plant controllers