Docsity

Database Security: Mechanisms, Threats, and Countermeasures, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Database Security: Mechanisms, Threats, and Countermeasures and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Security

Chapter 18

Database Security

The mechanisms that protect the database against intentional or accidental threats.

Secure database against:

  • Theft and fraud
  • Loss of confidentiality
  • Loss of privacy
  • Loss of integrity
  • Loss of availability

Countermeasures

  • Authorization
  • Views
  • Backup and recovery
  • Integrity
  • Encryption
  • RAID Technology

Authorization

  • The granting of a right or privilege that enables a subject to have legitimate access to a system or system’s object.
  • Involves authentication of subjects requesting access to objects, where ‘subject’ represents a user or program and object represents a database table, view, procedure or any other object which could be created within the system.
  • Each privilege has a binary value associated with it, for example:
  • SELECT 0001
  • UPDATE 0010
  • INSERT 0100
  • DELETE 1000
  • ALL 1111

Access Control Matrix

8

User PropNo StaffNo BranchNo

SG37 0001 (Select)

0000 (none)

0111 (Select + Update + Insert) SG4 1111 (All)

0101 (Select + Insert)

1111 (All)

Sales 0001 (Select)

0001 (Select)

0001 (Select)

Backup and Recovery

Backup – The process of periodically taking a copy of the database and log file to offline storage media.

Journaling – The process of maintaining a log file of all changes made to the database to enable recovery in the event of failure.

Encryption

  • The encoding of data by a special algorithm that renders the data unreadable by any program without the decryption key.

Symmetric encryption:

Uses the same key for both encryption and decryption.

Example: DES (Data Encryption Standard)

RAID

  • Redundant Array of independent Disks
  • Works on having a large disk array comprising an arrangement of several independent disks that are organized to improve reliability and increase performance.

DBMS and Web Security

Proxy Servers: A proxy server is a computer that sits between a web browser and a web server.

  • Improve performance – caches the web pages and return the cached page it had already fetched for a user earlier.
  • Filter Requests - Can be used by an organization to prevent its employees to access a specific website.

Firewalls:

  • A system designed to prevent unauthorized access to or from a private network.
  • Examines each message and blocks that do not meet the specified security criteria.

Digital Signature

  • Consists of a string of bits that is computed from the data that is being signed and the private key of the organization wishing the signature.
  • Can be verified using computation based on the corresponding public key.
  • Cannot be forged
  • signed data cannot be changed.

Digital Certificates

  • An attachment to an electronic message used for security purposes, to verify who is the user sending a message and provide the receiver with a means to encode a reply.