Oracle Database Security Assessment Report - User Accounts

The Oracle Database Security Assessment Report - User Accounts section displays the following information:

NameFinding IDDescriptionLink(s)
User Accounts-

Displays the user accounts and the following information about each account:

  • User Name - Displays the name of the user.
  • Profile - Displays the profile assigned to the account.
  • Status - Displays whether the account is, for example, Open, Locked, Expired, or in Rollover.
  • Authentication Type - Displays the type of authentication used.
  • Default Tablespace - Displays the default tablespace for the account.
  • Oracle Defined - Displays whether the user account is oracle maintained or not.
  • Read Only - Displays whether the account is read-only or not.
  • Last Password Change - Displays the last date and time the user's password was changed.
-
Users with DEFAULT ProfileUSER.DEFAULTPROFILEDisplays the DEFAULT user profile password and resource parameters and the number of users in it.
Users with Default PasswordsUSER.DEFPWD

Displays information about the user accounts with default passwords.

Default account passwords for predefined Oracle accounts are well known. Active accounts with default passwords provide a trivial means of entry for attackers, but well-known passwords should be changed for locked accounts as well.

If a database-creation script leaves the SYS or SYSTEM password unchanged, treat the affected account as having a default password. Because the default password is present in the script, change it to improve security. For each unused predefined account, make it schema-only by running ALTER USER <user> NO AUTHENTICATION.

Note: The SYS user password, stored in the database password file and managed by ORAPWD, is not considered for this finding.

Users with Expired PasswordsUSER.EXPIRED

Displays information about the user accounts with expired passwords.

Password expiration is used to ensure that users change their passwords regularly. Unlocked accounts with an expired password can present a security risk, especially as those accounts age. Although the password is expired, because the account is unlocked, it can easily be used by anyone who knows the old password. You should investigate accounts that have been unused for an extended period to determine whether they should remain active.

Inactive UsersUSER.INACTIVE

Displays information about the user accounts that are not in use and also accounts that are not configured to be locked when inactive.

If a user account is no longer in use, it increases the attack surface of the system unnecessarily while providing no corresponding benefit. Furthermore, unauthorized use is less likely to be noticed when no one is regularly using the account. Accounts that have been unused for more than 30 days should be investigated to determine whether they should remain active. A solution is to set INACTIVE_ACCOUNT_TIME in the profiles assigned to users.

Sample SchemasUSER.SAMPLE

Displays information about potential sample schemas in the database, such as SCOTT, HR, OE, SH, PM, IX, ADAMS, BLAKE, CLARK, and BI.

Sample schemas are well-known accounts provided by Oracle to serve as simple examples for developers. They generally serve no purpose in a production database and should be removed because they unnecessarily increase the attack surface of the database.

Application Owner AccountUSER.APPOWNER

Checks the database for the account that could be considered the application owner and for objects accessible by the application owner. Any user not "oracle maintained" that owns most objects in the database is considered the Application Owner. This check:

  • Lists application owners
  • Lists users who can login into database
  • Lists app owners and the objects owned by it along with the non-app owners who can access those objects
Shared AccountsUSER.SHAREDDisplays users that have multiple administrative privileges and proxy users.
Users with ObjectsUSER.OBJOWNERDisplays application users who own objects and can grant access to those objects to other users
Users Authorized for Object OwnershipUSER.OBJAUTHZDisplays non-oracle maintained users who own objects
Users with Security ObjectsUSER.SECURITYOBJSDisplays users who own security objects
Users with Grant OptionUSER.GRANTOPTIONChecks for users that have been granted privileges with WITH GRANT OPTION.
Users with Sensitive DataUSER.SENSITIVEDATA

Displays users that own tables with columns marked as sensitive with TSDP and users that can access those tables.

To ensure secure access to sensitive information, review these users. It is best to grant access to data through roles rather than directly to individual accounts.

User Schemas in SYSTEM or SYSAUX TablespaceUSER.TABLESPACE

Displays information about regular user accounts that use reserved Oracle-supplied tablespaces as their default tablespace or that have objects stored in them.

The SYSTEM and SYSAUX tablespaces are reserved for Oracle-supplied user accounts. To avoid a possible denial of service caused by exhausting these resources, regular user accounts should not use these tablespaces. Prior to Oracle Database 12c Release 2 (12.2), the SYSTEM tablespace cannot be encrypted, and this is another reason to avoid user schemas in this tablespace.

Case-Sensitive PasswordsUSER.PASSWORDCASE

Displays whether case-sensitive passwords are enabled.

Case-sensitive passwords are recommended because including both upper and lower-case letters greatly increases the set of possible passwords that must be searched by an attacker who is attempting to guess a password by exhaustive search. Setting SEC_CASE_SENSITIVE_LOGON to TRUE ensures that the database distinguishes between upper and lower-case letters in passwords.

Note: In 21c USER.PASSWORDCASE is not expected to be shown as SEC_CASE_SENSITIVE_LOGON is desupported.

Legacy Password VersionsUSER.AUTHLEGACY

Displays information about the user accounts with obsolete password verifiers.

For each user account, the database may store multiple verifiers, which are hashes of the user password. Each verifier supports a different version of the password authentication algorithm. Every user account should include a verifier for the latest password version supported by the database so that the user can be authenticated using the latest algorithm supported by the client. When all clients have been updated, the security of user accounts can be improved by removing the obsolete verifiers. HTTP password verifiers are used for XML Database authentication. Use the ALTER USER command to remove these verifiers from user accounts that do not require this access.

User Profiles-Displays information about the user profiles.-
Users with no Password Complexity RequirementsUSER.PASSWORDFUNCTION

Displays information about profiles with and without a password complexity verification function. Users not subject to password complexity verification are also displayed.

Password verification functions are used to ensure that user passwords meet minimum requirements for complexity, which may include factors such as length, use of numbers or punctuation characters, difference from previous passwords, etc. Oracle supplies several predefined functions, or a custom PL/SQL function can be used. Every user profile should include a password verification function.

Review all password verification functions to ensure they meet your organization's regulatory requirements. To comply with STIG consider using ORA12C_STIG_VERIFY_FUNCTION as a starting point.

Account Locking after Failed Login AttemptsUSER.NOLOCK

Displays information about user profile failed login attempt enforcement.

Attackers sometimes attempt to guess a user's password by simply trying all possibilities from a set of common passwords. To defend against this attack, it is advisable to use the FAILED_LOGIN_ATTEMPTS and PASSWORD_LOCK_TIME profile resources to lock user accounts for a specified time when there are multiple failed login attempts without a successful login.

For STIG compliance, the FAILED_LOGIN_ATTEMPTS should be set to maximum value of 3 and PASSWORD_LOCK_TIME should be set to UNLIMITED in user profiles.

Users with Passwords About to ExpireUSER.TOEXPIRE

Displays information about user accounts that will expire their passwords within 30 days.

You should review accounts about to expire and, if appropriate, change their passwords to maintain uninterrupted database access.

Users with Unlimited Password LifetimeUSER.NOEXPIRE

Displays information about user profile password expiration enforcement.

Password expiration is used to ensure that users change their passwords on a regular basis. It also provides a mechanism to automatically disable temporary accounts. Passwords that never expire may remain unchanged for an extended period of time. When passwords do not have to be changed regularly, users are also more likely to use the same passwords for multiple accounts.

Users with Unlimited Concurrent SessionsUSER.SESSIONSDisplays all users that have a Profile Resource Limit for SESSIONS_PER_USER set to UNLIMITED. With SESSIONS_PER_USER = UNLIMITED users can have any number of concurrent sessions.
Unlimited Session Idle TimeUSER.IDLETIMEThis check lists users with UNLIMITED IDLE TIME
Users with Gradual Password RolloverUSER.PASSWORDROLLOVER

Displays information about the Gradual Password Rollover.

Gradual Password Rollover allows administrators to change database passwords for applications without having to schedule downtime. Prior to the advent of the gradual password rollover feature, the database administrator needed to take the application down while the database password was being rotated. This was because the password update required changes on both the database and the application side. With gradual database password rollover, the application can continue to use the older password until the new password is configured in the application. To accomplish this, the database administrator can associate a profile having a non-zero limit for the PASSWORD_ROLLOVER_TIME password profile parameter with an application schema. This allows the database password of the application user to be altered while allowing the older password to remain valid for the time specified by the PASSWORD_ROLLOVER_TIME limit. Try to limit the use of this feature to application schemas that need to undergo password maintenance and keep the rollover period to the minimum.

Temporary UsersUSER.TEMP

Displays users associated with the DEFAULT profile.

Users specifically created to execute temporary tasks should be on a profile tailored for that purpose.

Development Users in Production DatabasesUSER.DEVThere should not be developer accounts in production systems. Verify if such accounts exist in your database.
Advanced Replication UsersUSER.REPCAT

Checks if Oracle Advanced Replication is being used and lists the dblinks used for replication.

Checks to see if enable_goldengate_replication is set to TRUE. Also checks if DBA_REPCAT% views are present or count(*) from DBA_REPCATLOG > 0.

-
Minimum Client Authentication VersionUSER.AUTHVERSION

Displays information about the user accounts that do not have minimum client version specified in the ALLOWED_LOGON_VERSION_SERVER parameter in the sqlnet.ora file.

Oracle Database supports multiple password authentication versions for backward compatibility. The sqlnet.ora parameters ALLOWED_LOGON_VERSION_SERVER and ALLOWED_LOGON_VERSION_CLIENT control the minimum authentication protocols used:
ALLOWED_LOGON_VERSION_SERVER defines the minimum password authentication version accepted from connecting clients.
ALLOWED_LOGON_VERSION_CLIENT defines the minimum authentication version used when the database acts as a client connecting to another Oracle Database instance.

This report identifies user accounts whose password authentication versions do not meet the minimum client version required by ALLOWED_LOGON_VERSION_SERVER.
Oracle periodically introduces stronger password authentication algorithms while retaining older versions for compatibility with legacy clients. Once all client applications have been upgraded, set ALLOWED_LOGON_VERSION_SERVER to the highest value supported by the database to enforce the strongest available authentication and improve security.

  • Before setting ALLOWED_LOGON_VERSION_SERVER to 12a, evaluate the impact because this setting may prevent older clients from connecting to the database instance.
  • Before setting ALLOWED_LOGON_VERSION_CLIENT to 12a, evaluate the impact because this setting may prevent servers acting as clients from connecting to other servers.
New Users Who Need to Reset PasswordUSER.NEW

Displays information about user accounts who have not logged in since account creation.

You should verify that the database management system is configured to require immediate selection of a new password upon account creation or recovery.

No documentation links
Locally Managed AccountsUSER.LOCALAUTH

This is a STIG specific check. Displays information about non-oracle maintained accounts that are locally managed (use password-based authentication).

Under STIG, all user accounts managed by the database need to have explicit approval and be in the system documentation. System documentation should be reviewed for justification and approval of the accounts listed.

No documentation links
PKI-based AuthenticationUSER.EXTERNALAUTHDisplays information about externally authenticated user accounts.
Illegal Oracle-maintained UsersUSER.ILLEGALORACLEMAINTAINED

Custom Accounts Marked as Oracle-Maintained.

Review custom accounts assigned the Oracle-maintained designation.

Mark only Oracle-provided accounts as Oracle-maintained; custom accounts with this designation may be skipped by tools such as Data Pump or modified or removed during patching and upgrades. Before dropping such a custom account, assess the impact, export its objects from the CDB and all PDBs as needed, then recreate it without the Oracle-maintained designation and restore its objects using import utilities. Maintain a service-account inventory that records each account’s department owner, review date, and purpose, and review active accounts at least quarterly to confirm they remain authorized.

DBA_USERS
RAC Password FilesUSER.RACADMIN

Ensure password files are synchronized across all Oracle RAC instances.

In Oracle Real Application Clusters (RAC) environments, each database instance uses password file metadata to authenticate users granted administrative privileges, including SYSDBA, SYSOPER, SYSBACKUP, SYSDG, and SYSKM. Password files must remain consistent across all RAC nodes to provide reliable administrative authentication and enable remote database management. If the password files are not synchronized, privileged users may be unable to authenticate to one or more instances, which can disrupt administrative operations.

After modifying a password file, synchronize the updated file across all RAC nodes. For databases using a shared password file in Oracle ASM, verify that every instance references the same shared password file.

V$PWFILE_USERS
Review Real Application Security (RAS) usersUSER.RAS

This check reviews Real Application Security (RAS) users and their access.

Review any RAS users and remove unauthorized accounts. If RAS is not required, consider disabling DIRECT_LOGON to prevent RAS users from logging in.

Note:

Predefined Oracle accounts which are schema-only or locked are not included in this report. To include all user accounts, run the report with the -a option.

The following figure displays an example of the Oracle Database Security Assessment Report - User Accounts section:

Oracle Database Security Assessment Report - User Accounts

Description of the illustration Oracle Database Security Assessment Report - User Accounts