Only sidadm and orasid/oracle User Accounts Exist on Operating System
An XCCDF Rule
Description
SAP tends to use the server or virtual machine exclusively. There should be only
SAP system users sidadm
and orasid
that exist on the operating
system (or virtual machine). If SAP Host Agent is installed, the user sapadm
must exist too. With Oracle Database using oracle
user, the user oracle
should exist as well. While SID
is the SAP System ID, which is always
three alphanumeric characters in upper case, beginning with an alphabetic character,
the user names sidadm
and orasid
are in lower case.
Besides the above SAP users that are automatically detected, other operating system
users can be customized in the refine value variable
var_accounts_authorized_local_users_regex
.
OVAL regular expression is used for the user list.
Test result of both fail
or error
means mismatch of user names and
SAP system. The bash remediation commands can be used to delete unexpected users on
the operating system.
warning alert: Warning
1.
SAP system mount directory
is /sapmnt
(mounted or local file system
or a symbolic link to the target directory);
2. there is maximum one SAP System on each operating system or virtual machine (maximum one SID in /sapmnt and /usr/sap).
With the above limitations, the SAP system users
sidadm
, orasid
, sapadm
and oracle
can be automatically detected.
For other cases, please use the general purpose rule
accounts_authorized_local_users
and customize the refine value variable var_accounts_authorized_local_users_regex
by adding all the authorized user names to the list.
The bash remediation is not limited by the above two conditions, it works in all the cases regardless there is zero, one or multiple SAP systems on the OS/VM.
Rationale
Accounts providing no operational purpose provide additional opportunities for system compromise. Unnecessary accounts include user accounts for individuals not requiring access to the system and application accounts for applications not installed on the system.
- ID
- xccdf_org.ssgproject.content_rule_accounts_authorized_local_users_sidadm_orasid
- Severity
- Medium
- Updated
Remediation - Shell Script
var_accounts_authorized_local_users_regex='<xccdf-1.2:sub xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" idref="xccdf_org.ssgproject.content_value_var_accounts_authorized_local_users_regex" use="legacy"/>'
# never delete the root user
default_os_user="root"