Port 135: MS-RPC (Microsoft RPC endpoint mapper)
What port 135 (TCP) does, the security risks of leaving it open, and how to secure and test it.
| Port | 135 |
|---|---|
| Transport | TCP |
| Service | Microsoft RPC endpoint mapper (MS-RPC) |
| Encrypted | No |
What is port 135?
Port 135 is Windows' Remote Procedure Call endpoint mapper. It tells clients which dynamic port a Windows service is listening on.
Common uses
- Windows management tools, Active Directory replication and DCOM applications
Security risks
- A frequent target for worms and remote exploits in the past (for example, Blaster)
- Used by attackers to move between Windows machines inside a network
How to secure port 135
- Block TCP 135 from the internet
- Limit it inside the network with Windows Firewall to the systems that need it
- Keep Windows fully patched
How to check if port 135 is open
| Where | Command |
|---|---|
| Scan from another machine | nmap -p 135 <host> |
| Windows (PowerShell) | Test-NetConnection <host> -Port 135 |
| Linux (what is listening) | sudo ss -tulpn | grep :135 |
| Windows (what is listening) | netstat -ano | findstr :135 |
Only scan systems you own or have permission to test.
Example: block it at the internet edge (Cisco)
For a service that should stay inside your network, deny it on the internet-facing interface. Put the rule before any broader permit statements:
ip access-list extended INTERNET-IN
remark Block MS-RPC from the internet
deny tcp any any eq 135
permit ip any any
!
interface GigabitEthernet0/0
ip access-group INTERNET-IN inIn a real network the final line would be your normal inbound policy, not "permit ip any any". Build and check rules with the ACL builder.
Related ports
Frequently asked questions
What is port 135 used for?
Port 135 (TCP) is used by Microsoft RPC endpoint mapper (MS-RPC). Port 135 is Windows' Remote Procedure Call endpoint mapper.
Is it safe to open port 135?
Only if the service needs to be reached and is configured securely. Block TCP 135 from the internet.
How do I check if port 135 is open?
From another computer, run nmap -p 135 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 135.
Learn more: TCP, UDP and ports explained and firewall basics.