Security

A security audit finds telnet, FTP, and TFTP services running on a Linux server. Which four actions remove the exposure and provide a secure way to keep needed functionality? (Choose four.)

Choose 4 answers

Show the answer

Correct answersA. Remove the telnet-server, vsftpd, and tftp-server packages that are no longer neededB. Stop and disable the telnet and TFTP socket units with systemctl disable --nowC. Block TCP ports 21 and 23 and UDP port 69 at the host firewallD. Provide file transfer through SFTP using the existing sshd service

AWhy this is right: Removing packages that are no longer needed eliminates the services and their attack surface.

BWhy this is right: Disable --now stops the socket units and keeps them from starting at boot.

CWhy this is right: Blocking FTP, telnet and TFTP ports at the host firewall closes the exposure if a service returns.

DWhy this is right: SFTP runs over the existing SSH service, so file transfer stays available and encrypted.

EWhy not this: A different port is obscurity only; telnet still sends credentials in cleartext.

FWhy not this: Restricting who can connect still leaves telnet sending credentials and sessions in cleartext.

Disabling the units, removing the packages, blocking the ports, and using SFTP over SSH eliminate the cleartext services and keep file transfer available. Moving telnetd to another port is obscurity only, and limiting it to a subnet still leaves credentials sent unencrypted.