GEN002460 - The system must be checked weekly for unauthorized setgid files as well as unauthorized modification to authorized setgid files

Information

Files with the setgid bit set will allow anyone running these files to be temporarily assigned the group id of the file. While many system files depend on these attributes for proper operation, security problems can result if setgid is assigned to programs that allow reading and writing of files, or shell escapes.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Establish a weekly automated or manual process to generate a list of sgid files on the system and compare it with the prior list. To create a list of sgid files:

# find / -type f -perm -2000 -exec ls -lL {} ; >> sgid-file-list

See Also

https://iasecontent.disa.mil/stigs/zip/U_HPUX_11-31_V1R19_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000318, Rule-ID|SV-38473r1_rule, STIG-ID|GEN002460, Vuln-ID|V-804

Plugin: Unix

Control ID: bff5beee15e92841979d2ccc934dce22fcfd0345fd64f45aa39b2c7e15cb3eaa