Personalized cryptographically secure access control in a trusted execution environment
By configuring two isolated execution environments in the computer system, using the file access monitoring module and trusted access monitoring application to manage the access of encrypted data files, the data security problems caused by the kernel's susceptibility to damage are solved, and personalization and cryptography are realized Secure access control.
Patent Information
- Application Number
- CN201980048708.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-07-27
- Filing Date
- 2019-07-25
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2039-07-25
Smart Images

Figure CN112513857B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims all benefits of U.S. Provisional Application No. 62 / 703,933 filed on July 27, 2018, all contents of which are incorporated herein by reference. Technical Field
[0003] The described embodiments relate to systems and methods for file access control, and more particularly to systems and methods for managing access to encrypted data files using a trusted execution environment. Background Art
[0004] The following does not constitute an admission that what is discussed below is part of the prior art or part of the common general knowledge of a person skilled in the art.
[0005] In an increasingly digital world, data is one of the most important assets of people, companies and countries. Therefore, extensive measures are taken to ensure the security of sensitive data. However, as hacker techniques become more sophisticated, data security challenges are also increasing.
[0006] One technique for managing data security is to predefine data access policies. Data access policies can specify whether a given program is allowed to access certain types of data. When a program makes a request for data, the request can be compared to the access policy to determine whether the program is allowed to access the requested data.
[0007] Another technique for managing data security involves encrypting data files when they are stored in the system. An encryption key is then required to decrypt the stored data file and access the plaintext data stored therein. Access to the encryption key can be managed to prevent unauthorized access to the plaintext data of the stored data file. When an authorized user and / or program attempts to access the encrypted file, the file can be decrypted to allow the user / program to access the plaintext data stored therein.
[0008] Existing data protection techniques, such as those using access control policies and / or file encryption, are typically implemented in the kernel of a computer operating system. Although the kernel is generally considered more secure than the general user-mode portion of the operating system, computer kernels are more frequently penetrated (i.e., hacked) due to increasingly sophisticated hacking techniques. Once a malicious actor (e.g., a malicious user or program) has access to the kernel, the data security features implemented in the kernel are compromised and can be manipulated by the malicious actor. Summary of the invention
[0009] The following summary is provided to introduce the reader to the more detailed discussion below. This summary is not intended to limit or define any claimed or unclaimed invention. One or more inventions may reside in any combination or subcombination of elements or process steps disclosed in any part of this document, including its claims and drawings.
[0010] Access control systems are used to manage access to data files stored in non-volatile memory of a computer system. Portions of the access control system may be isolated from the main operating system to protect the access control system from kernel attacks.
[0011] The processor of the computer system is configured to support at least two isolated execution environments as follows. The first execution environment may be referred to as a rich execution environment (REE). A common or rich operating system (e.g., Android, Linux, etc.) may run in the REE with a user mode process that calls the REE kernel. The kernel of the REE may include an access monitoring module that receives calls from user mode processes to access data stored by the computer system.
[0012] The second execution environment may be referred to as a trusted execution environment (TEE). The trusted execution environment may be isolated from the rich execution environment so that processes running in the rich execution environment cannot access code or data in the trusted execution environment. A trusted operating system may run in the TEE. A trusted application runs in the trusted operating system to manage access to data files in response to data requests received by the access monitoring module. The trusted application and the access monitoring module may communicate securely to manage access to data by user mode processes running in the rich operating system.
[0013] Trusted applications can provide personalized and cryptographically secure access control that can reduce or eliminate issues associated with access control implemented directly in the main operating system kernel. The access control system can still be integrated into the file system of the rich operating system kernel, i.e., by using an access monitoring module. In some embodiments, a trusted application running in a trusted operating system can intercept and inspect all file requests and operations for encrypted files stored in a non-volatile storage memory (e.g., through communication with an access monitoring module).
[0014] In a first broad aspect, the present application provides an access control system, comprising: a processor configured to provide at least two isolated execution environments, wherein the at least two isolated execution environments include a rich execution environment and a trusted execution environment, and the processor is configured to run a rich operating system in the rich execution environment and to run a trusted operating system in the trusted execution environment, wherein a kernel of the rich operating system is configured to include a file access monitoring module, and wherein a trusted access monitoring application runs on the trusted operating system; a non-volatile memory configured to store a plurality of data files, wherein the plurality of data files include a plurality of encrypted data files; wherein the file access monitoring module is configured to: receive a file request for a requested file stored in the non-volatile memory, wherein the requested file corresponds to one of the encrypted data files among the plurality of encrypted data files, and from a processor running on the rich operating system A requesting process receives a file request; sends file request data to a trusted access monitoring application, wherein the file request data includes file access data related to the requested file and process identification data related to the requesting process; the trusted access monitoring application is configured to: receive file request data; determine file identification data associated with the requested file from the file access data; determine whether to allow the requesting process to access the requested file by comparing the file identification data and the process identification data with the file access criteria stored in the trusted access monitoring application; in response to determining that the requesting process is allowed to access the requested file, derive an encryption key corresponding to the requested file; send the encryption key to a file access monitoring module; the file access monitoring module, after receiving the encryption key, uses the encryption key to decrypt the requested file and provides the decrypted file to the requesting process.
[0015] In any embodiments, each encrypted data file in the plurality of encrypted data files may be encrypted using a file-specific encryption key, and the file-specific encryption key may be independently determined for each encrypted data file.
[0016] In any embodiments, the file access data associated with the requested file may include key information, and the trusted access monitoring application may be configured to use the key information to derive an encryption key corresponding to the requested file.
[0017] In any embodiment, the file access data included in the file request data may be encrypted file access data, wherein the encrypted file access data is encrypted using a secret access key stored by a trusted access monitoring application. The trusted access monitoring application may be configured to determine the file access data from the received file request data by: determining a secret access key associated with the requested file; decrypting the encrypted file access data using the secret access key; and determining that the file access data is the decrypted file access data.
[0018] In any embodiment, the trusted access monitoring application may be configured to: store the secret access key as an encrypted access key; and determine the secret access key by decrypting the encrypted access key.
[0019] In any embodiments, the trusted access monitoring application can be configured to determine the secret access key by: receiving user credentials from a running user mode process in the rich operating system through a file access monitoring module; and decrypting the encrypted access key using the user credentials to determine the secret access key.
[0020] In any embodiments, the file access monitoring module and the trusted access monitoring application may be configured to communicate using a secure communication channel, where the secure communication channel may be established by the processor during a boot process of the rich operating system and the trusted operating system.
[0021] In any embodiment, the file access monitoring module can be configured to store a shared communication channel key corresponding to a secure communication channel; the trusted access monitoring application can be configured to store the same shared communication channel key; the file access monitoring module can also be configured to send the file request data to the trusted access monitoring application through the following steps: generating an encrypted file request message by encrypting the file request data using the shared communication channel key; and generating a hash message by hashing the file request data using the shared communication channel key; sending the encrypted file request message and the hash message to the trusted access monitoring application; the trusted access monitoring application can also be configured to: determine the validity of the file request data through the following steps: generating a decrypted file request message by decrypting the encrypted file request message using the shared communication channel key; generating a hash decrypted message by hashing the decrypted file request message using the shared communication channel key; comparing the hash decrypted message and the hash message; determining that the received file request data is valid when the hash decrypted message matches the hash message; and allowing the request to access the requested file only if the received file request data is valid.
[0022] In any embodiment, the file access monitoring module can be configured to: receive a file creation request from a creation process running in a rich operating system; and determine that the file creation request is related to the creation of an additional encrypted data file; send an encrypted file creation request to a trusted access monitoring application, wherein the encrypted file creation request includes process identification data corresponding to the creation process; the trusted access monitoring application can be configured to: determine whether the creation process is allowed to generate the additional encrypted data file by comparing the process identification data with file creation criteria stored by the trusted access monitoring application; after determining that the creation process is allowed to generate the additional encrypted data file, generate additional file identification data for the additional encrypted data file according to the file access criteria; generate additional key information for the additional encrypted data file; and use the additional key information Generate an additional encryption key for an additional encrypted data file; define file access data using additional file identification data and additional key information; generate additional encrypted file access data by encrypting the file access data using a secret access key stored by a trusted access monitoring application; send the additional encryption key and the additional encrypted file access data to a file access monitoring module; the file access monitoring module can also be used to: provide the additional encryption key and the additional encrypted file access data to a file system of the rich operating system, the file system is used to generate the additional encryption key using the additional encryption key, and the file system can be used to store the additional encrypted data file in a non-volatile memory, and store the additional encrypted file access data in association with the additional encrypted data file in the non-volatile memory.
[0023] In any embodiment, the file request may include a file operation request, wherein the file operation request identifies the requested operation that the requesting process is requesting to perform on the requested file; the file access monitoring module may be configured to include operation data associated with the requested operation in the file request data sent to the trusted access monitoring application; the trusted access monitoring application may be configured to: determine whether the requesting process is allowed to perform the requested operation on the requested file by comparing the file identification data, the process identification data and the operation data with the file access criteria of the file storage. After the trusted access monitoring application determines that the requesting process is allowed to perform the requested operation on the requested file, it sends an operation permission signal to the file access monitoring module; after determining that the requesting process is not allowed to perform the requested operation on the requested file, it sends an operation rejection signal to the file access monitoring module; the file access monitoring module may also be configured to: after receiving the operation permission signal, provide the decrypted file to the requesting process to enable the requested operation; after receiving the operation rejection signal, prevent the requesting process from performing the requested operation.
[0024] In any embodiment, the trusted access monitoring application can be configured to maintain an activation record of one or more user-specific processes running on the rich operating system, wherein the activation record includes active process identification data associated with each user-specific process running on the rich operating system. The file access monitoring module can be configured to: after determining that a new user-specific process is running on the rich operating system, send a process start message to the trusted access monitoring application, wherein the process start message includes the active process identification data associated with the new user-specific process, wherein the process start message is generated using valid user credentials from a processor user, wherein user credentials are solicited from the user on the rich operating system when it is determined that the new user-specific process is running; after determining that the user-specific specific process is no longer running on the rich operating system, send a process termination message to the trusted access monitoring application, wherein the user-specific specific process is associated with the active process identification data included in the activation, wherein the process termination message includes the active process identification data with the user-specific specific process; the trusted access monitoring application can be configured to update the activation record to include the active process identification data associated with the new user-specific process after receiving the process start message; after receiving the process termination message, update the activation record to remove the active process identification data associated with the user-specific specific process; and determine that the requesting process is allowed to access the requested file only when the activation record includes the active process identification data associated with the requesting process.
[0025] According to another broad aspect, the present application provides a method for controlling access to multiple data files stored in a non-volatile memory, wherein the multiple data files include multiple encrypted data files, and the method is executed using a processor configured to provide at least two isolated execution environments, wherein the at least two isolated execution environments include a rich execution environment and a trusted execution environment, and the processor is configured to run a rich operating system in the rich execution environment and a trusted operating system in the trusted execution environment, and the method includes: operating a file access monitoring module in a kernel of the rich operating system to receive a file request for a requested file stored in the non-volatile memory, wherein the requested file corresponds to an encrypted data file in one of the multiple encrypted data files, and wherein the file request is obtained from a requesting process running on the rich operating system; and transmitting the file request data to a requesting process; The invention relates to a method for transmitting the file request data to a trusted access monitoring application running on the trusted operating system, wherein the file request data includes file access data related to the requested file and process identification data related to the requesting process; operating the trusted access monitoring application to receive the file request data; and determining the file identification data associated with the requested file from the file access data; determining whether to allow the requesting process to access the requested file by comparing the file identification data and the process identification data with the file access criteria stored in the trusted access monitoring application; after determining that the requesting process is allowed to access the requested file, deriving an encryption key corresponding to the requested file; sending the encryption key to the file access monitoring module; after receiving the encryption key, operating the file access monitoring module to decrypt the requested file using the encryption key, and providing the decrypted file to the requesting process.
[0026] In any embodiments, each encrypted data file in the plurality of encrypted data files may be encrypted using a file-specific encryption key, and the file-specific encryption key may be independently determined for each encrypted data file.
[0027] In any embodiments, the file access data associated with the requested file may include key information, and the method may include operating the trusted access monitoring application to derive an encryption key corresponding to the requested file using the key information.
[0028] In any embodiment, the file access data included in the file request data may be encrypted file access data, wherein the encrypted file access data is encrypted using a secret access key stored by the trusted access monitoring application. The method may include: operating the trusted access monitoring application to determine the file access data from the received file request data by determining the secret access key associated with the requested file; decrypting the encrypted file access data using the secret access key; and determining the file access data to be the decrypted file access data.
[0029] In any embodiment, the method may include operating the trusted access monitoring application to store the secret access key as an encrypted access key; and determining the secret access key by decrypting the encrypted access key.
[0030] In any embodiments, the method may include: operating a trusted access monitoring application to determine a secret access key by: receiving, by a file access monitoring module, user credentials from a user mode process running in a rich operating system; and then decrypting an encrypted access key using the user credentials to determine the secret access key.
[0031] In any embodiment, the method may include: establishing a secure communication channel during a boot process of the rich operating system and the trusted operating system; and operating the file access monitoring module and the trusted access monitoring application to communicate using the secure communication channel.
[0032] In any embodiment, the method may include: operating a file access monitoring module to store a shared communication channel key corresponding to a secure communication channel; and operating a trusted access monitoring application to store the same shared communication channel key; operating the file access monitoring module to send file request data to the trusted access monitoring application by: generating an encrypted file request message by encrypting the file request data using the shared communication channel key; generating a hash message by hashing the file request data using the shared communication channel key; sending the encrypted file request message and the hash message to the trusted access monitoring application; and operating the trusted access monitoring application to determine the validity of the file request data by: generating a decrypted file request message by decrypting the encrypted file request message using the shared communication channel key; generating a hash decrypted message by hashing the decrypted file request message using the shared communication channel key; comparing the hash decrypted message and the hash message; determining that the received file request data is valid when the hash decrypted message matches the hash message; and allowing the request to process the requested file only if the received file request data is valid.
[0033] In any embodiment, the method may include: operating a file access monitoring module to: receive a file creation request from a creation process running in a rich operating system; and determining that the file creation request is related to creating an additional encrypted data file; sending an encrypted file creation request to the trusted access monitoring application, the encrypted file creation request including process identification data corresponding to the creation process; operating the trusted access monitoring application to: determine that the creation process is allowed to generate additional encrypted data files by comparing the process identification data with file creation criteria stored in the trusted access monitoring application; after determining that the creation process is allowed to generate additional encrypted data files, generating additional file identification data for the additional encrypted data files according to the file access criteria; generating additional key information for the additional encrypted data files; and using the additional key information to generate additional encrypted data files. The invention relates to a method for generating an additional encrypted data file by encrypting the file access data using a secret access key stored by a trusted access monitoring application; and operating the file access monitoring module to: provide the additional encryption key and the additional encrypted file access data to a file system of a rich operating system, wherein the file system is operable to generate an additional encrypted data file using the additional encryption key, the file system is used to store the additional encrypted data file in the non-volatile memory, and store the additional encrypted file access data in association with the additional encrypted data file in the non-volatile memory.
[0034] In any embodiment, a file request may include a file operation request, wherein the file operation request identifies a requested operation that a requesting process is requesting to perform on a requested file, and the method may include: operating a file access monitoring module to include operation data related to the requested operation in the file request data to be sent to a trusted access monitoring application; operating the trusted access monitoring application to: determine whether the requesting process is allowed to perform the requested operation on the requested file by comparing the file identification data, the process identification data and the operation data with the file access conditions stored by the trusted access monitoring application; after determining that the requesting process is allowed to perform the requested operation on the requested file, sending an operation permission signal to the file access monitoring module; after determining that the requesting process is not allowed to perform the requested operation on the requested file, sending an operation rejection signal to the file access monitoring module; and operating the file access monitoring module to: after receiving the operation permission signal, provide the decrypted file to the requesting process to make the requested operation effective; after receiving the operation rejection signal, prevent the requesting process from performing the requested operation.
[0035] In any embodiment, the method may include: operating a trusted access monitoring application to maintain an activation record of one or more user-specific processes running on the rich operating system, wherein the activation record includes active process identification data associated with each user-specific process running on the rich operating system; operating a file access monitoring module to: upon determining that a new user-specific process is running on the rich operating system, send a process launch message to the trusted access monitoring application, wherein the process launch message includes the active process identification data associated with the new user-specific process, and the process launch message is generated using valid user credentials from a processor user, wherein upon determining that a new user-specific process is running on the rich operating system, solicit user credentials from the user; upon determining that a specific user-specific process is running on the rich operating system, send a process launch message to the trusted access monitoring application, wherein the process launch message includes the active process identification data associated with the new user-specific process, and the process launch message is generated using valid user credentials from a processor user, wherein upon determining that a new user-specific process is running on the rich operating system, solicit user credentials from the user; After the user's specific process is no longer running on the rich operating system, a process termination message is sent to a trusted access monitoring application, wherein the user-specific specific process is associated with active process identification data included in an activation record, wherein the process termination message includes the active process identification data of the user-specific specific process; after receiving the process start message, operating the trusted access monitoring application to update the activation record to include the active process identification data associated with the new user-specific process; after receiving the process termination message, updating the activation record to remove the active process identification data associated with the user-specific specific process; and only when the activation record includes the active process identification data associated with the requesting process, determining that the requesting process is allowed to access the requested file.
[0036] According to another broad aspect, the present application provides a computer-readable medium having stored thereon non-transitory computer-readable instructions for controlling access to a plurality of data files stored in a non-volatile memory, wherein the plurality of data files include a plurality of encrypted data files, the instructions being executable by a processor configured to provide at least two isolated execution environments, wherein the at least two isolated execution environments include a rich execution environment and a trusted execution environment, and the processor is configured to operate a rich operating system in the rich execution environment and to operate a trusted operating system in the trusted execution environment, wherein the instructions are defined to configure the processor to: operate a file access monitoring module in a kernel of the rich operating system to: receive a request for a file stored in the non-volatile memory, wherein the requested file corresponds to one of the encrypted data files in the plurality of encrypted data files, and wherein the file request is from a processor running on the rich operating system The invention relates to a method for controlling a file access process and a trusted access monitoring application program running on the trusted operating system to: receive the file request data; and determine the file identification data associated with the requested file from the file access data; determine whether to allow the requesting process to access the requested file by comparing the file identification data and the process identification data with the file access criteria stored in the trusted access monitoring application program; after determining that the requesting process is allowed to access the requested file: derive an encryption key corresponding to the requested file; send the encryption key to a file access monitoring module; and operate the file access monitoring module to, after receiving the encryption key, use the encryption key to decrypt the requested file and provide the decrypted file to the requesting process.
[0037] In any embodiment, instructions may be defined as executable by a processor to configure the processor to perform an access control method as shown and described herein.
[0038] Those skilled in the art will appreciate that the systems, methods or computer-readable media disclosed herein may embody any one or more of the features contained herein, and that these features may be used in any specific combination or sub-combination.
[0039] These and other aspects and features of various embodiments will be described in further detail below. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings serve to illustrate various examples of articles, methods, and apparatus of the teachings of the present specification and are not intended to limit the scope of what is taught in any way.
[0041] Figure 1 is a block diagram illustrating a computer system consistent with an embodiment.
[0042] Figure 2 It is shown that it can be used in accordance with the embodiment Figure 1 A block diagram of an example of an access control system in a computer system is shown.
[0043] Figure 3 is a flow chart showing an example of a file generation process consistent with an embodiment.
[0044] Figure 4 is a flow chart showing an example of a file opening process consistent with an embodiment.
[0045] Figure 5 is a flowchart showing an example of a file operation process consistent with the embodiments.
[0046] Figure 6 is a flow chart showing an example of secret key generation consistent with an embodiment.
[0047] Figure 7 is another flow chart illustrating an example of secret key generation consistent with an embodiment.
[0048] Figure 8 is another flow chart illustrating an example of secret key generation consistent with an embodiment.
[0049] Fig. 9 is a flow chart illustrating an example of a process for updating an activation record consistent with an embodiment.
[0050] Fig.10 is another flow chart illustrating an example of a process for updating an activation record consistent with an embodiment.
[0051] Fig.11 is another flow chart illustrating an example of a process for updating an activation record consistent with an embodiment.
[0052] Fig.12 is a flow chart showing an example of a process for generating a shared communication channel key consistent with an embodiment.
[0053] Fig.13 is a flow chart showing an example of a process for establishing a secure communication channel consistent with an embodiment. DETAILED DESCRIPTION
[0054] The drawings described below are provided to illustrate, but not to limit, aspects and features of various examples of the embodiments described herein. For simplicity and clarity of illustration, the elements shown in the drawings are not necessarily drawn to scale. For clarity, the sizes of some elements may be exaggerated relative to other elements. For simplicity and clarity of illustration, reference numerals may be repeated between the drawings to indicate corresponding or similar elements or steps, where deemed appropriate.
[0055] Various systems or methods will be described below to provide examples of embodiments of the claimed subject matter. The embodiments described below do not limit any claimed subject matter, and any claimed subject matter may cover a method or system that is different from the method or system described below. The claimed subject matter is not limited to a system or method having all the features of any system or method described below, nor is it limited to features common to multiple or all devices or methods described below. The system or method described below may not be an embodiment recorded in any claimed subject matter. Any subject matter disclosed in the system or method described below that is not claimed in this document may be the subject of another protective tool, such as a continuation patent application, and the applicant, inventor, or owner has no intention of waiving any such subject matter claims or providing any such subject matter to the public through this document.
[0056] In addition, for simplicity and clarity of illustration, reference numerals may be repeated between the drawings to indicate corresponding or similar elements where deemed appropriate. In addition, many specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, one of ordinary skill in the art may practice the embodiments described herein without these specific details. In other cases, well-known methods, processes, and components are not described in detail so as not to make the embodiments described herein unclear. Moreover, the description should not be considered to limit the scope of the embodiments described herein.
[0057] Unless expressly stated otherwise, the terms "one embodiment," "an embodiment," "the embodiment," "one or more embodiments," and "some embodiments" mean "one or more (but not all) embodiments of the invention."
[0058] It should be noted that the degree terms such as "substantially", "approximately" and "approximately" used herein refer to a reasonable deviation of the modified term so that the end result will not be significantly changed. If the degree term does not offset the meaning of the modified term, these degree terms can also be interpreted as including the deviation of the modified term.
[0059] Furthermore, any recitation of numerical ranges herein includes all numbers and fractions within that range (e.g., 1 to 5 includes 1, 1.5, 2, 2.75, 3, 3.90, 4, and 5). It should also be understood that all numbers and fractions thereof are assumed to be modified by the term "about," meaning that up to a certain number of variations may be referenced without a significant change in the end result.
[0060] The example embodiments of the systems and methods described herein may be implemented as a combination of hardware or software. In some cases, the example embodiments described herein may be implemented at least in part by using one or more computer programs to execute on a device including at least one processing element and a data storage element (including volatile memory, non-volatile memory, storage element, or any combination thereof). Depending on the nature of the device, these devices may also have at least one input device (e.g., a button keyboard, a mouse, a touch screen, etc.), and at least one output device (e.g., a display screen, a printer, a radio device, etc.).
[0061] It should also be noted that there may be some elements for implementing at least a portion of one of the embodiments described herein that can be implemented via software written in a high-level computer programming language such as object-oriented programming. Thus, the program code can be written in C, C++, or any other suitable programming language, and can include modules or classes, as known to those skilled in object-oriented programming. Alternatively or additionally, some of the elements implemented by software can be written in assembly language, machine language, or firmware as needed. In either case, the language can be a compiled language or an interpreted language.
[0062] Some of these software programs can be stored in a storage medium (such as, but not limited to, a computer-readable medium such as a ROM, a disk, an optical disk, etc.) or a device that can be read by a general or special programmable device. When read by a programmable device, the software program code configures the programmable device to operate in a new, specific and predefined manner in order to perform at least one of the methods described herein.
[0063] In addition, at least some of the programs associated with the systems and methods of the embodiments described herein can be distributed in a computer program product including a computer-readable medium carrying computer-usable instructions for one or more processors. The medium can be provided in a variety of forms, including non-transitory forms such as, but not limited to, one or more disks, optical disks, tapes, chips, and magnetic and electronic storage.
[0064] Embodiments described herein provide systems, methods, and computer program products that can enable personalized and cryptographically secure access control within a computer system using a trusted execution environment, which can help maintain data security even when the kernel of a rich operating system running in the computer system is compromised.
[0065] A computer program is a set of instructions that can be executed by a computer (i.e., by a processor). A process is an instance of a program, i.e., a copy of a program in a computer's memory that is ready for execution by the computer's central processing unit (CPU). In the following discussion, reference is made to a computer system's processor and operations performed by a computer system's processor. It should be understood that such references include one or more processing elements and the use of one or more processing elements to perform operations, such as one or more processing cores within one or more CPUs.
[0066] An operating system (OS) is software (consisting of several programs and libraries) that controls the use of a computer's available hardware and software resources. The core component of an operating system (the kernel) is the program that manages all of the computer's hardware devices. At runtime, kernel processes instantiated from the kernel also manage processes instantiated from programs other than the kernel (e.g., programs started by the user) and provide a unified interface (called system calls) for those non-kernel processes to access hardware devices.
[0067] The processor can be configured to distinguish instructions from the kernel and instructions from programs other than the kernel, and execute instructions in separate modes, namely kernel mode and user mode. A process instantiated within an operating system from a program other than the kernel (ie, outside the kernel) may be referred to herein as a user mode process.
[0068] In the kernel, the file system is an essential module that provides user-mode processes with access to non-volatile storage devices (such as disks, flash memory, etc.). From the perspective of a user-mode process, the process can access and operate (e.g., open / read / write / close) files on non-volatile storage by issuing system calls to the OS kernel. Upon receiving these system calls, the OS kernel manages whether and how the requesting process can access the requested files. The OS kernel can perform access control by arbitrating whether the requesting process (the process that issued the system call) is allowed to access the target file or directory based on information about the command initiator and the target file, using the file system module to complete the system call, and notifying the user-mode process through the return value of the system call.
[0069] To manage file access and provide data security, a computer system may implement mandatory access control (MAC). In MAC, each user-mode process may be tagged with an associated process tag, and each file may be tagged with an associated file tag. Access policies may be predefined and loaded into kernel memory. An access policy may specify whether a user-mode process with a particular process tag may access a file with a particular file tag. In some cases, an access policy may include access criteria for each process tag and file tag (e.g., for each possible combination of process tags and file tags).
[0070] When a user-mode process issues an operation request to a file, the kernel can check the tag of the user-mode process and the tag of the file according to a predefined policy. The kernel can then grant or deny the operation request accordingly.
[0071] In some cases, process labels for user mode processes running in a computer system may be predefined. Alternatively or additionally, labels for user mode processes may be defined using a label inheritance process. The label of a first user mode process may be predefined, and then other processes that may subsequently be instantiated may be instantiated by default to inherit their process labels from the process that created them (i.e., the parent process). This may allow process labels to be assigned when the corresponding user mode processes are instantiated. In some cases, the process label assigned to a user mode process may be changed to a different process label via a system call to the kernel.
[0072] A non-volatile memory of a computer system may be used to store a plurality of data files. File tags may be stored in the non-volatile memory in association with the data files to which they are assigned. For example, the file tags may be stored by the file system as file attributes. The file attributes may then be read into kernel memory when the associated data files are accessed.
[0073] Typically, data files are used to store information. When the information is stored in a directly readable / understandable manner (i.e., not obfuscated or otherwise encoded to prevent direct understanding of the information), then the data file may be referred to as plaintext. In some cases, a data file may be modified (i.e., encrypted) to prevent unauthorized access to the plaintext information stored by the data file.
[0074] Encryption is the process of converting information (i.e. plaintext) into an obfuscated form (which can be called ciphertext) using a secret (the encryption key). Decryption is the reverse process of encryption, which converts ciphertext into plaintext using a secret (e.g., the encryption key or a different decryption key depending on the encryption method used).
[0075] In some cases, file systems (such as the ext4 file system and the NTFS file system) may support file system-level encryption of data files stored in a computer system. In file system-level encryption, encryption / decryption of data in individual data files may be performed by the file system. The system may define encryption policies related to stored files (including whether the file has been encrypted or should be encrypted and how the encryption key is derived) on an individual basis (i.e., on a per-file basis). When a file is created or stored, the file system may employ the encryption policy to determine whether the file should be encrypted prior to storage, and the file system may then encrypt and store the data file as needed. When the file is accessed, the file system may employ the encryption policy and decrypt the data file before providing the decrypted data file to the requesting process. Because the encryption / decryption is performed by the file system, encryption at the file system level is transparent to user mode processes, which normally access files and perform operations on files through system calls.
[0076] To simplify the individual encryption policies for each file, an encryption attribute may be defined for each encrypted file. The file system may generate and store an attribute password for each encrypted file. For example, the password attribute may be stored as a file attribute associated with each encrypted file. The password attribute may include key information that may be used to determine an encryption key for the file. The encryption key for the file may then be derived based on the password attribute associated with the file, and the derived encryption key may be used to encrypt / decrypt data in the file upon receiving a request from a legitimate user mode process.
[0077] In some cases, MAC and encryption key derivation for file system-level encryption can be performed in the OS kernel. Although the OS kernel is considered more secure than user mode processes, the kernel is hacked more and more frequently as hacker techniques become more sophisticated. Once the kernel is hacked, it may compromise data security features that the kernel may provide, such as MAC and file system-level encryption. For example, when the OS kernel is compromised, the MAC can be skipped and can be manipulated by the hacker, which may lead to unauthorized access to data.
[0078] In the case of a hacked kernel, the MAC may not be essential for data access, and even if the MAC is skipped, the data may still be accessible. Furthermore, because the MAC is an automatic mechanism that occurs without user involvement, intelligent malware may mimic the behavior of legitimate processes in order to trick the MAC policy into granting access to data. As a result, sensitive data may be accessed without the knowledge of the legitimate user of the computer system.
[0079] Embodiments described herein include systems, methods, and computer program products that can provide access control to data files stored in a computer system. Embodiments described herein can provide an access control system that can implement MAC and encryption key derivation for file system-level encryption while preventing the kernel from being hacked. This can further enhance data security. Embodiments described herein can enable the use of a trusted execution environment to implement personalized and cryptographically secure access control.
[0080] In embodiments described herein, a computer system may include a non-volatile storage memory and a processor. The processor may be configured to provide at least two isolated execution environments.
[0081] The first execution environment may be referred to as a rich execution environment. The processor may operate a rich operating system within the rich execution environment. A user mode process may call a kernel of the rich operating system to access files stored in the non-volatile storage memory and perform operations thereon. The rich operating system may be the primary or primary operating system with which a user of the computer system interacts.
[0082] The second execution environment may be referred to as a trusted execution environment. The processor may operate a trusted operating system within the trusted execution environment. The trusted execution environment may be isolated from the rich execution environment so that processes running in the rich execution environment cannot access code or data in the trusted execution environment.
[0083] The file access monitoring module can be implemented in the kernel of the rich operating system. In the description and drawings of this article, the file access monitoring module can also be referred to as a trusted application agent or a TA agent. The file access monitoring module can be configured to monitor and intercept data file requests received from user mode processes running in the rich operating system.
[0084] A trusted access monitoring application (also referred to as a key management trusted application, key management TA or KMTA) may be run on a trusted operating system. The trusted access monitoring application may be configured to communicate with a file access monitoring module to implement secure access control in response to a file request received by the file access monitoring module.
[0085] The non-volatile memory of the computer system may be used to store a plurality of data files. The plurality of data files may include a plurality of encrypted data files. Each encrypted file may have associated file access data (also referred to as key attributes) that a trusted access monitoring application may use to manage access to the encrypted file.
[0086] The file access data may include file identification data associated with the encrypted file, such as a MAC file tag. The file access data may also include key information associated with the encrypted file. The key information may be required to derive an encryption key associated with the encrypted file.
[0087] The file access data associated with each encrypted data file may be stored as encrypted file access data. The encrypted file access data may be encrypted using a secret access key. The secret access key may then be required to decrypt the file access data and in turn determine the file identification data and key information associated with the data file.
[0088] In some cases, the secret access key may be available only in the KMTA. When a user mode process (creating process) running on a rich operating system attempts to create a new encrypted file, the TA agent can collect the process tag associated with the creating process. The TA agent can then send the process tag associated with the creating process to the KMTA.
[0089] Upon receiving the process tag associated with the creating process, the KMTA may implement the access control policy (stored in the trusted OS) to determine whether the creating process is allowed to create an encrypted file. If the creating process is allowed to create an encrypted file, the KMTA may use the access control policy to determine the file tag to use for this new encrypted file.
[0090] If the creation process is not allowed to create an encrypted file, the KMTA may generate an access-denied signal and send the access-denied signal to the TA agent. Upon receiving the access-denied signal, the TA agent may immediately deny the file creation request of the creation process. The TA agent may also prevent the file system from storing the target encrypted file of the creation request.
[0091] If the creation process is allowed to create the encrypted file, the KMTA may generate an access permission signal. The KMTA may also generate key information for the new encrypted file and use the key information to derive an encryption key. Key attributes (i.e., file access data) may be generated. The key attributes may include file identification data (e.g., file tags) and key information. The file identification data may be determined based on a stored access control policy.
[0092] The key attributes may also be encrypted by the KMTA using a secret access key. The KMTA may transmit the access grant signal, the encrypted key, and the key attributes to the TA agent. The encrypted key and the key attributes may be sent as the payload of a combined message.
[0093] Upon receiving the access authorization signal (and the associated encryption key and key attributes), the TA agent can approve the file creation request of the creation process. The TA agent can then pass the key attributes as file attributes to the file system and provide the encryption key to the file system to enable the file system to perform the file creation operation (i.e., generate, encrypt, and store a new encrypted file).
[0094] When a user mode process (the requesting process) running on a rich operating system attempts to perform an operation on an existing encrypted file (the requested file), the TA agent can intercept the file operation request. The TA agent can then collect process identification data associated with the requesting process and file access data for the requested file. The TA agent can send the process identification data and the file access data to the KMTA in the file request, along with operation data indicating the nature of the requested operation. Upon receiving the file request from the TA agent, the KMTA can decrypt the file access data as needed and apply the stored access control policy to determine whether the requesting process can perform the requested operation on the requested file.
[0095] If the KMTA determines that the requesting process is not allowed to perform the requested file operation, the KMTA may generate an access denial signal. The KMTA may send the access denial signal to the TA agent. Upon receiving the access denial signal, the TA agent denies the file operation request from the requesting process. The TA agent may prevent the requesting process from performing the requested operation on the requested encrypted file.
[0096] If the KMTA determines that the requesting process is allowed to perform the requested file operation, the KMTA may generate an access grant signal. Additionally, if the requested file operation requires an encryption key, the KMTA may generate the encryption key using key information from the key attributes. The KMTA may send the access grant signal and the encryption key (if required) to the TA agent. Upon receiving the access grant signal (and possibly the encryption key), the TA agent may approve the file operation request. The TA agent may also provide the encryption key (if received from the KMTA) to the file system module to complete the requested file operation.
[0097] The KMTA may use the secret access key to encrypt and decrypt file access data. The secret access key that the KMTA uses to decrypt and encrypt key attributes (i.e., file access data) is available to the KMTA only after receiving valid user credentials. When the rich operating system boots, the user may be prompted to provide user credentials. The KMTA may verify the user credentials before determining the secret access key.
[0098] The user may be prompted to provide user credentials while a file request is being transmitted to the KMTA. For example, the user may be prompted to provide user credentials for each file request intercepted by the file access monitoring module.
[0099] The access control system may include a user mode service process operable to collect credentials from a user of the rich operating system. Only after the user service mode program has collected valid user credentials can the KMTA use the secret keys of the KMTA decryption and encryption key attributes.
[0100] Optionally, the KMTA can use process tag activation records to manage file access. The KMTA can store and manage activation records to maintain a list of verified active processes. The process identification data (or process tag) listed in the process tag activation record can be verified by soliciting user credentials from a user of the rich operating system.
[0101] During operation of the rich operating system, when a process tag is initially assigned to a user mode process, user credentials may be requested by a user mode service process (which may be controlled by or in communication with a file access monitoring module). The service process and / or the TA agent may generate a process activation signal. The process activation signal may be generated based on the process identification data and the user credentials. The TA agent may send the process activation signal to the KMTA. The KMTA may then verify the process activation signal, for example by verifying the user credentials.
[0102] Once the process activation signal is verified, the KMTA may update the activation record to indicate that the process associated with the received process identification data is active and has been verified. The KMTA may refer to the process activation record when responding to each file request to determine whether the requesting process has been verified, and may authorize the file request only if it is determined that the requesting process corresponds to the process identification data stored in the process activation record.
[0103] When the TA agent determines that a user-mode process is about to terminate or change its process label, the TA agent can send a process termination signal to the KMTA. Upon receiving the process termination signal, the KMTA can update the process activation record to delete the corresponding process identification data.
[0104] The file access monitoring module (i.e., TA agent) and the trusted access monitoring application (i.e., KMTA) can communicate using a secure communication channel. The secure communication channel can ensure that the messages transmitted between the file access monitoring module and the trusted access monitoring application are encrypted, and if the messages are intercepted, the information in these messages cannot be obtained. The secure communication channel can also allow the TA agent and the KMTA to determine that the received messages are validly sent by the TA agent and the KMTA.
[0105] A secure communication channel may be established between the TA agent and the KMTA through a non-secure communication channel. For example, during the boot process of the rich OS and the trusted OS, the TA agent may send a key generation request to the KMTA through a non-secure communication channel. The KMTA may then randomly generate a secure communication channel key and store the secure communication channel key in the memory of the trusted OS. The KMTA may send the secure communication channel key to the TA agent through a non-secure communication channel. The TA agent may then store the secure communication channel key in the memory of the TA agent.
[0106] In some cases, the KMTA, in response to receiving a key generation request, may check the memory of the trusted operating system to determine whether a secure communication channel key has already been generated. If the secure communication channel key already exists, the KMTA may deny the key generation request.
[0107] Once both the TA agent and the KMTA have stored a shared communication channel key, a secure communication channel key can be established between the TA agent and the KMTA. When a message is transmitted from the TA agent to the KMTA (or from the KMTA to the TA agent), the TA agent (or KMTA) can hash and encrypt the message using the shared key. After receiving the hash and the message, the KMTA (or TA agent) can decrypt the message using the shared key. The recipient can then hash the decrypted message and compare the resulting hash with the received hashed message. The message can then be accepted only if the hashes match. Otherwise, the message may be discarded. This can allow the TA agent (or KMTA) to determine whether the received message was sent by a legitimate KMTA (or TA agent) that has not been tampered with.
[0108] System Architecture
[0109] The following is a description of the system architecture, which by itself may be used in any access control system or method, or in an access control system or method having any combination or subcombination of features such as a file creation process, a file opening process, a file manipulation process, a key generation process, a process activation record, and a secure communication channel.
[0110] Figure 1 An example of a computer system 100 is shown that may be used by embodiments described herein. Figure 1 The computer system shown may be any type of computer system, such as a mobile device (eg, a smart phone or tablet), a laptop computer, a desktop computer, a server, etc.
[0111] Typically, the computer system 100 may include a processor (eg, a microprocessor having one or more CPU cores) and a memory. The processor may access the memory through a computer data bus.
[0112] The memory may include volatile memory and non-volatile memory such as non-volatile memory 106. Non-volatile memory stores computer programs consisting of computer executable instructions that can be loaded into volatile memory and executed by the processor as needed. It will be understood by those skilled in the art that when the computer system 100 is referred to herein as performing a function or operating in a particular manner, it means that one or more cores of the processor are executing instructions (e.g., software programs) stored in memory and may send or receive input and output through one or more interfaces.
[0113] The memory may also store data input to or output from the processor during the execution of computer executable instructions. For example, the non-volatile memory 106 may be configured to store multiple data files. The multiple data files may include multiple encrypted data files. In particular, the kernel 105 and the file system module operating within the kernel 105 may enable the user mode process 103 to access the non-volatile memory 106 and perform operations related to files stored in the non-volatile memory 106.
[0114] The file system module running within the kernel 105 may be configured to use a database structure to store data files in the non-volatile memory 106. For example, a relational database or a non-relational database (eg, a key-value database, a NoSQL database, etc.) may be used to store data files.
[0115] The processor may provide at least two isolated execution environments. The isolated execution environments may include a rich execution environment (REE) 101 and a trusted execution environment (TEE) 102. The processor may define the REE 101 and the TEE 102 to run in isolation from each other, so that the REE 101 cannot access the code and data loaded into the TEE 102. The TEE 102 may be contained within a more secure portion of the processor, giving the TEE 102 greater security. Computer memory may be divided into two parts: secure memory and non-secure memory. Secure memory can only be accessed by the TEE 102.
[0116] The processor may be configured to provide separate operating systems in the REE 101 and the TEE 102. The processor may run a rich OS 104 in the REE 101, such as an Android operating system, a Linux operating system, a Microsoft Windows™ operating system, etc. The rich OS 104 includes a kernel 105 that facilitates user mode processes 103 running on the rich OS 104 to access resources of the computer system 100. The user mode process 103 may call the kernel 105 of the rich OS 104 in order to access and operate on files stored in the non-volatile memory 106. During normal operation, a user interacting with the computer system 100 can only interact directly with the rich OS 104.
[0117] The processor may also be configured to provide a trusted OS 109 in the TEE 102. The trusted OS 109 may be loaded into the TEE 102 and run therein.
[0118] Typically, the trusted OS 109 may be implemented by an operating system having a predefined set of operating standards with a higher security level than the rich OS. For example, the trusted OS 109 may have less capacity but higher security than the rich OS 104. For example, the trusted OS 109 may also be defined according to a standard such as the Common Standard for Information Technology Security Evaluation (e.g., ISO / IEC 15408) and specified security functional requirements.
[0119] For example, the trusted OS 109 may be configured with a "secure boot sequence". In the secure boot sequence, the instructions of the trusted OS 109 may be divided into several (i.e., multiple) different operating system instructions. Each operating system instruction may be digitally signed. The first instruction in the boot sequence that needs to be loaded into the computer memory may be stored in a read-only memory (ROM). Each instruction slice may include instructions for verifying the digital signatures of subsequent instructions loaded into the computer memory in the boot sequence. Optionally, the boot sequence may need to verify the digital signature of each instruction in order to complete the boot sequence. For example, if the digital signature of one of the instructions cannot be verified, the boot sequence may be terminated.
[0120] A trusted user mode process running on the trusted OS 109 may be referred to as a trusted application (TA) 108. Additional security and verification features may be provided for the TA 108 to ensure higher security for the trusted OS 109. For example, the TA 108 may be digitally signed with the public key of the TA vendor, making it more complicated to crack the trusted application.
[0121] A secure communication channel 107 may be established between the rich OS kernel 105 and the TA 108. The rich OS kernel 105 and the TA 108, which may be running in the trusted OS 109, may communicate through the secure communication channel 107. The rich OS kernel 105 may thereby submit requests to the TA 108 and receive replies from the TA 108.
[0122] By isolating the REE 101 and the TEE 102, access control methods such as MAC and encryption key derivation for file system level encryption can be protected from kernel hacking. The processor can be provided with CPU instructions that switch between the REE 101 and the TEE 102. The driver in the rich OS 104 can communicate with the TA 108 running in the trusted OS 109. This allows security-sensitive functions to be implemented using the TA 108 instead of executing in the REE 101, thereby enhancing the security of the rich OS 104. Whenever a security-sensitive function needs to be executed, the rich OS 104 submits a request to the TA 108. For example, the rich OS 104 can be a mobile operating system such as iOS, and the TEE 102 can provide a secure area that can be used to provide encryption key derivation for file system level encryption.
[0123] The computer system 100 may also include Figure 1 Various other components not shown in the figure. For example, the computer system 100 may include one or more communication interfaces, input devices, and output devices. For example, the output device may include a suitable display for outputting information and data as required by various computer programs. In particular, the display may display a graphical user interface (GUI) of the rich OS 104. Various other types of output devices may also be provided, such as speakers and / or tactile feedback sensors.
[0124] Input devices may enable a user to interact with rich OS 104. For example, computer system 100 may include one or more input devices such as a keyboard, a mouse, a trackpad, and various other input devices.
[0125] It should also be understood that certain elements of computer system 100 may be implemented using a combination of hardware and software resources, such as implementing some or all of memory and / or processors using virtual machines and / or containers.
[0126] A communication interface such as one or more wired or wireless data network interfaces may be provided to enable communication with external systems or devices and / or over a network, such as a Universal Serial Bus, Bluetooth™, or Ethernet connection. Computer system 100 may sometimes be connected to an external computer or server via the Internet. For example, computer system 100 may be connected to a software update server to obtain the latest version of a software application or firmware.
[0127] Reference now Figure 2 , which shows an example of an access control system 200 that can be used according to one embodiment. The access control system 200 can be implemented in a computer system such as computer system 100.
[0128] like Figure 2 As shown, the kernel 105 of the rich OS may include a file system module 203. The file system module 203 may be implemented using various file system types, such as an ext4 file system and an NTFS file system. The file system module 203 may be configured to implement file system-level encryption.
[0129] The user mode process 103 may send a system call to the kernel 105 in order to perform operations related to data files in the non-volatile memory 106. The file system module 203 may be configured to implement the system call and provide a method for the user mode process 103 to access stored data files and / or store data files created or modified by the user mode process 103.
[0130] like Figure 2 As shown, the kernel 105 may include a file access monitoring module (TA agent 202). The file access monitoring module 202 may be configured to intercept system calls from the user mode process 103. When the user mode process 103 submits a request (or a system call) to the rich OS kernel 105, the TA agent 202 may intercept these requests before they reach the file system module 203. The file access monitoring module 202 may intercept each file request from the user mode process 103 before the request reaches the file system module 203.
[0131] The access control system 200 may also include a trusted access monitoring application (KMTA 206) running on a trusted OS. The trusted access monitoring application 206 may be configured to perform access control operations related to file requests issued to the kernel 105 of the rich OS. The trusted access monitoring application 206 may communicate with the file access monitoring module 202 using a secure communication channel 107.
[0132] After receiving the request from the user mode process 103, the file access monitoring module 202 can communicate with the trusted access monitoring application 206 through the secure communication channel 107. The file access monitoring module 202 can send the file request data corresponding to the intercepted request to the trusted access monitoring application 206. The trusted access monitoring application 206 can evaluate the file request data to determine whether the request should be allowed. Then, the trusted access monitoring application 206 can provide a response indicating whether the request is satisfied to the file access monitoring module 202. The trusted access monitoring application 206 can also provide the file access monitoring module 202 with the data required to satisfy the request, such as the encryption key required to decrypt the encrypted file. Then, the file access monitoring module 202 can interact with the requesting user mode process 103 and the file system module 203 based on the response from the trusted access monitoring application 206.
[0133] Each encrypted data file in the plurality of encrypted data files stored by the non-volatile storage memory 106 may be encrypted using a file-specific encryption key. The trusted access monitoring application 206 may be configured to independently determine a file-specific encryption key for each encrypted data file. For example, the trusted access monitoring application 206 may independently (e.g., at file creation) determine random key information for each encrypted file. The random key information may then be used to derive an encryption key for the corresponding file.
[0134] The access control system 200 can be configured to perform various processes and operations described herein, such as the file creation process, file opening process, file operation process, secret key generation process, management process activation record, and process of establishing a secure communication channel as described below. The file access monitoring module 202 and the trusted access monitoring application 206 in the access control system 200 can be configured to perform various operations described herein, such as operations in the file creation process, file opening process, file operation process, secret key generation process, management process activation record, and process of establishing a secure communication channel.
[0135] File creation process
[0136] The following is a description of a file creation process which by itself may be used in any access control system or method or in an access control system or method having any combination or subcombination of features of the system architecture, file opening process, file manipulation process, key generation process, process activation record, and secure communication channel.
[0137] Now refer to Figure 3 , which shows an example process for creating a file according to one embodiment. A computer system such as computer system 100 can be used to implement Figure 3 The process shown, and Figure 3 The illustrated process may relate to the operation of an access control system such as access control system 200 .
[0138] At 310, the user mode process 103 running in the rich operating system can create a data file (which can be an encrypted file) and send a file creation request (or system call) to the kernel of the rich operating system. For simplicity, the user mode process 103 can be referred to as a creation process.
[0139] At 311 , the file access monitoring module (TA agent 202 ) running in the kernel may receive a file creation request from a creation process. The TA agent 202 may intercept the file creation request before the file creation request reaches the file system 203 .
[0140] The TA agent 202 may then determine whether the file creation request is related to creating an additional encrypted data file. For example, at 312, the TA agent 202 may evaluate the file encryption policy for the created file to determine whether the file should be encrypted. If the TA agent 202 determines that the file should not be encrypted, the TA agent 202 may pass the file creation request directly to the file system 203.
[0141] At 313 , the file system 203 may create a new unencrypted file based on the file creation request. The file system 203 may also return a valid handle to the unencrypted file to the user mode process 103 .
[0142] Optionally, before creating a new unencrypted file, the file system 203 can evaluate whether the user mode process 103 is a valid process capable of creating a new file. If the file system 203 considers that the process is valid, a new unencrypted file will be generated.
[0143] If at 312, the TA agent 202 determines that the file should be encrypted, the TA agent 202 may collect process identification data (e.g., tag information) corresponding to the user mode process 103 that initiated the request at 315. At 316, the TA agent 202 may send the encrypted file creation request to the trusted access monitoring application (KMTA 206). The encrypted file creation request may include process identification data corresponding to the creating process. The TA agent 202 may send the encrypted file creation request using the secure communication channel 107.
[0144] At 317, the trusted access monitoring application 206 may receive an encrypted file creation request including process tag information. At 319, the trusted access monitoring application 206 may use the received process tag information to apply an access control policy stored by the trusted access monitoring application. The trusted access monitoring application 206 may determine whether to allow the creation of the user mode process 103 to generate additional encrypted data files by comparing the process identification data to the file creation criteria stored by the trusted access monitoring application. The file creation criteria may be stored in the trusted operating system as part of the access control policy.
[0145] If the trusted access monitoring application 206 determines that the user mode process 103 cannot create an encrypted file (i.e., according to the access control policy, the user mode process 103 is not allowed to create an encrypted file), the trusted access monitoring application 206 can generate an access denied signal at 320. At 322, the trusted access monitoring application 206 can send the access denied signal to the file access monitoring module 202.
[0146] Upon receiving the access denial signal at 323, the file access monitoring module 202 may notify the user mode process 103 of the error by returning an invalid handle at 325. The file access monitoring module 202 may also prevent the user mode process 103 from creating the requested encrypted file, such as by blocking the request from reaching the file system module 203.
[0147] In another case, at 319, the trusted access monitoring application 206 can determine that the user mode process 103 can create encrypted files (i.e., according to the access control policy, the user mode process 103 is allowed to create encrypted files). After determining that the user mode process 103 is allowed to generate additional encrypted data files, the trusted access monitoring application 206 can generate an access granted signal at 321.
[0148] At 321, the trusted access monitoring application 206 may also generate additional file identification data for additional encrypted data files based on the file access criteria. The trusted access monitoring application 206 may generate the file identification data as a file tag using the access control policy and the process tag information received as part of the file creation request.
[0149] The trusted access monitoring application 206 can also generate additional key information for additional encrypted data files. The key information can be randomly generated. Then, the trusted access monitoring application 206 can use the additional key information to generate additional encryption keys for additional encrypted data files.
[0150] The trusted access monitoring application 206 may also use additional file identification data (eg, newly created file tags) and additional key information to define file access data (eg, key attributes).
[0151] At 322 , the trusted access monitoring application 206 can send the file access data and the encryption key to the file access monitoring module 202 .
[0152] Optionally, the trusted access monitoring application 206 may encrypt the file access data before sending the file access data to the trusted access monitoring application 206. At 321, the trusted access monitoring application 206 may generate additional encrypted file access data by encrypting the file access data using a secret access key stored by the trusted access monitoring application 206. The secret access key may be available only to the trusted access monitoring application 206.
[0153] The trusted access monitoring application 206 may then send the additional encryption key and the additional encrypted file access data to the file access monitoring module 202 at 322. This may allow the file access data to be stored in association with the newly created encrypted file without allowing any component of the rich operating system (including any component of the file access monitoring module 202) to access the file access data in a plain text format.
[0154] In response to receiving the access grant signal at 323 (along with the additional encryption key and the additional encrypted file access data), the file access monitoring module 202 may provide the additional encryption key and the additional encrypted file access data to the rich operating system's file system 203. The file access monitoring module 202 may pass the encryption key and key attributes to the file system module 203 to which the file creation request was originally directed.
[0155] At 326, the file system 203 may generate an additional encrypted data file using the additional encryption key. The file system 203 may also store the additional encrypted data file in the non-volatile storage memory 106. The file system 203 may also store the additional encrypted file access data in association with the additional encrypted data file (e.g., as a file attribute) in the non-volatile storage memory 106. The file system 203 may also return a valid handle to the encrypted file to the user mode process 103.
[0156] Optionally, before creating a new encrypted file, the file system 203 can evaluate whether the user mode process 103 is a valid process capable of creating a new file. If the file system 203 considers that the process is valid, a new encrypted file will be generated.
[0157] Optionally, only after receiving valid user credentials, the trusted access monitoring application 206 can encrypt the file access data using the secret access key at 321. For example, in response to the file access monitoring module intercepting a file creation request, the user may be prompted to enter user credentials. Figure 3 The secret key generation process used in the process shown in .
[0158] Optionally, after receiving the process tag from the file access monitoring module 202 at 317, the trusted access monitoring application 206 may also check whether the process tag has been activated at 318. The trusted access monitoring application 206 may check whether the process tag has been activated. At 319, the trusted access monitoring application 206 checks whether the process tag has been activated before evaluating the file access criteria. The trusted access monitoring application 206 may proceed to 321 only if the process tag has been activated.
[0159] If the trusted access monitoring application 206 determines at 318 that the process tag is not activated, the trusted access monitoring application 206 may proceed directly to 320 and generate an access denial signal. If the trusted access monitoring application 206 determines at 318 that the process tag is activated, the trusted access monitoring application 206 may continue to apply the access control policy at 319 and then may continue to complete the entire process. Figure 3 The procedures shown in the example are used together with a process activation record procedure.
[0160] File opening process
[0161] The following is a description of a file opening process, which itself may be used in any access control system or method, or in an access control system or method having any combination or subcombination of features of the system architecture, file creation process, file manipulation process, key generation process, process activation record, and secure communication channel.
[0162] Now refer to Figure 4 , which shows an example process for opening a file according to an embodiment. A computer system such as computer system 100 can be used to implement Figure 4 The process shown, and Figure 4 The illustrated process may relate to the operation of an access control system such as access control system 200 .
[0163] A requesting user mode process running on a rich operating system may send a file open request (ie, a system call) to the kernel at 410. The file open request may identify a requested data file stored in non-volatile memory 106 that the requesting process is attempting to access.
[0164] At 411, the file access monitoring module 202 may receive a file request from a requesting process. The file access monitoring module 202 may intercept the file request before the file request reaches the file system 203. Thus, the file access monitoring module 202 may ensure that the requesting process may be reviewed before access to the requested file is allowed.
[0165] At 412, the file access monitoring module 202 may evaluate the requested file to determine whether the requested file is an encrypted data file. For example, the file access monitoring module 202 may evaluate metadata associated with the requested file, or determine whether a key attribute (i.e., key information) is associated with the requested file to determine whether the requested file is encrypted. If the key attribute does not exist, the file access monitoring module 202 may pass the file request to the file system 203.
[0166] At 413, the file system 203 can evaluate the file request. If the file system 203 determines that the file request is valid, at 413, the file system 203 can open the unencrypted file and return a valid handle to the requested file to the requesting user mode process 103.
[0167] When the file access monitoring module 202 determines at 412 that the requested file is an encrypted data file (e.g., there are key attributes or metadata indicating that the file is encrypted), at 415, the file access monitoring module 202 may collect process identification data (e.g., a process tag) associated with the user mode process 103.
[0168] At 416, the file access monitoring module 202 may send the file request data to the trusted access monitoring application 206. As shown, the file request data may be sent using the secure communication channel 107. The file request data may include file access data (e.g., keys and file identification data) associated with the requested file and process identification data (process tag) associated with the requesting process.
[0169] At 417 , the trusted access monitoring application 206 can receive file request data from the file access monitoring module 202 .
[0170] The trusted access monitoring application 206 can then determine the file identification data associated with the requested file from the file access data included in the file request data. The trusted access monitoring application 206 can also determine key information from the file access data.
[0171] At 419, the trusted access monitoring application 206 can execute the access control policy based on the process tag information and the file tag information included in the file request data. The trusted access monitoring application 206 can determine whether to allow the requesting process to access the requested file by comparing the file identification data (determined at 417) and the process identification data to the file access criteria stored by the trusted access monitoring application 206.
[0172] Optionally, the file access data included in the file request data may be encrypted using a secret access key stored by the trusted access monitoring application 206. In this case, at 419, the trusted access monitoring application 206 may determine the secret access key associated with accessing the requested file. The trusted access monitoring application 206 may then use the secret access key to decrypt the encrypted file access data to generate decrypted file access data. The decrypted file access data may then be used to evaluate whether to allow the requesting process to access the requested file.
[0173] If at 419, the trusted access monitoring application 206 determines that the requesting process is not allowed to access the requested encrypted file, then at 420, the trusted access monitoring application 206 can generate an access denied signal. At 422, the trusted access monitoring application 206 can send the access denied signal to the file access monitoring module 202.
[0174] Upon receiving the access denial signal at 423, the file access monitoring module 202 may send an error notification to the requesting user mode process 103 by returning an invalid handle at 425. The file access monitoring module 202 may prevent the user mode process 103 from accessing the requested file, for example, by preventing a system call from being passed to the file system 203.
[0175] If at 419, the trusted access monitoring application 206 determines that the requesting process is allowed to access the requested encrypted file, the trusted access monitoring application 206 can generate an access granted signal at 421. The trusted access monitoring application 206 can also derive an encryption key corresponding to the requested file. For example, the trusted access monitoring application 206 can use key information that is part of the file access data to derive an encryption key corresponding to the requested file.
[0176] Optionally, each encrypted data file in the plurality of encrypted data files is encrypted using a file-specific encryption key. The trusted access monitoring application 206 can independently derive a file-specific encryption key for each encrypted data file.
[0177] At 422, the trusted access monitoring application 206 can send the encryption key to the file access monitoring module 202. The trusted access monitoring application 206 can send the encryption key along with the access granted signal.
[0178] In response to receiving the encryption key, the file access monitoring module 202 may use the encryption key to decrypt the requested file and provide the decrypted file to the requesting process. For example, upon receiving the access grant signal and the encryption key at 423, the file access monitoring module 202 may pass the encryption key to the underlying file system 203 at 424. The file system 203 may then use the encryption key to open the file at 426 and return a valid handle to the file to the user mode process 103. The file system 203 may then further evaluate the file request at 426 to determine whether the request is valid according to the file system criteria.
[0179] Optionally, the secret access key used by the trusted access monitoring application 206 to decrypt the key attribute at 419 may be made available to the trusted access monitoring application 206 only after receiving valid user credentials. For example, in response to the file access monitoring module 202 intercepting a file request, the user may be prompted to enter the user's credentials. Figure 4 An example of a secret key generation process used in conjunction with the process shown in .
[0180] Optionally, after receiving the process tag (i.e., the process identification data of the requesting process) from the file access monitoring module 202 at 417, the trusted access monitoring application 206 may also check whether the process tag has been activated at 418. At 419, the trusted access monitoring application 206 may check whether the process tag has been activated before evaluating the file access criteria. Only if the process tag has been activated, the trusted access monitoring application 206 may proceed to 421.
[0181] If the trusted access monitoring application 206 determines at 418 that the process tag is not activated, the trusted access monitoring application 206 can proceed directly to 420 and generate an access denial signal. If the trusted access monitoring application 206 determines at 418 that the process tag is activated, the trusted access monitoring application 206 can continue to apply the access control policy at 419, and then the entire process can continue. The following will be described in more detail. Figure 4 The procedures shown in the example are used together with the process activation record procedure.
[0182] File operation process
[0183] The following is a description of a file manipulation process which by itself may be used in any access control system or method or in an access control system or method having any combination or subcombination of features of the system architecture, file creation process, file opening process, key generation process, process activation record, and secure communication channel.
[0184] Now refer to Figure 5 , which shows an example process for performing file operations (other than creating a file or opening a file) according to an embodiment. A computer system such as computer system 100 may be used to implement Figure 5 The process shown, and Figure 5 The illustrated process may relate to the operation of an access control system such as access control system 200 .
[0185] At 510, a requesting user mode process running on a rich operating system may send a file operation request (i.e., a system call) to the kernel. The file operation request may identify a requested data file stored in non-volatile memory 106 that the requesting process is attempting to access. The file operation request may also identify a requested operation that the requesting process is requesting to perform on the requested file. It should be understood that the file creation process and the file opening process described above herein relate to specific examples of file operations, and the examples of performing file operation processes described below herein more generally relate to performing any other operation on a requested file.
[0186] At 511, the file access monitoring module 202 may receive a file operation request from a requesting process. The file access monitoring module 202 may intercept the file request before the file request reaches the file system 203. Thus, the file access monitoring module 202 may ensure that the requesting process receives a review before being allowed access to the requested file.
[0187] At 512, the file access monitoring module 202 can evaluate the requested file to determine whether the requested file is associated with a file handle. This can indicate whether a process (e.g., a requesting process) running in the rich operating system is already accessing the requested file. If the requested file is associated with a file handle, the file access monitoring module 202 can pass the file request to the file system 203.
[0188] At 513, the file system 203 may process the request and return the result of the requested operation to the requesting user mode process 103. Optionally, the file system 203 may evaluate the file request before returning the result at 513. If the file system 203 determines that the file request is valid, the file system 203 may perform the operation and return the result.
[0189] If at 512 the file access monitoring module 202 determines that the requested file is not associated with any file handle, the process proceeds to 515 .
[0190] At 515, the file access monitoring module 202 can evaluate the requested file to determine whether the requested file is an encrypted data file. For example, the file access monitoring module 202 can evaluate metadata associated with the requested file, or determine whether a key attribute (i.e., key information) is associated with the requested file to determine whether the requested file is encrypted. If the key attribute does not exist, the file access monitoring module 202 can pass the file request directly to the file system 203.
[0191] At 516, the file system 203 may process the request and return the result of the requested operation to the requesting user mode process 103. Optionally, the file system 203 may evaluate the file request before returning the result at 513. If the file system 203 determines that the file request is valid, the file system 203 may perform the operation and return the result.
[0192] When the file access monitoring module 202 determines at 515 that the requested file is an encrypted data file (e.g., there are key attributes or metadata indicating that the file is encrypted), at 517, the file access monitoring module 202 may collect process identification data (e.g., process tag information) associated with the user mode process 103.
[0193] At 518, the file access monitoring module 202 can send the file request data to the trusted access monitoring application 206. As shown, the file request data can be sent using the secure communication channel 107. The file request data may include file access data associated with the requested file (e.g., key information and file identification data) and process identification data (process tag) associated with the requested process. At 518, the file access monitoring module 202 can transmit the file request data including operation data associated with the requested operation to the trusted access monitoring application 206.
[0194] At 519, the trusted access monitoring application 206 may receive the file request data from the file access monitoring module 202. The trusted access monitoring application 206 may then determine the file identification data associated with the requested file from the file access data included in the file request data. The trusted access monitoring application 206 may also determine the key information based on the file access data.
[0195] At 521, the trusted access monitoring application 206 can execute the access control policy based on the process tag information and the file tag information included in the file request data. The trusted access monitoring application 206 can determine whether to allow the requesting process to perform the requested operation on the requested file by comparing the file identification data (determined at 519), the process identification data, and the operation data with the file access criteria stored by the trusted access monitoring application 206.
[0196] Optionally, the file access data included in the file request data may be encrypted using a secret access key stored by the trusted access monitoring application 206. In this case, at 521, the trusted access monitoring application 206 may determine a secret access key associated with the file requested for access. The trusted access monitoring application 206 may then use the secret access key to decrypt the encrypted file access data to generate decrypted file access data. The decrypted file access data may then be used to evaluate whether the requesting process is allowed to perform the requested operation on the requested file.
[0197] If at 521, the trusted access monitoring application 206 determines that the requesting process is not allowed to perform the requested operation on the requested file, the trusted access monitoring application 206 can generate an operation denial signal at 522. At 524, the trusted access monitoring application 206 can send the operation denial signal to the file access monitoring module 202.
[0198] Upon receiving the operation denied signal at 525, the file access monitoring module 202 may notify the requesting user mode process 103 of the error by returning an access denied error at 527. The file access monitoring module 202 may prevent the user mode process 103 from performing the requested operation, such as by preventing a system call from being passed to the file system 203.
[0199] If at 521, the trusted access monitoring application 206 determines that the requesting process is allowed to perform the requested operation on the requested encrypted file, the trusted access monitoring application 206 can generate an operation permission signal at 523. The trusted access monitoring application 206 can also derive an encryption key corresponding to the requested file. For example, the trusted access monitoring application 206 can use key information that is part of the file access data to derive an encryption key corresponding to the requested file.
[0200] Optionally, each encrypted data file in the plurality of encrypted data files is encrypted using a file-specific encryption key. The trusted access monitoring application 206 can independently derive a file-specific encryption key for each encrypted data file.
[0201] At 524, the trusted access monitoring application 206 may send an operation permission signal to the file access monitoring module 202. The trusted access monitoring application 206 may also send an encryption key along with the access permission signal.
[0202] In response to receiving the encryption key, file access monitoring module 202 can provide the decrypted file to user mode process 103 to enable the requested operation. File access monitoring module 202 can decrypt the requested file using the encryption key and provide the decrypted file to the requesting process.
[0203] For example, after receiving the signal and encryption key of the permission of the operation at 525, the file access monitoring module 202 can pass the encryption key to the underlying file system 203 at 526. At 528, the file system 203 can then use the encryption key to open the requested file and return the result of the requested operation to the user mode process 103. Optionally, at 528, the file system 203 can further evaluate the file request to determine whether the request is considered valid according to the file system criteria.
[0204] Optionally, the secret access key used by the trusted access monitoring application 206 to decrypt the key attribute at 521 may be made available to the trusted access monitoring application 206 only after receiving valid user credentials. For example, in response to the file access monitoring module 202 intercepting a file operation request, the user may be prompted to enter user credentials. Figure 5 An example of a secret key generation process used in conjunction with the process shown in .
[0205] Optionally, after receiving the process tag (i.e., the process identification data of the requesting process) from the file access monitoring module 202 at 519, the trusted access monitoring application 206 may also check whether the process tag has been activated at 520. At 521, the monitoring application 206 may check whether the process tag has been activated before evaluating the file access criteria. Only if the process tag has been activated, the trusted access monitoring application 206 may proceed to 523.
[0206] If the trusted access monitoring application 206 determines at 520 that the process tag is not activated, the trusted access monitoring application 206 can proceed directly to 522 and generate an access denial signal. If the trusted access monitoring application 206 determines at 520 that the process tag is activated, the trusted access monitoring application 206 can continue to apply the access control policy at 521, and then the entire process can continue. The following will be described in more detail. Figure 5 The procedures shown in the example are used together with the process activation record procedure.
[0207] Secret key generation process
[0208] The following is a description of a secret key generation process that may be used in any access control system or method, either alone or in any combination or subcombination of features of the system architecture, file creation process, file opening process, file operation process, process activation records, and secure communication channels.
[0209] In some cases, the file access data included in the file request transmitted from the file access monitoring module 202 to the trusted access monitoring application 206 may be encrypted file access data. The encrypted file access data may be encrypted using a secret access key stored by the trusted access monitoring application 206. That is, the secret access key may be available only to the trusted access monitoring application 206, that is, not available in the rich execution environment (even to the file access monitoring module 202). This may ensure that the file access data remains encrypted while it exists in the rich execution environment.
[0210] Trusted access monitoring application 206 can be configured to determine file access data from the received file request data by determining a secret access key associated with the requested file. Once the secret access key is determined, the encrypted file access data can be decrypted using the secret access key, and the file access data can be determined as the decrypted file access data.
[0211] The secret access key may be generated only upon receiving valid user credentials from a user of the computer system. This may ensure that file access is controlled based on a specific user.
[0212] The trusted access monitoring application 206 can use the user credentials to determine the secret access key. For example, the secret access key can be stored by the trusted access monitoring application 206 as an encrypted access key. The user credentials can be used to derive an encryption key used to generate the encrypted access key, such as using a hashed form of the user credentials. The trusted access monitoring application 206 can then determine the secret access key by decrypting the encrypted access key using the user credentials.
[0213] The trusted access monitoring application 206 can receive user credentials from a user mode process running in the rich operating system. The user credentials can be provided to the trusted access monitoring application 206 via the file access monitoring module. In some cases, the user credentials may be requested each time the trusted access monitoring application 206 attempts to decrypt file access data.
[0214] Now refer to Figure 6, which shows an example process for generating a secret access key according to an embodiment. A computer system such as computer system 100 may be used to implement Figure 6 The process shown, and Figure 6 The illustrated process may relate to the operation of an access control system such as access control system 200 . Figure 6 The examples in can be used with various other processes described herein, such as for encrypting / decrypting key attributes during a file open / create / manipulate process.
[0215] At 610, user mode service process 601 can solicit credentials from user 600. For example, user mode service process 601 can provide an input prompt (e.g., a pop-up window) to initiate the solicitation of user credentials. User 600 can then use an input device, such as a keyboard or a biometric device (e.g., a fingerprint scanner, a retinal scanner, or a facial recognition device) to provide the credentials.
[0216] For example, user mode service process 601 may solicit credentials during an initial login process of a computer system. Alternatively or additionally, user mode service process 601 may solicit credentials in response to a file request intercepted by file access monitoring module 202. For example, user mode service process 601 may solicit credentials in response to each file request related to an encrypted file intercepted by file access monitoring module 202.
[0217] At 611, the user mode service process 601 may send the user credentials received at 610 to the file access monitoring module 202. The file access monitoring module 202 may receive the user credentials at 612. The file access monitoring module 202 may then forward the user to the trusted access monitoring application 206 at 613. As shown, the user credentials may be transmitted from the file access monitoring module 202 to the trusted access monitoring application 206 using the secure communication channel 107.
[0218] At 614, the trusted access monitoring application 206 can receive the user credentials from the file access monitoring module 202. The trusted access monitoring application 206 can then determine the hashed credentials by calculating the hash of the received user credentials. The hashed credentials can then be stored by the trusted access monitoring application 206 in the trusted execution environment.
[0219] At 615, the trusted access monitoring application 206 can generate a secret access key. The trusted access monitoring application 206 can randomly generate the secret access key. The trusted access monitoring application 206 can then encrypt the secret access key using the user credentials. At 616, the encrypted secret access key can be stored by the trusted access monitoring application 206 in a non-volatile memory within the trusted execution environment.
[0220] In some cases, the trusted access monitoring application 206 may temporarily store secret access keys and / or user credentials in volatile memory for use by various processes described herein, such as the file creation, file opening, and file manipulation processes described herein. Once the evaluation of the user credentials has been completed, the trusted access monitoring application 206 may clear the secret access keys and user credentials from memory.
[0221] Now refer to Figure 7 , which shows another example process for generating a secret access key according to one embodiment. A computer system such as computer system 100 may be used to implement Figure 7 The process shown, and Figure 7 The illustrated process may relate to the operation of an access control system such as access control system 200 . Figure 7 The examples in can be used with various other processes described herein, such as for encrypting / decrypting key attributes during a file open / create / manipulate process.
[0222] At 710, user mode service process 601 may solicit credentials from user 600. For example, user mode service process 601 may provide an input prompt (e.g., a pop-up window) to initiate the solicitation of user credentials. User 600 may then provide credentials using an input device such as a keyboard or a biometric device (e.g., a fingerprint scanner, a retinal scanner, or a facial recognition device).
[0223] For example, user mode service process 601 may solicit credentials during an initial login process of a computer system. Alternatively or additionally, user mode service process 601 may request credentials in response to a file request intercepted by file access monitoring module 202. For example, user mode service process 601 may request credentials in response to each file request related to an encrypted file intercepted by file access monitoring module 202.
[0224] At 711, the user mode service process 601 may send the user credentials received at 710 to the file access monitoring module 202. The file access monitoring module 202 may receive the user credentials at 712. In response to receiving the user credentials, the file access monitoring module 202 may generate a secret access key at 713. The file access monitoring module 202 may randomly generate the secret access key.
[0225] At 714, the file access monitoring module 202 may send the user credentials and the secret access key to the trusted access monitoring application 206. As shown, the user credentials may be sent from the file access monitoring module 202 to the trusted access monitoring application 206 using the secure communication channel 107.
[0226] At 715, the trusted access monitoring application 206 may receive the user credentials and the secret access key from the file access monitoring module 202. The trusted access monitoring application 206 may then determine the hashed credentials by computing a hash of the received user credentials. The hashed credentials may then be stored by the trusted access monitoring application 206 in the trusted execution environment.
[0227] At 716, the trusted access monitoring application 206 can encrypt the secret access key using the user credentials. The encrypted secret access key can be stored by the trusted access monitoring application 206 in non-volatile memory within the trusted execution environment at 717.
[0228] In some cases, the trusted access monitoring application 206 may temporarily save secret access keys and / or user credentials in volatile memory for use by various processes described herein, such as the file creation, file opening, and file manipulation processes described herein. Once the evaluation of the user credentials has been completed, the trusted access monitoring application 206 may clear the secret access keys and user credentials from memory.
[0229] Now refer to Figure 8 , which shows an example process for generating a secret access key according to one embodiment. A computer system such as computer system 100 may be used to implement Figure 8 The process shown, and Figure 7 The illustrated process may relate to the operation of an access control system such as access control system 200 . Figure 8 The examples in can be used with various other processes described herein, such as for encrypting / decrypting key attributes during a file open / create / manipulate process.
[0230] At 810, user mode service process 601 may solicit credentials from user 600. For example, user mode service process 601 may provide an input prompt (e.g., a pop-up window) to initiate the solicitation of user credentials. User 600 may then provide credentials using an input device such as a keyboard or a biometric device (e.g., a fingerprint scanner, a retinal scanner, or a facial recognition device).
[0231] For example, the user mode service process 601 may request credentials in response to a file request intercepted by the file access monitoring module 202. The user credentials may then be used to decrypt a secret access key required to evaluate the file request.
[0232] At 811, the user mode service process 601 may send the user credentials received at 810 to the file access monitoring module 202. The file access monitoring module 202 may receive the user credentials at 812. The file access monitoring module 202 may then forward the user credentials to the trusted access monitoring application 206 at 813. As shown, the user credentials may be sent from the file access monitoring module 202 to the trusted access monitoring application 206 using the secure communication channel 107.
[0233] At 814, the trusted access monitoring application 206 can receive user credentials from the file access monitoring module 202. The trusted access monitoring application 206 can then determine the hashed credentials by computing a hash of the received user credentials.
[0234] At 815 , the trusted access monitoring application 206 may read the stored hashed credentials from non-volatile memory accessible to the trusted access monitoring application 206 in the trusted execution environment.
[0235] At 816, the trusted access monitoring application 206 can compare the stored hashed credential with the hashed credential calculated at 814. If the hash values do not match, then at 818, the trusted access monitoring application 206 can discard the credential received at 814. The access monitoring application 206 can also return an invalid credential signal (e.g., an access denied signal or an operation denied signal) to the file access monitoring module 202 to indicate that the credential is invalid.
[0236] If the hash values match at 816, the trusted access monitoring application 206 can use the credentials to decrypt the encrypted key at 819. Figure 8 As shown, the encrypted secret key may be read from a non-volatile memory accessible to the trusted access monitoring application 206 in the trusted execution environment at 815. Alternatively, the encrypted secret key may be read only after a hash match is determined.
[0237] Process Activation Record
[0238] The following is a description of a process activation record process that may be used in any access control system or method, either alone or in any combination or subcombination of features of the system architecture, file creation process, file opening process, file manipulation process, secret key generation process, and secure communication channel.
[0239] Trusted access monitoring application 206 can be configured to maintain activation records of processes that are active and running on the rich operating system. The activation record can include active process identification data associated with each user-specific process running on the rich operating system. Trusted access monitoring application 206 can determine that the requesting process is allowed to access the requested file only if the activation record includes the active process identification data associated with the requesting process.
[0240] The activation record can be defined to include only processes that have been authenticated by the user credentials requested from the user of the computer system. This can ensure that each process that makes a file request has been authenticated by the user of the computer system.
[0241] The activation record may be updated in response to a process within the rich operating system being activated or about to be activated. When a new process (i.e., a process not currently listed in the activation record) is running (e.g., being initialized or beginning to run) on the rich operating system, the file access monitoring module 202 may send a process start / activation message to the trusted access monitoring application 206 after determining that a new user-specific process is running on the rich operating system. The process start message may include process identification data (e.g., a process tag) associated with the new user-specific process.
[0242] The process start message can be generated in response to receiving valid user credentials from a user of the computer system. This can ensure that the new process is a valid operating process that has been reviewed (at least superficially) by the user of the computer system. After determining that a new user-specific process is running on the rich operating system, the user credentials can be solicited from the user.
[0243] When a process stops operating (or is about to stop operating), the file access monitoring module 202 can send a process termination / deactivation message to the trusted access monitoring application 206. The process termination message can be generated by the file access monitoring module 202. After determining that a particular process specific to a user is no longer running on the rich operating system, the trusted access monitoring application 206 can update the activation record to delete the corresponding process identification data.
[0244] Now refer to Fig. 9, which shows an example process for updating an activation record by activating a progress tag according to an embodiment. A computer system such as computer system 100 can be used to implement Fig. 9 The process shown, and Fig. 9 The illustrated process may relate to the operation of an access control system such as access control system 200 . Fig. 9 The examples in can be used with various other processes described herein, such as for determining whether a request is allowed to proceed during a file open / create / operation process.
[0245] At 910, user mode service process 601 can determine that a new process is operational or becomes operational within the rich operating system. For example, user mode service process 601 can detect a new process label to be assigned to a new process when there is currently no process with the new process label.
[0246] At 911, in response to determining that the new process is operational, user mode service process 601 can solicit credentials from user 600. For example, user mode service process 601 can provide an input prompt (e.g., a pop-up window) to initiate the solicitation of user credentials. User 600 can then provide credentials using an input device, such as a keyboard or a biometric device (e.g., a fingerprint scanner, a retinal scanner, or a facial recognition device).
[0247] At 912, the service process 601 may generate a process initiation message. The process initiation message may be generated using the credentials received at 911 and process identification data associated with the new process (e.g., a new process tag). For example, the process initiation message may be defined (or formed) to include the credentials and the process identification data. As another example, the process initiation message may be defined (or formed) to include the process identification data digitally signed by the hashed credentials. The service process 601 may send the process initiation message to the file access monitoring module 202.
[0248] At 913, the file access monitoring module 202 may receive the process start message. At 914, the file access monitoring module 202 may then forward the process start message to the trusted access monitoring application 206. As shown, the process start message may be sent to the trusted access monitoring application 206 using the secure communication channel 107.
[0249] At 915, the trusted access monitoring application 206 can receive the process launch message. The trusted access monitoring application 206 can then update the activation record to include active process identification data associated with the new user-specific process.
[0250] As in Fig. 9As shown in the example of , the trusted access monitoring application 206 can validate the process launch message before adding the active process identification data associated with the new user-specific process to the activation record.
[0251] At 916, the trusted access monitoring application 206 can verify the process launch message using the user credentials received in the process launch message. Figure 6 , Figure 7 and Figure 8 Example processes such as those described may be used to authenticate a process initiation message using user credentials stored by the trusted access monitoring application 206 .
[0252] For example, the trusted access monitoring application 206 can store hashed user credentials in a non-volatile memory accessible within the trusted execution environment. To verify the process startup message, the trusted access monitoring application 206 can use the stored hashed user credentials. For example, the trusted access monitoring application 206 can receive credentials from the process startup message and calculate a hash version of the received credentials. The trusted access monitoring application 206 can compare the hash version of the received certificate with the stored hashed credentials. As another example, the trusted access monitoring application 206 can extract process identification data from the process startup message. The trusted access monitoring application 206 can use the stored hashed credentials to calculate the digital signature of the extracted process identification data. Then, the trusted access monitoring application 206 can compare the calculated digital signature with the digital signature of the process identification data in the process startup message.
[0253] As another possibility, the trusted access monitoring application 206 may have user credentials stored in plain text (e.g., in volatile memory, or even in non-volatile memory in some cases). The trusted access monitoring application 206 may then use the stored user credentials to verify the process launch message. For example, the trusted access monitoring application 206 may receive the credentials from the process launch message and then compare the received credentials with the stored version. As another example, the trusted access monitoring application 206 may hash the stored user credentials and use the hashed credentials to calculate a digital signature of the process identification data extracted from the process launch message. The trusted access monitoring application 206 may then compare the calculated digital signature with the digital signature of the process identification data in the process launch message.
[0254] If the process launch message is verified, the trusted access monitoring application 206 can update the activation record to include the active process identification data associated with the new user-specific process at 917. If the result of the verification at 916 is that the process launch message cannot pass the verification, the trusted access monitoring application 206 does not update the activation record. The trusted access monitoring application 206 can discard the process launch message 918. Optionally, the trusted access monitoring application 206 can provide an error message to the file access monitoring module 202 to indicate that a valid credential was not received.
[0255] Now refer to Fig.10 , which shows another example process for updating the activation record by activating the progress tag according to an embodiment. A computer system such as computer system 100 can be used to implement Fig.10 The process shown, and Fig.10 The illustrated process may relate to the operation of an access control system such as access control system 200 . Fig.10 The examples in can be used with various other processes described herein, such as for determining whether a request is allowed to proceed during a file open / create / operation process.
[0256] At 1010, the file access monitoring module 202 can determine that a new process is running or is running within the rich operating system. For example, the file access monitoring module 202 can detect a new process label to be assigned to a new process when there is currently no process with the new process label.
[0257] At 1011, the file access monitoring module 202 may send a credential request to the user mode service process 601. The credential request may indicate that the file access monitoring module 202 requires user credentials.
[0258] At 1012, user mode service process 601 can solicit credentials from user 600 in response to the credential request received at 1011. For example, user mode service process 601 can provide an input prompt (e.g., a pop-up window) to initiate the solicitation of user credentials. User 600 can then provide credentials using an input device such as a keyboard or a biometric device (e.g., a fingerprint scanner, a retinal scanner, or a facial recognition device).
[0259] At 1013, the service process 601 can generate a process start message. The process start message can be generated using the credentials received at 1012 and process identification data associated with the new process (e.g., a new process tag). For example, the process start message can be defined (or formed) to include the received credentials and the process identification data. As another example, the process start message can be defined (or formed) to include process identification data digitally signed by the received credentials. The service process 601 can send the process start message to the file access monitoring module 202.
[0260] At 1014, the file access monitoring module 202 may receive the process start message. Then at 1015, the file access monitoring module 202 may forward the process start message to the trusted access monitoring application 206. As shown, the process start message may be sent to the trusted access monitoring application 206 using the secure communication channel 107.
[0261] At 1016, the trusted access monitoring application 206 can receive the process launch message. The trusted access monitoring application 206 can then update the activation record to include active process identification data associated with the new user-specific process.
[0262] As in Fig.10 As shown in the example of , the trusted access monitoring application 206 can validate the process launch message before adding the active process identification data associated with the new user-specific process to the activation record.
[0263] At 1017, the trusted access monitoring application 206 can verify the process launch message using the user credentials received in the process launch message. Figure 6 , Figure 7 and Figure 8 Example processes such as those described may be used to authenticate a process initiation message using user credentials stored by the trusted access monitoring application 206 .
[0264] For example, the trusted access monitoring application 206 can store hashed user credentials in a non-volatile memory accessible within the trusted execution environment. To verify the process launch message, the trusted access monitoring application 206 can use the stored hashed user credentials. For example, the trusted access monitoring application 206 can receive credentials from the process launch message. The trusted access monitoring application 206 can calculate a hashed version of the received credentials, and then compare the hashed version of the received credentials with the stored hashed credentials. As another example, the trusted access monitoring application 206 can extract process identification data from the process launch message. The trusted access monitoring application 206 can then use the stored hashed credentials to calculate the digital signature of the extracted process identification data, and compare the calculated digital signature with the digital signature of the process identification data in the process launch message.
[0265] As another possibility, the trusted access monitoring application 206 may have user credentials stored in plain text (e.g., in volatile memory, or even in non-volatile memory in some cases). The trusted access monitoring application 206 may then use the stored user credentials to verify the process launch message. For example, the trusted access monitoring application 206 may receive the credentials from the process launch message and then compare the received credentials with the stored version. As another example, the trusted access monitoring application 206 may hash the stored user credentials and use the hashed credentials to calculate a digital signature of the process identification data extracted from the process launch message. The trusted access monitoring application 206 may then compare the calculated digital signature with the digital signature of the process identification data in the process launch message.
[0266] If the process launch message is verified, then at 1018, the trusted access monitoring application 206 can update the activation record to include active process identification data associated with the new user-specific process. If the result of the verification at 1017 is that the process launch message cannot pass the verification, the trusted access monitoring application 206 does not update the activation record. The trusted access monitoring application 206 can discard the process launch message at 1019. Optionally, the trusted access monitoring application 206 can provide an error message to the file access monitoring module 202 indicating that a valid credential was not received.
[0267] Now refer to Fig.11 , which shows an example process for updating an activation record by deactivating a process tag according to an embodiment. A computer system such as computer system 100 can be used to implement Fig.11 The process shown, and Fig.11The illustrated process may relate to the operation of an access control system such as access control system 200 . Fig.11 The examples in can be used with various other processes described herein, such as for determining whether a request is allowed to proceed during a file open / create / operation process.
[0268] At 1110, the file access monitoring module 202 can determine that a particular user-specific process is no longer running on the rich operating system. The file access monitoring module 202 can determine that the user-specific process is no longer running by determining that a process with specific process identification data will be stopped or marked with different process identification data.
[0269] At 1111, the file access monitoring module 202 may generate a process termination message in response to determining at 1110 that the specific user-specific process is no longer running on the rich operating system. The file access monitoring module 202 may generate the process termination message when the specific user-specific process is associated with the active process identification data included in the activation record. The process termination message may then be generated to include the active process identification data associated with the specific user-specific process.
[0270] The file access monitoring module 202 can send a process termination message to the trusted access monitoring application 206. As shown, the secure communication channel 107 can be used to send the process termination message.
[0271] At 1112, the trusted access monitoring application 206 can receive a process termination message. The trusted access monitoring application 206 can then update the activation record to delete the active process identification data associated with the particular process for the particular user.
[0272] As in Fig.11 As shown in the example of , the trusted access monitoring application 206 can verify the process termination message before deleting the active process identification data associated with the new user-specific process from the activation record.
[0273] At 1113, the trusted access monitoring application 206 can verify the process termination message using the user credentials received in the process termination message. Figure 6 , Figure 7 and Figure 8 Example processes such as those described may be used to authenticate a process termination message using user credentials stored by the trusted access monitoring application 206 .
[0274] For example, the trusted access monitoring application 206 may have stored hashed user credentials in non-volatile memory accessible within the trusted execution environment. To verify the process termination message, the trusted access monitoring application 206 may calculate a hashed version of the received credentials and then compare the received hashed version of the credentials with the stored hashed credentials.
[0275] As another possibility, the trusted access monitoring application 206 may have user credentials stored in plain text (e.g., in volatile memory or even in non-volatile memory in some cases). The trusted access monitoring application 206 may then compare the received credentials with the stored version to verify the process termination message.
[0276] If the process termination message is verified, then at 1114, the trusted access monitoring application 206 can update the activation record to delete the active process identification data associated with the specific process of the specific user. If the result of the verification at 1113 is that the process termination message cannot pass the verification, the trusted access monitoring application 206 does not update the activation record. The trusted access monitoring application 206 can discard the process termination message 1115. Optionally, the trusted access monitoring application 206 can provide an error message to the file access monitoring module 202 indicating that a valid credential was not received.
[0277] Secure communication channel
[0278] The following is a description of a secure communication channel process that may be used in any access control system or method, alone or in any combination or subcombination of features of the system architecture, file creation process, file opening process, file manipulation process, secret key generation process, and process activation log.
[0279] like Figure 2 As shown, the file access monitoring module 202 and the trusted access monitoring application 206 can be configured to communicate using the secure communication channel 107. The secure communication channel can be established by the processor of the computer system during the boot process of the rich operating system and the trusted operating system.
[0280] A secure communication channel may be established over an insecure communication channel. For example, the file access monitoring module 202 and the trusted access monitoring application 206 may each store a shared communication channel key. The file access monitoring module 202 and the trusted access monitoring application 206 may use the shared communication channel key to protect the security of messages transmitted between them, and may actually establish a secure communication channel even when an insecure communication channel is used.
[0281] Now refer to Fig.12, which shows an example process for establishing a shared communication channel key through an unsecured communication channel according to one embodiment. A computer system such as computer system 100 may be used to implement Fig.12 The process shown, and Fig.12 The illustrated process may relate to the operation of an access control system such as access control system 200 . Fig.12 The examples in can be used with various other procedures described herein, such as file open / create / manipulation procedures.
[0282] At 1210, the file access monitoring module 202 may generate a communication channel key request. The communication channel key request may be a request for a random key. The file access monitoring module 202 may send the communication channel key request to the trusted access monitoring application 206. Fig.12 As shown in the example in, the communication channel key request can be sent via the non-secure communication channel 1202.
[0283] At 1211, the trusted access monitoring application 206 can receive the communication channel key request. At 1212, the trusted access monitoring application 206 can check whether an existing communication channel key is stored in a memory within the trusted execution environment.
[0284] If an existing communication channel key is detected, then at 1213, the trusted access monitoring application 206 can generate a request denial signal. At 1215, the trusted access monitoring application 206 can send the request denial signal to the file access monitoring module 202. Fig.12 As shown, a non-secure communication channel 1203 can be used to send a signal that the request is denied.
[0285] If no existing communication channel key is detected, the trusted access monitoring application 206 can generate a communication channel key at 1214. The communication channel key can be randomly generated by the trusted access monitoring application 206. The trusted access monitoring application 206 can then store the communication channel key in the trusted operating system memory. The communication channel key can be stored only in volatile memory. Whenever the computer system loses power (e.g., due to the volatile memory losing power), the communication channel key can be discarded.
[0286] Then, at 1215, the trusted access monitoring application 206 may send the communication channel key to the file access monitoring module 202. Fig.12As shown, the communication channel key may be sent using the non-secure communication channel 1203. The trusted access monitoring application 206 may send the communication channel key to the file access monitoring module 202 only in response to a key request for generating the communication channel key, that is, the trusted access monitoring application 206 may not send the communication channel key to the rich execution environment in response to any other request received from the rich execution environment.
[0287] At 1216, the file access monitoring module 202 may receive the communication channel key. The file access monitoring module 202 may then store the communication channel key in memory. The communication channel key may be stored only in volatile memory. Whenever the computer system loses power (e.g., due to a volatile memory power outage), the communication channel key may be discarded.
[0288] The computer system 100 may be configured to implement the following during the boot process of the rich OS 104 and the trusted OS 109: Fig.12 For example, whenever the rich OS 104 and the trusted OS 109 are restarted, Fig.12 The process shown.
[0289] exist Fig.12 In the illustrated example process, the trusted access monitoring application 206 can only generate one random communication channel key each time the rich OS 104 and the trusted OS 109 are restarted. This can prevent malicious code injected by a hacker from requesting an established communication channel key from the trusted access monitoring application 206. This can also prevent malicious code from establishing another communication channel key with the trusted access monitoring application 206 after an existing key is established between the legitimate file access monitoring module 202 and the trusted access monitoring application 206 during the boot process.
[0290] Fig.13 An example process for exchanging messages between the file access monitoring module 202 and the trusted access monitoring application 206 in a secure manner over an insecure communication channel according to one embodiment is shown. Fig.13 The process shown, and Fig.13 The illustrated process may relate to the operation of an access control system such as access control system 200 . Fig.13 The examples in can be used with various other procedures described herein, such as file open / create / manipulation procedures.
[0291] At 1310, the file access monitoring module 202 may generate a request message. For example, the request message may be a file request message, such as described above with reference to Figures 3 to 5A request to open a file, create a file, or perform an operation on a file as described in this document.
[0292] At 1311, the file access monitoring module 202 can then read the shared communication channel key from the memory in the rich operating system. The shared communication channel key may have been generated using a method such as the one described above. Fig.12 Describes the communication channel key generation process to generate.
[0293] At 1312, the file access monitoring module 202 may generate a hash message using the shared communication channel key as a keyed hash. The file access monitoring module 202 may generate a hash message by hashing the file request data using the shared communication channel key as a hash key.
[0294] At 1313 , the file access monitoring module 202 may generate an encrypted file request message by encrypting the request message from 1310 using the shared communication channel key.
[0295] At 1314, the file access monitoring module 202 may send the encrypted file request message and the hash message to the trusted access monitoring application 206. Fig.13 As shown, the encrypted file request message (and hash message) may be sent to the trusted access monitoring application 206 using the non-secure communication channel 1302 .
[0296] At 1315, the trusted access monitoring application 206 can receive the encrypted file request message and the hash message. The trusted access monitoring application 206 can use the shared communication channel key stored in memory by the trusted access monitoring application 206 to determine the validity of the file request message.
[0297] At 1316, the trusted access monitoring application 206 may retrieve the stored shared communication channel key from the memory. At 1317, the trusted access monitoring application 206 may generate a decrypted file request message by decrypting the encrypted file request message using the shared communication channel key obtained at 1316. At 1318, the trusted access monitoring application 206 may generate a hashed decrypted message by hashing the decrypted file request message using the shared communication channel key.
[0298] At 1319, the trusted access monitoring application 206 can compare the hash decrypted message to the hash message received at 1315. When the hash decrypted message and the hash message match, the trusted access monitoring application 206 can determine that the received file request data is valid.
[0299] If the trusted access monitoring application 206 determines that the file request data is invalid (e.g., the hash decrypted message and the hash message do not match), the trusted access monitoring application 206 can generate a request denial signal at 1320. The trusted access monitoring application 206 can send the request denial signal to the file access monitoring module 202 at 1321. At 1328, the file access monitoring module 202 can check the signal and determine that the request is denied. Then Fig.13 The process shown will end. The file access monitoring module 202 can then take remedial measures, such as retrying the request transmission, and / or providing a user prompt indicating that the request was denied.
[0300] If the trusted access monitoring application 206 determines that the file request data is valid (e.g., the hash decrypted message and the hash message match) at 1319, the trusted access monitoring application 206 can generate a request acceptance signal at 1320. At 1323, the trusted access monitoring application 206 can process the request (e.g., perform a file creation, file opening, or a file operation process such as described herein) and generate a reply message. Thus, the trusted access monitoring application 206 can determine that the request is allowed to process the access / creation / execution operation on the requested file only if the received file request data is valid.
[0301] At 1324, the trusted access monitoring application 206 may generate a hash reply message using the shared communication channel key as a keyed hash. The file access monitoring module 202 may generate a hash reply message by hashing the reply message data using the shared communication channel key as a hash key.
[0302] At 1325 , the trusted access monitoring application 206 may generate an encrypted reply message by encrypting the reply message from 1323 using the shared communication channel key.
[0303] At 1326, the trusted access monitoring application 206 may send the encrypted reply message and the hash reply message to the file access monitoring module 202. Fig.13 As shown, the encrypted reply message (and hash reply message) may be sent to the file access monitoring module 202 using the non-secure communication channel 1303 .
[0304] At 1327, the file access monitoring module 202 may receive the encrypted reply message and the hashed reply message and the request acceptance signal. The file access monitoring module 202 may use the shared communication channel key stored in the memory of the rich operating system to determine the validity of the reply message. At 1328, the file access monitoring module 202 may check the signal and determine that the request is accepted. The process may then proceed to 1329.
[0305] At 1329, the file access monitoring module 202 may retrieve the stored shared communication channel key from the memory. At 1330, the file access monitoring module 202 may generate a decrypted reply message by decrypting the encrypted reply message using the shared communication channel key obtained at 1329. At 1331, the file access monitoring module 202 may generate a hashed decrypted reply message by hashing the decrypted reply message using the shared communication channel key.
[0306] At 1332, the file access monitoring module 202 may compare the hash decrypted reply message with the hash reply message received at 1329. When the hash decrypted reply message and the hash reply message match, the file access monitoring module 202 may determine that the received reply message is valid.
[0307] If the file access monitoring module 202 determines that the reply message is invalid (eg, the hash decrypted reply message and the hash reply message do not match), the file access monitoring module 202 may discard the reply message at 1333 . Fig.13 The illustrated process will then end. The file access monitoring module 202 may then take remedial action, such as retrying the request transmission, providing a denial reply message to the trusted access monitoring application 206 and / or providing a prompt to the user indicating that the request was denied.
[0308] If the file access monitoring module 202 determines at 1332 that the reply message is valid (e.g., the hashed decrypted reply message and the hashed reply message match), the file access monitoring module 202 can authenticate the reply message. The file access monitoring module 202 can process the reply message and take further action as needed based on the content of the reply message (e.g., pass the further action to the file system 203).
[0309] like Fig.13 As shown in the illustrated example process, a secure communication channel may be established between the file access monitoring module 202 and the trusted access monitoring application 206. This may allow the file access monitoring module 202 and the trusted access monitoring application 206 to exchange messages in a secure manner, i.e., no other party other than the file access monitoring module 202 and the trusted access monitoring application 206 (with the shared communication channel key available in memory) may interpret or modify (without detection) the messages exchanged over the secure communication channel.
[0310] The embodiments described above herein may use a trusted execution environment to implement cryptographically secure access control. The embodiments described herein may also enable access control to be managed based on a specific user (eg, personalized) using user credentials.
[0311] The systems and methods described herein can be operated in a computer system equipped with a processor capable of providing at least two isolated execution environments. The isolated execution environments can include a rich execution environment and a trusted execution environment. A rich operating system can be loaded in the rich execution environment, and a trusted operating system can be loaded in the trusted execution environment. An access monitoring module can be provided within the kernel of the rich operating system, and a trusted access monitoring application can be provided on the trusted operating system.
[0312] A file system in a rich operating system can be configured to provide file system level encryption. An encrypted file can be configured to include file access data (e.g., key attributes) containing file tag information that can be used in mandatory access control and key information that can be used to derive a file encryption key. All key attributes can be further encrypted using a secret key, where only a trusted application has the secret key to decrypt the key attributes.
[0313] When a process (an instance of a program) submits an access request to a file, the access monitoring module inside the rich operating system kernel can collect the tag information of the process and send the process tag information together with the key attribute of the file to the trusted access monitoring application through a secure communication channel. When the key attribute and the process tag information are received, the trusted access monitoring application can decrypt the key attribute and check the file tag information and the process tag information inside the key attribute according to the access policy. The trusted access monitoring application can be configured so that the trusted access monitoring application can use the key information inside the key attribute to derive the encryption key only when the policy stored in the trusted access monitoring application is not violated. The trusted access monitoring application can then pass the encryption key to the file system through the access monitoring module inside the rich operating system kernel through the secure communication channel.
[0314] Embodiments described herein can integrate file encryption key derivation with mandatory access control in trusted access, thereby making the mandatory access control cryptographically secure and forcing any process (including kernel processes) in a rich operating system to perform mandatory access control when accessing a file. In some cases, in order to personalize the mandatory access control, the system and method may include a user mode service process operable to collect credentials from a user. Only after the user's credentials have been collected through the user mode service process can the secret key for decrypting the key attribute of the file be used in the trusted application.
[0315] The trusted application can also maintain a process tag activation record by soliciting credentials from the user when a process tag is assigned to a process and there is not already a process with that tag. The trusted application can then merge the process tag activation record into mandatory access control. By maintaining process tag activation based on user credentials and merging the process tag activation record into mandatory access control in the trusted application, mandatory access control can be personalized and can ensure that encrypted files can be accessed according to the access control policy only after a process that is allowed to access those files is launched by the user.
[0316] Although the above description describes the features of the example embodiments, it should be understood that some features and / or functions of the described embodiments are susceptible to modification without departing from the spirit and operating principles of the described embodiments. For example, the various features described by means of the represented embodiments or examples can be selectively combined with each other. In other cases, well-known methods, processes, and components are not described in detail herein to avoid confusing the description of the embodiments. Therefore, what has been described above is intended to illustrate the concepts claimed for protection and is not restrictive. Those skilled in the art will understand that other variations and modifications may be made without departing from the scope of the invention as defined by the appended claims. The scope of the claims should not be limited by the preferred embodiments and examples, but should be given the broadest interpretation consistent with the entire specification.
Claims
1. An access control system, comprising: (a) a processor configured to provide at least two isolated execution environments, wherein: The at least two isolated execution environments include a rich execution environment and a trusted execution environment, the processor is configured to operate a rich operating system in the rich execution environment and to operate a trusted operating system in the trusted execution environment, wherein a kernel of the rich operating system is configured to include a file access monitoring module, and wherein a trusted access monitoring application runs on the trusted operating system; and (b) a non-volatile memory configured to store a plurality of data files, wherein the plurality of data files includes a plurality of encrypted data files; Wherein, the file access monitoring module is configured as follows: receiving a file request for a requested file stored in the non-volatile memory, wherein the requested file corresponds to one of the plurality of encrypted data files, and wherein the file request is received from a requesting process running on the rich operating system; and sending file request data to the trusted access monitoring application, wherein the file request data includes file access data associated with the requested file and process identification data associated with the requesting process; The trusted access monitoring application is configured to: receiving the file request data; determining file identification data associated with the requested file from the file access data; determining whether to allow the requesting process to access the requested file by comparing the file identification data and the process identification data with file access criteria stored by the trusted access monitoring application; and In response to determining that the requesting process is allowed to access the requested file: deriving an encryption key corresponding to the requested file; and sending the encryption key to the file access monitoring module; and The file access monitoring module is configured to, in response to receiving the encryption key, decrypt the requested file using the encryption key and provide the decrypted file to the requesting process.
2. The access control system according to claim 1, wherein: Each of the plurality of encrypted data files is encrypted using a file-specific encryption key, and the file-specific encryption key is independently determined for each encrypted data file.
3. An access control system according to any one of claims 1 and 2, wherein: The file access data associated with the requested file includes key information, and the trusted access monitoring application is configured to use the key information to derive an encryption key corresponding to the requested file.
4. The access control system according to claim 1, wherein: (a) the file access data included in the file request data is encrypted file access data, wherein the encrypted file access data is encrypted using a secret access key stored by the trusted access monitoring application; and (b) the trusted access monitoring application is configured to determine the file access data from the received file request data by: (i) determining the secret access key associated with the requested file; (ii) decrypting the encrypted file access data using the secret access key; and (iii) determining that the file access data is the decrypted file access data.
5. The access control system according to claim 4, wherein: (a) The trusted access monitoring application is configured to: (i) storing the secret access key as an encrypted access key; and (ii) determining the secret access key by decrypting the encrypted access key.
6. The access control system according to claim 5, wherein: The trusted access monitoring application is configured to: (a) determining the secret access key by: (i) receiving user credentials from a user mode process running in the rich operating system, wherein the user credentials are received by the file access monitoring module; and (ii) decrypting the encrypted access key using the user credentials to determine the secret access key.
7. The access control system according to claim 1, wherein: The file access monitoring module and the trusted access monitoring application are configured to communicate using a secure communication channel, wherein the secure communication channel is established by the processor during the booting process of the rich operating system and the trusted operating system.
8. The access control system of claim 7, wherein: (a) The file access monitoring module is configured to store a shared communication channel key corresponding to the secure communication channel: (b) the trusted access monitoring application is configured to store the same shared communication channel key; (c) The file access monitoring module is further configured to send the file request data to the trusted access monitoring application in the following manner: (i) generating an encrypted file request message by encrypting the file request data using the shared communication channel key; (ii) generating a hash message by hashing the file request data using the shared communication channel key; as well as (iii) sending the encrypted file request message and the hash message to the trusted access monitoring application; and (d) The trusted access monitoring application is further configured to: (i) Determine the validity of the document request data by: generating a decrypted file request message by decrypting the encrypted file request message using the shared communication channel key; generating a hash decrypted message by hashing the decrypted file request message using the shared communication channel key; comparing the hash decrypted message with the hash message; as well as When the hash decrypted message matches the hash message, determining that the received file request data is valid; as well as (ii) determining that the requesting process is allowed to access the requested file only if the received file request data is valid.
9. The access control system of claim 1, wherein: (a) The file access monitoring module is configured to: (i) receiving a file creation request from a creation process running in the rich operating system; (ii) determining that the file creation request is related to creation of an additional encrypted data file; (iii) sending an encrypted file creation request to the trusted access monitoring application, wherein the encrypted file creation request includes process identification data corresponding to the creation process; (b) the trusted access monitoring application is configured to: (i) determining that the creation process is permitted to generate the additional encrypted data file by comparing the process identification data to file creation criteria stored by the trusted access monitoring application; (ii) in response to determining that the creation process is permitted to generate the additional encrypted data file, generating additional file identification data for the additional encrypted data file according to the file access criteria; generating additional key information for the additional encrypted data file; generating an additional encryption key for the additional encrypted data file using the additional key information; defining file access data using the additional file identification data and the additional key information; generating additional encrypted file access data by encrypting the file access data using a secret access key stored by the trusted access monitoring application; sending the additional encryption key and the additional encrypted file access data to the file access monitoring module; (c) The file access monitoring module is further configured to: (i) providing the additional encryption key and the additional encrypted file access data to a file system of the rich operating system, wherein the file system is operable to generate the additional encrypted data file using the additional encryption key, and the file system is operable to store the additional encrypted data file in the non-volatile memory and store the additional encrypted file access data in association with the additional encrypted data file in the non-volatile memory.
10. The access control system of claim 1, wherein: (a) the file request comprises a file operation request, wherein the file operation request identifies a requested operation that the requesting process is requesting to perform on the requested file; (b) the file access monitoring module is configured to include operation data related to the requested operation in the file request data sent to the trusted access monitoring application; (c) the trusted access monitoring application is configured to: (i) determining whether the requesting process is allowed to perform the requested operation on the requested file by comparing the file identification data, the process identification data and the operation data with the file access criteria stored by the trusted access monitoring application; as well as (ii) in response to determining that the requesting process is allowed to perform the requested operation on the requested file, sending an operation permission signal to the file access monitoring module; (iii) in response to determining that the requesting process is not allowed to perform the requested operation on the requested file, sending an operation denial signal to the file access monitoring module; (d) The file access monitoring module is further configured to: (i) in response to receiving the operation permission signal, providing the decrypted file to the requesting process to effect the requested operation; and (ii) in response to receiving the operation denial signal, preventing the requesting process from performing the requested operation.
11. The access control system of claim 1, wherein: (a) the trusted access monitoring application is configured to maintain an activation record of one or more user-specific processes running on the rich operating system, wherein the activation record includes active process identification data associated with each user-specific process running on the rich operating system; (b) The file access monitoring module is configured to: (i) in response to determining that a new user-specific process is running on the rich operating system, sending a process launch message to the trusted access monitoring application, wherein the process launch message includes the active process identification data associated with the new user-specific process, wherein the process launch message is generated using valid user credentials from a user of a processor, wherein the user credentials are solicited from a user after determining that the new user-specific process is running on the rich operating system; (ii) in response to determining that a specific user-specific process is no longer running on the rich operating system, sending a process termination message to the trusted access monitoring application, wherein the specific user-specific process is associated with active process identification data included in the activation record, wherein the process termination message includes the active process identification data with the specific user-specific process; and (c) the trusted access monitoring application is further configured to: (i) in response to receiving the process start message, updating the activation record to include the active process identification data associated with the new user-specific process; (ii) in response to receiving the process termination message, updating the activation record to remove the active process identification data associated with the user-specific specific process; and (iii) determining that the requesting process is permitted to access the requested file only if the activation record includes the active process identification data associated with the requesting process.
12. A method for controlling access to a plurality of data files stored in a non-volatile memory, wherein: The plurality of data files include a plurality of encrypted data files, the method is performed using a processor configured to provide at least two isolated execution environments, wherein the at least two isolated execution environments include a rich execution environment and a trusted execution environment, and the processor is configured to operate a rich operating system in the rich execution environment and to operate a trusted operating system in the trusted execution environment, the method comprising: (a) a file access monitoring module operating in a kernel of the rich operating system to: receiving a file request for a requested file stored in the non-volatile memory, wherein the requested file corresponds to one of the plurality of encrypted data files, and wherein the file request is received from a requesting process running on the rich operating system; and sending file request data to a trusted access monitoring application running on the trusted operating system, wherein the file request data includes file access data associated with the requested file and process identification data associated with the requesting process; (b) operating the trusted access monitoring application to: receiving the file request data; determining file identification data associated with the requested file from the file access data; determining whether to allow the requesting process to access the requested file by comparing the file identification data and the process identification data with file access criteria stored by the trusted access monitoring application; and In response to determining that the requesting process is allowed to access the requested file: deriving an encryption key corresponding to the requested file; and sending the encryption key to the file access monitoring module; and (c) operating the file access monitoring module to, in response to receiving the encryption key, decrypt the requested file using the encryption key and provide the decrypted file to the requesting process.
13. The method according to claim 12, wherein: Each of the plurality of encrypted data files is encrypted using a file-specific encryption key, and the file-specific encryption key is independently determined for each encrypted data file.
14. The method according to claim 12, wherein: The file access data associated with the requested file includes key information, and the method includes operating the trusted access monitoring application to derive the encryption key corresponding to the requested file using the key information.
15. The method of claim 12, wherein: (a) the file access data included in the file request data is encrypted file access data, wherein the encrypted file access data is encrypted using a secret access key stored by the trusted access monitoring application; and (b) The method includes operating a trusted access monitoring application to determine the file access data from the received file request data by: (i) determining the secret access key associated with the requested file; (ii) decrypting the encrypted file access data using the secret access key; and (iii) determining the file access data as the decrypted file access data.
16. The method of claim 15, further comprising: (a) operating the trusted access monitoring application to: (i) storing the secret access key as an encrypted access key; as well as (ii) determining the secret access key by decrypting the encrypted access key.
17. The method of claim 16, further comprising operating the trusted access monitoring application to: (a) determining the secret access key by: (i) receiving user credentials from a user mode process running in a rich operating system, wherein: receiving the user credentials via the file access monitoring module; as well as (ii) decrypting the encrypted access key using the user credentials to determine the secret access key.
18. The method of claim 12, further comprising: (a) establishing a secure communication channel during the startup process of the rich operating system and the trusted operating system; as well as (b) operating the file access monitoring module and the trusted access monitoring application to communicate using the secure communication channel.
19. The method of claim 18, further comprising: (a) operating the file access monitoring module to store a shared communication channel key corresponding to the secure communication channel: (b) operating said trusted access monitoring application to store the same said shared communication channel key; (c) operating the file access monitoring module to transmit the file request data to the trusted access monitoring application by: (i) generating an encrypted file request message by encrypting the file request data using the shared communication channel key; (ii) generating a hash message by hashing the file request data using the shared communication channel key; as well as (iii) sending the encrypted file request message and the hash message to the trusted access monitoring application; and (d) operating the trusted access monitoring application to: (i) Determine the validity of the document request data by: generating a decrypted file request message by decrypting the encrypted file request message using the shared communication channel key; generating a hash decrypted message by hashing the decrypted file request message using the shared communication channel key; comparing the hash decrypted message with the hash message; as well as When the hash decrypted message matches the hash message, determining that the received file request data is valid; as well as (ii) determining that the requesting process is allowed to access the requested file only if the received file request data is valid.
20. The method of claim 12, further comprising: (a) operating the file access monitoring module to: (i) receiving a file creation request from a creation process running in the rich operating system; (ii) determining that the file creation request is related to creation of an additional encrypted data file; (iii) sending an encrypted file creation request to the trusted access monitoring application, wherein the encrypted file creation request includes process identification data corresponding to the creation process; (b) operating the trusted access monitoring application to: (i) determining that the creation process is permitted to generate the additional encrypted data file by comparing the process identification data to the file creation criteria stored by the trusted access monitoring application; (ii) in response to determining that the creation process is permitted to generate the additional encrypted data file, generating additional file identification data for the additional encrypted data file according to the file access criteria; generating additional key information for the additional encrypted data file; generating an additional encryption key for the additional encrypted data file using the additional key information; defining file access data using the additional file identification data and the additional key information; generating additional encrypted file access data by encrypting the file access data using a secret access key stored by the trusted access monitoring application; sending the additional encryption key and the additional encrypted file access data to the file access monitoring module; (c) operating the file access monitoring module to: (i) providing the additional encryption key and the additional encrypted file access data to a file system of the rich operating system, wherein the file system is operable to generate the additional encrypted data file using the additional encryption key, and the file system is operable to store the additional encrypted data file in the non-volatile memory and store the additional encrypted file access data in association with the additional encrypted data file in the non-volatile memory.
21. The method of claim 12, wherein: The file request comprises a file operation request, wherein the file operation request identifies a requested operation that the requesting process is requesting to perform on the requested file, and the method further comprises: (a) operating the file access monitoring module to include operation data associated with a requested operation in the file request data sent to the trusted access monitoring application; (b) operating the trusted access monitoring application to: (i) determining whether the requesting process is allowed to perform the requested operation on the requested file by comparing the file identification data, the process identification data and the operation data with the file access criteria stored by the trusted access monitoring application; and (ii) in response to determining that the requesting process is allowed to perform the requested operation on the requested file, sending an operation permission signal to the file access monitoring module; (iii) in response to determining that the requesting process is not allowed to perform the requested operation on the requested file, sending an operation denial signal to the file access monitoring module; and (c) operating the file access monitoring module to: (i) in response to receiving the operation permission signal, providing the decrypted file to the requesting process to effect the requested operation; and (ii) in response to receiving the operation denial signal, preventing the requesting process from performing the requested operation.
22. The method of claim 12, further comprising: (a) operating the trusted access monitoring application to maintain an activation record of one or more user-specific processes running on the rich operating system, wherein the activation record includes active process identification data associated with each user-specific process running on the rich operating system; (b) operating the file access monitoring module to: (i) in response to determining that a new user-specific process is running on the rich operating system, sending a process launch message to the trusted access monitoring application, wherein the process launch message includes the active process identification data associated with the new user-specific process, wherein the process launch message is generated using valid user credentials from a processor user, wherein the user credentials are solicited from a user after determining that the new user-specific process is running on the rich operating system; (ii) in response to determining that a specific user-specific process is no longer running on the rich operating system, sending a process termination message to the trusted access monitoring application, wherein the specific user-specific process is associated with active process identification data included in the activation record, wherein the process termination message includes the active process identification data with the specific user-specific process; and (c) operating the trusted access monitoring application to: (i) in response to receiving the process start message, updating the activation record to include the active process identification data associated with the new user-specific process; (ii) in response to receiving the process termination message, updating the activation record to remove the active process identification data associated with the user-specific specific process; and (iii) determining that the requesting process is permitted to access the requested file only if the activation record includes the active process identification data associated with the requesting process.
23. A computer readable medium having stored thereon non-transitory computer readable instructions for controlling access to a plurality of data files stored in a non-volatile memory, wherein: The plurality of data files include a plurality of encrypted data files, the instructions may be executed by a processor configured to provide at least two isolated execution environments, wherein the at least two isolated execution environments include a rich execution environment and a trusted execution environment, the processor is configured to operate a rich operating system in the rich execution environment and to operate a trusted operating system in the trusted execution environment, wherein the instructions are defined to configure the processor to: (a) a file access monitoring module operating in the kernel of the rich operating system to: receiving a file request for a requested file stored in the non-volatile memory, wherein the requested file corresponds to one of the plurality of encrypted data files, and wherein the file request is received from a requesting process running on the rich operating system; and sending file request data to a trusted access monitoring application running on the trusted operating system, wherein the file request data includes file access data associated with the requested file and process identification data associated with the requesting process; (b) operating the trusted access monitoring application to: receiving the file request data; determining file identification data associated with the requested file from the file access data; determining whether to allow the requesting process to access the requested file by comparing the file identification data and the process identification data with file access criteria stored by the trusted access monitoring application; and In response to determining that the requesting process is allowed to access the requested file: deriving an encryption key corresponding to the requested file; and sending the encryption key to the file access monitoring module; and (c) operating the file access monitoring module to, in response to receiving the encryption key, decrypt the requested file using the encryption key and provide the decrypted file to the requesting process.
24. The computer readable medium of claim 23, wherein: The instructions are defined as configuring the processor to perform the method of any one of claims 13 to 22 .
