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

Uninstall bind Package

Ensures the BIND DNS server package is not installed unless the host is intended to be a DNS server.

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 2 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

BIND (named) is a full DNS server that listens on the network and has a long history of high-severity vulnerabilities. If the host is not meant to serve DNS, having the package installed adds an unnecessary, potentially internet-facing service that an attacker could start or exploit. Removing it enforces least functionality (CIS 2.1.4/2.1.5, NIST CM-7).

What Pavois checks

Pavois asks the package database (via dpkg/rpm) whether bind is installed and expects it absent. Checking the effective package state is authoritative regardless of whether the named service is currently stopped or masked.

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

How to verify it is applied

Run rpm -q bind (RHEL-family) or dpkg -s bind9 (Debian/Ubuntu, where the package is bind9), expected not installed. Confirm nothing listens on port 53 with ss -lntup | grep ':53' (expected no named).

Inspect & investigate

  • rpm -q bind / dpkg -l bind9 confirm removal.
  • While installed, the DNS server logs to journalctl -u named (RHEL) or journalctl -u named / bind9 (Debian) and its listening socket is visible with ss -lntup (port 53).

Remediation

Pavois's harden plan removes the bind package (package resource, remove action) with pavois harden apply, stopping and disabling the named service in the process.

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

actionremove
namebind9
resourcepackage
pavois harden plan local

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

Impact & precautions

Removing BIND breaks the host as a DNS server, do not apply this on an authoritative or caching DNS server. Before applying, confirm the host is not serving DNS to other systems (check ss on port 53 and downstream resolver configs). Note this control targets the DNS server; it does not affect the system's own resolver (systemd-resolved/resolv.conf).

Standards mapping

StandardReferenceTypeVersionConfidence
CIS2.1.4, 2.1.5directper OS, see the benchmark tablehigh
NISTCM-6(a), CM-7(a), CM-7(b)supporting800-53 Rev 5 · 800-171 Rev 2 (pinned)medium

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