SlideShare a Scribd company logo
Security and Privacy
1By:-Gourav Kottawar
 Database security issues
 Discretionary access control based on grant &
revoking
privilege
 Mandatory access control and role based access
control for multilevel security
 Encryption & public key infrastructures
 Types of Security:
 Legal & Ethical issues regarding the right to access certain
information.
 System related issues such as the system levels at which various
security functions should be enforced , for e.g whether a security
function should be handled at the physical hardware level, the
operating system level or the DBMS level.
 The need in some organizations to identify multiple security
levels & to categorize the data & users based on these
classifications , for e,g top secret, secret, confidential, &
unclassified.
 Policy issues at the governmental, institutional or corporate level
as to what kind of information should be made publicly available,
for e.g credit ratings & personal medical records.
3By:-Gourav Kottawar
 Threats to database result in loss or degradation of following security
goals:
 Loss of Integrity: Database Integrity refers to the requirement that
information be protected from improper modification.
 Loss of Availability: Database availability refers to making objects
available to the user or a program to which they have a legitimate right.
 Loss of Confidentiality: Refers to the protection of data from
unauthorized disclosure.
 Unauthorized , unanticipated or unintentional disclosure could result in
loss of public confidence
 Modification of data includes creation, insertion , modification, changing
the status of data & deletion.
 Integrity is lost if unauthorized changes are made to the data by either
intentional or accidental acts.
4By:-Gourav Kottawar
 To protect database against these types of threats
four countermeasures can be implemented:
 Access Control
 Flow Control
 Encryption
5By:-Gourav Kottawar
 In a multi-user Database System , DBMS must provide techniques
to enable certain users or user groups to access selected portions
of a database without granting access to the rest of the database.
 There are two types of security mechanisms:
 Discretionary security Mechanisms: These are used to grant
privileges to users , including the capability to access specific
data files, records , or fields in a specific mode (such as read ,
insert , delete or update)
 Mandatory Security Mechanisms: These are used to enforce
multilevel security by classifying data & users into various
security classes.
 For e.g a role based security , which enforces policies & privileges
based on the concept of roles.
6By:-Gourav Kottawar
 A major problem to all computer systems is that of preventing
unauthorized persons from accessing the system itself.
 The security mechanisms of DBMS must include provisions for
restricting access to the database system as a whole.
 The function is called Access Control & is handled by creating
user accounts & passwords to control the login process by the
DBMS.
 DBA is the central authority for managing a database system.
 DBA’s responsibilities include:
 Account Creation
 Privilege granting
 Privilege revocation
 Security level assignment
7By:-Gourav Kottawar
 Whenever a person or a group of persons needs to
access a database system, the individual or group
must first apply for a user account.
 The DBA will then create a new account & password
for the user if there is a legal need to access the
database.
 The user must login to the DBMS by entering the
account name/number & password whenever
database access is needed.
 The database system must also keep track of all
operations on the database that are applied by a
certain user throughout each login session.
8By:-Gourav Kottawar
 The typical method of enforcing discretionary access
control in a database system is based on the granting
& revoking of privileges.
 The main idea is to include statements in the query
language that allow the DBA & selected users to grant
& revoke privileges.
 Types of Discretionary Privileges:
 There are two levels for assigning privileges to use the
database system.:
◦ The account level: DBA specifies the particular
privileges that each account holds independently of
the relations in the database.
◦ The relation (table) level: DBA can control the
privileges to access each individual relation in the
9By:-Gourav Kottawar
 Privileges at account level apply to the capabilities provided
to the account itself & can include the CREATE TABLE / VIEW
PREVILAGE, ALTER privilege , DROP privilege, MODIFY, SELECT
privilege
 Account level privileges are not defined as part of SQL ; they
are left to the DBMS implementers to define.
 The second level of privilege applies to the relation level,
whether they are base relations or virtual relations.
 In SQL the following types of privileges can be granted on
each individual relation R.
 SELECT: Gives the account retrieval privilege.
 MODIFY: This gives the account the capability to modify
tuples of R. In SQL this is divided into UPDATE, DELETE &
INSERT privileges.
10By:-Gourav Kottawar
 A user who creates a view has precisely those privileges on the
view that he or she has on the base tables used to define the
view.
 The user creating the view must have the SELECT privilege on
each underlying table ,so is always granted the SELECT privilege
on the view.
 The creator of the view has the SELECT privilege with the grant
option only if he or she has the SELECT privilege with the grant
option on every underlying table.
 The user automatically gets the same privilege on the view.
 A view may be dropped as a SELECT privilege is revoked from the
user who created the view.
 If the creator of the view gains additional privilege on the
underlying tables, he or she automatically gains additional
privileges on the view.
11By:-Gourav Kottawar
 In this method a user either has or does not have a certain
privilege.
 In many applications an additional security policy is needed
that classifies data & users based on security classes.
 This approach is known as mandatory access control.
 It is important to note that most of the commercial DBMSs
currently provide mechanisms only for discretionary access
control.
 However the need for multilevel security exists in government
, military & intelligence applications , as well as in many
industrial & corporate applications.
 Typical security classes are
◦ Top secret (TS)
◦ Secret (S)
◦ Confidential( C)
◦ Unclassified (U)
12By:-Gourav Kottawar
 TS is the highest level & U the lowest.
 The system uses four security classification levels , where
TS>S>C>U.
 The commonly used model for multilevel security , known as Bell-
Lapadula model.
 It classifies each subject (user, account, program) & object (table,
tuple,column,view,operation) into one of the security
classifications.
 The classification of subject S is referred as class(S) & classification
of object is referred as class(O)
13By:-Gourav Kottawar
 MAC is based on system wide policies that can not be
changed by individual user.
 In this approach each database object is assigned a
security class.
 Each user is assigned a clearance for a security class.
 Rules are imposed on reading & writing of database
objects by users.
 The DBMS determines whether a given user can read or
write a given object based on certain rules that involve
the security level of that object & the clearance of the
user.
 These rules seek to ensure that sensitive data can never
be ’passed on’ to a user without the necessary
clearance.
 SQL standard does not include any support for MAC.
14By:-Gourav Kottawar
 Clearance is the security level to which an individual
user or client can access information.
 This clearance is associated with ‘need to know’
requirement.
 The Bell-Lapadula model imposes two restrictions on
all reads & writes of database objects:
 Simple-security property: A subject can read an object
only if the security level of the subject is higher or
equal to the security level of object. (read –down)
 *-property: A subject can write on an object only if the
security level of the object is higher or equal to the
security level of the subject. (write up)
 It is usually assumed that the security levels on
subjects & objects once assigned cannot be changed
(except DBA)
 This is the reason that the MAC is mandatory.
15By:-Gourav Kottawar
 Subjects: Individuals who perform some activity
on the database. Might include specific people or
a group of users
 Objects: Database units that require
authorization in order to manipulate. Database
units might include an entire table, specific
columns in a table, specific rows in a table, etc.
 Actions: Any activity that might be performed on
an object by a subject. For example: Read,
Modify, Insert, Write, Delete, Grant (the ability to
grant authorizations to others)
 Constraint: A more specific rule regarding an
aspect of the object and action.
16By:-Gourav Kottawar
 For e.g a user with TS clearance can read a table with C
clearance , but a user with C clearance is not allowed to read
a table with TS classification. (Simple Security Property)
 *_Property: For e.g a user with S clearance can write only
objects with S or TS classification.
 In case of Multilevel security notions into the relational
database model, it is common to consider attribute values &
tuples as data objects.
 Each attribute is associated with a classification C.
 Each attribute value is associated with a corresponding
security classification.
17By:-Gourav Kottawar
 RBAC emerged in 1990s as a proven technology for managing &
enforcing security in large scale enterprise wide systems.
 Its basic notion is that permissions are associated with roles, &
users are assigned to appropriate roles.
 Roles can be created using CREATE ROLE & DESTROY ROLE
commands.
 RBAC appears to be a viable alternative to traditional
discretionary & mandatory access controls; it ensures that only
authorized users are given access to certain data or resources.
 User create sessions during which they may activate a subset of
roles to which they belong.
 Each session can be assigned to many roles, but it maps to only
one user.
 Many DBMSs have allowed the concept of roles , where privileges
can be assigned to roles.
20By:-Gourav Kottawar
 Another important consideration in RBAC systems is the
possible temporal constraints that may exist on roles, such as
the time & duration of role activations & time triggering of a
role by an activation of another role.
 RBAC models have several desirable features , such as
flexibility , better support for security management &
administration.
 RBAC can be effectively used for developing secure Web
based applications , however MAC & DAC lack capabilities
needed to support a secure web based application.
21By:-Gourav Kottawar
 The previous access control mechanisms being strong
countermeasures, may not be able to protect databases
from some threats.
 Suppose we communicate data, but our data falls into the
hands of some invalid user.
 In this situation , by using encryption we can disguise the
message so that even if the transmission is diverted, the
message will not be revealed.
 Encryption is a means of securing data in a insecure
environment.
 Encryption consists of applying an encryption algorithm to
data using some pre specified encryption key.
 The resulting data has to be decrypted using a decryption
key.
22By:-Gourav Kottawar
 The DES (Data Encryption Standard )is a system developed by
the U.S government for use by the general public.
 It has been widely accepted as a cryptographic standard both
in the United States & abroad.
 DES can provide end-to-end encryption on the channel
between the sender A & receiver B.
 The DES algorithm is a careful & complex combination of two
of the fundamental building blocks of encryption:
Substitution & Transposition
 The algorithm derives its strength from repeated application
of these two techniques for a total of 16 cycles.
23By:-Gourav Kottawar
 substitution :For example: a is replaced with D, b
with E, c with F and z with C. In this way attack
becomes DWWDFN. The substitution ciphers are
not much secure because intruder can easily guess
the substitution characters.
Transposition:Plaintext: this is a test
t h i s
i s a t tiehssiatst!
e s t !
24By:-Gourav Kottawar
 In 1976 Diffie & Hellman proposed a new kind of
cryptosystems ,which they called public key encryption.
 This algorithm uses two separate keys, in contrast to
conventional encryption , which uses only one key.
 The two keys are referred to as public key , & private key.
 The private key is kept secret .
 The Public key Encryption scheme:
◦ Plain Text
◦ Encryption Algorithm
◦ Pubilc key & Private key : Public key is used for encryption &
Private key used for decryption.
◦ Cipher Text
◦ Decryption Algorithm
25By:-Gourav Kottawar
 When John wants to send a secure message to Nipun, he
uses Nipun 's public key to encrypt the message. Nipun
then uses her private key to decrypt it. An important
element to the public key system is that the public and
private keys are related in such a way that only the public
key can be used to encrypt messages and only the
corresponding private key can be used to decrypt them.
Moreover, it is virtually impossible to figure out the private
key if you know the public key.
 Public-key systems are becoming popular for transmitting
information via the Internet. They are extremely secure
and relatively simple to use. The only difficulty with
public-key systems is that you need to know the
recipient's public key to encrypt a message for him or her.
26By:-Gourav Kottawar
 ciphertext (or cyphertext) is the result of
encryption performed on plaintext using an
algorithm, called a cipher .Ciphertext is also
known as encrypted or encoded information
because it contains a form of the original
plaintext that is unreadable by a human or
computer without the proper cipher to
decrypt it. Decryption, the inverse of
encryption, is the process of turning
ciphertext into readable plaintext.
27By:-Gourav Kottawar
 plaintext is information a sender wishes to
transmit to a receiver. Cleartext is often used
as a synonym. Plaintext has reference to the
operation of cryptographic algorithms,
usually encryption algorithms
28By:-Gourav Kottawar

More Related Content

What's hot

Database security
Database securityDatabase security
Database security
MaryamAsghar9
 
PPL, OQL & oodbms
PPL, OQL & oodbmsPPL, OQL & oodbms
PPL, OQL & oodbms
ramandeep brar
 
Security of the database
Security of the databaseSecurity of the database
Security of the database
Pratik Tamgadge
 
DB security
 DB security DB security
DB security
ERSHUBHAM TIWARI
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
RituBhargava7
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
Ajay Jha
 
File management
File managementFile management
File management
sangrampatil81
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
philipsinter
 
Database security
Database securityDatabase security
Database security
Birju Tank
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
Pradnya Saval
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
Haitham Ahmed
 
Object oriented databases
Object oriented databasesObject oriented databases
Object oriented databases
Sajith Ekanayaka
 
directory structure and file system mounting
directory structure and file system mountingdirectory structure and file system mounting
directory structure and file system mounting
rajshreemuthiah
 
Database fragmentation
Database fragmentationDatabase fragmentation
Chapter25
Chapter25Chapter25
Chapter25
gourab87
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 
Unix.system.calls
Unix.system.callsUnix.system.calls
Unix.system.calls
GRajendra
 
Security models
Security models Security models
Security models
LJ PROJECTS
 
Data security and Integrity
Data security and IntegrityData security and Integrity
Data security and Integrity
Zaid Shabbir
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
Bhargav Amin
 

What's hot (20)

Database security
Database securityDatabase security
Database security
 
PPL, OQL & oodbms
PPL, OQL & oodbmsPPL, OQL & oodbms
PPL, OQL & oodbms
 
Security of the database
Security of the databaseSecurity of the database
Security of the database
 
DB security
 DB security DB security
DB security
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Object Oriented Database Management System
Object Oriented Database Management SystemObject Oriented Database Management System
Object Oriented Database Management System
 
File management
File managementFile management
File management
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
 
Database security
Database securityDatabase security
Database security
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
Object oriented databases
Object oriented databasesObject oriented databases
Object oriented databases
 
directory structure and file system mounting
directory structure and file system mountingdirectory structure and file system mounting
directory structure and file system mounting
 
Database fragmentation
Database fragmentationDatabase fragmentation
Database fragmentation
 
Chapter25
Chapter25Chapter25
Chapter25
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
Unix.system.calls
Unix.system.callsUnix.system.calls
Unix.system.calls
 
Security models
Security models Security models
Security models
 
Data security and Integrity
Data security and IntegrityData security and Integrity
Data security and Integrity
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 

Similar to security and privacy in dbms and in sql database

Database Management System Security.pptx
Database Management System  Security.pptxDatabase Management System  Security.pptx
Database Management System Security.pptx
Roshni814224
 
Database security and privacy
Database security and privacyDatabase security and privacy
Database security and privacy
Md. Ahasan Hasib
 
Data base Access Control a look at Fine grain Access method
Data base Access Control a look at Fine grain Access methodData base Access Control a look at Fine grain Access method
Data base Access Control a look at Fine grain Access method
International Journal of Engineering Inventions www.ijeijournal.com
 
Data base security
Data base securityData base security
Data base security
Sara Nazir
 
Chapter23
Chapter23Chapter23
Chapter23
gourab87
 
Database Security - IG
Database Security - IGDatabase Security - IG
Database Security - IG
Anne Lee
 
Dbms ii mca-ch12-security-2013
Dbms ii mca-ch12-security-2013Dbms ii mca-ch12-security-2013
Dbms ii mca-ch12-security-2013
Prosanta Ghosh
 
01 database security ent-db
01  database security ent-db01  database security ent-db
01 database security ent-db
uncleRhyme
 
Security Issues Surrounding Data Manipulation in a Relational Database
Security Issues Surrounding Data Manipulation in a Relational DatabaseSecurity Issues Surrounding Data Manipulation in a Relational Database
Security Issues Surrounding Data Manipulation in a Relational DatabaseDavid Murphy
 
Analysis of Various Attributes to Have a Secure Database
Analysis of Various Attributes to Have a Secure DatabaseAnalysis of Various Attributes to Have a Secure Database
Analysis of Various Attributes to Have a Secure Database
IOSR Journals
 
Defending broken access control in .NET
Defending broken access control in .NETDefending broken access control in .NET
Defending broken access control in .NET
Supriya G
 
Distributed database security with discretionary access control
Distributed database security with discretionary access controlDistributed database security with discretionary access control
Distributed database security with discretionary access control
Jyotishkar Dey
 
information security(authentication application, Authentication and Access Co...
information security(authentication application, Authentication and Access Co...information security(authentication application, Authentication and Access Co...
information security(authentication application, Authentication and Access Co...
Zara Nawaz
 
Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...
Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...
Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...FilGov
 
Database Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDatabase Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,View
Dr-Dipali Meher
 
MobileDBSecurity.pptx
MobileDBSecurity.pptxMobileDBSecurity.pptx
MobileDBSecurity.pptx
missionsk81
 
Chapter 6 Database Security and Authorization (4).pdf
Chapter 6 Database Security and Authorization (4).pdfChapter 6 Database Security and Authorization (4).pdf
Chapter 6 Database Security and Authorization (4).pdf
abrehamcheru14
 
Database Security Concepts | Introduction to Database Security
Database Security Concepts | Introduction to Database SecurityDatabase Security Concepts | Introduction to Database Security
Database Security Concepts | Introduction to Database Security
Raj vardhan
 

Similar to security and privacy in dbms and in sql database (20)

Database Management System Security.pptx
Database Management System  Security.pptxDatabase Management System  Security.pptx
Database Management System Security.pptx
 
Database security and privacy
Database security and privacyDatabase security and privacy
Database security and privacy
 
Data base Access Control a look at Fine grain Access method
Data base Access Control a look at Fine grain Access methodData base Access Control a look at Fine grain Access method
Data base Access Control a look at Fine grain Access method
 
Data base security
Data base securityData base security
Data base security
 
Chapter23
Chapter23Chapter23
Chapter23
 
Database Security - IG
Database Security - IGDatabase Security - IG
Database Security - IG
 
Dbms ii mca-ch12-security-2013
Dbms ii mca-ch12-security-2013Dbms ii mca-ch12-security-2013
Dbms ii mca-ch12-security-2013
 
01 database security ent-db
01  database security ent-db01  database security ent-db
01 database security ent-db
 
Security Issues Surrounding Data Manipulation in a Relational Database
Security Issues Surrounding Data Manipulation in a Relational DatabaseSecurity Issues Surrounding Data Manipulation in a Relational Database
Security Issues Surrounding Data Manipulation in a Relational Database
 
Analysis of Various Attributes to Have a Secure Database
Analysis of Various Attributes to Have a Secure DatabaseAnalysis of Various Attributes to Have a Secure Database
Analysis of Various Attributes to Have a Secure Database
 
Defending broken access control in .NET
Defending broken access control in .NETDefending broken access control in .NET
Defending broken access control in .NET
 
Oracle Database Vault
Oracle Database VaultOracle Database Vault
Oracle Database Vault
 
Distributed database security with discretionary access control
Distributed database security with discretionary access controlDistributed database security with discretionary access control
Distributed database security with discretionary access control
 
information security(authentication application, Authentication and Access Co...
information security(authentication application, Authentication and Access Co...information security(authentication application, Authentication and Access Co...
information security(authentication application, Authentication and Access Co...
 
Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...
Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...
Fighting Spyware With Mandatory Access Control In Microsoft Windows Vista (Di...
 
Database Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,ViewDatabase Security Methods, DAC, MAC,View
Database Security Methods, DAC, MAC,View
 
MobileDBSecurity.pptx
MobileDBSecurity.pptxMobileDBSecurity.pptx
MobileDBSecurity.pptx
 
Chapter 6 Database Security and Authorization (4).pdf
Chapter 6 Database Security and Authorization (4).pdfChapter 6 Database Security and Authorization (4).pdf
Chapter 6 Database Security and Authorization (4).pdf
 
En ch23
En ch23En ch23
En ch23
 
Database Security Concepts | Introduction to Database Security
Database Security Concepts | Introduction to Database SecurityDatabase Security Concepts | Introduction to Database Security
Database Security Concepts | Introduction to Database Security
 

More from gourav kottawar

operator overloading & type conversion in cpp
operator overloading & type conversion in cppoperator overloading & type conversion in cpp
operator overloading & type conversion in cpp
gourav kottawar
 
constructor & destructor in cpp
constructor & destructor in cppconstructor & destructor in cpp
constructor & destructor in cpp
gourav kottawar
 
classes & objects in cpp
classes & objects in cppclasses & objects in cpp
classes & objects in cpp
gourav kottawar
 
expression in cpp
expression in cppexpression in cpp
expression in cpp
gourav kottawar
 
basics of c++
basics of c++basics of c++
basics of c++
gourav kottawar
 
working file handling in cpp overview
working file handling in cpp overviewworking file handling in cpp overview
working file handling in cpp overview
gourav kottawar
 
pointers, virtual functions and polymorphisms in c++ || in cpp
pointers, virtual functions and polymorphisms in c++ || in cpppointers, virtual functions and polymorphisms in c++ || in cpp
pointers, virtual functions and polymorphisms in c++ || in cpp
gourav kottawar
 
exception handling in cpp
exception handling in cppexception handling in cpp
exception handling in cpp
gourav kottawar
 
cpp input & output system basics
cpp input & output system basicscpp input & output system basics
cpp input & output system basics
gourav kottawar
 
operator overloading & type conversion in cpp over view || c++
operator overloading & type conversion in cpp over view || c++operator overloading & type conversion in cpp over view || c++
operator overloading & type conversion in cpp over view || c++
gourav kottawar
 
constructor & destructor in cpp
constructor & destructor in cppconstructor & destructor in cpp
constructor & destructor in cpp
gourav kottawar
 
basics of c++
basics of c++basics of c++
basics of c++
gourav kottawar
 
classes & objects in cpp overview
classes & objects in cpp overviewclasses & objects in cpp overview
classes & objects in cpp overview
gourav kottawar
 
expression in cpp
expression in cppexpression in cpp
expression in cpp
gourav kottawar
 
SQL || overview and detailed information about Sql
SQL || overview and detailed information about SqlSQL || overview and detailed information about Sql
SQL || overview and detailed information about Sql
gourav kottawar
 
SQL querys in detail || Sql query slides
SQL querys in detail || Sql query slidesSQL querys in detail || Sql query slides
SQL querys in detail || Sql query slides
gourav kottawar
 
Rrelational algebra in dbms overview
Rrelational algebra in dbms overviewRrelational algebra in dbms overview
Rrelational algebra in dbms overview
gourav kottawar
 
overview of database concept
overview of database conceptoverview of database concept
overview of database concept
gourav kottawar
 
Relational Model in dbms & sql database
Relational Model in dbms & sql databaseRelational Model in dbms & sql database
Relational Model in dbms & sql database
gourav kottawar
 
DBMS information in detail || Dbms (lab) ppt
DBMS information in detail || Dbms (lab) pptDBMS information in detail || Dbms (lab) ppt
DBMS information in detail || Dbms (lab) ppt
gourav kottawar
 

More from gourav kottawar (20)

operator overloading & type conversion in cpp
operator overloading & type conversion in cppoperator overloading & type conversion in cpp
operator overloading & type conversion in cpp
 
constructor & destructor in cpp
constructor & destructor in cppconstructor & destructor in cpp
constructor & destructor in cpp
 
classes & objects in cpp
classes & objects in cppclasses & objects in cpp
classes & objects in cpp
 
expression in cpp
expression in cppexpression in cpp
expression in cpp
 
basics of c++
basics of c++basics of c++
basics of c++
 
working file handling in cpp overview
working file handling in cpp overviewworking file handling in cpp overview
working file handling in cpp overview
 
pointers, virtual functions and polymorphisms in c++ || in cpp
pointers, virtual functions and polymorphisms in c++ || in cpppointers, virtual functions and polymorphisms in c++ || in cpp
pointers, virtual functions and polymorphisms in c++ || in cpp
 
exception handling in cpp
exception handling in cppexception handling in cpp
exception handling in cpp
 
cpp input & output system basics
cpp input & output system basicscpp input & output system basics
cpp input & output system basics
 
operator overloading & type conversion in cpp over view || c++
operator overloading & type conversion in cpp over view || c++operator overloading & type conversion in cpp over view || c++
operator overloading & type conversion in cpp over view || c++
 
constructor & destructor in cpp
constructor & destructor in cppconstructor & destructor in cpp
constructor & destructor in cpp
 
basics of c++
basics of c++basics of c++
basics of c++
 
classes & objects in cpp overview
classes & objects in cpp overviewclasses & objects in cpp overview
classes & objects in cpp overview
 
expression in cpp
expression in cppexpression in cpp
expression in cpp
 
SQL || overview and detailed information about Sql
SQL || overview and detailed information about SqlSQL || overview and detailed information about Sql
SQL || overview and detailed information about Sql
 
SQL querys in detail || Sql query slides
SQL querys in detail || Sql query slidesSQL querys in detail || Sql query slides
SQL querys in detail || Sql query slides
 
Rrelational algebra in dbms overview
Rrelational algebra in dbms overviewRrelational algebra in dbms overview
Rrelational algebra in dbms overview
 
overview of database concept
overview of database conceptoverview of database concept
overview of database concept
 
Relational Model in dbms & sql database
Relational Model in dbms & sql databaseRelational Model in dbms & sql database
Relational Model in dbms & sql database
 
DBMS information in detail || Dbms (lab) ppt
DBMS information in detail || Dbms (lab) pptDBMS information in detail || Dbms (lab) ppt
DBMS information in detail || Dbms (lab) ppt
 

Recently uploaded

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 

Recently uploaded (20)

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 

security and privacy in dbms and in sql database

  • 2.  Database security issues  Discretionary access control based on grant & revoking privilege  Mandatory access control and role based access control for multilevel security  Encryption & public key infrastructures
  • 3.  Types of Security:  Legal & Ethical issues regarding the right to access certain information.  System related issues such as the system levels at which various security functions should be enforced , for e.g whether a security function should be handled at the physical hardware level, the operating system level or the DBMS level.  The need in some organizations to identify multiple security levels & to categorize the data & users based on these classifications , for e,g top secret, secret, confidential, & unclassified.  Policy issues at the governmental, institutional or corporate level as to what kind of information should be made publicly available, for e.g credit ratings & personal medical records. 3By:-Gourav Kottawar
  • 4.  Threats to database result in loss or degradation of following security goals:  Loss of Integrity: Database Integrity refers to the requirement that information be protected from improper modification.  Loss of Availability: Database availability refers to making objects available to the user or a program to which they have a legitimate right.  Loss of Confidentiality: Refers to the protection of data from unauthorized disclosure.  Unauthorized , unanticipated or unintentional disclosure could result in loss of public confidence  Modification of data includes creation, insertion , modification, changing the status of data & deletion.  Integrity is lost if unauthorized changes are made to the data by either intentional or accidental acts. 4By:-Gourav Kottawar
  • 5.  To protect database against these types of threats four countermeasures can be implemented:  Access Control  Flow Control  Encryption 5By:-Gourav Kottawar
  • 6.  In a multi-user Database System , DBMS must provide techniques to enable certain users or user groups to access selected portions of a database without granting access to the rest of the database.  There are two types of security mechanisms:  Discretionary security Mechanisms: These are used to grant privileges to users , including the capability to access specific data files, records , or fields in a specific mode (such as read , insert , delete or update)  Mandatory Security Mechanisms: These are used to enforce multilevel security by classifying data & users into various security classes.  For e.g a role based security , which enforces policies & privileges based on the concept of roles. 6By:-Gourav Kottawar
  • 7.  A major problem to all computer systems is that of preventing unauthorized persons from accessing the system itself.  The security mechanisms of DBMS must include provisions for restricting access to the database system as a whole.  The function is called Access Control & is handled by creating user accounts & passwords to control the login process by the DBMS.  DBA is the central authority for managing a database system.  DBA’s responsibilities include:  Account Creation  Privilege granting  Privilege revocation  Security level assignment 7By:-Gourav Kottawar
  • 8.  Whenever a person or a group of persons needs to access a database system, the individual or group must first apply for a user account.  The DBA will then create a new account & password for the user if there is a legal need to access the database.  The user must login to the DBMS by entering the account name/number & password whenever database access is needed.  The database system must also keep track of all operations on the database that are applied by a certain user throughout each login session. 8By:-Gourav Kottawar
  • 9.  The typical method of enforcing discretionary access control in a database system is based on the granting & revoking of privileges.  The main idea is to include statements in the query language that allow the DBA & selected users to grant & revoke privileges.  Types of Discretionary Privileges:  There are two levels for assigning privileges to use the database system.: ◦ The account level: DBA specifies the particular privileges that each account holds independently of the relations in the database. ◦ The relation (table) level: DBA can control the privileges to access each individual relation in the 9By:-Gourav Kottawar
  • 10.  Privileges at account level apply to the capabilities provided to the account itself & can include the CREATE TABLE / VIEW PREVILAGE, ALTER privilege , DROP privilege, MODIFY, SELECT privilege  Account level privileges are not defined as part of SQL ; they are left to the DBMS implementers to define.  The second level of privilege applies to the relation level, whether they are base relations or virtual relations.  In SQL the following types of privileges can be granted on each individual relation R.  SELECT: Gives the account retrieval privilege.  MODIFY: This gives the account the capability to modify tuples of R. In SQL this is divided into UPDATE, DELETE & INSERT privileges. 10By:-Gourav Kottawar
  • 11.  A user who creates a view has precisely those privileges on the view that he or she has on the base tables used to define the view.  The user creating the view must have the SELECT privilege on each underlying table ,so is always granted the SELECT privilege on the view.  The creator of the view has the SELECT privilege with the grant option only if he or she has the SELECT privilege with the grant option on every underlying table.  The user automatically gets the same privilege on the view.  A view may be dropped as a SELECT privilege is revoked from the user who created the view.  If the creator of the view gains additional privilege on the underlying tables, he or she automatically gains additional privileges on the view. 11By:-Gourav Kottawar
  • 12.  In this method a user either has or does not have a certain privilege.  In many applications an additional security policy is needed that classifies data & users based on security classes.  This approach is known as mandatory access control.  It is important to note that most of the commercial DBMSs currently provide mechanisms only for discretionary access control.  However the need for multilevel security exists in government , military & intelligence applications , as well as in many industrial & corporate applications.  Typical security classes are ◦ Top secret (TS) ◦ Secret (S) ◦ Confidential( C) ◦ Unclassified (U) 12By:-Gourav Kottawar
  • 13.  TS is the highest level & U the lowest.  The system uses four security classification levels , where TS>S>C>U.  The commonly used model for multilevel security , known as Bell- Lapadula model.  It classifies each subject (user, account, program) & object (table, tuple,column,view,operation) into one of the security classifications.  The classification of subject S is referred as class(S) & classification of object is referred as class(O) 13By:-Gourav Kottawar
  • 14.  MAC is based on system wide policies that can not be changed by individual user.  In this approach each database object is assigned a security class.  Each user is assigned a clearance for a security class.  Rules are imposed on reading & writing of database objects by users.  The DBMS determines whether a given user can read or write a given object based on certain rules that involve the security level of that object & the clearance of the user.  These rules seek to ensure that sensitive data can never be ’passed on’ to a user without the necessary clearance.  SQL standard does not include any support for MAC. 14By:-Gourav Kottawar
  • 15.  Clearance is the security level to which an individual user or client can access information.  This clearance is associated with ‘need to know’ requirement.  The Bell-Lapadula model imposes two restrictions on all reads & writes of database objects:  Simple-security property: A subject can read an object only if the security level of the subject is higher or equal to the security level of object. (read –down)  *-property: A subject can write on an object only if the security level of the object is higher or equal to the security level of the subject. (write up)  It is usually assumed that the security levels on subjects & objects once assigned cannot be changed (except DBA)  This is the reason that the MAC is mandatory. 15By:-Gourav Kottawar
  • 16.  Subjects: Individuals who perform some activity on the database. Might include specific people or a group of users  Objects: Database units that require authorization in order to manipulate. Database units might include an entire table, specific columns in a table, specific rows in a table, etc.  Actions: Any activity that might be performed on an object by a subject. For example: Read, Modify, Insert, Write, Delete, Grant (the ability to grant authorizations to others)  Constraint: A more specific rule regarding an aspect of the object and action. 16By:-Gourav Kottawar
  • 17.  For e.g a user with TS clearance can read a table with C clearance , but a user with C clearance is not allowed to read a table with TS classification. (Simple Security Property)  *_Property: For e.g a user with S clearance can write only objects with S or TS classification.  In case of Multilevel security notions into the relational database model, it is common to consider attribute values & tuples as data objects.  Each attribute is associated with a classification C.  Each attribute value is associated with a corresponding security classification. 17By:-Gourav Kottawar
  • 18.  RBAC emerged in 1990s as a proven technology for managing & enforcing security in large scale enterprise wide systems.  Its basic notion is that permissions are associated with roles, & users are assigned to appropriate roles.  Roles can be created using CREATE ROLE & DESTROY ROLE commands.  RBAC appears to be a viable alternative to traditional discretionary & mandatory access controls; it ensures that only authorized users are given access to certain data or resources.  User create sessions during which they may activate a subset of roles to which they belong.  Each session can be assigned to many roles, but it maps to only one user.  Many DBMSs have allowed the concept of roles , where privileges can be assigned to roles. 20By:-Gourav Kottawar
  • 19.  Another important consideration in RBAC systems is the possible temporal constraints that may exist on roles, such as the time & duration of role activations & time triggering of a role by an activation of another role.  RBAC models have several desirable features , such as flexibility , better support for security management & administration.  RBAC can be effectively used for developing secure Web based applications , however MAC & DAC lack capabilities needed to support a secure web based application. 21By:-Gourav Kottawar
  • 20.  The previous access control mechanisms being strong countermeasures, may not be able to protect databases from some threats.  Suppose we communicate data, but our data falls into the hands of some invalid user.  In this situation , by using encryption we can disguise the message so that even if the transmission is diverted, the message will not be revealed.  Encryption is a means of securing data in a insecure environment.  Encryption consists of applying an encryption algorithm to data using some pre specified encryption key.  The resulting data has to be decrypted using a decryption key. 22By:-Gourav Kottawar
  • 21.  The DES (Data Encryption Standard )is a system developed by the U.S government for use by the general public.  It has been widely accepted as a cryptographic standard both in the United States & abroad.  DES can provide end-to-end encryption on the channel between the sender A & receiver B.  The DES algorithm is a careful & complex combination of two of the fundamental building blocks of encryption: Substitution & Transposition  The algorithm derives its strength from repeated application of these two techniques for a total of 16 cycles. 23By:-Gourav Kottawar
  • 22.  substitution :For example: a is replaced with D, b with E, c with F and z with C. In this way attack becomes DWWDFN. The substitution ciphers are not much secure because intruder can easily guess the substitution characters. Transposition:Plaintext: this is a test t h i s i s a t tiehssiatst! e s t ! 24By:-Gourav Kottawar
  • 23.  In 1976 Diffie & Hellman proposed a new kind of cryptosystems ,which they called public key encryption.  This algorithm uses two separate keys, in contrast to conventional encryption , which uses only one key.  The two keys are referred to as public key , & private key.  The private key is kept secret .  The Public key Encryption scheme: ◦ Plain Text ◦ Encryption Algorithm ◦ Pubilc key & Private key : Public key is used for encryption & Private key used for decryption. ◦ Cipher Text ◦ Decryption Algorithm 25By:-Gourav Kottawar
  • 24.  When John wants to send a secure message to Nipun, he uses Nipun 's public key to encrypt the message. Nipun then uses her private key to decrypt it. An important element to the public key system is that the public and private keys are related in such a way that only the public key can be used to encrypt messages and only the corresponding private key can be used to decrypt them. Moreover, it is virtually impossible to figure out the private key if you know the public key.  Public-key systems are becoming popular for transmitting information via the Internet. They are extremely secure and relatively simple to use. The only difficulty with public-key systems is that you need to know the recipient's public key to encrypt a message for him or her. 26By:-Gourav Kottawar
  • 25.  ciphertext (or cyphertext) is the result of encryption performed on plaintext using an algorithm, called a cipher .Ciphertext is also known as encrypted or encoded information because it contains a form of the original plaintext that is unreadable by a human or computer without the proper cipher to decrypt it. Decryption, the inverse of encryption, is the process of turning ciphertext into readable plaintext. 27By:-Gourav Kottawar
  • 26.  plaintext is information a sender wishes to transmit to a receiver. Cleartext is often used as a synonym. Plaintext has reference to the operation of cryptographic algorithms, usually encryption algorithms 28By:-Gourav Kottawar

Editor's Notes

  1. In the United States , there are numerous laws governing privacy of information.
  2. Inference Control
  3. REFERENCE: This privilege gives the account the capability to reference relation R when specifying integrity constraints.
  4. In addition in some models tuple classification attribute TC is also added to the relation attribute to provide a classification of each tuple as a whole.
  5. Thus RBAC becomes a superset model that can in turn mimic the behavior of MAC & DAC systems. Easier deployment over the Internet has been another reason for the success of RBAC.