1.2.1.6 Ensure access to files in the /etc/apt/auth.conf.d/ directory is configured

Information

Files in the /etc/apt/auth.conf.d directory contains .conf files with configured credentials for private APT repositories or proxy.

Access to the .conf files in the /etc/apt/auth.conf.d directory should be restricted to prevent secrets leakage of Login information needed to connect to a proxy or to download data from a repository.

Solution

Run the following commands to set all .conf files in the /etc/apt/auth.conf.d/ directory Uid and Gid both to 0/root and mode 0640 :

# chown root:root /etc/apt/auth.conf.d/*
# chmod u-x,g-wx,o-rwx /etc/apt/auth.conf.d/*

See Also

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

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 24bfbcefc32365ddf5bd135b28d9e90ae8499bb7167df7e0b8fc21842e3f459e