Is port 102 (Siemens S7) exposed to the internet?
AdminKit's short answer: if TCP port 102 on your public IP accepts a connection, a Siemens S7 PLC may be taking engineering commands from anyone online. Classic S7comm has no login, so a stranger can read data, write values or stop the CPU unless protection levels are set. PLCs belong behind a firewall or VPN, never on the internet.
By AdminKit team, Netbase JSC · Updated
Key takeaways
- TCP port 102 carries Siemens S7 communication: classic S7comm on S7-300 and S7-400 PLCs, and S7CommPlus on the newer S7-1200 and S7-1500 families.
- Classic S7comm has no login step. Anyone who reaches port 102 can set up a session, and only the CPU’s configured protection level limits what that session can do.
- S7CommPlus adds integrity protection, but published research showed attackers could still impersonate the engineering software, and Siemens’ advisories keep telling operators to protect network access.
- AdminKit’s port check does not test 102. Test it by hand from outside, against your own IP only, then put the PLC behind a firewall, a DMZ or a VPN.
What is listening on port 102?
S7 is the protocol family Siemens SIMATIC S7 programmable logic controllers (PLCs) speak with the TIA Portal or STEP 7 engineering software that programs them, with HMI panels and SCADA systems that read their data, and with each other. The Wireshark wiki entry on S7comm describes it as a Siemens proprietary protocol for PLC programming, data exchange between PLCs, SCADA access to PLC data and diagnostics, used since the S7 product line launched in 1994. Our glossary entry on S7comm gives the one-page background, and S7 belongs to the same machine protocols family as Modbus, EtherNet/IP and OPC UA.
On Ethernet, S7 rides on two ISO transport layers: TPKT, which carries ISO transport over TCP, and COTP inside it. The IANA registry lists TCP 102 as iso-tsap, the generic ISO transport service, which is why S7 uses that port and why a few other ISO-based protocols can appear on it too. These are the systems that usually answer:
| System | Typical role | Why it matters if reachable from outside |
|---|---|---|
| S7-300 or S7-400 CPU | Runs the control program; speaks classic S7comm | No login step; access depends on the CPU’s protection level |
| S7-1200 or S7-1500 CPU | Runs the control program; speaks S7CommPlus | Newer protocol with integrity checks, still a direct path to the controller |
| Communication processor (CP) module | Adds Ethernet to an S7 rack | Puts a whole rack of I/O behind one address |
| HMI panel or SCADA server | Reads and writes PLC tags | Often trusted by the PLC for writes |
| Gateway or protocol converter | Bridges S7 to other protocols or the cloud | One reachable box can expose several PLCs |
Why does classic S7comm accept commands without a login?
Classic S7comm was designed for plant networks, where everything on the wire was assumed to belong there. The Wireshark wiki lists the three steps a client takes to talk to a PLC: open a TCP connection on port 102, send a COTP connection request whose destination TSAP encodes the connection type and the rack and slot of the CPU, and send an S7 setup-communication request to agree details such as the PDU size. None of those steps asks who the client is, and every S7comm message starts with the protocol identifier 0x32.
Once the session is up, the client can send the same requests the engineering software sends: read and write data, read diagnostics and the PLC’s identity, upload and download program blocks, and control the CPU. The only gate is the protection level configured on the CPU in the engineering project. Siemens’ ProductCERT advisory SSA-232418, covering S7-1200 and S7-1500 CPUs, lists “apply password protection for S7 communication” as its specific mitigation, which tells you that a controller without that setting accepts more than it should.
This is not a theoretical concern. MITRE ATT&CK’s entry on Stuxnet records that the malware downloaded altered code and data blocks to Siemens PLCs and specifically targeted S7-300 series CPUs. Stuxnet arrived through engineering workstations rather than an internet-facing port, but it shows what a party that can talk S7 to a controller is able to do.
What changed with S7CommPlus on S7-1200 and S7-1500?
The newer PLC families use a different protocol, S7CommPlus. The Black Hat USA 2019 white paper Rogue7, by researchers from the Technion and Tel Aviv University, explains that older S7 PLCs use the flavour identified by protocol number 0x32 while the new generation uses 0x72, which supports security features. Sessions start with a handshake that selects the protocol version and keys, and later messages carry a message authentication code.
The protection was not uniform, and it was not enough. The paper reports that the S7-1200 variant it tested had no integrity protection, that S7-1500 PLCs used per-message integrity with a simple key exchange in one protocol version and a challenge-response key exchange in a later one, and that all PLCs of the same model and firmware shared the same key pair. Its main finding was that the engineering station was never authenticated to the PLC, which let the researchers build a rogue engineering station that could start and stop S7-1500 PLCs, download control logic, and even make the running code differ from the source code the PLC shows to engineers. The paper cites password-protected access control on each PLC as Siemens’ recommended countermeasure.
Siemens has kept adding protection. The Operational Guidelines describe TLS-based PG/HMI communication between TIA Portal V17, HMIs and S7-1200/1500 CPUs, with individual certificates for each PLC and optional passwords for sensitive configuration data. Advisory SSA-232418 also shows why protocol security is no reason to expose the port: one vulnerability it lists lets someone with network access to 102/tcp change the user program so the running code differs from the stored source, and another lets a man in the middle modify traffic on 102/tcp. Updates fixed one of the two, while for the other Siemens points to countermeasures, starting with protected network access.
How does a PLC end up reachable from the internet?
Rarely on purpose. These are the usual paths:
- A machine builder’s remote support. A port forward for TIA Portal access during commissioning or warranty work outlives the job.
- A cellular router on the machine. The router has a public IP and forwards everything to the PLC, or the PLC sits in the router’s exposed host slot.
- An HMI or SCADA connection set up inbound. A forward meant for one remote HMI or cloud dashboard accepts any client.
- A flat network. The plant shares a firewall policy with the office, and a broad rule written for something else also allows 102.
How do you read AdminKit’s port check for port 102?
AdminKit’s open ports check tests the public IP you are browsing from, using TCP connections to a fixed list: 23, 554, 1883, 8883, 502, 7547, 80, 443 and 8080. It also lists BACnet/IP (47808) and CoAP (5683) as not scanned, because they run over UDP. Port 102 is not on that list, so the check says nothing about S7 either way. Confirm the address you are testing first with what is my IP.
| What the result shows | What it tells you about S7 |
|---|---|
| “0/9 TCP port(s) open” with an OK status | Only the nine listed TCP ports were tested. Port 102 may still be reachable |
| 502 (Modbus/TCP) open | A Modbus device on the same site answers from outside. Plants often mix protocols, so test 102 too |
| 80 or 443 open | A PLC, HMI or router web interface may be exposed. Close it, and test 102 |
If Modbus devices sit on the same network, AdminKit’s Modbus exposure check checks whether the public IP you are connecting from has a Modbus/TCP industrial device reachable from the internet on port 502 by default. It speaks Modbus, not S7, so it is not an S7 test.
How do you confirm port 102 from outside?
Use a machine outside the plant network, such as a laptop on a mobile hotspot, and test only your own public address. A TCP connection test is enough to show the exposure and sends no S7 traffic at all (a documentation address is shown):
nc -vz -w 3 203.0.113.40 102
A “succeeded” or “open” reply means something accepted a TCP connection on 102 from the internet. A refusal or a timeout means the port is closed or filtered on that path. To see what the controller tells a stranger, the Nmap s7-info script reads a Siemens PLC’s identity, such as module type, firmware version and serial number:
nmap -p 102 --script s7-info 203.0.113.40
If that prints a module and serial number, so can anyone else’s scan. Do not go further against production equipment: do not read or write tags, and never send stop or download commands as a test. A reachability check and an identity reply are enough to justify the fix.
How do you find the listener inside the network?
Work from the edge inward:
- On the site router or firewall, list inbound rules and port forwards for TCP 102, and any exposed-host or DMZ-host setting that sends all traffic to one internal address. Note who asked for each one.
- On that internal address, look the device up in the asset list. In TIA Portal or STEP 7, check the CPU’s protection level and whether S7 communication is password-protected.
- Ask the engineer or machine builder responsible why the controller has a public path, and what they actually need remote access for.
How do you fix an exposed port 102?
Take the PLC off the internet first, then tighten what remains:
- Remove the port forward, exposed-host setting or public address for 102. Re-run the outside test and keep the dated result.
- Segment the plant. Siemens’ Operational Guidelines describe a cell protection concept, splitting production into protected cells with access control at each cell entry, and a DMZ so office and production networks never talk directly. NIST SP 800-82 recommends the same layered segmentation, multi-factor authentication for remote access to OT systems, and disabling unused ports and services.
- Replace inbound access with a VPN or outbound-only path. The guidelines describe secured remote access through VPN gateways at the cell or plant edge.
- Set CPU protection levels and passwords in the engineering project, change any default passwords at commissioning as the guidelines require, and use TLS-based PG/HMI communication where your CPUs and TIA Portal version support it.
- Switch off unused services on CPUs and communication modules, such as web servers you do not use.
- Track Siemens advisories. Siemens ProductCERT publishes security advisories for its products, with CSAF and RSS feeds; check each one against your CPU and firmware list.
Factories often run S7 PLCs next to EtherNet/IP and OPC UA systems; see is port 44818 (EtherNet/IP) exposed and is port 4840 (OPC UA) exposed for those ports, and our glossary entry on ICS/OT for the wider picture. If engineers and vendors need remote access to plant systems without an inbound port, OT Remote Access is a Netbase custom engagement that gives outbound-only, recorded sessions; see factories and facilities for the related checks and services.
Which networks may you test?
Every check this page links to is for assets you own or are explicitly authorized to test. Never scan, probe, or attempt to connect to a network or device you don’t control. AdminKit’s active checks only ever run against the IP making the request or an asset you’ve verified ownership of. See our Disclaimer and Acceptable Use Policy for the full terms.
This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.
Frequently asked questions
What is port 102 used for?
TCP port 102 is the port IANA registers as iso-tsap, the ISO transport service on top of TCP. Siemens S7 PLCs, engineering software and HMI panels use it to carry S7comm and the newer S7CommPlus protocol. Because the registration is for the generic ISO transport, a listener on 102 is usually, but not always, a Siemens controller.
Does classic S7comm require a password?
Not at the protocol level. A client opens TCP 102, sends an ISO connection request naming the CPU's rack and slot, and sets up the S7 session; no user name or password is part of that sequence. What the client can then do depends on the protection level configured on the CPU, which is why Siemens advisories tell operators to apply password protection for S7 communication.
Is S7CommPlus on S7-1200 and S7-1500 PLCs secure enough for the internet?
No. S7CommPlus adds integrity protection and key exchange, and newer TIA Portal versions add TLS-based PG/HMI communication, but researchers at Black Hat 2019 showed a rogue engineering station could still start, stop and reprogram S7-1500 PLCs because the PLC did not authenticate the engineering station. Siemens' own guidance is to protect network access in any case.
Does AdminKit's port check test port 102?
No. The port check tests a fixed list of nine TCP ports (23, 554, 1883, 8883, 502, 7547, 80, 443, 8080) on the public IP you connect from, and lists two UDP ports as not scanned. Port 102 is not on that list, so a clean result says nothing about S7. Test 102 manually from outside your network.
What does Siemens recommend for S7 PLCs that need remote access?
Siemens' Operational Guidelines describe a defence-in-depth design: production split into protected cells with access control at the cell entry, a DMZ between production and office networks, and secured remote access through VPN gateways. They also say to enable PLC protection levels, change default passwords at commissioning and switch off services that are not needed.
Sources
- Wireshark Wiki — S7comm (S7 Communication)
- Biham et al. — Rogue7: Rogue Engineering-Station attacks on S7 Simatic PLCs (Black Hat USA 2019 white paper)
- Siemens ProductCERT — SSA-232418: Vulnerabilities in SIMATIC S7-1200 and S7-1500 CPU families
- Siemens — Cybersecurity for Industry: Operational Guidelines (PDF)
- Siemens ProductCERT and Siemens CERT
- Nmap NSE — s7-info
- MITRE ATT&CK — Stuxnet (S0603)
- NIST SP 800-82 Rev. 3 — Guide to Operational Technology (OT) Security
- IANA — Service Name and Transport Protocol Port Number Registry
Want AdminKit to watch this for you?
Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.
Talk to an expert
Huy Nguyen (David), Founder & CEO, Netbase JSC
Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.