Lecture Database security and auditing - Protecting data integrity and accessibility - Chapter 9: Application Data Auditing

46 75 0
Lecture Database security and auditing - Protecting data integrity and accessibility - Chapter 9: Application Data Auditing

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Lecture Database security and auditing - Protecting data integrity and accessibility - Chapter 9: Auditing database activities presentation of content: Audit server activities with Microsoft SQL Server 2000, audit database activities using Microsoft SQL Profiler, use SQL Server for security auditing. Mời các bạn tham khảo.

Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter Auditing Database Activities Objectives • • • Use Oracle database activities Learn how to create DLL triggers with Oracle Audit database activities using Oracle Database Security and Auditing Objectives (continued) • • • Audit server activities with Microsoft SQL Server 2000 Audit database activities using Microsoft SQL Profiler Use SQL Server for security auditing Database Security and Auditing Using Oracle Database Activities • Several types of activities: – – – Application activities: SQL statements issued against application tables Administration activities: commands issued for maintenance and administrative purposes Database events: events that occur when a specific activity occurs Database Security and Auditing Creating DDL Triggers with Oracle • Audit program provides: – – • Audit trail for all activities Opportunity for using process controls Database activities statements (in addition to DML): – – – – Data Definition Language (DDL) Data Control Language Database events SQL statements audit trail Database Security and Auditing Creating DDL Triggers with Oracle (continued) • Use CREATE TRIGGER: – – DDL statements Database events Database Security and Auditing Example of LOGON and LOGOFF Database Events • Steps: – – – Log on as SYSTEM Create the APP_AUDIT_LOGINS table Create two triggers: • • – – One that fires after the logon event One that fires before the logoff event Log on as DBSEC; disconnect after a few minutes Log on as SYSTEM to check the auditing table Database Security and Auditing DDL Event Example • Steps: – – – • Log on as SYSTEM Create a trigger that fires before an ALTER statement is completed Log on as DBSEC and alter a table Pseudocolumns: – – – ora_dict_obj_name ora_dict_obj_owner ora_sysevent Database Security and Auditing Auditing Code with Oracle • Steps: – – – – – – Log on as DBSEC Create an auditing table Create a table and populate it with two records Create a trigger to track code Update the new table Look at the contents of the APP_AUDIT_SQLS table Database Security and Auditing Auditing Database Activities with Oracle • Oracle provides mechanisms for auditing all: – – • Who creates or modifies the structure Who is granting privileges to whom Two types of activities based on the type of SQL command statement used: – – Defined by DDL (Data Definition Language) Defined by DCL (Data Control Language) Database Security and Auditing 10 Security Auditing with SQL Server (continued) • Auditable events (continued): – – – – – – – DBCC LOGIN LOGOUT LOGIN CHANGE PASSWORD LOGIN CHANGE PROPERTY LOGIN FAILED Login GDR (GRANT, DENY, REVOKE) Database Security and Auditing 32 Security Auditing with SQL Server (continued) • Auditable events (continued): – – – – – – Object Derived Permissions Object GDR Object Permissions Server Start and Stop Statement GDR Statement Permission Database Security and Auditing 33 Security Auditing with SQL Server (continued) Database Security and Auditing 34 Security Auditing with SQL Server (continued) • New trace information: – – – – – A name for the trace The server you want to audit The base template to start with Where to save the audit data, either to a file or to a database table A stop time, if you don’t want the trace to run indefinitely Database Security and Auditing 35 Security Auditing with SQL Server (continued) Database Security and Auditing 36 Security Auditing with SQL Server (continued) Database Security and Auditing 37 Security Auditing with SQL Server (continued) • Steps to add Login Change Password event – – – Expand the Security Audit node under Available event classes Click Audit Login Change Password Event Click the Add button Database Security and Auditing 38 Security Auditing with SQL Server (continued) Database Security and Auditing 39 Data Definition Auditing • Audit DDL statements: – – – Object:Created Object:Deleted Will audit all CREATE and DROP statements Database Security and Auditing 40 Data Definition Auditing (continued) Database Security and Auditing 41 Database Auditing with SQL Server Database Security and Auditing 42 Database Errors Auditing with SQL Server Database Security and Auditing 43 Summary • Activities types: – – – • • Application activities Administration activities Database events Oracle triggers provide a way to create an audit trail Auditable Oracle database activities: logon, logoff, startup and shutdown Database Security and Auditing 44 Summary (continued) • • • • Oracle provides the SQL AUDIT command: initialization parameter AUDIT_TRAIL NOAUDIT used to stop auditing DBA_AUDIT_TRAIL data dictionary view Oracle Alert Log: – – – Database errors Modified initialization parameters Checkpoints Database Security and Auditing 45 Summary (continued) • • • Microsoft SQL Server 2000: way to track and log SQL Server activity Must be a member of sysadmin fixed role to enable or modify auditing SQL Profiler: – – Visualization tool Audit errors that occur within the database Database Security and Auditing 46 ... Startup and shutdown • Date and time of each occurrence Database Security and Auditing 22 Oracle Alert Log (continued) Database Security and Auditing 23 Oracle Alert Log (continued) • Database. .. command Verify auditing is on: – – Check the AUDIT_TRAIL parameter Values: • • • • DB DB_EXTENDED OS NONE Database Security and Auditing 11 Auditing DDL Activities (continued) Database Security and. .. of DBA_AUDIT_TRAIL Review audit data dictionary Database Security and Auditing 18 DCL Activities Example (continued) Database Security and Auditing 19 Example of Auditing User Activities • Steps:

Ngày đăng: 30/01/2020, 11:19

Mục lục

  • Using Oracle Database Activities

  • Creating DDL Triggers with Oracle

  • Creating DDL Triggers with Oracle (continued)

  • Example of LOGON and LOGOFF Database Events

  • Auditing Code with Oracle

  • Auditing Database Activities with Oracle

  • Auditing DDL Activities (continued)

  • DDL Activities Example 1 (continued)

  • DDL Activities Example 1 (continued)

  • DDL Activities Example 1 (continued)

  • DCL Activities Example (continued)

  • Example of Auditing User Activities

  • Audit Trail File Destination

  • Oracle Alert Log (continued)

  • Oracle Alert Log (continued)

  • Oracle Alert Log (continued)

  • Auditing Server Activity with Microsoft SQL Server 2000

  • Implementing SQL Profiler (continued)

  • Security Auditing with SQL Server

  • Security Auditing with SQL Server (continued)

Tài liệu cùng người dùng

Tài liệu liên quan