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

Uninstall xinetd package if not used by network services

Ensures the legacy xinetd super-server package is not installed when no service requires it.

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.0RHEL 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

xinetd is a legacy super-server that listens on ports and launches network daemons on demand. It is largely obsolete, replaced by systemd socket activation, and is mostly used today to wrap old, insecure services (telnet, rsh, tftp). Keeping it installed decreases nothing and increases the risk of accidentally or intentionally exposing those legacy services. Removing the package eliminates that risk and shrinks the attack surface.

What Pavois checks

Pavois queries the package database via the InSpec package('xinetd') resource (rpm -q / dpkg -s). Checking the package guarantees the super-server cannot be reactivated to launch wrapped legacy daemons; if the package is gone, no xinetd-managed service can be brought up.

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

How to verify it is applied

On RHEL-family: rpm -q xinetdpackage xinetd is not installed. On Debian/Ubuntu: dpkg -s xinetddpkg-query: package 'xinetd' is not installed.

Inspect & investigate

  • Package state: rpm -q xinetd / dpkg -s xinetd; removal in /var/log/dnf.rpm.log or /var/log/dpkg.log.
  • Past super-server activity (before removal): journalctl -u xinetd.

Remediation

Pavois's harden plan declares a package resource for xinetd with action remove, so pavois harden apply uninstalls it (dnf remove xinetd / apt-get purge xinetd). Removing the package also removes the xinetd unit, so no restart is needed.

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

actionremove
namexinetd
resourcepackage
pavois harden plan local

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

Impact & precautions

If xinetd stays installed, any legacy service configured under /etc/xinetd.d/ can be (re)exposed on the network. Before applying: as the title warns, confirm no service is actually launched by xinetd, inspect /etc/xinetd.d/ for enabled entries and ss -lntp for ports xinetd is bound to. If a needed service still relies on it, migrate it to a native systemd unit or socket activation first, then remove the package. Removal does not affect SSH, so there is no remote-management lockout risk.

Standards mapping

StandardReferenceTypeVersionConfidence
ANSSI BP-028R62direct2.0high
CIS2.1.19, 2.2.4, 2.1.20directper OS, see the benchmark tablehigh
NISTCM-6(a), CM-7(a), CM-7(b)supporting800-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