GEN001730 - All global initialization files must not have extended ACLs - '/etc/ksh.kshrc'

Information

Global initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon logon.

Solution

Remove the extended ACL from the file.

# ls -l etc/bashrc /etc/csh.cshrc /etc/csh.login /etc/csh.logout /etc/environment /etc/ksh.kshrc /etc/profile /etc/suid_profile /etc/profile.d/* 2>null|grep '+ '|sed 's/^.* ///g'|xargs setfacl --remove-all

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_5_V1R14_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(4), CAT|II, CCI|CCI-000225, Rule-ID|SV-63867r1_rule, STIG-ID|GEN001730, Vuln-ID|V-22356

Plugin: Unix

Control ID: 2ab361f603c1e006b1988aef18c2a0df628a2f91ef357ff00fbf5df49d3bf01c