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/26893

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-5, CSCv7|14.6

Plugin: Unix

Control ID: 48c8008e42f9015deeaa7a702f65851b114ad75232a27ea01120e5e6e373e6a5