nerdexam
CompTIA

XK0-004 · Question #460

After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty…

The correct answer is B. Disable and umnstall the Telnet service. Port 23 is used by Telnet, a legacy protocol that transmits all data including credentials in plaintext. The correct security practice is to remove it entirely and replace it with SSH.

Security

Question

After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty best practice?

Options

  • AUse a non-standard port for Telnet
  • BDisable and umnstall the Telnet service
  • CEnsure the kernels are up to date with the latest patches
  • DConfigure the firewall to allow Telnet access only from trusted networks

How the community answered

(41 responses)
  • B
    95% (39)
  • C
    2% (1)
  • D
    2% (1)

Why each option

Port 23 is used by Telnet, a legacy protocol that transmits all data including credentials in plaintext. The correct security practice is to remove it entirely and replace it with SSH.

AUse a non-standard port for Telnet

Moving Telnet to a non-standard port is security through obscurity and does not eliminate the plaintext transmission vulnerability that makes Telnet dangerous.

BDisable and umnstall the Telnet serviceCorrect

Telnet has no encryption, meaning any traffic including passwords is visible to anyone with network access or a packet capture tool. Disabling and uninstalling the service eliminates the attack surface completely, which is the only way to prevent exploitation of the plaintext protocol. SSH (port 22) should be used as a secure replacement.

CEnsure the kernels are up to date with the latest patches

Patching the kernel is good hygiene but does not address the fundamental risk of Telnet transmitting all data unencrypted over the network.

DConfigure the firewall to allow Telnet access only from trusted networks

Restricting Telnet via firewall reduces exposure but leaves an unencrypted service running, which remains exploitable from any permitted host that is compromised.

Concept tested: Disabling insecure legacy protocols in favor of SSH

Source: https://www.ncsc.gov.uk/guidance/network-protocols-security

Topics

#Telnet#port 23#security hardening#service removal

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice