Telnet, FTP, TFTP and plain HTTP management interfaces still send administrator passwords and device configurations across networks in readable form, and anyone who can capture the traffic can reuse them. Most organisations know these protocols should go, yet they survive on switches, printers, storage arrays, out-of-band controllers and industrial devices because nobody owns the clean-up. This playbook gives network and infrastructure teams a four-phase method to find every cleartext management service, choose the replacement, migrate and block it, and handle the devices that cannot be changed. It goes deeper than the port reference in the Network Ports and Protocols Security Guide, which covers why each port is risky; this page is about running the retirement programme.
Key takeaways
- Government guidance is now explicit. The December 2024 joint guidance from CISA, NSA, FBI and partner agencies tells defenders to disable Telnet, FTP, TFTP, SSH v1, HTTP servers and SNMP v1/v2c, and never to move configurations over FTP or TFTP.
- Discovery needs two views. Active scanning finds listening services; flow logs and network sensors find the cleartext sessions people actually use, including the scripts and backup jobs nobody documented.
- Replace first, then block. Turning on SSH, SFTP or HTTPS and moving every user and job across before disabling the old service avoids outages and the pressure to roll back.
- Block at the network as well as the device. Firewall and ACL rules that deny TCP 21 and 23, UDP 69 and HTTP management ports stop a reset or firmware update from silently re-exposing the service.
- Legacy and OT devices get a time-bound exception, not a pass. Where a controller only speaks Telnet or FTP, isolate it, broker access through a hardened jump host and record a review date.
How to use this template
Use this playbook when a scan, audit finding, penetration test or advisory shows cleartext management services on your network, or when you are setting a baseline for a new site. Copy the phases into your change plan, replace the bracketed placeholders, and assign a named owner to each phase. It applies to network devices (routers, switches, firewalls, VPN concentrators, load balancers, proxies), out-of-band server controllers such as iLO and iDRAC, storage, printers, hypervisor hosts and OT equipment. For a US federal agency, CISA Binding Operational Directive 23-02 adds a specific duty: within 14 days of CISA notification or agency discovery, a networked management interface exposed to the internet must be removed from it or placed behind a Zero Trust policy enforcement point. The same expectation is a sensible target for any organisation.
- Programme owner: [Network security lead], accountable for the inventory and exception register.
- Change authority: [Change advisory board], approves each migration wave and every block.
- OT owner: [Site engineering lead], signs off any change to industrial devices and all OT exceptions.
- Target date: [Date] for internet-facing interfaces; [Date] for internal interfaces.
Phase 1: discover cleartext services
The goal of this phase is a single inventory that lists every device offering a cleartext management protocol, who uses it and why. Combine three sources, because each misses something the others catch.
| Source | What it finds | What it misses | Practical notes |
|---|---|---|---|
| Active scanning (authorised, scheduled) | Listening services on TCP 21, 23, 80, 8080 and UDP 69, plus banners that identify the device and software | Services that only answer from certain source addresses, devices that are off or asleep, sessions in use | Run service and version detection from a scanner placed inside each zone, not only from the internet. Agree a fragile-device exclusion list with OT owners before scanning industrial networks. |
| Flow logs (NetFlow, IPFIX, cloud VPC flow logs, firewall session logs) | Who actually connects to those ports, how often, from where | Payload, so the protocol is inferred from the port | Pull 30 to 90 days to catch monthly jobs. Sort by destination port, then by source, to separate people from automation. See the NetFlow and IPFIX Flow Telemetry Guide. |
| Network sensors (Zeek or an NDR tool) | Protocol identified from content, so Telnet or FTP on a non-standard port is still caught; FTP commands and file names; HTTP authentication headers | Segments without a sensor | Zeek writes ftp.log and http.log and labels the service in conn.log. Treat any session carrying credentials in clear as a finding. See the Zeek Network Monitoring Guide. |
| Configuration review | Services enabled but filtered, such as an HTTP server turned on behind an ACL | Devices not in the configuration store | Search stored configurations for lines that enable Telnet on VTY lines, an unencrypted HTTP server, an FTP or TFTP server, or SNMP v1/v2c communities. |
- Record for each finding: device, owner, protocol and port, direction (management in, or device pushing out such as TFTP configuration backup), users or jobs seen, internet exposure, and whether a secure alternative is supported by the current firmware.
- Rank internet-exposed interfaces first, then interfaces reachable from user networks, then those already confined to a management network.
- Look for the outbound direction too. Configuration backup tools, firmware update jobs, phone provisioning and PXE boot often pull from TFTP or FTP servers, and those servers hold whole device configurations.
Phase 2: plan replacements
Each cleartext protocol has a standard replacement. The work is in confirming that every device, script and tool in the inventory can use it.
| Cleartext protocol (default port) | Typical use | Replacement (default port) | Planning notes |
|---|---|---|---|
| Telnet (TCP 23) | Device CLI, console servers | SSH version 2 (TCP 22) | Generate host keys, record fingerprints in your known-hosts store, and disable SSH v1. On Cisco-style platforms the joint guidance asks for VTY lines set to accept SSH only. Harden the SSH service itself; see the OpenSSH Server Hardening Guide. |
| FTP (TCP 21, data on 20 or dynamic) | File exchange, firmware upload, scanned documents, legacy batch jobs | SFTP over SSH (TCP 22) or FTPS, FTP with TLS as defined in RFC 4217 (explicit on 21, implicit on 990) | Prefer SFTP: one port, simpler firewall rules, key-based authentication for jobs. Choose FTPS when a partner or device supports only FTP-family clients. Do not confuse SFTP with IANA's obsolete Simple File Transfer Protocol. |
| TFTP (UDP 69) | Configuration backup and restore, firmware, IP phone provisioning, PXE network boot | SCP or SFTP for configuration and firmware; HTTPS for provisioning; UEFI HTTP Boot over HTTPS for network boot | TFTP has no authentication at all. Where a boot ROM or phone requires TFTP, confine the server to the provisioning VLAN and serve only non-secret files. See the Bare-Metal Provisioning and PXE Boot Security Guide. |
| HTTP management (TCP 80, 8080) | Web admin consoles, out-of-band controllers, printers, storage | HTTPS (TCP 443) with TLS 1.2 or 1.3 | Replace self-signed certificates with ones from an internal CA, disable the HTTP listener rather than redirecting where the device allows it, and apply your TLS baseline. See the TLS Server Configuration Baseline Guide. |
| SNMP v1/v2c (UDP 161, 162) | Monitoring, sometimes configuration writes | SNMPv3 with authentication and privacy (authPriv) | Often found in the same sweep. Remove read-write communities first; they allow configuration changes. |
- Tooling check: list every consumer of the old protocol (monitoring, configuration backup, automation, vendor support tools) and confirm each supports the replacement and the authentication method you plan to use.
- Credential plan: moving to SSH or SFTP is the moment to replace shared local passwords with central AAA (TACACS+ or RADIUS) for people and dedicated keys for automation. Treat any password that ever crossed the network in clear as exposed and rotate it.
- Firmware gaps: where a device needs an upgrade to support SSH or HTTPS, schedule it in the same wave; where no firmware supports it, route the device to Phase 4.
- Decision, SFTP or FTPS: SFTP suits internal automation and new integrations; FTPS suits partners with established FTP tooling and certificate-based trust. Small organisations should standardise on one to keep firewall rules and skills simple.
Phase 3: migrate and block
- Enable the replacement alongside the old service on a pilot group of devices in one site or zone, with the change approved under [change reference].
- Move users and jobs: update jump host profiles, automation inventories, backup tool targets and partner endpoints. Watch flow logs; the pilot passes when no sessions to the old port appear for an agreed period, such as two weeks or one full job cycle.
- Disable the cleartext service on the device, not just filter it. On Cisco-style platforms the joint guidance names the commands: set VTY transport input to SSH and disable the HTTP server with no ip http server; disable the HTTPS server too if web management is not needed. Save the configuration and confirm the change survives a reload.
- Block at the network: add deny rules for TCP 21 and 23, UDP 69 and HTTP management ports between user zones and device management addresses, and at the internet edge. Log every denied attempt. Allow management only from the management network or jump hosts. See the Firewall Management Guide.
- Roll out in waves by site or device family, internet-facing first. Keep the same pass criteria for each wave.
- Rollback: keep console or out-of-band access to every device before disabling the old service, keep the previous configuration in the backup store, and define in advance who may re-enable a cleartext service, for how long and with what extra monitoring. A rollback re-opens a finding; log it in the exception register.
Detection and measurement
After blocking, the monitoring that found the services becomes the control that keeps them gone.
- Alerts: any accepted session on TCP 21 or 23 or UDP 69 outside approved exceptions; any Zeek ftp.log or Telnet session; HTTP logins to device management addresses; denied attempts from one source to many management addresses, which can indicate scanning or credential reuse.
- Configuration drift: a scheduled compliance check against stored configurations that fails when a cleartext service is re-enabled, for example after a reset or firmware update.
- Logging transport: the joint guidance asks for log traffic to be encrypted in transit (IPsec, TLS or similar) and for denied traffic to be logged; apply that to the alerts above.
| Metric | Target |
|---|---|
| Internet-exposed cleartext management interfaces | Zero, re-checked weekly by external scan |
| Internal devices offering Telnet, FTP, TFTP or HTTP management | Falling each wave; only items in the exception register remain |
| Accepted cleartext management sessions per week (flow and sensor data) | Zero outside approved exceptions |
| Exceptions past their review date | Zero |
| Mean days from detection of a re-enabled service to remediation | [Target, for example 7 days] |
Phase 4: handle exceptions and legacy devices
Some devices will never speak SSH or HTTPS: older PLCs, building management controllers, laboratory instruments and medical or industrial equipment where firmware changes need vendor certification. OT devices can also fail when scanned or when a service is turned off, so changes here go through the OT owner and the vendor, never as part of a bulk wave.
- Confirm the exception is real. Ask the vendor in writing whether a firmware release or configuration option supports a secure protocol. Record the answer.
- Isolate. Place the device in its own segment with a deny-by-default policy; in OT, follow CISA's primary mitigations: no internet exposure, segmentation between IT and OT through a DMZ, and secure remote access with phishing-resistant MFA. A 2025 CISA and US Coast Guard threat hunt found a standard IT workstation able to reach a SCADA VLAN over FTP port 21, exactly the gap this step closes. See the Network Segmentation Guide.
- Broker access. Allow cleartext sessions only from a hardened jump host or bastion in the DMZ, reached over an encrypted channel with MFA, so the cleartext leg is as short as possible. Do not let staff use bastion hosts as everyday workstations. See the OT Remote Access Guide.
- Protect the credential. Give the device a unique password held in a vault, rotate it after vendor visits, and never reuse it elsewhere.
- Monitor closely. Put a sensor on the segment and alert on any session that does not come from the jump host.
- Register and review. Record the device, protocol, compensating controls, owner, risk acceptance by [risk owner] and a review date no more than [12] months away, tied to the device's replacement plan.
Where identity fits
Cleartext protocols are mainly a credential problem. The accounts behind them are often shared local administrator logins and service credentials embedded in backup scripts and monitoring tools, which are non-human identities that rarely get rotated. Retiring the protocol is the right time to move automation to dedicated SSH keys or certificates with an owner and expiry. See the Privileged Access Workstations Guide for the administrator side.
Framework mapping
| Framework | Reference | How this playbook supports it |
|---|---|---|
| NIST SP 800-53 Rev. 5 | SC-8 and SC-8(1) Transmission Confidentiality and Integrity; CM-7 Least Functionality and CM-7(1) Periodic Review; AC-17 Remote Access | Encrypted management channels, disabled unneeded services, periodic re-checks, controlled remote administration |
| NIST CSF 2.0 | PR.DS-02, PR.PS-01, PR.IR-01, DE.CM-01 | Data in transit protected, configuration baselines applied, networks protected from unauthorised access, network monitoring |
| CIS Controls v8.1 | 3.10 Encrypt Sensitive Data in Transit; 4.8 Uninstall or Disable Unnecessary Services; 12.6 Use of Secure Network Management and Communication Protocols | Direct match for Phases 2 and 3 |
| ISO/IEC 27001:2022 Annex A | 8.20 Networks security; 8.21 Security of network services; 8.24 Use of cryptography | Network controls and cryptographic protection of management traffic |
| MITRE ATT&CK | T1040 Network Sniffing; T1557 Adversary-in-the-Middle; T1078 Valid Accounts | The techniques that make cleartext credentials useful to an attacker |
Common failure patterns
- Filtering instead of disabling: an ACL hides Telnet, then a rule change or a flat recovery network exposes it again. Disable the service and filter as a second layer.
- Redirecting HTTP to HTTPS and calling it done: the first request, sometimes including credentials posted by old bookmarks or scripts, still goes in clear. Turn the HTTP listener off where the device allows it.
- Forgetting the outbound direction: device management moves to SSH, but nightly configuration backups still go to a TFTP server, which now holds every configuration and shared secret in one unauthenticated place.
- Not rotating exposed passwords: credentials that crossed the network in clear for years are reused on the new SSH service, so the migration changes nothing for an attacker who already captured them.
- Bulk scanning or blocking in OT: a sweep or a broad deny rule stops a controller or a vendor's only support path. Agree exclusions and test windows with the OT owner first.
- Permanent exceptions: legacy devices granted an exception with no review date stay on Telnet for a decade. Tie every exception to a replacement plan.
Practitioner checklist
- Inventory built from scanning, flow logs, sensors and configuration review, with an owner for every device.
- Internet-exposed management interfaces removed from the internet or placed behind a policy enforcement point first.
- Replacement chosen per protocol: SSH v2, SFTP or FTPS, HTTPS with TLS 1.2 or 1.3, SNMPv3 authPriv.
- All tools and jobs migrated and confirmed by flow data before the old service is disabled.
- Cleartext services disabled on the device and the change confirmed after reload.
- Network deny rules for TCP 21 and 23, UDP 69 and HTTP management ports, with logging of denied attempts.
- Every password that crossed the network in clear rotated; automation moved to keys with owners.
- OT and legacy exceptions isolated, brokered through a jump host, monitored and registered with a review date.
- Drift checks and alerts in place so a reset or firmware update cannot silently re-enable a cleartext service.
Standards and references
- CISA: BOD 23-02 Mitigating the Risk from Internet-Exposed Management Interfaces
- CISA, NSA, FBI and partners: Enhanced Visibility and Hardening Guidance for Communications Infrastructure
- CISA: Securing Network Infrastructure Devices
- CISA: Primary Mitigations to Reduce Cyber Threats to Operational Technology
- CISA and USCG: Areas for Cyber Hygiene Improvement After a Proactive Threat Hunt
- NIST: SP 800-52 Rev. 2 Guidelines for TLS Implementations
- NIST: SP 800-53 Rev. 5
Related NHI Mgmt Group resources: Network Ports and Protocols Security Guide · OpenSSH Server Hardening Guide · Firewall Management Guide · OT Remote Access Guide