Full text

1. Introduction

With the rapid development of information technology, especially the computer network, network attacks is increasing and information security has drawn more and more attention of people. Database management system, which has responsible for the management of a large number of information, is a major component of information network, and its security plays a decisive role in the entire network. Multi-level secure database management system (MLS/DBMS) is a mandatory access control database management system, and the great difference from ordinary database is that the data and the database user in multi-level security database have been given a different security classification, and only users with the appropriate permissions could be allowed to access the corresponding data[1].

The Multilevel Secure Database Management system adopts three structure layers. The top layer is the user service layer and it provides a friendly interface for users to browse information. The middle layer is the application layer services, which provides standard database access for database applications and controls the access to database, being completed by the database proxy server.

The concept of multilevel security dated back to the 1960s. US Department of Defense decided to seek some protection of confidential data computer at that time. Before that, there had been regulations to restrict the use of unauthorized persons access to confidential data within the computer, which is the so-called discretionary access control. For the systems with less demanding of security, discretionary access control is able to meet the security need. But in the applications on national defence or military and so on, due to the relatively high security requirements, we must Implement the mandatory access control. The database management system which implements mandatory access control is usually called Multilevel Secure Database Management System. The difference between it and ordinary database data multilevel secure database is that the data in MLS are given different security grades. At the same time, the database users are also given different security grades. Only the users with appropriate permissions have access the corresponding data.

2. Access Control Modes

Controlling access is a common means to carry out security strategies. Access Control includes discretionary access control and mandatory access control. Discretionary access control is a commonly used access control strategy. It deals With users access to the data in the system according to their label and the access rules, the rules stipulate the user access to the data access patterns and the rule set implies the authorization information.

Discretionary access control strategy allows a user to grant other users access to authorization of certain objects. Users can make appropriate changes to the system parameters due to their own willingness. Here the "autonomy" means the owner of the resource may decide to access resources, and this access can dynamically transfer and recycling according to the principle of “work needs”. It’s commonly used to limit the data in the same security classification or the same range unauthorized flow.

There are a variety of discretionary access control

methods, such as power meter, passwords, access

control lists, etc. Mandatory Access Control is a powerful access control means. The strategy restrict user’s access to information in the dependence of objects and subjects of the security level, assigning localized security level to users and data, then the system will take use of the security data to decide whether the user can have access to some resource. This way of access control is also called assignation access control mode. The so-called "assignation" refers to the access to resources is not determined by the owner of the resource but the security manager of the system, usually used to restrict the data flow from a high security grade to a low one, from a range to another, which can guarantee the

confidentiality and integrity of the system.

3. Architecture

The system adopts three structure layers. The top layer is the user service layer and it provides a friendly interface for users to browse information. The middle layer is the application layer services, which provides standard database access for database applications and controls the access to database, being completed by the database proxy server. The lowest layer is the data service layer, using the function of data definition, storage, backup and retrieval and it is completed by the database server.

In order to meet the needs of secure access and introduce database security proxy, the system can be divided into client and database security proxy. The client proxy includes application program interface module and communication surface module. Database security agent comprises a communication interface module, and requests analysis module, accessing and inferring control module control module, audit module and proxy access module.

The application program sends user’s requests and the user’s identity information through the client interface. Firstly, the database agent analyzes the query request when receiving the news, through the SQL analytic and transfer to the discretionary access control module. When discretionary access control check passes, the user access request is transmitted to the mandatory access control module for mandatory access check. After compulsory access control checks, user access request will be transmitted to the inference control module, checking whether the user can reason out unauthorized information according to information obtained by this visit and prior knowledge. If the reasoning control is checked by inspection, the user is allowed to target the database access module through a proxy, or he/she will be informed that the client that access is denied and disconnected.

Whether the user can make it, the audit module will still records. The access control system uses a combination of discretionary access control and mandatory access control.

4. Discretionary Access Control Design

The user's access request will be passed to the discretionary access control module after analysis and interpretation. Then discretionary access control module will check whether the user has permission to perform operations such as the insertion of the class. If passed discretionary access control check, the user's access request will be conveyed to the mandatory access control module, otherwise it will be denied.

The system analyses the access request from the users and obtain the access subjcet, object and operation type. The subject is obtained from the permission control when the users are loging in while operation type is obtained according to the user’s access request. The obtainment of the object can be generally divided into two situations: There exist explicit access objects in the access requests, the access object can be obtained directly; when there is no explicit access objects in the access requests, you need to make an access change, obtaining the access object through accessing the database and constructing a triple<subject, object, access type> according to the returned result.

Afterwards, judge if the access permissions of each triplet meet s the need according to the safety relational tables. Only if all the triplets meet the need of access requests can be controlled through discretionary access control, otherwise the access request will be rejected.

5. Mandatory Access Control Design

After the system passes the access control check, it starts to conduct Mandatory Access Control. First, obtain the security grades and ranges of the subject and object. Then check access control rules of the tuple in accordance with the application model access rules.

If all the tuples satisfy the access request, it can be controlled through Mandatory Access Control, otherwise this access request will be rejected. Mandatory Access Control implementation flowchart is as shown in Figure1.

Figure 1. Mandatory Access Control implementation flowchart In the flowchart, the core code of the access rule checking module is as follows: #define ACCESS_DENY 0 #define READ_ONLY 1 User access request Obtain the security grades of subject and object Check the access rules Mandatory Access Control passes Mandatory Access Control ends Access rejected Control rules NO YES Obtain the ranges of subject and object

#define WRITE_ONLY 2 #define READ_WRITE 3 enum SECRET_GRADE // Users and object security grade { UNFURL, // unfurl SECRET, // secret TOP_SECRET// top secret }; enum RANGE_GRADE // access scope { NULL_, // empty PERSON, // person FILE_, // file PLANE // plane }; struct OBJECT // object property { SECRET_GRADE sec_grade;// security grade RANGE_GRADE range; // range grade }; struct USER // principal property { SECRET_GRADE read_grade; // read the secret grade SECRET_GRADE write_grade; // write the secret grade RANGE_GRADE read_range; // read the range RANGE_GRADE write_range; // write the range }; int Access_Control(OBJECT *D,USER *S) { if (S->read_range >= D->range) // user range contains objective range { if (S->write_grade > D->sec_grade)// cannot be written { if (S->read_grade >= D->sec_grade)return READ_ONLY;// read only } else // can be written { if (S->read_grade < D->sec_grade)return WRITE_ONLY;// write only else return READ_WRITE;// read and write } } return ACCESS_DENY;// access deny }

6. Conclusion

Multilevel secure database management system has been researched by a large number of foreign researchers. Although the multilevel secure database prototype system in many high security has been achieved, there are many problems which have not been solved yet. This paper introduces the design of a multilevel secure database management prototype system, completing the system structure. We sincerely hope that this research can provide some technical supports for the database development in the future.