← All rules
SOCLE-CLD-PKG-104// Packageslowinventory state

Remove telnet Clients

Ensures the telnet client package is not installed.

Checked against what is installed or registered, packages present/absent, account databases.

A pass proves✓ running now✓ on disk✓ survives rebootthe qualified verdict →
Debian 12CIS 1.1.0Debian 13CIS 1.0.0FedoraRHEL 10 / Rocky 10 / AlmaLinux 10RHEL 8 / Rocky 8 / AlmaLinux 8CIS 4.0.0RHEL 9 / Rocky 9 / AlmaLinux 9CIS 2.0.0Ubuntu 22.04CIS 3.0.0Ubuntu 24.04CIS 1.0.0Ubuntu 26.04
One check, maps to 4 standards

A mapping is a cross-reference to where each standard places this requirement, anchored and cross-validated, not a claim of equivalence. A passing check is evidence toward these references, how to read it.

Why this rule matters

The telnet client speaks an insecure, unencrypted protocol: credentials and session data sent to a remote host can be captured by anyone on the network path. Removing the client prevents users from establishing cleartext sessions and steers them to the encrypted SSH client instead.

What Pavois checks

Pavois verifies that the telnet package is absent from the package database. The presence of the client binary is the relevant exposure (users could open cleartext sessions to any host), so querying the package manager directly is the authoritative signal.

describe package('telnet') do
  it { should_not be_installed }
end

How to verify it is applied

On Debian/Ubuntu run dpkg -s telnet and expect package 'telnet' is not installed; on RHEL-family run rpm -q telnet and expect package telnet is not installed.

Inspect & investigate

Removal is recorded in grep telnet /var/log/dpkg.log (Debian/Ubuntu) or dnf history / rpm -q --last telnet (RHEL family).

Remediation

Pavois's harden plan declares the telnet package resource with action remove, so pavois harden apply uninstalls the client via the system package manager (apt/dnf).

Pavois applies this with its own harden engine, the plan below, not a shell script:

actionremove
nametelnet
resourcepackage
pavois harden plan local

where the target is local, a user@host SSH alias, or a container , Docs

Impact & precautions

Removing the telnet client is generally safe: SSH replaces it for remote shells. Precaution: the telnet binary is sometimes used as a quick TCP port-probe (telnet host port); if scripts or admins rely on that, switch them to nc/ncat or ss/curl before removing the package.

Standards mapping

StandardReferenceTypeVersionConfidence
ANSSI BP-028R62direct2.0high
CIS2.2.4directper OS, see the benchmark tablehigh
NIST3.1.13supporting800-53 Rev 5 · 800-171 Rev 2 (pinned)medium
PCI DSS2.2.4supporting4.0.1medium

Each reference is a cross-reference anchored in the upstream benchmark and cross-validated against the SCAP Security Guide and ansible-lockdown, not a claim of equivalence. Direct = a prescriptive, line-level requirement; supporting = an abstract control family (NIST) the check provides evidence toward. How to read a mapping.

Sources & references