+APP.4.3 Relational Database Systems
---+APP.4.3.G1. Insufficient System Resources
---+APP.4.3.G2. Enabled Default User Accounts
---+APP.4.3.G3. Unencrypted Database Connections
---+APP.4.3.G4. Data Loss in a Database
---+APP.4.3.G5. Loss of Integrity of Stored Data
---+APP.4.3.G6. SQL Injections
---+APP.4.3.G7. Insecure Configuration of the Database Management System
---+APP.4.3.G8. Malware and Insecure Database Scripts
---+APP.4.3.A1 Creation of a Security Policy for Database Systems (B)
---+APP.4.3.A3 Basic Hardening of Database Management Systems (B)
---+APP.4.3.A4 Controlled Creation of New Databases (B)
---+APP.4.3.A9 Backing Up a Database System (B)
---+APP.4.3.A11 Sufficient Hardware Capacity [Process Owner] (S)
---+APP.4.3.A12 Uniform Configuration Standard for Database Management Systems (S)
---+APP.4.3.A13 Restrictive Utilisation of Database Links (S)
---+APP.4.3.A16 Encryption of Database Connections (S)
---+APP.4.3.A17 Data Transfer or Migration [Process Owner] (S)
---+APP.4.3.A18 Database Management System Monitoring (S)
---+APP.4.3.A19 Protection Against Malicious Database Scripts [Developer] (S)
---+APP.4.3.A20 Regular Audits (S)
---+APP.4.3.A21 Use of Database Security Tools (H)
---+APP.4.3.A22 Contingency Planning (H)
---+APP.4.3.A23 Archiving (H)
---+APP.4.3.A24 Data Encryption in Databases (H)
---+APP.4.3.A25 Security Audits of Database Systems (H)

APP.4.3 Relational Database Systems

Introduction

Database systems (DBS) are often used as auxiliary resources in organising, creating, modifying, and managing large data collections with the help of IT. A DBS consists of a database management system (DBMS) and one or more databases. A database is a collection of data and corresponding descriptions (metadata) that is continuously stored in a database system. Since database systems often play a central role in IT infrastructure, they have to meet essential security requirements. The core processes of an organisation typically depend on information from databases. This results in corresponding availability requirements. Additionally, there are often high requirements regarding the confidentiality and integrity of the information stored in databases.

Objective

The objective of this module is to demonstrate the secure operation of relational database systems and the appropriate protection of the information processed and stored in databases. It thus describes requirements that can be used to securely plan, implement, and operate database systems and reduce threats.

Scoping and Modelling

APP.4.3 Relational Database Systems must be applied once to each relational database system in use.

This module describes requirements for relational database systems. Security requirements for non-relational database systems are not covered here.

In order to continuously protect the information in databases, security requirements for the design of database tables and access to databases should have been considered during the corresponding application development process. However, this module does not cover these issues.

It also does not address the threats and requirements that affect the operating system and hardware on which a database system is installed. These aspects are covered in the corresponding operating system-specific modules of the IT Systems layer, e.g. SYS.1.3 Linux and Unix Servers or SYS.1.2.2 Windows Server 2012.

Relational database systems should always be considered as part of modules OPR.4 Identity and Access Management, OPS.1.1.3 Patch and Change Management, CON.3 Backup Concept, OPS.1.2.2 Archiving, OPS.1.1.5 Logging, and OPS.1.1.2 Proper IT Administration.

Useful Resources

The BSI has published the following partner contributions on the topic of database security within the framework of the Alliance for Cyber Security:

  • Oracle: Datenbank-Sicherheit – Grundüberlegungen [Oracle: Database Security – Basic Considerations]
  • McAfee: Datenbanksicherheit in Virtualisierungs- und Cloud-Computing-Umgebungen [McAfee: Database Security in Virtualisation and Cloud Computing Environments]

The Deutsche Telekom Group has published the document "Sicherheitsanforderung Datenbanksysteme" [Security Requirements for Database Systems] as part of its Privacy and Security Assessment (PSA) process.

Section BA2.3, "Protection of Databases" of “The Standard of Good Practice for Information Security” (published by the Information Security Forum, ISF) provides guidelines for the protection of relational database systems.

1. Apžvalga

Pavadinimas Standartas
APP.4.3.A1 Creation of a Security Policy for Database Systems (B)

Based on its general security policy, an organisation MUST draw up a security policy specific to database systems. This MUST describe requirements and specifications for the secure operation of database systems in a comprehensible manner. The guideline MUST be familiar to all employees responsible for database systems. It MUST be integral to their work. If the policy is changed or deviations from the requirements are allowed, this MUST be coordinated with the CISO and documented. The correct implementation of the policy MUST be reviewed on a regular basis. The results MUST be documented in an appropriate manner.

APP.4.3.A3 Basic Hardening of Database Management Systems (B)

Database management systems MUST be hardened. To this end, a checklist of the steps to be performed MUST be compiled and completed. Passwords MUST NOT be stored in plain text. Basic hardening MUST be reviewed and adapted as required at regular intervals.

APP.4.3.A4 Controlled Creation of New Databases (B)

New databases MUST be created in accordance with a defined process. When a new database is created, basic information on the database MUST be documented in a comprehensible manner.

APP.4.3.A9 Backing Up a Database System (B)

System backups of a DBMS and its data MUST be performed at regular intervals. The database system MUST also be backed up before a new database is created. The service programs permitted for this purpose SHOULD be used.

All transactions SHOULD be backed up in such a way that they can be recovered at any time. If the backup process would exceed the available capacity, an extended concept SHOULD be created to back up the database (e.g. incremental backups). The recovery parameters SHOULD be specified based on the protection needs of the data (see CON.3 Backup Concept).

APP.4.3.A11 Sufficient Hardware Capacity [Process Owner] (S)

Database management systems SHOULD be installed on sufficiently sized hardware. The hardware SHOULD have sufficient reserves in order to meet potentially increasing requirements. If resource bottlenecks become apparent during operations, these SHOULD be eliminated at an early stage. When sizing hardware, the growth expected for the scheduled deployment period SHOULD be taken into account.

APP.4.3.A12 Uniform Configuration Standard for Database Management Systems (S)

A uniform configuration standard SHOULD be defined for all the database management systems deployed. All database management systems SHOULD be configured and operated in the same manner according to this standard. If an installation requires a deviation from the configuration standard, all steps SHOULD be approved by the CISO and documented in a comprehensible manner. The configuration standard SHOULD be reviewed and adapted as required at regular intervals.

APP.4.3.A13 Restrictive Utilisation of Database Links (S)

It SHOULD be ensured that only persons accountable are authorised to create database links (DB links). If such links are created, private DB links MUST be preferred to public DB links. All DB links created by the persons accountable SHOULD be documented and reviewed at regular intervals. Additionally, DB links SHOULD be taken into account when the database system is backed up (see APP.4.3.A9 Backing Up a Database System).

APP.4.3.A16 Encryption of Database Connections (S)

A database management system SHOULD be configured in such a way that database communications are always encrypted. The cryptographic methods and protocols used to this end SHOULD comply with the internal specifications of the respective organisation (see CON.1 Crypto Concept).

APP.4.3.A17 Data Transfer or Migration [Process Owner] (S)

The manner in which data should be transferred to a database initially or regularly SHOULD be defined in advance. After data is transferred, checks SHOULD be performed to ensure that it is complete and has not been changed.

APP.4.3.A18 Database Management System Monitoring (S)

The parameters, events, and operating states of a database management system that are critical for secure operations SHOULD be defined. These SHOULD be monitored using a corresponding system. Threshold values SHOULD be defined for all critical parameters, events, and operating states. If these values are exceeded, appropriate action MUST be taken. The responsible staff members SHOULD be alerted. Application-specific parameters, events, operating states, and their threshold values SHOULD be coordinated with the persons accountable for the specialised applications in use.

APP.4.3.A19 Protection Against Malicious Database Scripts [Developer] (S)

When database scripts are developed, binding quality criteria SHOULD be defined for them (see CON.8 Software Development). Database scripts SHOULD be subjected to extensive functional tests on separate test systems before they are used in production environments. The results SHOULD be documented.

APP.4.3.A20 Regular Audits (S)

All the components of a database system SHOULD be checked regularly in terms of whether all the specified security safeguards have been implemented and are configured correctly. This SHOULD include checks of whether the documented status corresponds to the actual status and whether the configuration of the database management system corresponds to the documented standard configuration. In addition, it SHOULD be determined whether all the database scripts at hand are actually needed. Whether they meet the quality standards of the respective organisation SHOULD also be checked. Furthermore, the log files of the database system and the operating system SHOULD be checked for irregularities (see DER.1 Detecting Security-Relevant Events). The audit results SHOULD be documented in a transparent manner. They SHOULD be compared against the target status. Deviations SHOULD be investigated.

APP.4.3.A21 Use of Database Security Tools (H)

Information security products SHOULD be used for databases. The products used SHOULD provide the following functions:

  • Creation of an overview of all database systems
  • Extended configuration options and rights management for databases
  • Detection and prevention of possible attacks (e.g. brute force attacks on a user account or SQL injections)
  • Audit functions (e.g. checking configuration requirements)
APP.4.3.A22 Contingency Planning (H)

A business continuity plan that includes information on how emergency operations can be carried out SHOULD be prepared for the database management system in use. The resources required for the business continuity plan SHOULD be identified. Additionally, the business continuity plan SHOULD define how the respective organisation can return from emergency operations to regular operations. The business continuity plan SHOULD define the necessary reporting channels, response routes, resources, and response times for the Process Owners. Based on a coordination plan for the restoration of service, all IT systems that depend on the database in question SHOULD be identified in advance and taken into consideration.

APP.4.3.A23 Archiving (H)

If the data of a database system needs to be archived, a corresponding archiving concept SHOULD be drawn up. It SHOULD be ensured that the existing data will be available at a later point in time in a complete and consistent manner.

The archiving concept SHOULD define both archiving intervals and the storage period of the archived data. Additionally, the technology used to archive the database SHOULD be documented. The archived data SHOULD be used for regular recovery tests. The results SHOULD be documented.

APP.4.3.A24 Data Encryption in Databases (H)

The data stored in databases SHOULD be encrypted. In this process, the following factors (among others) SHOULD be considered beforehand:

  • Effects on performance
  • Key management processes and methods, including separate key storage and security
  • Effects on backup recovery concepts
  • Functional impact on the database (regarding sorting options, for example)
APP.4.3.A25 Security Audits of Database Systems (H)

Security audits SHOULD be carried out on database systems at regular intervals. The systemic and manufacturer-specific aspects of the database infrastructure (e.g. directory services) used and the database management system deployed SHOULD be considered within the framework of security audits.

1.1 Nuorodos

1.2 Nustatyti reikalavimai

1.3 Susiję teisės aktai

2. Nustatyti reikalavimai

Reikalavimai
Šaltinis Reikalavimas

3. Susiję teisės aktai

Teisės aktai
Šaltinis Reguliavimas

Susietos užduotys