Check: GEN002220
AIX 6.1 SECURITY TECHNICAL IMPLEMENTATION GUIDE:
GEN002220
(in versions v1 r14 through v1 r10)
Title
All shell files must have mode 0755 or less permissive. (Cat I impact)
Discussion
Shells with world/group write permissions give the ability to maliciously modify the shell to obtain unauthorized access.
Check Content
Obtain a list of system shells from /etc/security/login.cfg and check the permissions of these shells. Procedure: #grep shells /etc/security/login.cfg | grep -v \* | cut -f 2 -d = | sed s/,/\ /g | xargs -n1 ls -l If any shell has a mode more permissive than 0755, this is a finding. Obtain a list of system shells from /etc/shells and check the ownership of these shells. Procedure: #cat /etc/shells | xargs -n1 ls -l If any shell has a mode more permissive than 0755, this is a finding.
Fix Text
Change the mode of the shell. # chmod 0755 < shell >
Additional Identifiers
Rule ID: SV-38846r1_rule
Vulnerability ID: V-922
Group Title: GEN002220
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000225 |
The organization employs the concept of least privilege, allowing only authorized accesses for users (and processes acting on behalf of users) which are necessary to accomplish assigned tasks in accordance with organizational missions and business functions. |
Controls
Number | Title |
---|---|
AC-6 |
Least Privilege |