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

From HP-UX 11.31 Security Technical Implementation Guide

Part of GEN002460

Associated with IA controls: DCSL-1

Associated with: CCI-000318

SV-38473r1_rule The system must be checked weekly for unauthorized setgid files as well as unauthorized modification to authorized setgid files.

Vulnerability discussion

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.

Check content

NOTE: This will virtually always require a manual review. Determine if a weekly automated or manual process is used to generate a list of sgid files on the system and compare it with the prior list. If no such process is in place, this is a finding.

Fix text

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

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer