Database Administration with Style! |
Database Diva Presents: Security Tutorials for Overworked Oracle™ Database Administrators |
|
|
Auditing Your DatabaseOnce you have "built your fortress", you need to patrol the perimeter for intruders. While it might be more fun to stroll around the data center with a machine gun for a few hours each day, we can achieve our goal through the Oracle database audit feature. Before you can audit database activity, you must first set the AUDIT_TRAIL system parameter, which is normally set to FALSE. Audit information can be written to the SYS.AUD$ table in the database, or to files outside the database. You need to decide which method you will use.
Where you decide to keep the information may depend on who will view it. If you have a security office who will check the data, or the data is subject to government regulation such as HIPAA or Sarbanes Oxley, saving the data to an OS or XML format file that can be reviewed by the authorities and archived for posterity may be the best choice. If you are going to review the audit data, store it in the database. Wherever you decide to keep the audit data, make sure that there is sufficient space, and that the data is secure. In other words, audit the audit records. Once AUDIT_TRAIL has been set, and the database restarted, you can begin defining audit statements. At a minimum, you should audit the following:
Set AUDIT_SYS_OPERATIONS=TRUE to enable the auditing of operations performed by the user SYS, and users connecting with SYSDBA or SYSOPER privileges. The audit records will be written to the location identified by the AUDIT_TRAIL parameter. Use the following script to turn on some basic auditing features Once you start collecting data, you need to inspect it. The following script is a simple query for viewing some of the data in DBA_AUDIT_TRAIL view. Certain activities, such as the adding or dropping of data files, are recorded in the alert log. Be sure to check the alert log for unusual activity. Check the listener.log for failed login attempts. Audit ToolsThe Lumigent AuditDB tool provides a comprehensive tool for auditing database activity, including user activity and authorizations, role and privilege allocation, object accessibility, procedural source changes, RDBMS patch levels, and operating system file and parameter settings. I do not have direct experience with this tool, but it sounds like an invaluable tool for databases that are subject to Sarbanes-Oxley or HIPAA requlation. AppRadar from Application Security, Inc. is a real-time database monitoring and auditing tool designed for environments with requlatory compliance requirements. Links to more information about auditingAudting in XML - Oracle PipelineAuditing in Oracle 10g Release 2 - Oracle-Base |
Last update 07/05/2006
Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates.