Free tech learning for everyone, from basics to pro

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.

Port135
TransportTCP
ServiceMicrosoft RPC endpoint mapper (MS-RPC)
EncryptedNo

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

WhereCommand
Scan from another machinenmap -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 in

In 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.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown