Check: GEN002230
AIX 6.1 SECURITY TECHNICAL IMPLEMENTATION GUIDE:
GEN002230
(in versions v1 r14 through v1 r10)
Title
All shell files must not have extended ACLs. (Cat II impact)
Discussion
Shells with world/group write permissions give the ability to maliciously modify the shell to obtain unauthorized access.
Check Content
Check the permissions of each shell referenced in /etc/shells. Procedure: # cat /etc/shells For each shell listed, run aclget <shell path> #aclget <shell> Check the permissions of each shell referenced in /etc/security/login.cfg. Procedure: #grep shells /etc/security/login.cfg For each shell listed, run aclget <shell path> # aclget <shell> Otherwise, check any shells found on the system. # find / -name "*sh #aclget <directory>/<file> If extended permissions are enabled on any shell, this is a finding.
Fix Text
Remove the extended ACL from the shell file(s) and disable extended permissions. #acledit <directory>/<file>
Additional Identifiers
Rule ID: SV-38744r1_rule
Vulnerability ID: V-22366
Group Title: GEN002230
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000225 |
Employ the principle of least privilege, allowing only authorized accesses for users (or processes acting on behalf of users) which are necessary to accomplish assigned organizational tasks. |
Controls
Number | Title |
---|---|
AC-6 |
Least Privilege |