Manageable operating system based on active immunization
By designing an active immune manageable operating system based on CentOS in the operating system and enhancing the security mechanism, the problem of insufficient security protection level of the operating system in the existing technology is solved, and the support of multiple security policy models is achieved and the system security is significantly improved. promote.
Patent Information
- Application Number
- CN202410892900.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
The security protection level of existing operating systems remains at the traditional manual reinforcement stage, and there is a lack of professional-level security operating systems. As a result, the huge user base of mainstream operating systems hides growing security risks.
Designed a manageable operating system based on active immunity, based on CentOS basic framework and basic kernel functions, by adding and expanding security mechanisms, including user access management, secure kernel, trusted communication, security mechanism management, security reinforcement and security auditing Module supports multiple security policy models and dynamic security policy changes to enhance system security.
It realizes the enhancement of system security under the architecture of multiple security policies and dynamic security policy changes, significantly improves the defense capabilities of the operating system, defends against known and unknown attack behaviors, and ensures the security and reliability of the system. .
Smart Images

Figure CN118862085A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security, and more specifically, to a manageable operating system based on active immunity. Background Art
[0002] Operating system security is an important foundation of computer security. To properly solve the increasingly widespread computer security problems, we must have a solid and secure operating system as a backing. This requires us to find practical and effective development methods and develop a secure operating system that can meet the needs of actual applications.
[0003] At present, the security protection level of operating systems in existing technologies still remains at the traditional manual reinforcement stage such as patching and configuring simple policies. There is a lack of professional-grade security operating system products. Especially for mainstream operating systems, there are growing security risks hidden behind the huge user base.
[0004] Therefore, how to provide a manageable operating system based on active immunity that can implement multiple security policy models and enhance the security of the system is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] To solve the above technical problems, the present invention provides a manageable operating system based on active immunity, which can implement multiple security policy models and enhance the security of the system under an architecture that supports multiple security policies and dynamic security policy changes.
[0006] A technical solution provided by the present invention is as follows:
[0007] The present invention provides an active immune manageable operating system, comprising: the system is based on the CentOS basic framework and kernel basic functions, and is obtained by adding and extending a security mechanism to the kernel;
[0008] The system includes:
[0009] A user access management module, the user access management module is used to manage user access;
[0010] A security kernel module, wherein the security kernel module is used to determine and implement user access according to preset security information;
[0011] A trusted communication module, the trusted communication module is used to ensure trusted communication within the system;
[0012] A security mechanism management module, wherein the security mechanism module is used to manage the security mechanism;
[0013] A security reinforcement module, which is arranged at the application layer and is used to defend against attack behaviors;
[0014] A security audit module, wherein the security audit module is used to audit security events;
[0015] A centralized management module, which is used to provide centralized management, policy configuration, log management, and alarm management of the operating system.
[0016] Furthermore, in a preferred embodiment of the present invention, the user access management module is used to perform the following steps: authenticate the user identity; perform a double check and verification of confidentiality and integrity on the user based on a mandatory access control mechanism; and grant access to system resources after passing.
[0017] Furthermore, in a preferred embodiment of the present invention, the security kernel module includes: a security determination module and a determination implementation module; the security determination module determines whether security-related behaviors can be executed based on security information; and the determination implementation module is responsible for executing tasks to be performed by the security-related behaviors that have been permitted.
[0018] Furthermore, in a preferred embodiment of the present invention, mutually independent information support mechanisms are established within the security determination module;
[0019] The security information corresponds to the information support mechanism one by one;
[0020] During the security determination process, the corresponding mechanism of the security determination module can determine the security information to be used according to the type of security request, and then transfer the determination task of the security request to the corresponding information support mechanism for processing.
[0021] Furthermore, in a preferred embodiment of the present invention, the trusted communication module supports a trusted computing dual system; the functions of the trusted communication module include: trusted boot, static measurement, dynamic measurement, trusted measurement management service and trusted backup service.
[0022] Furthermore, in a preferred embodiment of the present invention, the trusted boot is a trusted root based on a trusted computing chip TCM; the trusted root is composed of a BIOS CRTM module and a trusted chip;
[0023] After TCM is powered on, the CRTM module program is executed to measure and expand the CRTM data, BIOS data and platform extension items into the trusted chip platform configuration register PCR0, and the measurement events are recorded in the event log.
[0024] Further, in a preferred embodiment of the present invention, the static measurement includes: a measurement mechanism and a static measurement target object, the measurement mechanism includes: an integrity challenge mechanism and an integrity verification mechanism, and the static measurement target object includes: an initial kernel, a kernel module, an executable file loaded by a process, a dynamic library loaded by a process, and a configuration file of a process;
[0025] The dynamic measurement is a dynamic measurement model based on information flow, and the dynamic measurement target objects are processes and kernel modules.
[0026] Furthermore, in a preferred embodiment of the present invention,
[0027] The security mechanism management module is used to add and expand security mechanisms in kernel space and user space;
[0028] The security mechanism management module is a security mechanism management module that has been enhanced and optimized with security technology, and the security technology enhancement and optimization includes autonomous access control, mandatory access control, labeling, identity authentication, object reuse, auditing, data integrity, covert channel analysis, trusted path, trusted recovery and other aspects.
[0029] Furthermore, in a preferred embodiment of the present invention, the security reinforcement module is used to defend against attack behaviors specifically as follows:
[0030] Immunity to "known" and "unknown" attacks;
[0031] The security reinforcement module is used to defend against attack behaviors and includes the following steps:
[0032] Establish a whitelist mechanism;
[0033] Protection based on whitelist;
[0034] Rebuild the "security subsystem" of the operating system by combining three access control security models: enhanced DTE, RBAC, and BLP;
[0035] Monitor all relevant resource access behaviors and form a three-dimensional protection to ensure the implementation of a secure operating system.
[0036] Furthermore, in a preferred embodiment of the present invention, the security audit module is used to perform the following steps: recording and querying logs, wherein the types of logs include program logs, peripheral logs, user logs, resource monitoring logs, and login and operation logs of WEB accounts; the content of the logs includes specific time, log type, user name, event description, response method, and execution object; and auditing the logs to identify abnormal log data.
[0037] The present invention provides a manageable operating system based on active immunity. Compared with the prior art, the system is based on the CentOS basic framework and the basic functions of the kernel, and is obtained by adding and expanding the security mechanism to the kernel; the system includes: a user access management module, the user access management module is used to manage user access; a security kernel module, the security kernel module is used to determine and implement user access according to preset security information; a trusted communication module, the trusted communication module is used to ensure trusted communication within the system; a security mechanism management module, the security mechanism module is used to manage the security mechanism; a security reinforcement module, the security reinforcement module is set at the application layer, the security reinforcement module is used to defend against attack behaviors; a security audit module, the security audit module is used to audit security events; a centralized management module, the centralized management module is used to provide centralized management, policy configuration, log management, and alarm management of the operating system. The technical solution of the present invention can realize multiple security policy models and enhance the security of the system under an architecture that supports multiple security policies and dynamic security policy changes, and has significant technical effects compared to the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a schematic diagram of the architecture of an active immune manageable operating system involved in an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of the identity authentication logic of the QiSOS operating system involved in an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of the operation logic of the SD subsystem of the QiSOS security operating system kernel involved in an embodiment of the present invention;
[0042] Figure 4 A schematic diagram of a trust chain trust transfer and verification logic of a manageable operating system involved in an embodiment of the present invention;
[0043] Figure 5 A schematic diagram of BIOS-based integrity measurement according to an embodiment of the present invention;
[0044] Figure 6 A schematic diagram of the operation logic of the static measurement subsystem involved in the embodiment of the present invention;
[0045] Figure 7 A schematic diagram of the operation logic of the dynamic measurement subsystem involved in an embodiment of the present invention;
[0046] Figure 8 A schematic diagram of the application layer security reinforcement logic involved in an embodiment of the present invention;
[0047] Fig. 9 A schematic diagram of a management end shunt structure based on an active immune manageable operating system according to an embodiment of the present invention;
[0048] Fig.10 A schematic diagram of a decentralized security trust token system architecture according to an embodiment of the present invention;
[0049] Fig.11 A schematic diagram of the security encryption logic of the access control program involved in an embodiment of the present invention;
[0050] Fig.12 A workflow diagram for opening the security policy involved in the embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention.
[0052] It should be noted that when an element is referred to as being "fixed on" or "disposed on" another element, it can be directly on the other element or indirectly embedded in the other element; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0053] It should be understood that the terms "length", "width", "up", "down", "front", "back", "first", "second", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0054] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" and "several" is two or more, unless otherwise clearly and specifically defined.
[0055] It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with this technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantive technical significance. Any structural modification, change in proportional relationship, or adjustment of size should still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0056] Please Figures 1 to 12 As shown, the present invention provides a manageable operating system based on active immunity, including: the system is based on the CentOS basic framework and kernel basic functions, and is obtained by adding and expanding security mechanisms to the kernel; the system includes: a user access management module, the user access management module is used to manage user access; a security kernel module, the security kernel module is used to determine and implement user access according to preset security information; a trusted communication module, the trusted communication module is used to ensure trusted communication within the system; a security mechanism management module, the security mechanism module is used to manage the security mechanism; a security reinforcement module, the security reinforcement module is set at the application layer, the security reinforcement module is used to defend against attack behaviors; a security audit module, the security audit module is used to audit security events; a centralized management module, the centralized management module is used to provide centralized management, policy configuration, log management, and alarm management of the operating system. The technical solution involved in the present invention can realize multiple security policy models and enhance the security of the system under an architecture that supports multiple security policies and dynamic security policy changes. Compared with the prior art, it has significant technical effects.
[0057] Specifically, in the embodiment of the present invention, the user access management module is used to perform the following steps: authenticate the user identity; perform a double check and verification of confidentiality and integrity on the user based on a mandatory access control mechanism; and grant access to system resources after passing.
[0058] Specifically, in an embodiment of the present invention, the security kernel module includes: a security determination module and a determination implementation module; the security determination module determines whether security-related behaviors can be executed based on security information; the determination implementation module is responsible for executing the tasks to be performed by the security-related behaviors that have been permitted.
[0059] Specifically, in the embodiment of the present invention, mutually independent information support mechanisms are established inside the security determination module;
[0060] The security information corresponds to the information support mechanism one by one;
[0061] During the security determination process, the corresponding mechanism of the security determination module can determine the security information to be used according to the type of security request, and then transfer the determination task of the security request to the corresponding information support mechanism for processing.
[0062] Specifically, in an embodiment of the present invention, the trusted communication module supports a trusted computing dual system; the functions of the trusted communication module include: trusted boot, static measurement, dynamic measurement, trusted measurement management service and trusted backup service.
[0063] Specifically, in the embodiment of the present invention, the trusted boot is a trusted root based on a trusted computing chip TCM; the trusted root is composed of a BIOS CRTM module and a trusted chip;
[0064] After TCM is powered on, the CRTM module program is executed to measure and expand the CRTM data, BIOS data and platform extension items into the trusted chip platform configuration register PCR0, and the measurement events are recorded in the event log.
[0065] Specifically, in an embodiment of the present invention, static measurement includes: a measurement mechanism and a static measurement target object, the measurement mechanism includes: an integrity challenge mechanism and an integrity verification mechanism, the static measurement target object includes: an initial kernel, a kernel module, an executable file loaded by a process, a dynamic library loaded by a process, and a configuration file of a process;
[0066] The dynamic measurement is a dynamic measurement model based on information flow, and the dynamic measurement target objects are processes and kernel modules.
[0067] Specifically, in an embodiment of the present invention, the security mechanism management module is used to add and expand security mechanisms in kernel space and user space;
[0068] The security mechanism management module is a security mechanism management module that has been enhanced and optimized with security technology, and the security technology enhancement and optimization includes autonomous access control, mandatory access control, labeling, identity authentication, object reuse, auditing, data integrity, covert channel analysis, trusted path, trusted recovery and other aspects.
[0069] Specifically, in the embodiment of the present invention, the security reinforcement module is used to defend against attack behaviors as follows:
[0070] Immunity to "known" and "unknown" attacks;
[0071] The security reinforcement module is used to defend against attack behaviors and includes the following steps:
[0072] Establish a whitelist mechanism;
[0073] Protection based on whitelist;
[0074] Rebuild the "security subsystem" of the operating system by combining three access control security models: enhanced DTE, RBAC, and BLP;
[0075] Monitor all relevant resource access behaviors and form a three-dimensional protection to ensure the implementation of a secure operating system.
[0076] Specifically, in an embodiment of the present invention, the security audit module is used to perform the following steps: record and query logs, where the types of logs include program logs, peripheral logs, user logs, resource monitoring logs, and WEB account login and operation logs; the content of the log includes specific time, log type, user name, event description, response method, and execution object; audit the logs to identify abnormal log data.
[0077] It should be noted that operating system security is an important foundation of computer security. To properly solve the increasingly widespread computer security problems, we must have a solid and secure operating system as a backing. This requires us to find practical and effective development methods and develop a secure operating system that can meet the needs of actual applications.
[0078] It should be noted that Figure 4 The figure is a logical diagram of the trust chain trust transfer and verification of a manageable operating system involved in an embodiment of the present invention; wherein TCM driver LIB is a driver library of a trusted computing chip, TCM firmware LIB is a firmware library of a trusted computing chip, kernel is a system kernel, and LIB is the abbreviation of Library, which means library; Figure 6 The figure is a schematic diagram of the operation logic of the static measurement subsystem involved in the embodiment of the present invention; wherein, files represents user files, systemd system, TCMProvider trusted computing chip management service program / process, and TCM driver LIB is the driver library of the trusted computing chip; Figure 7 The following is a schematic diagram of the operation logic of the dynamic measurement subsystem involved in the embodiment of the present invention; wherein process represents a process in the user space; modules represents a kernel module; Figure 8 The following is a logical diagram of application layer security reinforcement involved in an embodiment of the present invention; wherein the sequence numbers in the figure represent the process steps of application security reinforcement; Fig. 9The present invention is a schematic diagram of the management end shunt structure based on the active immune manageable operating system involved in the embodiment of the present invention; wherein initlog represents the startup process, klogd represents the daemon process for intercepting and recording Linux kernel messages, adduser represents the user adding process, passwd represents the password of the new user, arp represents the address resolution protocol, and insmod represents the loading module; Fig.12 The following is a workflow diagram for opening the security policy involved in the embodiment of the present invention; wherein SSI represents the subject security identifier and OSI represents the object security identifier.
[0079] At present, the security protection level of operating systems in existing technologies still remains at the traditional manual reinforcement stage such as patching and configuring simple policies. There is a lack of professional-grade security operating system products. Especially for mainstream operating systems, there are growing security risks hidden behind the huge user base.
[0080] It should be noted that, TCM driver LIB is the driver library of the trusted computing chip, TCM firmwareLIB is the firmware library of the trusted computing chip, kernel is the system kernel, and LIB is the abbreviation of Library, which means library; files represents user files, systemd system, TCMProvider trusted computing chip management service program / process, and TCMdriver LIB is the driver library of the trusted computing chip; process represents the process in user space; modules represents kernel modules; initlog represents the startup process, klogd represents the daemon process for intercepting and recording Linux kernel messages, adduser represents the process of adding users, passwd represents the password of the new user, arp represents the address resolution protocol, and insmod represents the loading module; SSI represents the subject security identifier, and OSI represents the object security identifier.
[0081] To be more specific, the technical solution involved in the embodiment of the present invention provides a manageable operating system based on active immunity, which is intended to develop a secure manageable operating system (QiSOS), support the architecture of the dual system of Trusted Computing 3.0, and improve and expand the original kernel of the CentOS operating system according to the criteria for network security protection level classification, and implement multiple security policy models under the architecture that supports multiple security policies and dynamic security policy changes to enhance the security of the system. The active immune manageable operating system is based on the basic framework and basic kernel functions of CentOS, and according to the security operating system evaluation standards, it adopts improved, enhanced and expanded security operating systems, and at the same time, supports enhanced BLP multi-level security and confidentiality models and Biba integrity protection models; and supports availability assurance models.
[0082] The following embodiments of the present invention are further described in detail:
[0083] First, improve the QiSOS user window.
[0084] When a user accesses resources, the first task is identity authentication. After passing the identity authentication, the user process can implement double checks and verifications of confidentiality and integrity through the mandatory access control mechanism of the security kernel before accessing system resources.
[0085] Second, the QiSOS system calls have been improved, including security-related system calls, security system calls, and general system calls. Security-related system calls are QiSOS system calls (such as open) that have been modified according to the security kernel mechanism; security system calls are newly added security kernel system calls (such as GetSecAttr), and general system calls refer to other Linux system calls (such as read).
[0086] Third, add trusted management computing to support trusted computing dual systems, including trusted boot, static measurement, dynamic measurement, trusted measurement management services and trusted backup services, and support multiple security policy models to enhance the security of the system.
[0087] Fourth, enhanced security features, based on the functional requirements of the third-level security operations, include security functional requirements in terms of autonomous access control, mandatory access control, tagging, identity authentication, object reuse, auditing and data integrity.
[0088] Fifth, the new QiSOS security operating system kernel SD subsystem includes access arbitration, security management, security auditing and several information support mechanisms, including:
[0089] Access control, including discretionary access control (DAC), mandatory access control (MAC) and integrity access control (IAC).
[0090] User authorization management, including user authentication, user authorization, role management, role-based access control and tag-based access control.
[0091] Security auditing strictly limits unauthorized user access, including recording the operations of operators, system administrators, and system security administrator processes; creating and maintaining an audit trail of access to protected objects to protect audit records from unauthorized access, modification, and destruction.
[0092] Backup and recovery: After a system failure occurs, the backup data can be restored using the authentication data backup and recovery mechanism.
[0093] Data encryption: Provides encrypted storage, transmission or processing of identification data, as well as key management service interface functions to ensure the confidentiality of user data.
[0094] Resource restriction: Prevents authorized users from using database server resources such as host processor (CPU), shared cache, database storage media, etc. without control, and limits the number of parallel sessions for each authorized user / authorized administrator.
[0095] In more detail, the specific technical implementation scheme of the present invention is as follows:
[0096] S1: A functional structure that manages operating system security enhancements.
[0097] The Manageable Secure Operating System (QiSOS) is based on the CentOS basic framework and kernel basic functions, and adds and expands security mechanisms to the kernel, including security technology enhancement requirements in autonomous access control, mandatory access control, labeling, identity authentication, object reuse, auditing, data integrity, covert channel analysis, trusted paths, and trusted recovery.
[0098] At the same time, it supports enhanced BLP multi-level security and confidentiality model and Biba integrity protection model; and supports availability assurance model.
[0099] Furthermore, if Figure 2 As shown, S1-1: QiSOS operating system user management window, when the user accesses resources, the first task is identity authentication. After passing the identity authentication, the user process can implement confidentiality and integrity double checks and verifications through the mandatory access control mechanism of the security kernel before accessing system resources.
[0100] Further, S1-1-1: QiSOS system calls are divided into three types: security-related system calls, security system calls, and general system calls.
[0101] Security-related system calls refer to QiSOS system calls (such as open) that have been modified according to the security kernel mechanism, security system calls refer to system calls newly added by the security kernel (such as GetSecAttr), and general system calls refer to other Linux system calls (such as read).
[0102] Further, S1-1-2: Security features, based on the functional requirements of the third level of security operations, include security functional requirements in terms of autonomous access control, mandatory access control, tagging, identity authentication, object reuse, auditing and data integrity.
[0103] In the logical structure of the QiSOS security operating system, the system security kernel is divided into two parts: security determination (SD) and determination implementation (DE). SD depends on security information and is responsible for judging whether a security-related behavior can be executed. DE is independent of security information and is responsible for executing the tasks required for a permitted behavior.
[0104] Among them, independent information support mechanisms are established inside SD, and the security information corresponds to the information support mechanism one by one. During the security judgment process, the corresponding mechanism of SD can determine the security information to be used according to the type of security request, and then transfer the judgment task to the corresponding information support mechanism.
[0105] At the same time, from the kernel's perspective, security-related behaviors are triggered by system calls. For example, the open system call to open a file is a security-related behavior. It first submits the request to open the file to the SD subsystem. The access arbitration mechanism accepts the request and the corresponding information support mechanism makes a judgment. The final authorization or access denial result information is returned to the open system call by the SD subsystem. The open system call determines the next step of behavior based on this security judgment result. If authorized, the subsequent file opening operation (which belongs to the implementation of the security judgment result) is completed by the rest of the kernel outside the SD subsystem.
[0106] like Figure 3 ,S1-2: QiSOS security operating system kernel SD subsystem, including access arbitration, security management, security audit and some information support mechanisms, specifically:
[0107] Access control, including discretionary access control (DAC), mandatory access control (MAC) and integrity access control (IAC).
[0108] User authorization management, including user authentication, user authorization, role management, role-based access control and tag-based access control.
[0109] Security auditing strictly limits unauthorized user access, including recording the operations of operators, system administrators, and system security administrator processes; creating and maintaining an audit trail of access to protected objects to protect audit records from unauthorized access, modification, and destruction.
[0110] Backup and recovery: After a system failure occurs, the backup data can be restored using the authentication data backup and recovery mechanism.
[0111] Data encryption: Provides encrypted storage, transmission or processing of identification data, as well as key management service interface functions to ensure the confidentiality of user data.
[0112] Resource restriction: Prevents authorized users from using database server resources such as host processor (CPU), shared cache, database storage media, etc. without control, and limits the number of parallel sessions for each authorized user / authorized administrator.
[0113] S2: Manageable operating system trust chain trusted delivery and verification
[0114] like Figure 4 , manageable operating system (QiSOS), supports trusted computing dual systems, including trusted boot, static measurement, dynamic measurement, trusted measurement management services and trusted backup services.
[0115] Among them, Figure 5 ,S2-1: Trusted boot, a trust root based on the trusted computing chip (TCM), which is composed of the BIOS CRTM module and the trusted chip. After the TCM is powered on, the CRTM module program is executed. This module is the first sub-module of the platform BIOS system. It measures and expands the CRTM data, BIOS data and platform extension items into the trusted chip platform configuration register (PCR) position 0, and records the measurement events into the event log.
[0116] Furthermore, S2-1-1: the CRTM module is integrity write-protected to ensure that its measurement sequence cannot be tampered with. If the measurement extension is successful, the trusted chip saves the unique description of the platform CRTM.
[0117] Relying on this measurement extension mechanism, the remaining BIOS boot stage is recorded in the platform configuration registers at bits 1 to 6.
[0118] Going further, S2-1-2: trusted boot workflow, BIOS boot ends, and the shim component is started. The shim component provides measurement services and password services for OS-LOADER. The BIOS uses the measurement extension mechanism to record the shim component data to the platform configuration register No. 7.
[0119] (1) The shim component ends the boot and starts the grub2 component, which is the operating system loader (OS-LOADER) responsible for booting the operating system. The shim component uses the metric extension mechanism to record the grub2 component data into the platform configuration register No. 8.
[0120] (2) The grub2 component ends the boot process and starts the operating system kernel. The grub2 component uses the metric extension mechanism to record the kernel data into the platform configuration register No. 9.
[0121] (3) The kernel finishes booting and starts the systemd process. The systemd process is the root process of the system user state. The systemd data is recorded into the platform configuration register No. 10 by using the kernel static measurement module measurement function.
[0122] (4) Finally, the system starts the TCMProvider service process, which is responsible for connecting to the cloud-based trusted management service and using the kernel static measurement module measurement function to record the TCMProvider data into the platform configuration register No. 10.
[0123] like Figure 6 ,S2-2: Static measurement subsystem, including measurement mechanisms: integrity challenge mechanism and integrity verification mechanism, including measurement target objects: initial kernel, kernel modules, executable files loaded by the process, dynamic libraries loaded by the process, and configuration files of the process.
[0124] S2-2-1: When the application is started, the subsystem uses the measurement extension mechanism to submit the application measurement value to the trusted chip platform configuration register, thereby supporting the extension of the trust chain of the trusted computing platform from the OS to the application level.
[0125] S2-2-2: The static measurement subsystem creates and maintains a measurement list ML, and together with the TCMProvider service process, can provide trusted proof for the computing platform.
[0126] like Figure 7 ,S2-3: Dynamic Measurement ,The dynamic measurement model based on information flow contains ,measurement target objects: processes and kernel modules.
[0127] S2-3-1: Periodically measure the read-only memory segments of processes and kernel modules according to the measurement strategy to verify the trustworthy state of the platform execution environment in real time.
[0128] S2-3-2: If the read-only memory area is found to be tampered or damaged during the periodic measurement process, an audit will be triggered immediately or the process and kernel module will be terminated. The first dynamic measurement value of the process and kernel module will be extended to the trusted chip platform configuration register.
[0129] S3: Enhanced security mechanisms for manageable operating systems
[0130] like Figure 8 ,S3-1: Manageable Secure Operating System (QiSOS), adds and expands security mechanisms in kernel space and user space, including security technology enhancement requirements in 10 aspects such as autonomous access control, mandatory access control, tagging, identity authentication, object reuse, auditing, data integrity, covert channel analysis, trusted path, and trusted recovery.
[0131] S3-1-1: Security mechanism features, including user data integrity and confidentiality, identity identification and authentication, user authorization, role management, multi-mechanism authentication, re-authentication, and three-member management, supporting access control, resource control, data security, security auditing, etc.
[0132] 1. Mandatory control mechanism, implement the principle of least privilege, grant each privileged user or process only the minimum ability to complete its function, eliminate any user or process with unlimited capabilities in the system, and reduce system security risks.
[0133] 2. Enforce the operation control mechanism to implement the "sandbox" filtering mechanism of the process operation environment and monitor the process operation environment; provide specific process protection to prevent users with special permissions from removing processes without restriction and protect key services from being affected.
[0134] 3. Mandatory access control mechanism to strengthen the privacy protection of information, ensure the controllability and security of information flow, and prevent confidential information from being leaked to unauthorized users.
[0135] 4. Multi-factor identity authentication function can prevent illegal login and use of the system through multiple authentication mechanisms such as passwords, PAM modules, digital certificates, host signatures, etc.
[0136] 5. Confidential disk storage provides users with highly encrypted storage space. A unified encryption and decryption middle layer is implemented on the virtual file system layer to encrypt written file blocks and decrypt read file blocks. When users operate encrypted storage space, they must pass the protection password authentication. Without password confirmation, the disk data is unreadable.
[0137] 6. Structured security mechanism, PKI / CPK public key infrastructure system, to achieve access control of security authentication devices based on PKCS#11 interface. Support file system and network data transmission encryption to protect the confidentiality of user data. Support certificate-based identity authentication mechanism;
[0138] 7. The memory-based operation mode supports one-click system restore to ensure that no data remains after operation and protect user privacy; the powerful self-immunity function and the "sandbox" mechanism based on the operating environment restrictions can effectively prevent the intrusion and spread of viruses and Trojans;
[0139] 8. Strengthen security audit functions to provide support for functions such as potential infringement analysis, anomaly detection and attack detection.
[0140] like Figure 8,S3-2: Application layer security reinforcement, immunity to "known" and "unknown" attack behaviors, such as resisting virus invasions such as Trojans, backdoors, shockwaves, ssockwaves, ransomware, etc., immunity to malicious attacks against the operating system, etc., to ensure that important data resources of the operating system are not illegally stolen, deleted, or tampered with, and the normal applications of the operating system are not illegally terminated.
[0141] S3-2-1: The whitelist mechanism starts from the operating system kernel driver layer to determine whether the behavioral characteristics of the file are compliant with the "white behavior" feature library. If not, its execution will be rejected, fundamentally eliminating the occurrence and spread of security issues.
[0142] S3-2-2: Whitelist protection, full disk scan, digital signature for each executable file to generate a whitelist database; the digital signature ensures the uniqueness of the file, guarantees the normal operation of the whitelist file and prevents the operation of unauthorized executable files.
[0143] After the scan is completed, you can switch the working mode with one click and deploy the whitelist. When the working mode is in the alarm mode, a real-time alarm will be issued when an abnormal program executes the protected executable program but it will not be blocked. When in the protection mode, an alarm will be issued and blocked at the same time, and the abnormal program cannot run.
[0144] After deployment is complete, when whitelist software updates are required, you can add directories or files to release the whitelist, or set a trust path for full trust and release.
[0145] S3-2-3: Rebuild the "security subsystem" of the operating system by combining the three access control security models of enhanced DTE, RBAC, and BLP.
[0146] S3-2-4: The "security subsystem" of the operating system monitors all relevant resource access behaviors, implements the security policy of the operating system through three access control models, ensures the security of system information and the system itself, so as to ensure the confidentiality, integrity, availability and reliability of the operating system, and forms a three-dimensional protection for the control points involved in the host system security (such as identity authentication, sensitive tags, mandatory access control, security auditing, residual information protection, intrusion prevention, malicious code prevention and resource control, etc.) to ensure the implementation of a secure operating system.
[0147] S3-3: Security incident audit.
[0148] S3-3-1: Provides comprehensive and rich log recording and query functions, including program logs, peripheral logs, user logs, resource monitoring logs, and WEB account login and operation logs. The logs contain specific time, log type, user name, event description, response method, execution object, etc. Users can export logs in .CSV, .TXT, .XLSX and other formats according to the log type.
[0149] S3-3-2: Access to the device and running of the program will generate corresponding log records, which cannot be deleted or changed.
[0150] S3-4: Supports centralized management functions, including centralized management of operating systems, policy configuration, log management, alarm management, etc.
[0151] Further, if Fig. 9 , the present invention is specifically implemented as follows:
[0152] The first step is diversion, which includes configuration, authorization, and auditing.
[0153] 1. Divide, set up special privilege users such as trusted system programmers, system security administrators, system account administrators and system security auditors, and limit the special privileges of each special privilege user through different operating environments and operating interfaces. One of them: system administrator, including system monitoring, network configuration, and system management permissions. The second of them: security administrator, including system monitoring, application analysis, policy configuration, network configuration, user management, and system management. The third of them: audit administrator, including system monitoring, application analysis, permission configuration, permission mode, etc.
[0154] 2. The trusted system programmer has all the special privileges of the superuser, but can only work in the system's maintenance mode and is responsible for the configuration and maintenance of the entire system.
[0155] 3. The system security administrator is responsible for managing the relevant security attributes of the system. The system account administrator is responsible for the establishment, cancellation and related management of user accounts.
[0156] Among them: System security auditors are responsible for configuring and maintaining audit mechanisms and audit information.
[0157] 4. Roles and permissions: All special permissions are decomposed into a set of fine-grained special permission subsets, defined as different "roles", and assigned to different users. Each user only has the minimum special permissions required to complete his or her work, which are granted to different system operators, administrators, and security administrators to meet the minimum special permission management. The classic BLP security model is improved to implement the multi-level security model (MBLP) and system security strategy to ensure the confidentiality and integrity of information.
[0158] (1) Improve autonomous access control and refine access control granularity to individual users.
[0159] (2) Improve mandatory access control and assign corresponding security levels to processes, files, and access resources in the system. When accessing, compare the security level of the process with the security level of the file based on the process's security identifier and access method to determine whether the process is allowed to access the file.
[0160] (3) Security audit implements a complete and efficient audit mechanism. Audit events include identification, introduction of objects into user address space, deletion of objects, and operations by users with special system privileges.
[0161] 5. Manageable shell instructions, designing separate management program shells for each administrator (audit administrator sysaud, security administrator syssec, system administrator sysadm) and general users, and directing users of different identities to different shells by modifying the etc / passwd file.
[0162] 6. After a user with different identities registers (logs in), the corresponding shell can be started for him to limit his power. At the same time, a security context structure list that matches the identity of each user with different identities is set. When each shell executes an operation, it will determine whether the operation is in the security context structure list of the corresponding user; if not, the operation will be rejected; if it is in the list.
[0163] 7. Make further judgments based on the access control policy (DAC, MAC, ACL, etc.) of the secure operating system.
[0164] The second step is, Fig.10 ,Application of secure trust token system based on decentralization.
[0165] 8. Strong control based on trust tokens, including identity authentication, account password authentication, UKey card and authentication certificate for logging into the application, and security tokens identify the identities of users and administrators.
[0166] One of them is the Network Authentication Management Center, which centrally manages the issuance and verification of identity cards. After a user logs in and authenticates once, they can access applications with permission.
[0167] Two of them can manage the secure operating system and authorize special privilege users, including security administrators, security auditors, and system administrators, to set up security tokens respectively.
[0168] 9. Role-based access control: users are grouped into roles in the system, applications are divided into application groups, a correspondence between roles and application groups is established, and permission management is established to exclude access by users who do not have the permission. The access security levels of the two are compared in the permitted user access to implement fine-grained control.
[0169] 10. Security audit of the operating system, auditing various events, including the issuance of tokens, user login, and various events that occur during the access to information resources, and providing multiple audit methods such as auditing by time interval and auditing by user objects.
[0170] 11. Access control mechanism, implements the management of minimum permissions for access control, first of all, identity authentication and verification to prevent illegal occupation and impersonation of legitimate user accounts and passwords, and secondly, access to applications and resources is determined based on permissions.
[0171] The third step is to enhance the security mechanism
[0172] According to the multi-level security model (MBLP), access control is implemented. The subject is the process, and the objects are processes, files, special files (devices), directories, pipes, semaphores, shared memory segments, and messages. The access rights are read, write, execute, and null.
[0173] 12. Access Control Program (ACP) paradigm. In a client / server-based distributed environment, ACP can grant fine-grained access authorization to intermediate entities that act as representatives of clients. An ACP is a program that the client always sends to the server in conjunction with a request. An ACP describes the permissions granted by a client to an intermediate entity for each request. The ACP is accompanied by a digital signature to prevent the intermediate entity from tampering with it. On the server side, as part of the permission check, the server runs the ACP received with the request and grants access rights to the intermediate entity if the ACP allows it.
[0174] like Fig.11 In the access control program (ACP) bound to the request, an advanced ACP constitutes a container for a complete security information. In a system, each entity submitted to a security information implementation component is bound to a corresponding advanced ACP. When the entities communicate, the advanced ACP is transmitted to the target object together with the communication information. At the target object end, the security information in the ACP is executed to check the consistency between the entity's operation and the security information. If multiple entities are submitted to the same full information implementation component, all of these entities are bound to the same advanced ACP. All entities submitted to a security information implementation component in this way constitute the domain of the security information implementation component.
[0175] 13. Identity authentication, using passwords for authentication, and authentication is performed every time a user logs into the system.
[0176] In addition to supporting the authentication of the requester's identity each time a user logs into the system, there should also be more stringent identity authentication, such as using smart IC cards, fingerprints, retina and other special information for identity authentication, and authentication should be performed before each user logs into the system. Smart IC card identity authentication should be based on cryptographic technology and comply with the X.509 protocol.
[0177] When exchanging information, the authenticity of the identities of both parties and the non-repudiation of the information exchange behavior should be verified.
[0178] 14. Mandatory access control, according to the principle of least authorization, requires system administrators, system security officers and system auditors to complete the minimum permissions required for their tasks, forming a mutually restrictive relationship among the three.
[0179] Mandatory access control should work closely with security functions such as user identity authentication and tagging, so that the system's security control over users covers the entire process from the user entering the system to the user exiting the system.
[0180] In a network environment, mandatory access control functions are uniformly implemented.
[0181] 15. Strong control of the trusted token (TCB). Before establishing a session in the trusted path, the authentication mechanism applies the user's authentication data to the TCB to verify the user's identity. The login mechanism does not allow the authentication mechanism itself to be bypassed.
[0182] (1) To provide users with information about system login activities, so that they can identify intrusion attempts and take actions to prevent possible unauthorized use, the TCB should display the following data to users after they successfully log into the system:
[0183] —Date, time, source and circumstances of the last successful login to the system;
[0184] — Identity verification failures since the last successful access to the system;
[0185] —The number of days until the password expires should be displayed;
[0186] —The display of the number of successful or unsuccessful events can be expressed as an integer count, a timestamp list, etc.
[0187] (2) After a specified period of inactivity, the system should disconnect the session or reauthenticate the user. The system should provide a default value for the period.
[0188] (3) The system should provide a mechanism to lock the user's keyboard, and the keyboard unlocking process should require user verification.
[0189] (4) When the number of incorrect user authentication processes reaches the number specified by the system, the system should exit the login process and terminate the interaction with the user. The system should provide a threshold default value. When the threshold value is exceeded, the system should immediately notify the system administrator. At the same time, the system can specify a pause time, after which the login process is allowed to restart. The system should have the ability to increase the time interval under continuous intrusion attempts, thereby extending the time it takes for the system to be compromised.
[0190] (5) The system should ensure that even if the input user ID is invalid, the complete user verification process should be carried out, and the error feedback information should not reveal which part of the verification information is wrong.
[0191] (6) The system provides a mechanism to define which users can and cannot access the system based on time of day, day of the week, year, month, and day.
[0192] (7) The system provides a mechanism to deny or accept users based on the access method or location. The system provides a mechanism to restrict authorized users from accessing the system through dial-up devices or network devices.
[0193] (8) The system provides a mechanism to restrict users to access the system at specified network addresses or ports. For example, the system administrator can only access the system through the system console.
[0194] (9) The system provides a mechanism to restrict specified users or user groups to unmodified access.
[0195] 16. As Fig.12 ,In the security policy activation workflow, multi-level security (MLS) information, identity-based access control (IBAC) policies, and type adjudication are implemented through collaboration with the security server.
[0196] (1) Access types, including tasks, threads, and ports. Tasks and threads represent active entities in the system, that is, processes. Each task contains a group of threads. The implementation of a server in the system is reflected in one or more tasks. A port is a one-way communication channel for tasks to transmit messages.
[0197] (2) Tasks use capabilities to name ports. Each capability describes the permission to send messages to or receive messages from a specific port. Capabilities can be transferred from one task to another by sending messages.
[0198] The security server receives requests from the microkernel through the microkernel security port, or receives requests from other servers through the common security port, and sends response information to the request through the response port.
[0199] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A manageable operating system based on active immunity, It is characterized in that include: A user access management module, the user access management module is used to manage user access; A security kernel module, wherein the security kernel module is used to determine and implement user access according to preset security information; A trusted communication module, wherein the trusted communication module is used for trusted communication within the system; A security mechanism management module, wherein the security mechanism management module is used to manage the security mechanism; A security reinforcement module, which is arranged at the application layer and is used to defend against attack behaviors; A security audit module, wherein the security audit module is used to audit security events; A centralized management module, which is used to provide centralized management, policy configuration, log management, and alarm management of the operating system.
2. The active immune manageable operating system according to claim 1, It is characterized in that The user access management module is used to perform the following steps: Authentication of user identity; Based on the mandatory access control mechanism, users are subject to double checks and verifications on confidentiality and integrity; After passing, it is allowed to access system resources.
3. The active immune manageable operating system according to claim 2, It is characterized in that The security kernel module includes: a security determination module and a determination implementation module; The security determination module determines whether the security-related behavior can be executed based on the security information; The determination implementation module is responsible for executing the tasks to be performed by the permitted security-related behaviors.
4. The active immune manageable operating system according to claim 3, It is characterized in that An independent information support mechanism is established inside the safety determination module; The security information corresponds to the information support mechanism one by one; In the security determination process, the security determination module determines the security information to be used according to the type of security request, and then transfers the determination task of the security request to the corresponding information support mechanism for processing.
5. The active immune manageable operating system according to claim 1, It is characterized in that The trusted communication module supports a dual trusted computing system; The functions of the trusted communication module include: trusted boot, static measurement, dynamic measurement, trusted measurement management service and trusted backup service.
6. The active immune manageable operating system according to claim 5, It is characterized in that The trusted boot is a trust root based on a trusted computing chip TCM; The trust root is composed of a BIOS CRTM module and a trusted chip; After TCM is powered on, the CRTM module program is executed to measure and expand the CRTM data, BIOS data and platform extension items into the trusted chip platform configuration register PCR0, and the measurement events are recorded in the event log.
7. The active immune manageable operating system according to claim 6, It is characterized in that The static measurement includes: a measurement mechanism and a static measurement target object, the measurement mechanism includes: an integrity challenge mechanism and an integrity verification mechanism, and the static measurement target object includes: an initial kernel, a kernel module, an executable file loaded by a process, a dynamic library loaded by a process, and a configuration file of a process; The dynamic measurement is a dynamic measurement model based on information flow, and the dynamic measurement target objects are processes and kernel modules.
8. The active immune manageable operating system according to any one of claims 1 to 7, It is characterized in that The security mechanism management module is used to add and expand security mechanisms in kernel space and user space; The security mechanism management module is a security mechanism management module that has been enhanced and optimized with security technology; The security technology enhancement and optimization include: autonomous access control, mandatory access control, labeling, identity authentication, object reuse, auditing, data integrity, covert channel analysis, trusted path, and trusted recovery.
9. The active immune manageable operating system according to claim 8, It is characterized in that The security reinforcement module is used to defend against attack behaviors specifically as follows: Immunity to "known" and "unknown" attacks; The security reinforcement module is used to defend against attack behaviors and includes the following steps: Establish a whitelist mechanism; Protection based on whitelist; Rebuild the "security subsystem" of the operating system by combining the three access control security models of enhanced DTE, RBAC, and BLP; Monitor all relevant resource access behaviors and form a three-dimensional protection to ensure the implementation of a secure operating system.
10. The active immune manageable operating system according to claim 8, It is characterized in that The security audit module is used to perform the following steps: Record and query logs, where the types of logs include program logs, peripheral logs, user logs, resource monitoring logs, and web account login and operation logs; The log content includes specific time, log type, user name, event description, response method, and execution object; Audit logs to identify abnormal log data.
