No. Exposing Port 135 (RPC) to the internet is unsafe because it increases attack surface and can reveal or enable remote procedure call services that are routinely abused for reconnaissance and exploitation. Keep it internal, restrict it with firewalls, and allow access only from tightly controlled management networks.
What Port 135 exposes when it is internet-facing
Port 135 is part of the Microsoft RPC Endpoint Mapper surface, so exposing it publicly is not just “opening a port”, it is advertising a service-discovery and remote invocation entry point. That matters because it can help outsiders enumerate RPC-related services and build an attack path before they ever reach a higher-value target. A practical inventory check is to verify whether the host truly needs any RPC exposure beyond internal administration, then compare it with your exposed port set using a Network Ports and Protocols Security Guide.
In most enterprise environments, Port 135 should be treated as an internal management dependency, not an internet service. If the business use case is remote support, directory integration, management tooling, or legacy Windows administration, the safer pattern is to keep the endpoint mapper on private networks and force any access through a controlled management plane rather than broad public exposure. Where the exposure is accidental, the right response is usually removal, not hardening in place.
Public exposure also broadens the reconnaissance surface even when the host is patched. Attackers routinely use visible RPC services to discover what else is reachable, what software is present, and whether legacy Windows components are exposed in a way that supports follow-on exploitation. The port itself is therefore a signal of trust boundary weakness, not just a single service to block or allow.
Why internet exposure of RPC increases real-world attack paths
When Port 135 is reachable from the internet, the main security problem is that it helps an attacker move from “finding a host” to “mapping a remotely callable interface”. That can support enumeration, service fingerprinting, and exploitation attempts against dependent RPC services or adjacent Windows attack surface. The issue is broader than a single vulnerability because the endpoint mapper can reveal what RPC services are registered behind it, and that intelligence is valuable even if no immediate exploit succeeds.
Exposure is especially risky on systems that also permit broad inbound rules for dynamic RPC ranges, older Windows services, or administrative protocols that were never meant to be public. In that situation, Port 135 can become the first step in a chain that ends with remote code execution, lateral movement, or credential abuse. The safest design assumption is that anything using RPC should be reachable only from tightly bounded administrative networks.
If you need a wider view of why these protocol and port exposures matter operationally, it is worth pairing the port check with current threat reporting such as the ENISA Threat Landscape, which regularly shows how exposed services and weak perimeter decisions feed initial access and later exploitation.
How to contain Port 135 without breaking legitimate administration
The control objective is not “make RPC secure on the public internet”, it is “remove the need for public RPC exposure”. Start by restricting inbound access to known management subnets, VPN ranges, jump hosts, or dedicated admin networks. Where possible, move administration behind remote access controls, segmentation, and identity-aware access paths so that the endpoint mapper is never an internet-facing dependency.
For legacy environments, test the dependency chain before closing the port. Some servers rely on RPC for remote management, printer-related services, COM/DCOM dependencies, or application-specific Windows tooling. That means the safe sequence is discovery, dependency mapping, containment, then enforcement. If a service truly requires RPC, prefer exposure only inside a segmented enclave and document the approved source addresses rather than making a broad exception.
When you are formalising the control set, the most useful baseline is to treat public exposure of management services as a deviation from standard hardening. General access-control guidance from NIST SP 800-53 Rev 5 Security and Privacy Controls is a good fit here, especially for restricting remote access, limiting system services, and keeping management traffic within approved boundaries.
Risk and Threat Considerations
Publicly exposing Port 135 creates an easy reconnaissance target and can give attackers a foothold for mapping internal Windows services. Even when the port itself is not directly exploitable, it can lower the cost of attack planning and increase the chance that a vulnerable RPC-dependent service will be found and targeted.
Failure mechanism: The endpoint mapper is reachable from untrusted networks, so an attacker can enumerate services, probe for legacy Windows RPC exposure, and chain that information into exploitation of adjacent services or misconfigurations.
Impact: Increased attack surface, faster target profiling, and a higher likelihood of remote compromise, lateral movement, or abuse of management functions that should have remained internal.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-4 — Information Flow Enforcement | Restricts remote traffic to approved network paths and management boundaries. |
| SC-7 — Boundary Protection | Directly applies to exposing internal services across internet and trust boundaries. | |
| CM-7 — Least Functionality | Minimizes exposed services and removes unnecessary internet-facing listeners. | |
| Recommendation — Enforce approved network paths for RPC and block public access by default. Segment RPC services behind boundary controls and deny direct internet exposure. Disable unnecessary RPC exposure and keep only required services enabled. | ||
| CIS Controls v8 | CIS-4 — Secure Configuration of Enterprise Assets and Software | Hardens exposed hosts and reduces risk from unnecessary listening services. |
| CIS-12 — Network Infrastructure Management | Supports controlling network paths, segmentation, and boundary exposure. | |
| Recommendation — Harden hosts so RPC listeners are not publicly reachable unless strictly required. Manage network segmentation so management protocols stay inside trusted zones. | ||
Practitioner Guidance
What to verify: Confirm whether any business workflow genuinely requires RPC access from outside trusted networks. If the answer is no, remove the internet route entirely rather than compensating with allowlists that are too broad to be meaningful.
Decision rule: If the host is a server, workstation, or management node, treat Port 135 as internal-only unless you can name the source system, the approved administrative purpose, and the exact network path that requires it.
Common mistake: Teams often keep Port 135 open because “it has always worked” or because one legacy tool depends on it. That is usually a sign that the dependency has never been isolated, not evidence that the exposure is safe.
Practitioner takeaway: The safest answer is almost always to remove public reachability and preserve RPC only inside tightly controlled administrative networks, because the exposure value is in discovery and attack chaining as much as in direct exploitation.
Related resources from NHI Mgmt Group
- Is it safe to expose Port 53 for DNS to the internet?
- How do security teams know whether an email driven attachment workflow is safe enough to expose to the internet?
- How do security teams know whether an AI backend is safe to expose publicly?
- How should security teams secure RDP access without exposing port 3389 to the internet?
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 October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org