Check: GEN002200
AIX 6.1 SECURITY TECHNICAL IMPLEMENTATION GUIDE:
GEN002200
(in versions v1 r14 through v1 r10)
Title
All shell files must be owned by root or bin. (Cat II impact)
Discussion
If shell files are owned by users other than root or bin, they could be modified by intruders or malicious users to perform unauthorized actions.
Check Content
Obtain a list of system shells from /etc/security/login.cfg and check the ownership 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 is not owned by root or bin, 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 is not owned by root or bin, this is a finding.
Fix Text
Change the ownership of the shell with incorrect ownership. # chown root < shell >
Additional Identifiers
Rule ID: SV-38847r1_rule
Vulnerability ID: V-921
Group Title: GEN002200
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 |