Oracle Database Vault Best Practices
Oracle Database Vault Best Practices
• Existing applications
• Install applications before installation Database Vault
• Existing application installs may violate default separation of duty
• Separation of duty
• Create separate accounts during Database Vault installation for
account management and security administration
• Choosing an ORACLE_HOME
• You can have multiple databases running from a single Database
Vault enabled ORACLE_HOME. All databases in that home must
be enabled with Database Vault.
• Use the dvca command line utility to enable the additional databases
with Database Vault after initial installation
1
Oracle Database Vault
Post-Installation Recommendations
• Naming realms
• Use the protected application name as the realm name
• Documentation
• Describe the business objective of application protection in
the realm description
• Document other security policies that compliment the Realm
• Document who is authorized for the realm and for what
purpose
• Document any possible emergency authorization
2
Oracle Database Vault
Rules, Rule Sets and Factor Naming Conventions
• Rule sets
• Start the name with a noun
• Consider appending the realm or command rule name the
rule set will be associated with
• Document the business policy associated with the rule set in
the description field
• Rules
• Start the name with a verb
• Complete the name with the purpose of the rule
• Factors
• Start the name with a noun
• Complete the name with a description of the derived value
3
Identifying Your Security Requirements
Analyze the Current Access Control Model
4
Oracle Database Vault
Example Separation of Duty Matrix
PeopleSoft
Realm OWNER OWNER No Access No Access
Select
Not Limit PSFTDB
Command Rule Restricted Rule Set No Access No Access
Drop
Tablespace Disabled Disabled Disabled Disabled
Rule Set Rule Set Rule Set Rule Set
Command Rule
10
5
Documentation
Documenting your security policies is important for demonstrating control processes
to both internal and external auditors as well as providing operational continuity.
Consideration should be given to documenting the following:
11
12
6
Your Database Vault
13
• Note:
• Be aware that if you disable Oracle Database Vault, the
privileges that were revoked from existing users and
roles during installation remain in effect. See "Privileges
That Are Revoked or Prevented from Existing Users and
Roles" for a listing of the revoked privileges.
14
7
The following situations require you to
disable Oracle Database Vault:
• The Oracle Database Vault user accounts have been inadvertently locked or their
passwords forgotten. (See the tip under "Oracle Database Vault Accounts" for a
guideline for avoiding this problem in the future.)
• A rule set associated with the CONNECT role has been configured incorrectly.
This is resulting in failed database logins for all accounts, including those with the
DV_OWNER or DV_ADMIN role, who could correct this problem.
• You must perform maintenance tasks on Oracle Database Vault.
• You must install any of the Oracle Database optional products or features, such
as Oracle Spatial, or Oracle Multimedia, by using Database Configuration
Assistant (DBCA).
• You are about to install a third-party product, install an Oracle product, or perform
an Oracle patch update whose installation may be prevented if Oracle Database
Vault is running.
• You must archive the Oracle Database Vault audit trail.
15
16
8
Disable Oracle Database Vault (UNIX)
• Note:
• After you disable Oracle Database Vault, you still can run the Oracle Database
Vault API functions. Note also that after you disable Oracle Database Vault, the
ANY privileges are available.
• Turn off the software processes. Make sure that the environment variables,
ORACLE_HOME, ORACLE_SID, and PATH are correctly set.
• Stop the dbconsole process in case it is running. For both single-instance and
Oracle Real Application Clusters installations, run the following command at a
command prompt:
• emctl stop dbconsole For single-instance installations, shut down the database
instance:
• sqlplus sys as sysoper Enter password: password SHUTDOWN NORMAL EXIT
For Oracle Real Application Clusters (Oracle RAC) installations, shut down each
database instance as follows, from a command prompt:
• srvctl stop database -d db_name If you cannot connect to the database, then
proceed to the next step.
17
Step 2
• At a command prompt, run the following commands to
turn off the Oracle Database Vault option:
• cd $ORACLE_HOME/rdbms/lib
• make -f ins_rdbms.mk dv_off ioracle
• For Oracle RAC installations, run these commands on
all nodes.
18
9
Step 3
19
Step 4...
20
10
Enabling Database Vault (UNIX)
• Step 1
• Turn off the software processes. Ensure that the
environment variables, ORACLE_HOME,
ORACLE_SID, and PATH are correctly set.
• Stop the dbconsole process in case it is running. For
both single-instance and Oracle RAC installations,
use the following command:
• emctl stop dbconsole
21
Step 2
22
11
Step 3
23
Step 4
24
12
Database Vault Reports
• Database Vault Reports.
• These reports allow you to check configuration issues with realms,
command rules, factors, factor identities, rule sets, and secure
application roles. These reports also reveal realm violations, auditing
results, and so on.
• General Security Reports.
• These reports allow you to check the status of object privileges,
database account system privileges, sensitive objects, privilege
management, powerful database accounts and roles, initialization
parameters, profiles, account passwords, security audits, and other
security vulnerability reports.
• You must log on using an account that has the DV_OWNER, DV_ADMIN, or
DV_SECANALYST role before you can run the Oracle Database Vault
reports.
25
26
13
General Security Reports
27
• Or You can call the oracle Database Vault API using scripts to create
your security policies in a development system and then apply the same
scripts to a production system when ready.
• In release 11.2.0.1 or higher, Oracle Database Control also allows you
to generate the API scripts for your security policies and save them to
file which you can use to apply to other databases.
28
14
Script To List The Database Vault Realms,
Command Rules And Rule Sets
select * from (
SELECT realm_Name , 'protected objects' col5, owner col2 , object_type col3 ,object_name col4
FROM dvsys.dba_dv_realm_object
union
select REALM_NAME ,'authorizations' col5, GRANTEE col2 ,AUTH_RULE_SET_NAME col3 ,
AUTH_OPTIONS col4
from dvsys.dba_dv_realm_auth )
order by realm_name asc ,col5 desc
/
29
30
15
Listing the Database Vault rules and rule sets:
31
Learn More
http://search.oracle.com
database security
Technology Overview
• Visit: oracle.com/database/security
• View Whitepapers and webinars
32
16
Q&
A 33
34
17
���������������������������������������������������������������������������
���������������������������������������������������������������������������������
�����������������������������������������������������