inaabi / Guides / PCI DSS evidence on a Linux host

PCI DSS evidence on a Linux host

Files a PCI DSS v4.0.1 assessor asks for on a Linux host under requirements 2, 7, 8, and 10, including the gaps this Debian system still has.

Tested on Debian GNU/Linux 12 (bookworm), 2026-12-04.

PCI DSS v4.0.1 is the card-brand standard. Most of it is the application, the network, and the written program. The Linux host shows up when defaults are still in place, when people share root, when passwords do not expire, and when there is no log. The document list is at the PCI Security Standards Council.

This page is those readings from one Debian 12 host on 2026-12-04. It does not make the host PCI DSS compliant. MinakiLabs does not hold a PCI certification. An assessor makes that call.

Requirement 2: defaults and cleartext login

On a lab SSH config, sshd -T -f printed permitrootlogin yes before a drop-in and permitrootlogin no after 00-compliance.conf set PermitRootLogin no. Deleting the file put permitrootlogin yes back. The full drop-in and the undo are on the RHEL 9 STIG page. The host daemon was not reloaded.

dpkg -s telnetd, dpkg -s inetutils-telnetd, and dpkg -s rsh-server each exited 1 with "is not installed". A cleartext remote shell is not on this host. The host firewall was not read. If the only control is a security group, that group is the evidence, and the missing host firewall goes in an exception record.

Requirement 7: one person, one account

Modes on this host:

644 root root /etc/passwd
640 root shadow /etc/shadow
644 root root /etc/group
640 root shadow /etc/gshadow

An ordinary user cannot read /etc/shadow (Permission denied). sudo -n awk -F: '($2 == "") {c++} END{print "empty", c+0}' /etc/shadow printed empty 0. The hashes were not printed.

Accounts that can log in are uid 1000 or above with a shell other than nologin or false. On a fixture file the awk printed alice 1000 /bin/bash and bob 1001 /bin/bash. Root and a uid 999 service account were left out. The same awk on this host printed four lines. Those names are not copied here. Shared root for daily work fails this requirement even when the shadow mode is right.

Requirement 8: a password that expires

/etc/login.defs on this host:

PASS_MAX_DAYS	99999
PASS_MIN_DAYS	0
PASS_WARN_AGE	7
ENCRYPT_METHOD SHA512

99999 means a password does not expire. 0 means it can be changed again immediately. Both were rewritten on a copy of the file to 180 and 1, then the copy was restored from the original. The host file still has 99999 and 0. That is a gap, and the evidence is the gap.

PASS_MIN_LEN is only a comment. dpkg -s libpam-pwquality exited 1. There is no length floor in force. The PAM line that is in force is pam_unix.so obscure yescrypt in /etc/pam.d/common-password. New passwords are yescrypt. ENCRYPT_METHOD SHA512 does not override that. Leave yescrypt. It is the stronger hash. A hash is not a second factor.

Requirement 10: a log and a clock

dpkg -s auditd exited 1. There is no auditd trail to hand over. Installing the package was not run. /var/log is mode 755. A throwaway file was chmod'd from 0777 to 0755 and stat followed. /var/log itself was not chmod'd.

date -u during the collection printed 2026-12-04T16:25:34Z. That is a clock reading, not proof the clock is synced. chronyc was not run.

The collection wrote six files under /tmp/compliance-evidence and then removed them: os.txt, login-defs.txt, modes.txt, packages.txt, sysctl.txt, and empty-passwords.txt. packages.txt listed openssh-server 1:9.2p1-2+deb12u10 and the other six names absent. Undo of the collection is removing that directory. That rm was run.

Questions

Does a passing shadow mode mean the server is PCI DSS compliant?

No. Requirements 2, 7, 8, and 10 are the host's slice. The rest of the standard is still the application, the network, and the assessor.

Should yescrypt be replaced with SHA512?

No. On this host PAM already stores new passwords with yescrypt. SHA512 would be a weaker hash.

Where do the open items go?

PASS_MAX_DAYS 99999, the missing pwquality package, and the missing auditd package are gaps. Each one that you leave open gets an exception record with an expiry.