Webinar showing low-cost and free ways to handle Oracle Database auditing, Virtual Private Database, encryption, and data masking and redaction, from the Thrifty DBA series.
Play the Recording: The Thrifty DBA Does Database SecuritySecuring an Oracle database properly takes significant effort and often expensive security add-on products. The Thrifty DBA likes secure databases but doesn't like spending money on expensive security products when equivalent free or low-cost solutions are available.
We show thrifty yet effective ways to meet the requirements for database auditing, Virtual Private Database (VPD), encryption, and data masking and redaction, using features included with Oracle Database Enterprise Edition and free tools instead of add-on options and commercial products. DBAs can then meet many of these requirements without new license costs. The Thrifty DBA is a trademark of Integrigy Corporation.
Key Points
- Start the audit design from the 14 security events in our Integrigy Guide to Database Auditing and Logging and send the audit trail to a free logging solution such as Splunk Free, ELK or Graylog, for example by syslog with
AUDIT_SYSLOG_LEVELandAUDIT_TRAIL=OS, traditional auditing settings which Oracle desupported in 23ai (now 26ai) in favor of Unified Auditing. - To tie audit records to people, EBS R12 sets
CLIENT_IDENTIFIERto the logged-onFND_USER.USERNAMEand PeopleTools 8.50 and later set it to thePSOPRID, and DBAs can record a change ticket inCLIENT_IDwithSELECT sys.ticket(1234) FROM dual, so auditors can sample changes by ticket and treat one without a ticket as a policy violation. - Virtual Private Database (VPD), included with Enterprise Edition, can keep ad-hoc users from data such as Social Security numbers without Database Vault: a policy added with
DBMS_RLS.ADD_POLICYappends a predicate such asWHERE org_id = 1to each query or, withsec_relevant_colsandsec_relevant_cols_optset toDBMS_RLS.ALL_ROWS, returns nulls for a column such asNATIONAL_IDENTIFIER. - For data in use, encrypt sensitive columns with
DBMS_CRYPTOand AES, called by the application or through views and triggers, never hard-coding keys in a wrapped PL/SQL package or table but keeping them in a hardware security module or a key management server such as Vault by HashiCorp (free);DBMS_OBFUSCATION_TOOLKITis deprecated. - SQL*Net encryption, formerly part of the Advanced Security Option and now included with Enterprise Edition, stays off while client and server keep the default
ACCEPTED, so setSQLNET.ENCRYPTION_SERVERtorequestedorrequiredin the server'ssqlnet.ora, check which sessions use it inv$session_connect_info, and review the algorithms, since weak ones are still supported. - To mask test and development data, a simple SQL script usually suffices, or the free Standard Edition of Solix's data masking, and to redact columns, use views or VPD policies that return nulls, with Transparent Sensitive Data Protection (TSDP), new in 12.1 and included with Enterprise Edition, keeping an inventory of sensitive data.