FreshScanSentry Free vulnerability scanning for your network & web apps Run a free scan

High risk Port 23 · Telnet remote login

Telnet port 23 is open: what it means and how to fix it

Short answer: port 23 is Telnet, a 1960s-era way of logging in to a device's command line. It sends the username, password and everything you type without encryption, and bots try default passwords on it all day. It's how the Mirai botnet took over cameras, video recorders and routers by the hundreds of thousands.

The fix: turn Telnet off on the device, remove any router rule that exposes it, and change the device's default password. Use SSH or the device's web page for management instead.

What is port 23?

Telnet is one of the oldest internet protocols. It gives a remote text console on a device, much like SSH, but with no encryption at all. Almost no one sets it up on purpose today. It's usually left switched on in equipment like:

It becomes reachable from the internet through a router port forward, a device put in the router's DMZ, or a device connected directly to the internet with a public IP address.

Why an open port 23 is high risk

How it looks in your report your-office-ip
  1. 23 Telnet Transmits credentials in plaintext High
Any High finding caps your exposure grade at D

How to confirm it and find the device

  1. Check from outside your network. A free FreshScanSentry Basic Scan of your public IP address shows whether port 23 answers and often what kind of device it is.
  2. Or use Nmap from another connection, such as a phone hotspot:
    nmap -p 23,2323 -sV your-public-ip
    The service line often names the device type or brand. Port 2323 is a common alternative Telnet port that Mirai also tried.
  3. Find the device. In your router, look for a port forward for 23 (or 2323) and note the inside IP address it points to, or check whether a device is in the DMZ. The router's list of connected devices shows which device has that address.

Only scan addresses you own or have written permission to test.

How to fix it

1. Remove the internet exposure

Delete the router's port forward for 23 (and 2323), and turn off DMZ mode if a device is in it. This stops attacks from the internet straight away.

2. Turn Telnet off on the device

3. Change default passwords and update firmware

4. If Telnet can't be turned off

Some cheap or old devices have Telnet built in with no off switch. Keep them off the internet, put them on a separate network (a guest Wi-Fi or a VLAN) away from your computers, and plan to replace them. A device you can't secure doesn't belong on a business network.

5. Re-scan to confirm

Run another external scan. Port 23 should no longer appear, and your exposure grade should go up.

If you think a device was already hijacked

Signs include a device running slowly or hot, your internet connection slowing down, unexpected settings changes, or a warning from your internet provider about attack traffic from your connection. Disconnect the device, reset it to factory settings, update its firmware, set a new strong password, and turn Telnet off before reconnecting. Restarting alone isn't enough. Mirai-style malware is often wiped by a reboot, but the device gets reinfected within minutes if Telnet is still open with the same password.

Common questions

Is the Telnet program on my computer a problem?

No. The Telnet client, the program you use to connect to something, isn't a risk. The finding means a device on your network is running a Telnet server that accepts logins.

Our device has a strong password. Is Telnet OK then?

It's much better than a default password, but Telnet still sends that password unencrypted every time someone logs in, and old Telnet servers have their own bugs. Turn it off and use SSH.

Why does a camera even have Telnet?

Manufacturers often leave it on for factory testing or support. It's rarely needed by the owner.

Sources: CISA: Heightened DDoS threat posed by Mirai and other botnets · CISA: Securing the Internet of Things · RFC 854 (Telnet) · Nmap service and version detection