The system must not allow users to configure .forward files.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-216433SRG-OS-000480SOL-11.1-070170SV-216433r959010_rule2024-11-253
Description
Use of the .forward file poses a security risk in that sensitive data may be inadvertently transferred outside the organization. The .forward file also poses a secondary risk as it can be used to execute commands that may perform unintended actions.
ℹ️ Check
The root role is required. # for dir in \ `logins -ox | awk -F: '($8 == "PS") { print $6 }'`; do ls -l ${dir}/.forward 2>/dev/null done If output is produced, this is a finding.
✔️ Fix
The root role is required. Remove any .forward files that are found. # pfexec rm [filename]