09 Auditing
09 Auditing
Auditing Overview
10
Auditing Objectives
• Database auditing
objectives:
– Data integrity –Data structure
– Application users and changes
roles –Database or
– Data confidentiality application availability
– Access control – Change control
– Data changes –Auditing reports
Audit Classifications
• Internal audit:
– Conducted by a staff member of the company
being audited
– Purpose:
• Verify that all auditing objectives are met
• Investigate a situation prompted by an internal
event or incident
• Investigate a situation prompted by an external
request
Audit Classifications (continued)
• External audit:
– Conducted by a party outside the company that
is being audited
– Purpose:
• Investigate the financial or operational state of the
company
• Verify that all auditing objectives are met
Audit Classifications (continued)
• Automatic audit:
– Prompted and performed automatically (without
human intervention)
– Used mainly for systems and database systems
– Administrators read and interpret reports;
inference engine or artificial intelligence
• Manual audit: performed completely by humans
• Hybrid audit
Audit Types
• Benefits:
– Enforces company policies and government
regulations and laws
– Lowers the incidence of security violations
– Identifies security gaps and vulnerabilities
– Provides an audit trail of activities
– Provides means to observe and evaluate
operations of the audited entity
– Makes the organization more accountable
Benefits and Side Effects of Auditing
(continued)
• Side effects:
– Performance problems
– Too many reports and documents
– Disruption to the operations of the audited entity
– Consumption of resources, and added costs
from downtime
– Friction between operators and auditor
– Same from a database perspective
Auditing Models
Action
Object
Previous
values and
record
Simple Auditing Model 1
20
Simple Auditing Model 1 (continued)
APP_ACTION_TYPE 1, UPDATE, A
2, INSERT, A
APP_AUDIT_ACTION
• Control columns:
– Placeholder for data inserted automatically when
a record is created or updated (date and time
record was created and updated)
– Can be distinguished with a CTL prefix
Simple Auditing Model 1 (continued)
Simple Auditing Model 2
A list of
columns to
be audited
Advanced Auditing Model
Advanced Auditing Model
Advanced Auditing Model
Historical Data Model
30
C2 Security
40
DML Action Auditing with Oracle
• Steps:
– Use any user other than SYSTEM or SYS; with
privileges to create tables, sequences, and
triggers
– Create history table
– Create the trigger to track changes and record
all the values of the columns
– Test your implementation
Project 6: Auditing