Port 502 is the TCP port commonly used by Modbus, an industrial control system protocol for communicating with field devices and controllers. It carries register reads and writes between clients and servers, so exposure of the port can allow unauthorised process manipulation if network access is not tightly restricted.
What Port 502 Means in an OT Network
Port 502 is not just a number on a firewall rule, it is the standard TCP entry point for Modbus traffic in many industrial environments. In practice, that makes it a control-plane exposure point: if the port is reachable from an untrusted network, an attacker may be able to issue read or write commands to field devices and controllers.
Because Modbus was designed for simplicity rather than strong native security, Port 502 often reflects how exposed the underlying process-control surface really is. The port matters most when it is reachable beyond tightly managed OT boundaries, because the protocol itself is what lets remote systems inspect and change operational state.
Why Port 502 Is Sensitive
Port 502 is sensitive because it can expose a direct path to operational commands, not just telemetry. Register reads can reveal process values, device state and configuration clues, while write capability can alter behaviour if access controls are weak or absent.
That is why Port 502 should be treated as an OT exposure indicator, not merely an open service. A reachable Modbus listener can imply a larger segmentation or trust problem, especially where business networks, vendor access paths or remote management routes can reach PLCs, controllers or gateways.
How Organisations Check Exposure
Exposure checks start with asset inventory and network mapping: which devices speak Modbus, where Port 502 is listening, and whether any path exists from IT networks, remote-access zones or the internet. The Industrial Protocol Security Guide is useful here because it frames Modbus alongside other industrial protocols and the segmentation and filtering patterns that reduce reachability.
Teams should then validate exposure from the outside in, including firewall policy, jump hosts, vendor links and any OT DMZ or conduit that may forward traffic to controllers. For Modbus specifically, Modbus TCP and Modbus Security Guide is the most direct reference for understanding how port placement, protocol filtering and detection interact.
When the concern is a known exploit path rather than a general exposure, the FrostyGoop Modbus Malware Guide shows why internet-exposed Modbus services deserve urgent review, because attack chains have used Modbus reachability to manipulate heating and other industrial processes.
Remediation and Detection Considerations
Remediation is usually about reducing reachability before assuming protocol-level protection. If Port 502 must exist, it should sit behind strict network segmentation, allowlisting and protocol-aware filtering, with remote access constrained to tightly governed paths. Where possible, organisations should separate monitoring traffic from command traffic so that operational visibility does not become a control path.
Detection should focus on unusual function codes, unexpected write operations, new source addresses, and access at times or from zones that do not fit the plant baseline. This is especially important because Modbus traffic can look ordinary until a write command changes a register and the process effect appears later.
After any suspected compromise, review controller state, recent writes, engineering workstation activity and any changes to gateways or protocol translators. In OT environments, compromise review is not only about logs, but also about whether the process behaviour itself changed in a way that is consistent with unauthorised command execution.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS-12 — Network Infrastructure Management | Port 502 exposure is governed by segmentation and boundary control of industrial network paths. |
| Recommendation — Segment Modbus networks and restrict Port 502 to only approved industrial conduits. | ||
| NIST SP 800-53 Rev 5 | SC-7 — Boundary Protection | Controls reachability to Modbus services by enforcing managed boundaries around OT assets. |
| SI-4 — System Monitoring | Port 502 abuse is detected through monitoring for unusual protocol activity and write commands. | |
| Recommendation — Apply SC-7 to limit Port 502 exposure between trusted OT zones and external networks. Use SI-4 to monitor Modbus traffic for unauthorized reads, writes and new source paths. | ||
| ISO/IEC 27001:2022 | A.8.20 — Network Security | Port 502 exposure is an industrial network security issue that depends on controlled routing and filtering. |
| Recommendation — Implement network security controls that prevent uncontrolled access to Modbus services. | ||
| OWASP ASVS | V4 — API and Web Service Security | Modbus over TCP is a service interface with request authorization concerns similar to other exposed service endpoints. |
| Recommendation — Treat the exposed service endpoint as an authorized interface and block unauthenticated write paths. | ||
Related resources from NHI Mgmt Group
- How should security teams harden SSH without relying on port changes alone?
- What is the difference between changing port 22 and real SSH hardening?
- What breaks when DTLS session state is tied to IP address and port?
- How should teams secure a self-hosted code server without relying on port forwarding?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org