Database Security Database System Implementation CSE 507 Some slides adapted from Navathe et. Al.

Slides:



Advertisements
Similar presentations
7- Sicurezza delle basi di dati
Advertisements

4/6/2017.
Rasool Jalili; 2 nd semester ; Database Security, Sharif Uni. of Tech. The Jajodia & Sandhu model Jajodia & Sandhu (1991), a model for the application.
Chapter 23 Database Security and Authorization Copyright © 2004 Pearson Education, Inc.
Jan. 2014Dr. Yangjun Chen ACS Database security and authorization (Ch. 22, 3 rd ed. – Ch. 23, 4 th ed. – Ch. 24, 6 th )
Security and Authorization. Introduction to DB Security Secrecy: Users shouldn’t be able to see things they are not supposed to. –E.g., A student can’t.
Database Security by Muhammad Waheed Aslam SIS Project Leader ITC/KFUPM.
DDBMS Security - Bakul Gada.
Copyright © 2004 Pearson Education, Inc.. Chapter 23 Database Security and Authorization.
Chapter 11 Database Security: An Introduction Copyright © 2004 Pearson Education, Inc.
Chapter 23 Database Security and Authorization Copyright © 2004 Pearson Education, Inc.
Security and Integrity
Database Management System
Database Security - Farkas 1 Database Security and Privacy.
Security and Authorization. Introduction to DB Security Secrecy: Users shouldn’t be able to see things they are not supposed to. –E.g., A student can’t.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
Security Fall 2009McFadyen ACS How do we protect the database from unauthorized access? Who can see employee salaries, student grades, … ? Who can.
Database Security and Authorization By Yazmin Escoto Rodriguez Christine Tannuwidjaja.
Security Fall 2006McFadyen ACS How do we protect the database from unauthorized access? Who can see employee salaries, student grades, … ? Who can.
Security and Authorization. Introduction to DB Security Secrecy: Users shouldn’t be able to see things they are not supposed to. –E.g., A student can’t.
CSCI 5707: Database Security Pusheng Zhang University of Minnesota March 2, 2004.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 24 Database Security.
Concepts of Database Management Sixth Edition
A Guide to SQL, Seventh Edition. Objectives Understand, create, and drop views Recognize the benefits of using views Grant and revoke user’s database.
View n A single table derived from other tables which can be a base table or previously defined views n Virtual table: doesn’t exist physically n Limitation.
Chapter 6: Integrity and Security Thomas Nikl 19 October, 2004 CS157B.
CH14 – Protection / Security. Basics Potential Violations – Unauthorized release, modification, DoS External vs Internal Security Policy vs Mechanism.
© G. Dhillon, IS Department Virginia Commonwealth University Principles of IS Security Formal Models.
Database Security John Ortiz. Lecture 23Database Security2 Secure Passwords  Two main requirements for choosing a secure password:  1) MUST be easy.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Lecture slides prepared for “Computer Security: Principles and Practice”, 3/e, by William Stallings and Lawrie Brown, Chapter 5 “Database and Cloud Security”.
Polyinstantiation Problem
1 Polyinstantiation. 2 Definition and need for polyinstantiation Sea View model Jajodia – Sandhu model.
Computer Security: Principles and Practice
Next-generation databases Active databases: when a particular event occurs and given conditions are satisfied then some actions are executed. An active.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
Chapter 6 Database Administration
Chapter 11 Database Security: An Introduction Copyright © 2004 Pearson Education, Inc.
DATABASE SECURITY MODULE 5.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 24 Database Security.
D ISCRETIONARY A CCESS C ONTROLS Truong Quynh Chi Faculty of Computer Science & Engineering HCMC University of Technology
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 6 Data Integrity and Security.
Database Security. Multi-user database systems like Oracle include security to control how the database is accessed and used for example security Mechanisms:
Database Security Lesson Introduction ●Understand the importance of securing data stored in databases ●Learn how the structured nature of data in databases.
Academic Year 2014 Spring Academic Year 2014 Spring.
Chapter 11 Database Security: An Introduction Copyright © 2004 Pearson Education, Inc.
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
Database Security and Authorization. DB security Secrecy: Users should not be able to see things they are not supposed to. – E.g., A student can’t see.
Database Security Chapter Terms Security – all the processes and mechanisms by which computer-based equipment, information and services are.
Chapter 9 Database Security and Authorization Copyright © 2004 Pearson Education, Inc.
Database Management Systems, 2 nd Edition, R. Ramakrishnan and J. Gehrke1 Security Lecture 17.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 24 Database Security.
Database Security. Introduction to Database Security Issues (1) Threats to databases Loss of integrity Loss of availability Loss of confidentiality To.
Database Security and Authorization Introduction to DB Security Access Controls Database Security and the DBA Discretionary Access Control The privileges.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Database Security Advanced Database Dr. AlaaEddin Almabhouh.
IST 210 Security. IST 210 Introduction to DB Security Secrecy: Users should not be able to see things they are not supposed to. E.g., A student can’t.
AdvDB-6 J. Teuhola Database Security Security = protection from unauthorized use 6.1. Security issues Legal / ethical / ownership issues Policy.
Database Security and Authorization
Database Security and Authorization
CHAPTER 30 Database Security. CHAPTER 30 Database Security.
Database System Implementation CSE 507
5/10/2018.
Chapter 23 Database Security and Authorization
1 Introduction to Database Security Issues
Access Control Model SAM-5.
TABLES AND INDEXES Ashima Wadhwa.
Database Security and Authorization
DATABASE SECURITY For CSCL (BIM).
Database Security Chapter 30
Presentation transcript:

Database Security Database System Implementation CSE 507 Some slides adapted from Navathe et. Al.

Introduction to Database Security  Threats to databases  Loss of integrity  Loss of availability  Loss of confidentiality  To protect databases against these types of threats four kinds of countermeasures can be implemented:  Access control  Inference control  Flow control  Encryption

Introduction to Database Security  Threats to databases  Loss of integrity  Loss of availability  Loss of confidentiality  To protect databases against these types of threats four kinds of countermeasures can be implemented:  Access control  Inference control  Flow control  Encryption --- Details out of the scope of this course

Intro to Database Security – Access Control  A DBMS typically includes a database security and authorization subsystem that is responsible for ensuring the security portions of a database against unauthorized access.  Two types of database security mechanisms:  Discretionary security mechanisms  Mandatory security mechanisms

Intro to Database Security – Access Control  The security mechanism of a DBMS must include provisions for restricting access to the database as a whole.  This function is called access control  and is handled by creating user accounts and passwords to control login process by the DBMS.

Intro to Database Security – Inference Control  Another security problem associated with databases is that of controlling the access to a statistical database,  These database are used to provide statistical information or summaries of values based on various criteria.  The countermeasures to statistical database security problem is called inference control measures.

Intro to Database Security – Flow Control  Another security is that of flow control, which prevents information from flowing in such a way that it reaches unauthorized users.  Channels that are pathways for information to flow implicitly in ways that violate the security policy of an organization are called covert channels.

Database Security and DBA  The DBA has a DBA account in the DBMS  Sometimes these are called a system or superuser account  These accounts provide powerful capabilities such as:  1. Account creation  2. Privilege granting  3. Privilege revocation  4. Security level assignment  Action 1 is access control, whereas 2 and 3 are discretionary and 4 is used to control mandatory authorization

Discretionary Access Control Based on Grant and Revoke  The typical method of enforcing discretionary access control in a database system is based on the granting and revoking privileges.

Types of Discretionary Access Control  The account level :  At this level, the DBA specifies the particular privileges that each account holds independently of the relations in the database.  The relation level (or table level ):  At this level, the DBA can control the privilege to access each individual relation or view in the database.

Types of Discretionary Access Control  The privileges at the account level apply to the capabilities provided to the account itself and can include  the CREATE SCHEMA or CREATE TABLE privilege, to create a schema or base relation;  the CREATE VIEW privilege;  the ALTER privilege, to apply schema changes such adding or removing attributes from relations;  the DROP privilege, to delete relations or views;  the MODIFY privilege, to insert, delete, or update tuples;  and the SELECT privilege, to retrieve information from the database by using a SELECT query.

Types of Discretionary Access Control Relation level  This includes base relations and virtual ( view ) relations.  Each relation R in a database is assigned and owner account,  This is typically the account that was used when the relation was created in the first place.  The owner of a relation is given all privileges on that relation.  The owner account holder can pass privileges on any of the owned relation to other users by granting privileges to their accounts.

Specifying Privileges using Views  If the owner A of a relation R wants another account B to be able to retrieve only some fields of R, then  A can create a view V of R that includes only those attributes and then grant SELECT on V to B.  The same applies to limiting B to retrieving only certain tuples of R;  a view V’ can be created by defining the view by means of a query that selects only those tuples from R that A wants to allow B to access.

Revoking Privileges  In some cases it is desirable to grant a privilege to a user temporarily. For example,  The owner of a relation may want to grant the SELECT privilege to a user for a specific task and then revoke that privilege once the task is completed.  Hence, a mechanism for revoking privileges is needed.  In SQL, a REVOKE command is included for the purpose of canceling privileges.

Propagation of Privileges using the GRANT option  If the owner A grants a privilege on R to another account B, privilege can be given to B with or without the GRANT OPTION.  If the GRANT OPTION is given, this means that B can also grant that privilege on R to other accounts.  This way, privileges on R can propagate to other accounts without the knowledge of the owner of R.  If the owner account A now revokes the privilege granted to B, all the privileges that B propagated based on that privilege should automatically be revoked by the system.

Example on GRANT option 1.DBA grants insert, update, delete, and select privileges on Department table to Jack with GRANT option. 2.DBA grants select and insert privilege on Dept table to Ria. 3.Jack grants insert privilege on Dept table to Ria with GRANT option. 4.Ria grants insert privilege on Dept table to Allen with GRANT option. 5.Jack grants insert privileges on Dept table to Allen with GRANT option.

Mandatory Access Control  Discretionary access control techniques been the main mechanism in DBMS  This is an all-or-nothing method.  i.e., a user either has or does not have a certain privilege.  In many applications, an additional security policy is needed to classify data and users based on security classes.  Mandatory access control helps here,  This is typically be combined with the discretionary access control mechanisms.

Mandatory Access Control  Typical security classes  Top secret (TS),  Secret (S),  Confidential (C),  Unclassified (U),  Here TS is the highest level and U the lowest:  TS > S > C > U

Mandatory Access Control Bell- LaPadula Model  Subjects  E.g., user, account, program  Objects  E.g., Relation, tuple, column, view, operation.  Subjects and Objects classified into, T, S, C, or U:  Clearance (classification) of a subject S denoted as class(S )  and to the classification of an object O as class(O).

Mandatory Access Control Bell- LaPadula Model  Two restrictions are enforced on data access based on the subject/object classifications:  Simple security property: A subject S is not allowed read access to an object O unless class(S) ≥ class(O).  Star property: A subject S is not allowed to write an object O unless class(S) ≤ class(O).

Mandatory Access Control – Multilevel Security  To incorporate multilevel security, we consider attribute values and tuples as data objects.  Hence, each attribute A is associated with a classification attribute C in the schema,  And each attribute value in a tuple is associated with a corresponding security classification.  In addition, in some models, a tuple classification attribute TC is added to the relation attributes to provide a classification for each tuple as a whole.

Mandatory Access Control – Multilevel Security  Hence, a multilevel relation schema R with n attributes would be represented as  R(A 1,C 1,A 2,C 2, …, A n,C n,TC)  where each C i represents the classification attribute associated with attribute A i.

Mandatory Access Control – Multilevel Security  The value of the TC attribute in each tuple t – is the highest of all attribute classification values within t  It provides a general classification for the tuple itself.  Whereas each C i provides a finer security classification for each attribute value within the tuple.

Mandatory Access Control – Multilevel Security  Apparent key of a multilevel relation is the set of attributes that would have formed the primary key in a regular (single-level) relation.

Mandatory Access Control – Multilevel Security  A multilevel relation will appear to contain different data to subjects (users) with different clearance levels.  It is possible to store a single tuple at a higher classification level and produce the corresponding tuples at a lower-level classification through a process known as filtering.

Mandatory Access Control – Multilevel Security  In other cases, it is necessary to store two or more tuples at different classification levels with the same value for the apparent key.  Polyinstantiation: Here several tuples can have the same apparent key value but have different attribute values for users at different classification levels.

Mandatory Access Control – Example NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level TS attempts to read the job performance of Mark? (Assume TS > S > C> U)

Mandatory Access Control – Example NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level TS attempts to read the job performance of Mark? (Assume TS > S > C> U) -- Allowed according to Bell LaPadula model.

Mandatory Access Control – Example NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level C attempts to read the job performance of Scott? (Assume TS > S > C> U)

Mandatory Access Control – Example NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level C attempts to read the job performance of Scott? (Assume TS > S > C> U) --Query rejected according to Bell LaPadula model

Mandatory Access Control – Example NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level C attempts to execute the following query: Select * from Emp where Name = ‘Peter’

Mandatory Access Control – Filtering Example NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level C attempts to execute the following query: Select * from Emp where Name = ‘Peter’ -- Get the following: Peter NULL Good

Mandatory Access Control – Polyinstantiation E.g. NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS What happens if a user with classification level C attempts to update the salary of Scott to ?

Mandatory Access Control – Polyinstantiation E.g. NameSalaryJob Performance Tuple Classification Peter U SGood US Mark S SFair SS Scott C TSExcellent TSTS Scott C CNULLC What happens if a user with classification level C attempts to update the salary of Scott to ? -- A new tuple at lower classification is created

Mandatory Access Control – Multilevel Security  Entity integrity rule for multilevel relations:  Member attributes of the apparent key must not be null  And must have the same security classification within each individual tuple.  In addition, all other attribute values in the tuple must have a security classification greater than or equal to that of the apparent key.