Docsity

Database Auditing-Computer Sciences Applications-Project Report, Study Guides, Projects, Research of Applications of Computer Sciences

Toggle sidebar
bg1
i
Table of Contents
1 Data Access Accountability ........................................................................................ 2
1.1 Auditing is Necessary .......................................................................................... 2
1.2 Key to Effective Solutions .................................................................................. 3
1.2.2 Mid Tier Portal ............................................................................................ 3
1.2.3 Trigger Based Solution ............................................................................... 4
1.2.4 Non Trigger Tracking at Data Source ......................................................... 4
2 Native Auditing Tools................................................................................................. 5
2.1 Native Auditing Problems................................................................................... 5
2.2 Third Party Auditing Solution ............................................................................ 6
2.2.1 Tradeoffs ..................................................................................................... 6
2.2.2 Database Auditing Features ........................................................................ 7
3 Privileged Users .......................................................................................................... 9
3.1 Challenge Regarding Privileged Users ............................................................. 10
3.1.1 Authorized Privileged Users ..................................................................... 10
3.1.2 Authorized Users with Excessive Privileges ............................................ 10
3.1.3 Unauthorized Accounts with Excessive Privileges................................... 10
3.1.4 Conclusions ............................................................................................... 10
3.2 Best Practices .................................................................................................... 11
3.2.1 Native Auditing ......................................................................................... 11
3.2.2 Real Time Activity Monitoring ................................................................ 12
3.2.3 Insider Attacks .......................................................................................... 12
4 Project Plan ............................................................................................................... 14
4.1 Project Chronology ........................................................................................... 15
4.2 Division of Work .............................................................................................. 16
4.3 Project Progress ................................................................................................ 17
4.3.1 6th Semester .............................................................................................. 17
4.3.2 Summer Semester ..................................................................................... 17
4.3.3 7th Semester Mid ...................................................................................... 17
4.3.4 7th Semester Mid- Final............................................................................ 18
5 Major Software Functionalities................................................................................. 20
5.1 Authentication ................................................................................................... 20
5.2 Users Query for Inspections.............................................................................. 20
5.3 Generate Auditing Report ................................................................................. 20
5.4 Suspicious Query Detection .............................................................................. 21
5.5 Generation of Email Alerts for Suspicious Actions .......................................... 21
5.6 View Email ....................................................................................................... 21
5.7 Malicious Query at off Hours ........................................................................... 21
6 Process Modeling ...................................................................................................... 22
6.1 Flow Charts Symbols ........................................................................................ 22
6.2 DB Audit Flowchart .......................................................................................... 22
7 Analysis Modeling .................................................................................................... 23
7.1 Context Diagram ............................................................................................... 24
7.1.1 Level 1 DFD ............................................................................................. 25
7.1.2 Detailed DFD ............................................................................................ 26
7.2 Behavioral Modeling ........................................................................................ 31
7.2.1 User Authentication .................................................................................. 31
7.2.2 Processing Query ...................................................................................... 32
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43

Partial preview of the text

Download Database Auditing-Computer Sciences Applications-Project Report and more Study Guides, Projects, Research Applications of Computer Sciences in PDF only on Docsity!

i

New Work

 Chapter 3 Privileged Users

 Chapter 8 T SQL for Database

iv

  • 1 Data Access Accountability Table of Contents
    • 1.1 Auditing is Necessary
    • 1.2 Key to Effective Solutions
      • 1.2.2 Mid Tier Portal
      • 1.2.3 Trigger Based Solution
      • 1.2.4 Non Trigger Tracking at Data Source
  • 2 Native Auditing Tools.................................................................................................
    • 2.1 Native Auditing Problems...................................................................................
    • 2.2 Third Party Auditing Solution
      • 2.2.1 Tradeoffs
      • 2.2.2 Database Auditing Features
  • 3 Privileged Users
    • 3.1 Challenge Regarding Privileged Users
      • 3.1.1 Authorized Privileged Users
      • 3.1.2 Authorized Users with Excessive Privileges
      • 3.1.3 Unauthorized Accounts with Excessive Privileges...................................
      • 3.1.4 Conclusions
    • 3.2 Best Practices
      • 3.2.1 Native Auditing
      • 3.2.2 Real Time Activity Monitoring
      • 3.2.3 Insider Attacks
  • 4 Project Plan
    • 4.1 Project Chronology
    • 4.2 Division of Work
    • 4.3 Project Progress
      • 4.3.1 6th Semester
      • 4.3.2 Summer Semester
      • 4.3.3 7th Semester Mid
      • 4.3.4 7th Semester Mid- Final............................................................................
  • 5 Major Software Functionalities.................................................................................
    • 5.1 Authentication
    • 5.2 Users Query for Inspections..............................................................................
    • 5.3 Generate Auditing Report
    • 5.4 Suspicious Query Detection
    • 5.5 Generation of Email Alerts for Suspicious Actions
    • 5.6 View Email
    • 5.7 Malicious Query at off Hours
  • 6 Process Modeling
    • 6.1 Flow Charts Symbols
    • 6.2 DB Audit Flowchart
  • 7 Analysis Modeling
    • 7.1 Context Diagram
      • 7.1.1 Level 1 DFD
      • 7.1.2 Detailed DFD
    • 7.2 Behavioral Modeling
      • 7.2.1 User Authentication
      • 7.2.2 Processing Query
      • 7.2.3 Checking User Actions ii
  • 8 T SQL for Database
    • 8.1 Sample Database Club
      • 8.1.1 Member Table
      • 8.1.2 Tour Table
      • 8.1.3 Entry Table................................................................................................
    • 8.2 Technical Details of Implementation
      • 8.2.1 Implementation of Insert Trigger
      • 8.2.2 Implementation of GetCurrentIP
      • 8.2.3 Implementation of Delete Trigger
      • 8.2.4 Email Trigger
      • 8.2.5 DDL Trigger
  • 9 Software Interfaces
    • 9.1 Sign In Page
    • 9.2 Post Query page
    • 9.3 Generate Audit Report
    • 9.4 Generate Email..................................................................................................
    • 9.5 View Email
  • Figure 2. 1 Auditing appliances List of Figures
  • Figure 4. 1 RUP model
  • Figure 4. 2 Project chronology..........................................................................................
  • Figure 6. 1 Flowchart of system
  • Figure 7. 1 DFD symbols
  • Figure 7. 2 Level 1 DFD
  • Figure 7. 3 User login
  • Figure 7. 4 Configure system
  • Figure 7. 5 Generate report
  • Figure 7. 6 Email sending
  • Figure 7. 7 Suspicious query.............................................................................................
  • Figure 7. 8 Data vulnerability settings
  • Figure 7. 9 User Login
  • Figure 7. 10 Processing query...........................................................................................
  • Figure 7. 11 Checking user actions
  • Figure 8. 1Member table dbo
  • Figure 8. 2 Records in member table
  • Figure 8. 3 Records in tour table
  • Figure 8. 4 Tour table........................................................................................................
  • Figure 8. 5 Records in dbo.entry.......................................................................................
  • Figure 8. 6 member audit table
  • Figure 8. 7 Insert audit table
  • Figure 9. 1 Flowchart for login
  • Figure 9. 2 Auditor page layout
  • Figure 9. 3 Sign in page layout
  • Figure 9. 4 Post query page layout....................................................................................
  • Figure 9. 5 Generate audit report
  • Figure 9. 6 Generate Email
  • Figure 9. 7 View Email

v

Abstract

Organizations have critical data about their employees and business transactions. They are very much conscious to protect data from unauthorized access. It is therefore need of the hour to introduce a security mechanism within the database system to ensure maximum security level. Auditing is the security mechanism that fulfills this need .it involves monitoring of DDL and DML commands. There are several methods available for auditing. Each of such methods has advantages or pitfalls. Major aspect is to keep in limits CAPEX and OPEX.In the preceding sections; analysis of various auditing capabilities is being discussed. On the basis of the literature survey as well as the discussion sessions with supervisors a design model of the software is presented that focus on major software functionalities. The software functionalities are related to user’s intrusions into the database system. In the end a sample database for testing software functionalities is being developed in SQL Server Management Studio. So for solution based on triggers is being focused. As it is an appropriate one for auditing user actions within a database.

Chapter 1: Case Study for Auditing

Auditing is the process of scanning over past actions of database users and decides whether they are in conformance with official policies. In reality auditing is monitoring of queries send by a particular user. Databases are repositories of information that may come under privacy rules. All these information should be used only for intended purposes. Auditing helps to keep user activities clean and clear by monitoring them. The given below discussion has been taken from study of one paper. Paper discusses issue of “Data Access Accountability” and how effective auditing solutions can be implemented. Therefore only one reference is being provided at the end of this chapter.

1 Data Access Accountability

Database security is always considered to be an area of interest not only for the owner of organization but also for database administrators and even common users. In the concern of data security following issues should be keep in mind.  Data should be changed in a specific defined way.  Data should be modified only by intended parties.

There are two major problems in this concern  What keep away an authorized user from kept viewing data, one should not access?  Flaws that causes data to leak out to some user.

1.1 Auditing is Necessary

In any organization auditing is implemented in some way. This is because one can’t say that it is specifically related to currently implemented RDBMS. The question arises that what keep a DBA to focus critically on the implementation of auditing within RDBMS system. Below are given answers to the question of “ why auditing”  Enables monitoring of the user actions.  Restricts user to perform illegal actions.

 Investigate suspicious queries running on the server or on the database.  Notification of unauthorized users working on the data.  Monitor and gather the activities of the users.  Store user actions log for further references in future. It has now been discussed that auditing is necessary element of database security. The question is now what should be there for a somewhat reliable auditing solution. IT Requirements for data access accountability can be given as below. It is also to be mentioned that these requirements along with some other are to be used for the final intended software.  Notifications of user actions.  Keep record of schema and record changes.  Time and date of changes.  Identification of particular user.  Generate reports.  Procedures implanted across multiple servers.

1.2 Key to Effective Solutions

The possible points or levels where auditing can be applied are described briefly below. Four possible methods have been discussed

1.2.1 Application Modification

In application modification application to which auditing is to be applied is modified. By changing applications not only data is stored but also used for further processing. However this approach increases implementation cost, time consumption. It has also been reported that this approach is unable to record each and every audit trail record. This approach also fails to log changes in database schema and user permissions.

1.2.2 Mid Tier Portal

Some application uses a second portal for backend database access. The second portal acts as a backend repository.

Chapter2: Native Auditing

2 Native Auditing Tools

RDBMS products available by various vendors in today’s market provide native auditing capabilities. These tools also provide ability to make changes to structure and access to a particular database product. The tools can differ in the level of granularity provided for auditing. Below in table labeled ( Table 2.1: RDMS Auditing Comparison ) is provided a brief summary of popular RDBMS systems. RDBMS Product

The auditing capabilities

IBM DB Z/OS and IMS

 IBM audit management expert (AME) stores its captured audit records in a DB2 table. Microsoft SQL Server

 C2 auditing  Server side traces Oracle (^)  Fine grained auditing Stores audit records in XML format.  This can also be done by adding an additional tool that is known to be as oracle audit vault. Sybase (^)  Minimal native support  At an additional cost Sybase data auditing provides some other product from lumigent technology.(a third party product) Table 2. 1 RDBMS Auditing Comparison

2.1 Native Auditing Problems

It should be kept in mind while discussing auditing that auditing is not similar to re-do or archive logs created by a particular RDBMS product. The common problems with native audit capabilities can be given as below  It is a common observation that native auditing tools add overhead to database server performance.

 It has also been reported by auditors that these tools don’t meet all the information required by them.  For any database management system the detection and access in real time is crucial and no such facility is being provided by native auditing tools.  Native auditing tools provide limited capability to effectively store audit records.  Possibility of increase in CAPEX and OPEX increases. However skilled auditors or Database administrators can tune these tools to manage them effectively and to save audit records in a separate file at different destination. By default native auditing is turned off when a database is installed on sever. According to industry analysts oracle provides the leading auditing capabilities. SQL server is lagged behind from Oracle in this scenario. The following example demonstrates the fact. In SQL server 2000, Microsoft introduces a new auditing mechanism, C2 auditing. This mechanism doesn’t provide the ability to use individual table tracing. So auditor needs to run server side traces. In native auditing tools, any command that specify DML or DDL command can be logged. Other than that any command by a user who turns off native auditing tools is also logged and recorded.

2.2 Third Party Auditing Solution

More than two dozens of vendors provide third party solutions. Their major claim is that the overhead introduced by native auditing tools can be significantly drop down by using them. They also claim that they don’t require native auditing to be turned on.

2.2.1 Tradeoffs

The three prime types of auditing solution provided by vendors are  Use of network based appliances that sniff packets on wire.  Software based solutions that are deployed with or without the use of agents.  Some combination of above. First approach that is the use of network based appliances tries to read packets on network as it travels to database server. However it is of no use for local access to server.

Policy Violation Detection Auditing requires rules violation in real time. These features add overheads to the system. Again in such scenario only certain set of users are identified for capturing. Alerting This features alerts administrators to any event that is known to be critical. Some events are not by self critical but unusual no. of accesses to these can be crucial. Hybrid Approach A hybrid approach that focuses on both native auditing tools as well as a third party solution is usually a best practice. In all situations the amount of CAPEX and OPEX is an important issue. The major tradeoffs of third party auditing tools are  CAPEX and OPEX increases [4, 5].  These solutions can be easily defeated by knowledgeable users [6].

Chapter3: Privileged Users

In the following chapter, concept of privileged users has been discussed. In a database several users can use it. However some have more privileges than others. This distribution of privileges is necessary for security of database. Here two major issues have been discussed

 How a user is declared to be privileged?  What are insider attacks? The discussion given below has been concluded from reading of white paper and article on insider attacks [7], [8].

3 Privileged Users

Within a database system, there are several categories of users. Some users are  Common users with some defined privileges  DBA and Auditors with high level administration privileges The main responsibilities of these users are different from each other. Some users have more authority over others. So  Who are those users that can send much critical queries to the database server?  Who are those users that have most privileges  What is the boundary for common users actions Or in simple terms “ Who are privileged users ”. This is an important issue. It seems easy to define some of users as privileged one, but the answer is not so much simple. First one

needs to know the definition of privileged user. “ A privileged user is defined as anyone

who has access to and specialized knowledge of the database. The privileged users in general includes  System administrators  Security advisors  DBA  Auditor

 Continuous monitoring of database breeching is the need of hour in every situation.  Updated security patches should be applied to security monitoring software  Special care should be taken to protect administrative and authoritative accounts. All of the above ensures optimum privileged users. It is a point to ponder that ultimate security is never possible within any RDBMS system, until is never used. The intruders are always there to seek for security breech.

3.2 Best Practices

As stated before that security teams should always be circumspect for their system. Auditor plays role of arbiter in a DBMS. The best practices for judging the Privileged users are given as below

 List of active databases should be made for the organization  List of privileged users for each and every database in an organization is maintained and upgraded as time proceeds by.  List of users with excessive privileges should be conserved  Scanning of excessive privileged users account, for modification and account deletion  Document the list of privileges that can be attributed to a particular user  Scan users and privileges to make a list of users and the privileges assigned to them  Make some policy and then choose some auditing mechanism.

3.2.1 Native Auditing

Native auditing is a good approach to apply on a database. It seems enchanting but it has pitfalls in it. The main problem in this regard are given as below  It grasps almost all activities of users of database.  In fact questions of all forms like who, when what are taken in to account and are logged.

 This continuous monitoring of data consumes disk space and leaves the server in a problematic situation  Separation of duties is another problem. Separation of duties is just that “the person who needs to get audited should not be an auditor”.  Native auditing can allow a DBA to turnoff the auditing tool, to delete and modify audit logs.  Alerts are not generated in real time

3.2.2 Real Time Activity Monitoring

An important way to analyze user’s action is to make policies and then make real time detection of user’s activities. This needs an insight into the users’ action and making an analysis of what is going on within an organization. Real time detection would ultimately require to not only monitor current actions but also application of latest patches to implemented system. Knowledge of latest threats should also be considered. [7].

3.2.3 Insider Attacks

A mechanism for logging database activities is necessary. The important aspect on this issue is that some mechanism for handling vulnerabilities of weak passwords should be employed. If the question arises that what is logging? This simply means to make a record of user actions. It is an important point that logging needs nothing to do with the database security. Log records are different than DAM which is database activity monitoring. If the database has security holes then  Logging won't be able to prevent someone to steal data.  Logging won't stop someone to exploit the vulnerabilities

Logs are only valuable if they are frequently and carefully reviewed .The person who review logs should understand the difference between  Normal Access  Malicious activities

Logging records has much more important for

Chapter4: Project Plan

4 Project Plan

In this chapter the RUP model for the project is being specified. RUP stands for rational unified process. RUP is a flexible software development process. It provides a platform for software development. RUP enables you to select and deploy only the process components (including roles, activities, templates, guidelines and tool mentors) one need for each stage of your project.. It focuses on major software functionalities of software. They are being elaborated. With industry-proven software engineering best practices at its core, the RUP platform includes tools for configuring RUP for your project's specific needs, tools for developing your own internal knowledge into process components, powerful and customizable web-based deployment tools, and an online community for exchanging best practices with peers and industry leaders [9].In the subsequent figure labeled ( Figure4.1: RUP model ) a general model of RUP is given with certain phases.

Figure 4. 1 RUP model [9]

RUP also requires that design phase is constructed with keen interest toward correct requirements. For this purpose to achieve already implemented software have been analyzed. RUP focuses much on usability requirements of particular software. This

simply means a user centered approach should be employed from the very start, design phase. Currently to implement usability, interfaces have been made. They are made by keeping in mind user’s interaction with the software. Interfaces will be modified as software development progresses Up till now focuses on modules construction one by one. This has been achieved by implementing functionalities one by one and thereby integrating those functionalities with each other’s [9].

One change has been made in the requirements as specified in SRS submitted. Functionality of several DBA in an organization having similar privileges has been excluded because of following facts

 One auditor can solve the whole problem as his main job is to monitor user activities.  Several DBA with equal privileges seems to be in practical  There is no limit to the rule “who will guard the guards” because the process never comes to an end.

4.1 Project Chronology

The project timeline is given as below in figure ( Figure 4.2: Project chronology ). The chronology for a particular project specifies how project progresses throughout its course of development. It spans from the day when project was purposed to the day when it finally completes its cycle. It is very much useful to monitor changes that occur during course of development of project. On the other hand one can define mile stones. Achievements of these milestones help one to scroll through time available and progress of a particular project.