How S7 works
S7 runs on port 102 using the ISO-TSAP transport layer. Like Modbus, earlier versions of S7 (S7-300/400) have no built-in authentication. S7-1200 and S7-1500 added optional access protection, but default configurations frequently leave it disabled. The protocol supports reading and writing data blocks, program blocks, and system state. A Siemens STEP 7 or TIA Portal engineering workstation communicates with PLCs using S7 to upload/download programs and monitor process values.The Stuxnet connection
S7 gained global attention as the target of Stuxnet (2010). The malware specifically targeted Siemens S7-315 and S7-417 PLCs controlling Iranian uranium enrichment centrifuges. Stuxnet intercepted S7 communications to:- Read the current state of centrifuge operations
- Inject malicious command sequences that altered rotor speeds
- Replay recorded normal operation data to the SCADA system, hiding the attack
What Reyhford observes
S7 (port 102) is consistently the highest-volume protocol in our honeypot network, accounting for the majority of ICS-specific attack traffic. Observed attack patterns:- CPU state requests — probing PLC operational state and firmware version
- Data block enumeration — reading DB1, DB2, etc. to extract process configuration
- System function calls — SZL (System Status List) requests to fingerprint hardware
- Write attempts — less common but present; attempts to modify data block values