CXL

©2008 CXL - UScan

 

 

 

Report for Demo
Company
Business Unit
Location
System .

Report name c:\tbxnew-works\reports\myrepu.html
Report date 24-Feb-2008

Key to colors
RISKS Low risk Medium risk High risk
RESULTS Correct or low impact Medium impact Major problem

No Code Test Results
1 UPWDS User Passwords .
1.1 DUPPWD Duplicate names in password file 9 users.
1.2 NOPWD Users without passwords 5 users.
1.3 DISPWD Disabled accounts 11 users.
1.4 BADFIELD Incorrect number of fields 2 users.
1.5 UNMATCH Unmatched password file entries 47 users.
1.6 PWDLIFE Password lifetimes 80 users.
1.7 ACCTINFO Account information
2 UUIDS User UIDs .
2.1 ZEROUID UID=0 5 users.
2.2 NOUID No UID 26 users.
2.3 BADUID Invalid UIDs 4 users.
2.4 DUPUID Duplicate UIDs in the password file 35 users.
3 UGIDS User GIDs .
3.1 ZEROGID Users with GID=0 7 users.
3.2 NOGID Users with no GID 28 users.
3.3 BADGID Users with an invalid GID 4 users.
3.4 DUPGID Duplicate GIDs in the password file 44 users.
3.5 EXSTGID Non-existent GIDs 18 users.
4 UHDIRS. User Home dirs. .
4.1 NOHDIR No home directory 26 users.
4.2 INVHDIR Invalid home directory 54 users.
4.3 SHAREHDIR Shared home directory 29 users.
4.4 STKYHDIR Home directory NOT sticky 0 users.
4.5 WRITEHDIR Writeable home directory 0 users.
4.6 SUSHDIR Home directory contains suspicious files 27 users.
5 USHELLS User Shells .
5.1 NOSHELL No shell shown 29 users.
5.2 INVSHELL Invalid shells 12 users.
5.3 SHARESHELL Shared shells 38 users.
5.4 SUIDSHELL Shells which are SUID/SGID 38 users.
5.5 WRITESHELL Shells which are writeable 40 users.
6 GRPS Groups .
6.1 DUPGRPNAME Duplicate group names 1 groups.
6.2 PWDGROUP Password protected 1 groups.
6.3 BADFIELDS Improper number of fields 2 groups.
6.4 NOUSERGRP No users 5 groups.
6.5 BADUSER Non-existent users 7 groups.
6.6 DUPUSER Duplicate users 6 groups.
6.7 USRSGRP Users in each group 16 groups.
7 GRPGIDS Group GIDs .
7.1 ZEROGID GID=0 2 groups.
7.2 NOGID No GID 3 groups.
7.3 BADGID Invalid GIDs 2 groups.
7.4 DUPGID Duplicate GIDs 4 groups.
8 FILES Files .
8.1 UKNOWNR Files - Unknown owners 9 files.
8.2 UKNGRPS Files - Unknown groups 35 files.
8.3 WLDWRITE Files - WORLD writeable 14 files.
8.4 WLDEXEC Files - WORLD executable 3 files.
8.5 GRPWRIT Files - GROUP writeable 124 files.
8.6 GRPEXEC Files - GROUP executable 2 files.
8.7 BADPRIV Files - Uneven privileges 13 files.
8.8 SUID Files - SUID 1 files.
8.9 SGID Files - SGID 1 files.
8.10 STICKY Files - Sticky 1 files.
8.11 SUID+WW Files - SUID/SGID and WORLD executable/writeable 4 files.
8.12 HOSTINFO Files likely to contain host information 4 files.
8.13 SUWW Startup files which are world writeable 4 files.
9 DIRS Directories .
9.1 UNKOWN Dir - Unknown owners 3 dirys.
9.2 UNKGRP Dir - Unknown groups 15 dirys.
9.3 WRLDWRT Dir - WORLD writeable 8 dirys.
9.4 WRLDEXE Dir - WORLD executable 1 dirys.
9.5 GRPWRT Dir - GROUP writeable 64 dirys.
9.6 GRPEXE Dir - GROUP executable 2 dirys.
9.7 BADPRIV Dir - Uneven privileges 6 dirys.
9.8 SGID Dir - SGID 72 dirys.
9.9 NSTICKY Dir - Not Sticky 7 dirys.
10 FTP FTP .
10.1 FTPOWNBIN Anonymous FTP bin directory has wrong owner Dir. not found.
10.2 FTPOWNETC Anonymous FTP etc directory has wrong owner Dir. not found.
10.3 FTPHDIROWN Anonymous FTP home directory has wrong owner Dir. not found.
11 /ETC /etc .
11.1 ETCWW Directories under /etc has world write access False
11.2 ETCPWD File /etc/default/passwd has insecure permissions True
11.3 ETCPROF File /etc/profile has insecure permissions False
12 LOG FILES Log files .
12.1 LOGLOGEX The login log file does not exist
12.2 LOGLOGOWN Login log not correctly owned
14 AIX AIX .
15 NIS NIS .
15.1 NISUSED Is NIS being used.

 

 

 

1 UPWDS User Passwords
Risk
Passwords are the main access control mechanism employed to prevent unauthorised access to you system.
Users with short, easy to guess or non-existent passwords all make your system vulnerable to attack.

1.1 DUPPWD Duplicate names in password file
Risk
If the PASSWORD file has been manually edited, it is possible that someone could have created a duplicate user.
This will confuse the operating system and administrators and should be rectified.
Actions
Delete the duplicate users so that each user is unique.
Results
 Name            Number
----------------------
cbea 2
dup1 2
tkea 3
yxxxx 2

9 users found

1.2 NOPWD Users without passwords
Risk
There is a high risk of unauthorised access to your system from accounts which do not require a password.
A user without a password has nothing in the second field of the password file. If a shadow password file is being used however, this field in the shadow file will be blank and the ordinary password file will contain a o or and !.
Anyone knowing (or guessing) these user-IDs can log on without a password and access your system.
Actions
Ensure that every user MUST have a valid password.
Enforce password ageing if available.
Results
 The following users do NOT have a password:

gopherr | marvel | kell | bin
adm

5 users found

1.3 DISPWD Disabled accounts
Risk
These users cannot access your system since their password is disabled.
If the user does a remote login to another machine which is classed as a trusted host, they will not be required to enter a password and will simply be logged in.
Actions
Delete these accounts if no longer required or
Set the login shell to a non-existent filename.
Set the home directory to a non-existent directory.
Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
Results
 The following users have a disabled password:

akel | ftp | fxxxx | gophera
gxxxx | ixxxx | jlee | jste
kxxxx | ldru | lxxxx

11 users found

1.4 BADFIELD Incorrect number of fields
Risk
Password files consist of 7 fields:
user-ID : password : UID : GID : text field : home directory : shell
Fields are separated by colons.
If the wrong number of fields are in the file, the system will become confused (e.g. the GID could be read as the UID).
Actions
Examine the password file and ensure that every user has the correct number of fields in each user record.
Results
 The following users have the wrong number of fields:

dgol has only 6 fields.
rden has only 6 fields.

2 users found

1.5 UNMATCH Unmatched password file entries
Risk
If a shadow password file is being used every entry in the normal password file should have an equivalent entry in the shadow file and visa versa.
The password field in the normal password file should be + o or ! and the encrypted password field (e.g. Fg1k92H/YfqtW) should be found in the shadow password file.
Reliance on the encrypted password field may not be possible and unauthorised access could be gained.
Actions
Examine all entries which are unmatched and delete those which are no longer required.
Results
 These users do NOT have entries in the shadow password file although they
do have entries in the ordinary password file:

adm | axxxx | baduser2 | baduser3
bin | bxxxx | cbea | cbea
cgia | cgra | cxxxx | daemon
dup1 | edel | emil | gopher7
gopher8 | gopher9 | guest | hxxxx
i1xxx | i2xxx | jcut | jcut2
lbro | ldix | lpd | MrLongName
MyLongerName | news | nobody | rden
rerw | rgue | root | sxxxx
sys | tjab | tkea | tkea
tkea | uucp | vdor | vsor
vxxxx | xxxxx | yxxxx

47 users found


1.6 PWDLIFE Password lifetimes
Risk
On some versions of Unix, password lifetime information is included in the password file or shadow file, at the end of the encrypted password. In others it will be found in a configuration file which is not examined by UScan.
A comma followed by some characters provide information about the maximum and minimum password lifetimes.
If this information is available in your files, it will be shown below.
The max. lifetime means the user must change his password every x weeks.
The min. lifetime means the user must keep the new one for y weeks.
Long maximum lifetimes increase the risk of passwords becoming widely known.
Short minimum lifetimes (change intervals) mean that a user can change the password back to his original one very quickly.
Actions
Implement a minimum/maximum password lifetime for each user.
Results
 The max. password lifetime policy states 90 days.
The min. password lifetime policy states 60 days.
A * against a figure indicates that this setting is out of policy.

Max. Days Min. Days | Max. Days Min. Days
User-ID Lifetime Lifetime | User-ID Lifetime Lifetime
-------------------------------------|-------------------------------------
nxxxx 11 1* | oxxxx 44 38*
rxxxx 60 0* | txxxx 0 0*
www 7 3* | zxxxx 12 49*

6 users found

The following users do not have a password life time set:

adm akel anonymou axxxx
baduser2 baduser3 bin bxxxx
cbea cbea cgia cgra
cxxxx daemon dgol dup1
dup1 dxxxx edel emil
exxxx ftp fxxxx gopher
gopher7 gopher8 gopher9 gophera
gopherr guest gxxxx hxxxx
i1xxx i2xxx ixxxx jcut
jcut2 jlee jste kell
kpit kxxxx larr lbro
ldix ldru lpd lxxxx
marvel MrLongName mxxxx MyLongerName
news nobody pxxxx qxxxx
rden rerw rgue root
shal sxxxx sys tjab
tkea tkea tkea tlit
tllo uucp uxxxx vdor
vsor vxxxx wais wwwa
wxxxx xxxxx yxxxx yxxxx

80 users found

1.7 ACCTINFO Account information
Risk
Some shadow password files contain user information such as how long the account may be used for and the life of the password.
The columns below are:
o PWD LAST CHANGED The date when the password was last changed.
o MIN DAYS The minimum number of days before a user can change a password (to prevent immediately returning to old password)
o MAX DAYS The maximum days that a password is valid for.
o WARN DAYS Number of days warning that a password needs changing.
o INACT DAYS Number of days of inactivity allowed for that user.
o A/C EXPIRES The absolute days when the account cannot be used.
Passwords which are not changed for long periods can become widely known resulting in unauthorised access.
Actions
Compare the figures below with your company standard and highlight any which fall below. Make all users conform to the standard.
Results
                 Pwd last     Min   Max     Warn  Inact  Account
User-ID changed days days days days expires
---------------------------------------------------------------
adm 27Dec2005 2 30 5 90 26Apr2005
akel 12Nov2005 2 30 5 90 21May2005
anonymou 12Nov2005 2 30 5 90 18May2005
baduser2 30Apr2005 4 30 5 90 14Nov2005
baduser3 17Nov2005 5 30 5 90 10May2005
bin 12Nov2005 2 30 5 90 26Apr2005
daemon 12Nov2005 2 30 5 90 26Apr2005
dgol 12Nov2005 2 30 5 90 23May2005
dup1 15Nov2005 3 30 5 90 09May2005
dxxxx 15Nov2005 0 90 0 30 -
exxxx 15Nov2005 0 90 0 30 -
ftp 12Nov2005 2 30 5 90 26Apr2005
fxxxx 15Nov2005 0 90 0 30 26Apr2005
gopher 19Nov2005 7 90 0 30 -
gophera 20Nov2005 8 90 0 30 -
gopherr 23Nov2005 11 30 5 90 12May2005
guest 12Nov2005 0 90 0 30 17Jan2006
gxxxx 15Nov2005 0 90 0 30 26Apr2005
hxxxx 15Nov2005 0 90 0 30 26Apr2005
ixxxx 16Nov2005 0 40 0 30 26Apr2005
jcut 13Jun1993 00 30 12900 0 -
jlee 27Nov2005 15 30 5 90 27Nov2005
jste 12Nov2005 2 30 5 90 19May2005
kell 12Nov2005 2 30 5 90 25May2005
kpit 26Nov2005 14 90 0 30 -
kxxxx 03Aug2005 0 50 0 22 14Nov2005
larr 12Nov2005 2 30 5 90 20May2005
ldru 12Nov2005 2 30 5 90 24May2005
lpd 14Nov2005 2 30 5 90 29Apr2005
lxxxx 29Jan2006 0 50 0 33 26Apr2005
marvel 24Nov2005 12 30 5 90 13May2005
MrLongName 21Nov2005 9 90 0 30 -
mxxxx 06Feb1994 0 90 0 30 -
MyLongerName 21Nov2005 9 90 0 30 -
nobody 13Nov2005 1 30 5 90 28Apr2005
nxxxx 24Jun1994 0 100 -
oxxxx 15Nov2005 0 90 0 30 -
pxxxx 24Jun1994 0 90 0 30 -
qxxxx 24Jun1994 0 10000 -
root - 0 90 0 30 -
rxxxx 15Nov2005 0 50 0 34 26Apr2005
shal 12Nov2005 2 30 5 90 26May2005
sxxxx 24Jun1994 0 90 0 30 -
sys 12Nov2005 2 30 5 90 26Apr2005
tlit 18Nov2005 6 30 5 90 11May2005
tllo 15Nov2005 0 92 0 33 27May2005
txxxx 15Nov2005 0 90 0 30 26Apr2005
uucp 16Dec2005 2 30 5 90 27Apr2005
uxxxx 06Feb1994 0 90 0 30 -
vsor 28Nov2005 16 30 5 90 26May2005
wais 22Nov2005 10 90 0 30 -
www 21Nov2005 9 90 0 30 -
wwwa 25Nov2005 13 10000 -
wxxxx 15Nov2005 0 90 0 30 26Apr2005
xxxxx 15Nov2005 0 90 0 30 26Apr2005
yxxxx 24Jun1994 0 90 0 30 26Apr2005
zxxxx 29Apr2005 0 90 0 30 14Nov2005
zxxxx 29Apr2005 0 90 0 30 14Nov2005

57 users found

 

 

 

2 UUIDS User UIDs
Risk
On Unix systems, the User Identification (UID) is used to define the user to the operating system. The username is not actually used - only by the account owner when signing-on.
Normally, the system manager will give every user a different UID and it is this number which is used to determine the user's privileges.

2.1 ZEROUID UID=0
Risk
On many Unix systems users with UID=0 are SUPERUSERs. Usually this user is called ROOT but any other users with a UID of 0 will have the same high privileges.
Anyone with a UID of 0 runs without any security checks being performed and the user will have full access to the whole system.
A super user can do the following:
o Read, modify or delete any file on the system
o Run any program including compilers
o Add, change or delete users' accounts
o Become any other user on the system
o Access any working device
o Shut down the computer
Actions
Ensure that every user shown below really should have these privileges.
Change the UID of any user who does not need these facilities.
Results
 The following users have a UID=0:

dgol | edel | larr | lxxxx
rerw

5 users found

2.2 NOUID No UID
Risk
This is an odd situation. The system needs a UID to recognise a user since it does not use their user-ID. Thus a user without a UID cannot sign on and does not really exist.
Actions
Delete these users or give them a valid, non-zero UID.
Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
Results
 The following users do NOT have a UID:

adm | baduser2 | baduser3 | bin
bxxxx | daemon | guest | hxxxx
ixxxx | jcut | lbro | lpd
MrLongName | MyLongerName | news | nobody
rden | root | sxxxx | sys
tllo | uucp | vdor | vsor
vxxxx | xxxxx

26 users found

2.3 BADUID Invalid UIDs
Risk
A valid UID is one which is an integer in the range 0 to 65535.
Most systems will only recognise UIDs in this range and thus any shown below have something wrong with them.
UIDs are essential for the operating system to recognise the user (not the user-ID).
An unrecognised user may be treated in an unpredictable way by the system.
Actions
Find out why these users have invalid UIDs. Change them to correct values.
Results
 The following users have an invalid UID:


User UID | User UID
---------------------------------|---------------------------------
cbea hu229 | kpit 899999
tkea 98909 | tlit AA200

4 users found

2.4 DUPUID Duplicate UIDs in the password file
Risk
Users with duplicate UIDs are treated by the system as being the same person since the system only recognises UIDs, not user-IDs. This is going to cause confusion especially if the accounts have different permissions.
Users will be treated with the same privileges and access to the system.
Actions
Ensure that every user has a unique and valid numeric UID.
Results
 The following duplicate UIDs are used:

UID=0
dgol | edel | rerw | lxxxx
larr

UID=222
dup1 | gopherr | dup1

UID=225
cgia | tjab

UID=229
tkea | cbea

UID=3
mxxxx | txxxx | rxxxx | qxxxx
yxxxx | yxxxx | wxxxx | nxxxx
pxxxx | kxxxx | i2xxx | i1xxx
gxxxx | fxxxx | exxxx | cxxxx
axxxx | zxxxx | oxxxx

UID=7
gophera | gopher7 | gopher8 | gopher9

35 users found

6 UIDs are duplicated.

 

 

 

3 UGIDS User GIDs
Risk
Every user belongs to one or more groups. Groups are used to collect together users with similar jobs or access to the system.
Like users, each group is given a unique number called a GID which the system recognises to extend the users access to files and directories.

3.1 ZEROGID Users with GID=0
Risk
The group with a GID of zero is often referred to as the 'system' or 'wheel' group. On many Unix systems only users in this group are able to use the su command. Thus only these users can become super users.
Users in this group could become super users with full access to the system.
The ROOT account will normally be found in this group and is not a problem.
Actions
Review any users shown below and ensure that you are happy for them to possibly become super users.
Results
 The following 'primary' users have a GID=0:

gxxxx | kpit | larr | ldru
rerw | tlit | yxxxx

7 users found



The following 'secondary' users have a GID=0:


0 users found

3.2 NOGID Users with no GID
Risk
This is an odd situation. The system needs a GID to recognise a user's GROUP.
Actions
Delete these users or give them a valid, non-zero GID.
Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
Results
 The following users do NOT have a GID:

adm | baduser2 | baduser3 | bin
cxxxx | daemon | dgol | edel
emil | guest | hxxxx | ixxxx
jcut | jcut2 | lbro | lpd
MrLongName | MyLongerName | nobody | root
shal | sxxxx | sys | tjab
uucp | uxxxx | vsor | xxxxx

28 users found

3.3 BADGID Users with an invalid GID
Risk
The users listed below have invalid GIDs. This is dangerous if the GID translates into a number (e.g. kl0 maybe taken as GID=0).
Users in these groups could become super users with full access to the system.
Actions
Change to a legal numeric value.
Results
 The following users have an invalid GID:

jlee 99990 | tkea QQ
tkea 90206 | tkea gg206

4 users found

3.4 DUPGID Duplicate GIDs in the password file
Risk
These users share GIDs. This is not a problem but you should be aware that these users are likely to have the same access profiles to the same files and programs.
Users in these groups could gain unintended access to parts of the system.
Actions
Review users in each group and ensure that they should be grouped in the way they are.
Results
 The following GIDs are shared:

GID=-2
marvel | gopher

GID=0
gxxxx | ldru | rerw | larr
tlit | yxxxx | kpit

GID=1
anonymou | vdor | wais | akel
www

GID=12
gopher8 | gophera | gopherr | dup1
dup1 | gopher9 | gopher7

GID=206
tllo | cgra | cgia | cbea
rden | ldix | jste | cbea

GID=207
mxxxx | wxxxx | vxxxx | txxxx
rxxxx | qxxxx | pxxxx | oxxxx
nxxxx | lxxxx | bxxxx | i2xxx
axxxx | exxxx | kxxxx

44 users found

3.5 EXSTGID Non-existent GIDs
Risk
These users have GIDs of groups which do not exist in the group file.
Essentially users do not belong to an initial group.
Actions
Reassign these users to valid groups or delete them.
Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
Results
 User             GID
--------------------
akel 1
anonymou 1
dxxxx 766
fxxxx 987
gopher -2
i1xxx 932
jlee 99990
kell 1206
marvel -2
news 208
rgue -206
tkea 90206
vdor 1
wais 1
www 1
wwwa 9207
yxxxx 223
zxxxx 211

18 users found

 

 

 

4 UHDIRS. User Home dirs.
Risk
When a user successfully logs onto a system, they are placed in their home directory. This directory may contain their own start-up programs or menus and is used to configure their start-up.

4.1 NOHDIR No home directory
Risk
On some systems, not having a home directory may prevent a user from logging on to the system and they will be returned to the login prompt.
On other systems the user will be placed in the ROOT directory with the message 'Changing directory to /'.
Initial programs or menus may not be activated when the user logs on.
Actions
Ensure that every user has a valid home directory.
This may be used as a means of disabling the account in which case it would be better to delete the user all together. Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
Results
 The following users do NOT have a home directory set:

adm | baduser2 | baduser3 | bin
daemon | dgol | emil | exxxx
guest | hxxxx | ixxxx | jcut
lbro | lpd | MrLongName | mxxxx
MyLongerName | news | nobody | rden
root | sxxxx | sys | uucp
vsor | xxxxx

26 users found

4.2 INVHDIR Invalid home directory
Risk
On some systems, not having a valid home directory may prevent a user from logging on to the system and they will be returned to the login prompt.
On other systems the user will be placed in the ROOT directory with the message 'Changing directory to /'.
Initial programs or menus may not be activated when the user logs on.
Actions
Ensure that every user has a valid home directory.
This may be used as a means of disabling the account in which case it would be better to delete the user all together. Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
Results
   
User Directory
-------------------------
adm
akel /bin/hh1/
anonymou /anonftp/
baduser2
baduser3
bin
cbea /u/cbea/
cbea /u/cbea/
cgra /u/cgra/
daemon
dgol
dup1 /prod/gopher/data/
dup1 /prod/gopher/data/
edel /u/edel/
emil
exxxx
ftp /anonftp/
gopher /home/gopher/
gopher7 /marvel/gopher/data/
gopher8 /marvel/gopher/data/
gopher9 /marvel/gopher/data/
gophera /marvel/gopher/data/
gopherr /prod/gopher/data/
guest
hxxxx
i1xxx /etc/jj/
i2xxx /etc/jj/
ixxxx
jcut
jlee /u/jlee/
jste /u/jste/
kpit /u/kpit/
lbro
ldix /u/ldix/
ldru /u/ldru/
lpd
marvel /home/gopher/
MrLongName
mxxxx
MyLongerName
news
nobody
qxxxx /myhomedir/
rden
rerw /u/rerw/
root
sxxxx
sys
tlit /u/tlit/
tllo /u/tllo/
uucp
vdor /u/vsor/
vsor
xxxxx

54 users found

4.3 SHAREHDIR Shared home directory
Risk
These users share home directories and are thus likely to have similar access profiles. Ensure that you are satisfied with these groupings of users.
A change made to one user could impact several others.
Actions
Review the users sharing each home directory.
Results
 The following home directories are shared:

Home directory=/bin/
oxxxx | zxxxx | yxxxx | yxxxx
wxxxx | vxxxx | uxxxx | txxxx
fxxxx | pxxxx | wais | nxxxx
lxxxx | kxxxx | gxxxx | dxxxx
cxxxx | bxxxx | rxxxx

Home directory=/usr/
tjab | axxxx

Home directory=/u/larr/
larr | kell | shal | jcut2

Home directory=/u/tkea/
rgue | tkea | tkea | tkea

29 users found

4 home directories are shared.

4.4 STKYHDIR Home directory NOT sticky
Risk
If a directory is flagged as sticky, files in the directory can only be removed, renamed or unlinked by:
o the file owner
o the directory owner
o the super user.
Other users could modify or delete the data files or programs in the user's home directory.
Actions
Ensure that all home directories have this set.
Results
   
0 users found

4.5 WRITEHDIR Writeable home directory
Risk
If a user's home directory is world or even group writeable, other people can modify the files.
This is an easy way of for a hacker to gain the password of a user by inserting a password capturing program into the user's home directory, for example masquerading as the ls command.
Actions
Remove the write permission from the directory.
Suggested permissions are:
owner:rwx group:r-x world:--- (e.g. drwxr-x---)
Use chmod a-w HomeDirName or chmod 750 HomeDirName
Results
   
0 users found

4.6 SUSHDIR Home directory contains suspicious files
Risk
Users should not have 'system' files in their home directories.
If they are able to replace the 'real system' files with their own modified files, they could severely disrupt the system. They may be developing a new 'ls' command which corrupts files instead of listing directories.
Actions
Examine these files and discover what they are and what they do.
Ask the user why they are there and then remove them.
Results
 User bxxxx       /bin/shadow
User cxxxx /bin/shadow
User dxxxx /bin/shadow
User fxxxx /bin/shadow
User gxxxx /bin/shadow
User jcut2 /u/larr/cron
User kell /u/larr/cron
User kxxxx /bin/shadow
User larr /u/larr/cron
User lxxxx /bin/shadow
User nxxxx /bin/shadow
User oxxxx /bin/shadow
User pxxxx /bin/shadow
User rgue /u/tkea/passwd
User rxxxx /bin/shadow
User shal /u/larr/cron
User tkea /u/tkea/passwd
User tkea /u/tkea/passwd
User tkea /u/tkea/passwd
User txxxx /bin/shadow
User uxxxx /bin/shadow
User vxxxx /bin/shadow
User wais /bin/shadow
User wxxxx /bin/shadow
User yxxxx /bin/shadow
User yxxxx /bin/shadow
User zxxxx /bin/shadow

27 Files found

 

 

 

5 USHELLS User Shells
Risk
Shells are a means of providing the user with an operating system language which lets them perform a number of tasks easily.
Common shells are sh, ksh, and csh.

5.1 NOSHELL No shell shown
Risk
Every user should have a shell defined. This file should exist, be valid, and ideally should be a compiled program.
o A binary (compiled) file only needs EXECUTE permission.
o A script file will need READ permission.
o The shell should not have the SUID/SGID bit set.
On some systems, the user cannot login if they do not have a shell.
On other systems, the account will be admitted onto the system using the default shell which is usually the Bourne shell.
The message produced will be:
Using /bin/sh
Actions
Ensure that every user has a shell defined.
This file should be a compiled program and should not have SUID/SGID set.
Results
 The following users do NOT have a shell set:

adm | baduser2 | baduser3 | bin
cgia | daemon | dgol | fxxxx
guest | hxxxx | ixxxx | jcut
jste | lbro | lpd | lxxxx
MrLongName | mxxxx | MyLongerName | nobody
rden | root | sxxxx | sys
tkea | tkea | uucp | vsor
xxxxx

29 users found

5.2 INVSHELL Invalid shells
Risk
Every user should have a shell defined. This file should exist, be valid, and ideally should be a compiled program.
o A binary (compiled) file only needs EXECUTE permission.
o A script file will need READ permission.
o The shell should not have the SUID/SGID bit set.
On some systems, the user cannot login if they do not have a shell.
On other systems, the account will be admitted onto the system using the default shell which is usually the Bourne shell.
Some of these could still be valid if they are symbolic links to real files.
Actions
Ensure that every user has a shell defined.
If this file has been chosen to prevent the user from logging in, then decide whether this user still needs to be registered on the system.
Delete them completely from the password file if they are no longer required.
Do NOT delete any system accounts such as root,bin,sys,uucp,nobody or daemon.
This file should be a compiled program and should not have SUID/SGID set.
Results
 User            Shell
---------------------
exxxx /bin/myshell
gopher /bin/gophshell
gopher7 /*
gopher9 /bin/ksh1
gopherr /*
jcut2 /bin/ksh2
ldix /usr/sys
marvel /usr/bin/gophshell
qxxxx /bin/myshell
tllo /bin/ksh2
yxxxx /bin/ksh/test1
zxxxx /bin/zxxxxshell

12 users found

5.3 SHARESHELL Shared shells
Risk
These users share shells. If one user changes a file he will have an impact on the other users which may have undesirable consequences.
Actions
Provide each user with an individual shell which can only be amended by them (or ROOT).
Results
 The following shell files are shared:

Shell file=/bin/file23
edel | edel

Shell file=/bin/ksh
larr | larr | dup1 | gopher8
anonymou | wwwa | vdor | dup1
jlee | rerw | wais | ldru
i1xxx | yxxxx | wxxxx | vxxxx
uxxxx | txxxx | rxxxx | pxxxx
oxxxx | nxxxx | kxxxx | i2xxx
emil | tkea | cgra | tjab
rgue | cbea | tlit | cbea
dxxxx

Shell file=/bin/ls
kell | kell

Shell file=/bin/sh
bxxxx | bxxxx | axxxx | cxxxx

Shell file=/binx/myshell
gophera | gophera

38 users found

5.4 SUIDSHELL Shells which are SUID/SGID
Risk
A shell with SUID/SGID set could give the user the ability to execute privileged commands.
Actions
Find out and justify the need for the SUID/SGID bit setting. Remove this bit from the permissions.
Results
 User             Permission       Shell
---------------------------------------
anonymou ---X-WSRWX /bin/ksh
axxxx ---X-WSRWX /bin/sh
bxxxx ---X-WSRWX /bin/sh
cbea ---X-WSRWX /bin/ksh
cbea ---X-WSRWX /bin/ksh
cgra ---X-WSRWX /bin/ksh
cxxxx ---X-WSRWX /bin/sh
dup1 ---X-WSRWX /bin/ksh
dup1 ---X-WSRWX /bin/ksh
dxxxx ---X-WSRWX /bin/ksh
emil ---X-WSRWX /bin/ksh
gopher8 ---X-WSRWX /bin/ksh
gxxxx ---X-WSRWX /bin/sh
i1xxx ---X-WSRWX /bin/ksh
i2xxx ---X-WSRWX /bin/ksh
jlee ---X-WSRWX /bin/ksh
kpit ---X-WSRWX /bin/ksh
kxxxx ---X-WSRWX /bin/ksh
larr ---X-WSRWX /bin/ksh
ldru ---X-WSRWX /bin/ksh
nxxxx ---X-WSRWX /bin/ksh
oxxxx ---X-WSRWX /bin/ksh
pxxxx ---X-WSRWX /bin/ksh
rerw ---X-WSRWX /bin/ksh
rgue ---X-WSRWX /bin/ksh
rxxxx ---X-WSRWX /bin/ksh
shal ---X-WSRWX /bin/jxjx2
tjab ---X-WSRWX /bin/ksh
tkea ---X-WSRWX /bin/ksh
tlit ---X-WSRWX /bin/ksh
txxxx ---X-WSRWX /bin/ksh
uxxxx ---X-WSRWX /bin/ksh
vdor ---X-WSRWX /bin/ksh
vxxxx ---X-WSRWX /bin/ksh
wais ---X-WSRWX /bin/ksh
wwwa ---X-WSRWX /bin/ksh
wxxxx ---X-WSRWX /bin/ksh
yxxxx ---X-WSRWX /bin/ksh

38 users found

5.5 WRITESHELL Shells which are writeable
Risk
Where a binary file is being used the correct permissions are - --x --x --x
With a script file, READ permission is also required. This means that other users can read and copy the file.
A copy of a shell could be modified to cause serious user/system problems.
Actions
Make sure the shells are binary files and have the permissions shown above.
Results
 User             Permission  Shell
----------------------------------
anonymou ---x-wsrwx /bin/ksh
axxxx ---x-wsrwx /bin/sh
bxxxx ---x-wsrwx /bin/sh
cbea ---x-wsrwx /bin/ksh
cbea ---x-wsrwx /bin/ksh
cgra ---x-wsrwx /bin/ksh
cxxxx ---x-wsrwx /bin/sh
dup1 ---x-wsrwx /bin/ksh
dup1 ---x-wsrwx /bin/ksh
dxxxx ---x-wsrwx /bin/ksh
emil ---x-wsrwx /bin/ksh
gopher8 ---x-wsrwx /bin/ksh
gophera -rw-rw-r-- /binx/myshell
gxxxx ---x-wsrwx /bin/sh
i1xxx ---x-wsrwx /bin/ksh
i2xxx ---x-wsrwx /bin/ksh
jlee ---x-wsrwx /bin/ksh
kpit ---x-wsrwx /bin/ksh
kxxxx ---x-wsrwx /bin/ksh
larr ---x-wsrwx /bin/ksh
ldru ---x-wsrwx /bin/ksh
nxxxx ---x-wsrwx /bin/ksh
oxxxx ---x-wsrwx /bin/ksh
pxxxx ---x-wsrwx /bin/ksh
rerw ---x-wsrwx /bin/ksh
rgue ---x-wsrwx /bin/ksh
rxxxx ---x-wsrwx /bin/ksh
shal ---x-wsrwx /bin/jxjx2
tjab ---x-wsrwx /bin/ksh
tkea ---x-wsrwx /bin/ksh
tlit ---x-wsrwx /bin/ksh
txxxx ---x-wsrwx /bin/ksh
uxxxx ---x-wsrwx /bin/ksh
vdor ---x-wsrwx /bin/ksh
vxxxx ---x-wsrwx /bin/ksh
wais ---x-wsrwx /bin/ksh
www -rw-rw-r-- /binx/myshell
wwwa ---x-wsrwx /bin/ksh
wxxxx ---x-wsrwx /bin/ksh
yxxxx ---x-wsrwx /bin/ksh

40 users found

 

 

 

6 GRPS Groups
Risk
Every user belongs to one or more groups. Groups are used to collect together users with similar jobs or access to the system.

6.1 DUPGRPNAME Duplicate group names
Risk
This could confuse the system and there is possibly something wrong if these exist. Problems will arise when you add or remove names from a group.
Actions
Rename duplicate groups correctly. Only leave the correct one.
Results
 Group               Number
--------------------------
ftp 2

1 group found

6.2 PWDGROUP Password protected
Risk
Groups rarely need passwords as the security is handled by the user-ID.
Actions
Remove the passwords and replace with a '*'.
Results
 The following groups have a password:

lawmex

1 group found

6.3 BADFIELDS Improper number of fields
Risk
The group file should contain records whose fields are separated by three colons. If not, unpredictable results will occur depending on which is the missing field.
Actions
Fix these group records and ensure that there are only four fields.
Results
 The following groups have the wrong number of fields:

lawlib has too many fields - 5
ecs has only 3 fields.

2 groups found

6.4 NOUSERGRP No users
Risk
The following groups do not have any VALID users in them.
If these groups do not contain any users, why do they exist.
Actions
Delete any unused and therefore unnecessary groups.
Reassign group ownership of files and directories to groups populated with the appropriate users.
Results
 The following groups do not have any valid users:

ecs | gopheru | groupA | law2
test

5 groups found

6.5 BADUSER Non-existent users
Risk
The following groups have non-existent users i.e. they do not exist in the password file.
Actions
Examine the GROUP file and remove those users who are not present in the PASSWORD file.
Results
 The following users in these groups do not exist in the password file:


Group:ftp
news1 | dkdkd

Group:gophera
prog1 | prog2

Group:law1
lawuser | Sid22 | lawuser

Group:lawbraz
user25 | user26 | user27 | user25
user25

Group:news
news1 | dkdkd

Group:test1
t

Group:wwwa
jxxxx | z

7 groups found

6.6 DUPUSER Duplicate users
Risk
A user is listed more than once in a group. If a user is deleted, they may still keep their privileges.
Actions
Remove the duplicates, leaving only one user in the list.
Results
 The following users are duplicated in the group file:

Group = gophera
tlit | tlit
Group = lawbraz
user25 | user25 | user25
Group = ftpa
rden | rden | rden
Group = news
news | news
Group = ftp
news | news
Group = law1
lawuser | lawuser

6 groups found

6.7 USRSGRP Users in each group
Risk
This is a simple list of users in each group.
It is possible that users have been assigned to the wrong group.
Actions
Examine each group and ensure that the members of that group are all valid and appropriate for the functions performed by the group.
Results
   
Group=lawlib
Primary - uxxxx | jcut2 | edel
Primary - emil | lbro | dgol
Primary - cxxxx | shal | tjab
Secondary - None

Group=groupA
Primary - None
Secondary - None

Group=test
Primary - None
Secondary - None

Group=lawmex
Primary - ldru | larr | tlit
Primary - rerw | kpit | gxxxx
Primary - yxxxx
Secondary - None

Group=test1
Primary - None
Secondary - None

Group=gophera
Primary - dup1 | gophera | gopher7
Primary - gopher9 | dup1 | gopherr
Primary - gopher8
Secondary - vsor | gophera | gopherr
Secondary - cxxxx | tlit

Group=gopheru
Primary - None
Secondary - None

Group=lawbraz
Primary - None
Secondary - None

Group=ftp
Primary - ftp
Secondary - None

Group=ftpa
Primary - tllo | cbea | jste
Primary - ldix | rden | cbea
Primary - cgia | cgra
Secondary - tkea | rgue | tkea
Secondary - tkea | jcut | edel
Secondary - emil | lbro | shal
Secondary - tjab | ldru | larr
Secondary - rerw | tllo | cbea
Secondary - jste | rden | cbea
Secondary - cgia | cgra

Group=ecs
Primary - None
Secondary - None

Group=wwwa
Primary - i2xxx | wxxxx | vxxxx
Primary - txxxx | rxxxx | qxxxx
Primary - pxxxx | oxxxx | nxxxx
Primary - mxxxx | kxxxx | exxxx
Primary - bxxxx | axxxx | lxxxx
Secondary - dxxxx | yxxxx | xxxxx
Secondary - fxxxx | sxxxx | ixxxx
Secondary - hxxxx | uxxxx | cxxxx
Secondary - gxxxx | yxxxx | wxxxx
Secondary - vxxxx | txxxx | rxxxx
Secondary - qxxxx | pxxxx | oxxxx
Secondary - nxxxx | mxxxx | kxxxx
Secondary - exxxx | bxxxx | axxxx
Secondary - lxxxx

Group=news
Primary - None
Secondary - news

Group=ftp
Primary - None
Secondary - news

Group=law2
Primary - None
Secondary - None

Group=law1
Primary - None
Secondary - None

 

 

 

7 GRPGIDS Group GIDs
Risk
Every user belongs to one or more groups. Groups are used to collect together users with similar jobs or access to the system.
Like users, each group is given a unique number called a GID which the system recognises to extend the users access to files and directories.

7.1 ZEROGID GID=0
Risk
On many Unix systems only users within these groups are able to use the SU (Set UID) command. Thus only these users can become super users.
Actions
Review any groups shown below and ensure that you are happy for the users to possibly become super users.
Results
 The following groups have a GID of 0:

lawmex | test1

2 groups found

7.2 NOGID No GID
Risk
Groups without a GID will severely confuse the system.
Actions
Every group should have a unique group number which is reflected in the user profiles.
Results
 The following groups do NOT have a GID:

lawlib | groupA | test

3 groups found

7.3 BADGID Invalid GIDs