1.2.1.5 Ensure access to /etc/apt/auth.conf.d directory is configured

Information

/etc/apt/auth.conf.d contains .conf files with credentials to access APT private repositories.

The /etc/apt/auth.conf.d directory contains APT .conf files which should have restricted access because they control how the package manager runs as root and may contain sensitive information. If writable or readable by non-root users, they could be altered to run malicious commands or expose credentials.

Solution

Run the following commands to set permissions on /etc/apt/auth.conf.d/ Uid and Gid are both 0/root and access is 0755 or more restrictive:

# chown root:root /etc/apt/auth.conf.d
# chmod u=rwx,g=rx,o=rx /etc/apt/auth.conf.d

See Also

https://workbench.cisecurity.org/benchmarks/24932

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3

Plugin: Unix

Control ID: 63f9e49e2d14bff528c33e2a140d1df7490b91add6caf466a7d3a65335980c6d