Personalized Cryptographically Secure Access Control in Operating Systems

By configuring a personalized cryptographically secure access control system in the computer system, using kernel modules and application tokens and other technologies, the problem of poor data security in mobile operating systems is solved, and the application data is realized Effective protection and performance balance.

CN113168476BActive Publication Date: 2024-11-01BICDROID +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980078025.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-11-30
Filing Date
2019-11-26
Publication Date
2024-11-01
Estimated Expiration
2039-11-26

AI Technical Summary

Technical Problem

Existing operating systems often struggle to balance flexibility and hardware compatibility when providing data security, resulting in poor data security, especially in mobile operating systems such as Android OS, where users may relax or disable system protection features to avoid Complex configuration and performance impact.

Method used

An access control system was designed to manage data access by configuring personalized cryptographically secure access control in a computer system, using kernel modules to manage data access, including encryption of multiple isolated execution environments and data files, using application tokens and User codes are authenticated and authorized to ensure that only verified applications can access protected data files.

Benefits of technology

Effectively protect application data from attacks, including ransomware, phishing and root privilege attacks, improving data security while avoiding the negative performance impact of complex system configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113168476B_ABST
    Figure CN113168476B_ABST
Patent Text Reader

Abstract

The present invention proposes an access control system, which includes a processor configured to provide a trusted execution environment isolated from a rich execution environment. A rich operating system runs in the rich execution environment, and a trusted operating system runs in the trusted execution environment. A plurality of protected data files are stored in a non-volatile memory. When a process requests access to a protected data file, the computer system allows the requesting process to access the requested data file only when there is a verified application token corresponding to the requesting process. The process of generating an application token for an associated application is as follows: detecting the start of a first process associated with the associated application; determining that a valid user code is available in the trusted execution environment; after determining that the valid user code is available in the trusted execution environment, generating the application token using the valid user code.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of U.S. Provisional Application No. 62 / 773,524, filed on November 30, 2018, the entire 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 protected data files in an operating system. Background Art

[0004] The following does not represent that anything 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 for people, companies and countries. As a result, extensive measures are taken to ensure the security of sensitive data. However, as hackers become more and more aggressive, data security challenges are also becoming more severe.

[0006] Data security is critical in any operating system. However, different operating systems may present different and unique challenges in providing data security. Operating systems designed with end-user flexibility and hardware compatibility as the goal may have difficulty ensuring data security. For example, mobile operating systems such as Android™ OS, which are generally considered more flexible and were originally designed to provide flexibility to end users and be compatible with different types of hardware, have poor data security compared to other mobile operating systems such as iOS. At the same time, operating systems designed to provide strong data security may require complex or difficult system configuration and may even affect system performance. As a result, users may relax or disable certain system protection features to evade complex system configuration and / or mitigate the impact on system performance. Summary of the invention

[0007] More details are described below. This description is not intended to limit or define any claimed or unclaimed invention. One or more inventions may exist in any combination or sub-combination of elements or process steps disclosed in any part of this document including its claims and drawings.

[0008] A computer system can be configured to provide personalized, cryptographically secure access control. The access control system can implement cryptographic techniques at multiple different stages of data access. Cryptographic techniques can include data encryption, as well as establishing a personalized and cryptographically secure chain of trust from the end user, application, framework, kernel to the trusted execution environment. Implementing and applying the above access control system techniques on an operating system like the Android operating system can help protect application data from known and unknown attacks, including framework-level ransomware, phishing attacks, and / or attacks through abuse of root privileges.

[0009] The access control system may include a kernel module that interacts with various components of the computer system to manage data access control. The kernel module may interact with framework utilities to collect attributes from applications and / or users. The kernel module may interact with trusted applications running in a trusted execution environment to accomplish key management. The kernel module may manage data structures in kernel memory that may be used for process authentication and authorization. The kernel module may also control file system operations that may be used to access protected and encrypted data stored on the computer system.

[0010] Broadly speaking, there is provided an access control system for a computing device, the access control system comprising:

[0011] (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 being configured to run a rich operating system in the rich execution environment and a trusted operating system in the trusted execution environment; and

[0012] (b) a non-volatile memory configured to store a plurality of data files and a plurality of application instruction sets, wherein each application instruction set corresponds to an application installed on the computing device and each application is configured to run in the rich operating system, wherein the plurality of data files includes a plurality of protected data files;

[0013] (c) wherein the processor is configured to:

[0014] (i) receiving a file request for a requested data file stored in a non-volatile memory, wherein the requested data file corresponds to a protected data file among the plurality of protected data files, and wherein the file request is received from a requesting process running within the rich operating system;

[0015] (ii) determining an associated application associated with the requesting process, wherein the associated application corresponds to an application installed on the computing device;

[0016] (iii) determine whether a verified application token exists for the associated application; and

[0017] (iv) only when the verified application token is present, allowing the requesting process to access the requested data file; otherwise, preventing the requesting process from accessing the requested data file;

[0018] The processor is configured to generate the verified application token for the associated application in the following manner:

[0019] detecting a launch of a first process associated with the associated application;

[0020] ensuring that a valid user code is available within the trusted execution environment; and

[0021] After determining that the valid user code is available within the trusted execution environment, an application token is generated using the valid user code.

[0022] In any embodiment, the processor can be configured to, in conjunction with the launch of the first process, generate an application launch prompt, wherein the application launch prompt is defined as prompting a user to enter a user code; receive an application launch input in response to the application launch prompt; determine whether the application launch input corresponds to the valid user code; and after determining that the application launch input corresponds to the valid user code, use the user code to generate the above-mentioned application token.

[0023] In any embodiment, determining whether the application launch input corresponds to the valid user code may include: determining a received user code from the application launch input; determining a hashed user code by performing a hash calculation on the received user code; comparing the hashed user code with a hashed user code stored in a trusted non-volatile memory of a trusted execution environment; when the hashed user code matches the stored hashed user code, determining that the received user code corresponds to the valid user code; otherwise, determining that the received user code is invalid.

[0024] In any embodiment, the processor may be configured to generate the application token by: determining a timestamp corresponding to a launch of the first process; and generating the application token using the timestamp and the valid user code.

[0025] In any embodiment, the processor can be configured to: associate each protected data file with a file-specific application group, wherein the file-specific application group includes at least one application installed on the computing device; and allow the requesting process to access the requested data file only if the associated application associated with the requesting process is an application in the file-specific application group associated with the requested data file.

[0026] In any embodiment, the processor can be configured to: define a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; and allow the requesting process to access the requested data file only if the associated application is one of the protected applications.

[0027] In any embodiment, the processor may be configured to, for each new file generated by one of the protected applications, automatically store the file as one of the protected data files.

[0028] In any embodiment, for each application installed on the computing device, the processor can be configured to assign a unique application identifier to the application, wherein the application identifier is defined by using a unique application identification code defined by the processor and an application certificate corresponding to the application, and the processor can be configured to generate the application token for the associated application by using the unique application identifier of the associated application and the valid user code.

[0029] In any embodiment, for each application installed on the computing device, the processor can be configured to define the application identifier in the following manner: generate a hashed application certificate by hashing the application certificate corresponding to the application; and combine the application identification code and the hashed application certificate.

[0030] In any embodiment, the processor can be configured to, when the first process associated with the associated application is started, verify an application certificate corresponding to the associated application; generate a verified application launch prompt in response to verifying the application certificate, wherein the verified application launch prompt is defined as prompting a user to enter a user code; receive a verified application launch input in response to the verified application launch prompt; determine whether the verified application launch input corresponds to the valid user code; and allow the associated application to execute only after the application certificate has been verified and the verified application launch input corresponds to the valid user code.

[0031] In any embodiment, the processor can be configured to: assign a unique application identifier to each application installed on the computing device, wherein the application identifier is defined by using a unique application identification code defined by the processor and an application certificate corresponding to the application; define a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; define an access policy file, wherein the access policy file includes the unique application identifier of each protected application in the protected application group; store the access policy file in a non-volatile memory; and allow the requesting process to access the requested data file only if the access policy file contains the unique application identifier of the associated application.

[0032] In any embodiment, the processor can be configured to: store the access policy file in a non-volatile memory in a manner associated with a hash code corresponding to the effective user code; prohibit modification of the access policy file unless a policy modification input corresponding to the effective user code is received and verified with the hash code corresponding to the effective user code; and allow read operations on the access policy file in the absence of a policy modification input.

[0033] In any embodiment, the processor can be configured to: define an access policy data structure in kernel memory accessible within the rich operating system; and synchronize the access policy data structure with the access policy file stored in the non-volatile memory so that the access policy data structure includes a unique application identifier for each protected application in the protected application group.

[0034] In any embodiment, the processor may be configured to: verify an application certificate corresponding to the associated application when the first process associated with the associated application is started; after verifying the application certificate, determine whether the associated application is one of the protected applications by: determining a unique application identifier of the associated application; and determining whether the unique application identifier of the associated application is contained in the access policy data structure; and when the access policy data structure contains the unique application identifier of the associated application, determine that the associated application is one of the protected applications; otherwise, determine that the associated application is an unprotected application; after determining that the associated application is one of the protected applications, generate a protected application launch prompt, wherein the protected application launch prompt is defined as prompting a user to enter a user code; receive a protected application launch input in response to the protected application launch prompt; determine whether the protected application launch input corresponds to the valid user code; and allow the associated application to execute only after the processor determines that the protected application launch input corresponds to the valid user code; and after determining that the associated application is an unprotected application, allow the associated application to execute. The processor may be configured to, after determining that the associated application is an unprotected application, allow the associated application to run even without a user code.

[0035] In any embodiment, the processor can be configured to: determine a process identifier associated with the requesting process when the requesting process is started; verify an application certificate corresponding to the associated application; after verifying the application certificate, determine whether the associated application is one of the protected applications; upon determining that the associated application is one of the protected applications, generate a process startup prompt, wherein the process startup prompt is defined as prompting a user to enter a user code; receive a process startup input in response to the process startup prompt; determine whether the process startup input corresponds to the valid user code; upon determining that the associated application is one of the protected applications and the process startup input corresponds to the valid user code, store the process identifier of the requesting process in an authorized process data structure in kernel memory accessible within the rich operating system; and only if the authorized process data structure contains the process identifier of the requesting process, allow the requesting process to access the requested data file.

[0036] In any embodiment, the processor can be configured to: receive a write operation request from a specific process running within a rich operating system, wherein the write operation request is related to a protected data file; and allow the write operation request to occur only when the authorized process data structure contains a process identifier of the above-mentioned specific process.

[0037] In any embodiment, the processor can be configured to: detect the termination of a terminating process running in the rich operating system; determine that the authorized process data structure contains a process identifier of the terminating process; and update the authorized process data structure to delete the process identifier of the terminating process.

[0038] In any embodiment, the processor may be configured to: store the access policy file in a non-volatile memory in association with a hash code corresponding to the valid user code; receive a policy update input specifying that a specific application is to be added to the protected application group; generate an update verification prompt in response to the policy update input, wherein the update verification prompt is defined as prompting a user to enter a user code; receive an update verification input in response to the update verification prompt; determine whether the update verification input corresponds to the valid user code using a hash code corresponding to the valid user code stored in association with the access policy file; upon determining that the update verification input corresponds to the valid user code, update the access policy file to include the specific application; identify a set of existing data files corresponding to the specific application stored in the non-volatile memory; and modify each existing data file from an unprotected data file to a protected data file.

[0039] In a broad sense, there is provided a method of controlling access to a plurality of data files stored in a non-volatile memory of a computing device, wherein the plurality of data files include a plurality of protected data files, the method being performed by a processor configured to run a rich operating system in a rich execution environment and a trusted operating system in a trusted execution environment, the method comprising:

[0040] (a) receiving, by the processor, a file request for a requested data file stored in a non-volatile memory, wherein the requested data file corresponds to a protected data file among the plurality of protected data files, and wherein the file request is received from a requesting process running within the rich operating system;

[0041] (b) determining, by the processor, an associated application associated with the requesting process, wherein the associated application corresponds to an application among applications installed on the computing device;

[0042] (c) determining, by the processor, whether a verified application token exists for the associated application; and

[0043] (d) the processor allows the requesting process to access the requested data file only when the verified application token is present, otherwise the processor prevents the requesting process from accessing the requested data file;

[0044] The processor generates the verified application token for the associated application in the following manner:

[0045] detecting a launch of a first process associated with the associated application;

[0046] Determining that a valid user code is available within the trusted execution environment; and

[0047] After determining that the valid user code is available within the trusted execution environment, an application token is generated using the valid user code.

[0048] In any embodiment, the method may include: generating, by the processor in conjunction with the launch of the first process, an application launch prompt, wherein the application launch prompt is defined as prompting a user to enter a user code; receiving, by the processor, an application launch input in response to the application launch prompt; determining, by the processor, whether the application launch input corresponds to the valid user code; and after determining that the application launch input corresponds to the valid user code, generating, by the processor, the application token using the user code.

[0049] In any embodiment, determining whether the application startup input corresponds to the valid user code may include the following steps: determining a received user code from the application startup input; determining a hashed user code by performing a hash calculation on the received user code; comparing the hashed user code with a hashed user code stored in a trusted non-volatile memory of a trusted execution environment; and, when the hashed user code matches the stored hashed user code, determining that the received user code corresponds to the valid user code, otherwise determining that the received user code is invalid.

[0050] In any embodiment, the method may include generating the application token by: determining a timestamp corresponding to the initiation of the first process; and generating the application token using the timestamp and the valid user code.

[0051] In any embodiment, the method may include: associating each protected data file with a file-specific application group, wherein the file-specific application group includes at least one application installed on the computing device; and allowing the requesting process to access the requested data file only if the associated application associated with the requesting process is an application in the file-specific application group associated with the requested data file.

[0052] In any embodiment, the method may include: defining a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; and allowing the requesting process to access the requested data file only if the associated application is one of the protected applications.

[0053] In any embodiment, the method may include, for each new file generated by one of the protected applications, automatically storing the file as one of the protected data files.

[0054] In any embodiment, the method may include: for each application installed on the computing device, assigning a unique application identifier to the application, wherein the application identifier is defined by using a unique application identification code defined by the processor and an application certificate corresponding to the application; and generating the application token for the associated application by using the unique application identifier of the associated application and the valid user code.

[0055] In any embodiment, the method may include: for each application installed on the computing device, defining the application identifier by: generating a hashed application certificate by hashing the application certificate corresponding to the application; and combining the application identifier and the hashed application certificate.

[0056] In any embodiment, the method may include: verifying an application certificate corresponding to the associated application when the first process associated with the associated application is started; generating a verified application launch prompt in response to verifying the application certificate, wherein the verified application launch prompt is defined as prompting a user to enter a user code; receiving a verified application launch input in response to the verified application launch prompt; determining whether the verified application launch input corresponds to the valid user code; and allowing the associated application to execute only after the application certificate has been verified and the verified application launch input corresponds to the valid user code.

[0057] In any embodiment, the method may include: for each application installed on the computing device, assigning a unique application identifier to the application, wherein the application identifier is defined by using a unique application identification code defined by the processor and an application certificate corresponding to the application; defining a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; defining an access policy file, wherein the access policy file includes the unique application identifier of each protected application in the protected application group; storing the access policy file in a non-volatile memory; and allowing the requesting process to access the requested data file only if the access policy file contains the unique application identifier of the associated application.

[0058] In any embodiment, the method may include: storing the access policy file in a non-volatile memory in association with a hash code corresponding to the effective user code; prohibiting modification of the access policy file unless a policy modification input corresponding to the effective user code is received and verified with the hash code corresponding to the effective user code; and allowing read operations on the access policy file in the absence of a policy modification input.

[0059] In any embodiment, the method may include: defining an access policy data structure in kernel memory accessible within the rich operating system; and synchronizing the access policy data structure with the access policy file stored in a non-volatile memory so that the access policy data structure includes a unique application identifier for each protected application in the protected application group.

[0060] In any embodiment, the method may include: when the first process associated with the associated application is started, verifying an application certificate corresponding to the associated application; after verifying the application certificate, determining whether the associated application is one of the protected applications by: determining a unique application identifier of the associated application; and determining whether the unique application identifier of the associated application is contained in the access policy data structure; and when the access policy data structure contains the unique application identifier of the associated application, determining that the associated application is one of the protected applications; otherwise, determining that the associated application is an unprotected application; after determining that the associated application is one of the protected applications, generating a protected application launch prompt, wherein the protected application launch prompt is defined as prompting a user to enter a user code; receiving a protected application launch input in response to the protected application launch prompt; determining whether the protected application launch input corresponds to the valid user code; and allowing the associated application to execute only after the processor determines that the protected application launch input corresponds to the valid user code; and allowing the associated application to execute after determining that the associated application is an unprotected application. The processor may be configured to, after determining that the associated application is an unprotected application, allow the associated application to run even without a user code.

[0061] In any embodiment, the method may include: determining a process identifier associated with the requesting process when the requesting process is started; verifying an application certificate corresponding to the associated application; after verifying the application certificate, determining whether the associated application is one of the protected applications; upon determining that the associated application is one of the protected applications, generating a process startup prompt, wherein the process startup prompt is defined as prompting a user to enter a user code; receiving a process startup input in response to the process startup prompt; determining whether the process startup input corresponds to the valid user code; upon determining that the associated application is one of the protected applications and the process startup input corresponds to the valid user code, storing the process identifier of the requesting process in an authorized process data structure in kernel memory accessible within the rich operating system; and allowing the requesting process to access the requested data file only if the authorized process data structure contains the process identifier of the requesting process.

[0062] In any embodiment, the method may include: receiving a write operation request from a specific process running in a rich operating system, wherein the write operation request is related to a protected data file; and allowing the write operation request to occur only when an authorized process data structure includes a process identifier of the specific process.

[0063] In any embodiment, the method may include: detecting the termination of a terminating process running in a rich operating system; determining that the authorized process data structure contains a process identifier of the terminating process; and updating the authorized process data structure to delete the process identifier of the terminating process.

[0064] In any embodiment, the method may include: storing the access policy file in a non-volatile memory in an associated manner with a hash code corresponding to the valid user code; receiving a policy update input specifying that a specific application is to be added to the protected application group; generating an update verification prompt in response to the policy update input, wherein the update verification prompt is defined as prompting a user to enter a user code; receiving an update verification input in response to the update verification prompt; using a hash code corresponding to the valid user code stored in an associated manner with the access policy file, determining whether the update verification input corresponds to the valid user code; upon determining that the update verification input corresponds to the valid user code, updating the access policy file to include the specific application; identifying a set of existing data files corresponding to the specific application stored in the non-volatile memory; and modifying each existing data file from an unprotected data file to a protected data file.

[0065] In a broad sense, there is provided 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 computing device comprises a processor configured to run a rich operating system in a rich execution environment and a trusted operating system in a trusted execution environment, wherein the plurality of data files comprises a plurality of protected data files, wherein the instructions are defined to configure the processor to:

[0066] (a) receiving a file request for a requested data file stored in a non-volatile memory, wherein the requested data file corresponds to a protected data file among the plurality of protected data files, and wherein the file request is received from a requesting process running within a rich operating system;

[0067] (b) determining an associated application associated with the request process, wherein the associated application corresponds to an application installed on the computing device;

[0068] (c) determine whether a verified application token exists for the associated application; and

[0069] (d) only when the verified application token is present, the requesting process is allowed to access the requested data file; otherwise, the requesting process is prevented from accessing the requested data file;

[0070] The instructions are defined as configuring the processor to generate the verified application token for the associated application in the following manner:

[0071] detecting a launch of a first process associated with the associated application;

[0072] Determining that a valid user code is available within the trusted execution environment; and

[0073] After determining that the valid user code is available within the trusted execution environment, an application token is generated using the valid user code.

[0074] In any embodiment, the computer readable medium may also include instructions defined to configure the processor to perform any of the methods described herein.

[0075] 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.

[0076] These and other features of various embodiments are described in more detail below. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] The accompanying drawings serve to illustrate various examples of the documents, methods, and apparatus taught in this specification and are not intended to limit the scope of the teachings in any way.

[0078] Figure 1 is a block diagram illustrating a computer system according to an embodiment.

[0079] Figure 2 is a diagram showing an embodiment of a computer system Figure 1 Flowchart of an example process for authorizing a process used in .

[0080] Figure 3 is a diagram showing an embodiment of a computer system Figure 1Flowchart of the example process used in for generating an application token. DETAILED DESCRIPTION

[0081] The drawings described below are intended to illustrate, but not limit, various 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. It should be understood that for simplicity and clarity of illustration, reference numerals may be repeated multiple times in the drawings to indicate corresponding or similar elements or steps, where appropriate.

[0082] Below are examples of embodiments of the claimed subject matter, and various systems or methods will be described. The embodiments described below do not limit any claimed subject matter, and any claimed subject matter may cover a method or system 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 instrument, such as a continuation patent application. The applicant, inventor, or owner does not intend to waive or cancel the rights and interests of any such subject matter through the disclosure of this document.

[0083] In addition, it should be understood that, 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 herein in order to provide a thorough understanding of the embodiments described herein. However, it will be appreciated by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other cases, well-known methods, processes, and components are not described in detail herein to avoid making the embodiments described herein unclear. Moreover, any description should not be considered to limit the scope of the embodiments described herein.

[0084] The terms "embodiment", "one or more embodiments", "some embodiments" and "an embodiment" mean "one or more" but do not contemplate all embodiments unless expressly stated otherwise.

[0085] It should be noted that the terms of degree used herein, such as "substantially", "approximately" and "approximately", mean a reasonable amount of deviation of the modified term such that the end result will not be significantly changed. If the term of degree does not offset the meaning of the term it modifies, these terms of degree can also be construed as including a deviation of the term.

[0086] Furthermore, any recitation of numerical ranges of endpoints herein includes all numbers and fractions subsumed 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 there can be a variation of up to a certain amount without a significant change in the end result.

[0087] Example embodiments of the systems and methods described herein may be implemented as a combination of hardware or software. In some cases, the devices may be implemented, at least in part, by using one or more computer programs, in 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). 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, etc.), depending on the nature of the device.

[0088] It should also be noted that there may be some elements for implementing at least a portion of one of the embodiments described herein, which can be implemented by software written in a high-level computer programming language (e.g., object-oriented). Therefore, 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 the art of object-oriented programming. In addition or in addition, software can be written in assembly language, machine language, or firmware as needed to implement some of these elements. In either case, the programming language can be a compiled language or an interpreted language.

[0089] At least some of these software programs may be stored on a storage medium (e.g., but not limited to, a computer-readable medium such as a ROM, a magnetic disk, an optical disk) or a general or special-purpose 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.

[0090] 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.

[0091] 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 the 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.

[0092] An operating system (OS) is software (consisting of multiple 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.

[0093] The processor may be configured to distinguish between instructions from the kernel and instructions from programs other than the kernel, and execute instructions in separate modes (i.e., kernel mode and user mode). Processes instantiated within an operating system from programs other than the kernel (i.e., outside the kernel) may be referred to herein as user mode processes. The corresponding programs or applications may be referred to as user mode applications.

[0094] Within the kernel, the file system is an essential module that provides user-mode processes with access to non-volatile storage such as disks, flash memory, etc. From the perspective of a user-mode process, the process accesses and operates (e.g., opens, reads / writes / closes files, etc.) on non-volatile storage by issuing system calls to the OS kernel. Upon receiving these system calls, the OS kernel manages whether the requesting process is allowed and how to access the requested file. 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 initiator (the requesting process) and the target file, using the file system module to execute the system call if access is allowed, and notifying the user-mode process through the return value of the system call.

[0095] 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.

[0096] 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 and converts ciphertext into plaintext using a secret (e.g., the encryption key or a different decryption key depending on the encryption method used).

[0097] 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.

[0098] Many operating systems involve a trade-off between usability for end users and data security. It is often believed that operating systems designed to provide flexibility and compatibility to end users lack data security. As a result, private or confidential data may be at risk of being disclosed or intercepted.

[0099] Operating systems designed to provide enhanced data security are often perceived as inflexible, complex, and / or reduce system performance. This may prevent widespread adoption and / or cause users to disable security features to improve usability or performance. As a result, private or confidential data may still be exposed.

[0100] Android is a mobile operating system designed primarily for use with touchscreen mobile devices such as smartphones and tablets. The Android operating system is based on a modified Linux kernel.

[0101] Android is an example of an operating system that is often considered to provide flexibility and hardware compatibility at the expense of data security. Many different approaches have been proposed to improve the security of the Android operating system, such as sandboxing, screen shortcode locks and smart locks, file-based encryption, and mandatory access controls such as SELinux. In addition, users are encouraged to adopt best practices such as timely updates and enforcing user permission controls. However, these techniques may still be ineffective against certain types of attacks, such as abuse exploration of root privileges.

[0102] Sandboxing and mandatory access control are techniques that can be used to prevent unauthorized access to protected data. In mandatory access control, each user-mode process can be tagged with an associated process label and each file can have an associated file label. Access policies can be predefined and loaded into kernel memory.

[0103] An access policy can specify whether a user mode process with a particular process label can access a file with a particular file label. In some cases, an access policy can include access criteria for each process label and file label (e.g., for each possible combination of process label and file label). When a user mode process issues an operation request to a file, the kernel can check the user mode process's label and the file's label against a predefined policy. The kernel can then grant or deny the operation request accordingly.

[0104] A sandbox can restrict the set of resources accessible to a specific application running on a computing system. Sandboxes can be defined based on discretionary access control by creating a unique Linux UID for each application at installation time. This process has been used in the implementation of the Android operating system even before Android 4.3.

[0105] Mobile operating systems can also be configured to implement file-based encryption methods. File-based encryption protects data at rest from being compromised. With encryption, plaintext data files are encoded into an obfuscated form that is unrecognizable unless decrypted using the corresponding decryption key. The Android operating system has included file-based encryption since Android 7.0.

[0106] Security-Enhanced Linux (SELinux) provides a set of modifications to the Linux kernel to facilitate the enforcement of mandatory access control policies. SELinux also enhances the operation of the sandbox in the operating system. SELinux has been included in the Android operating system since Android version 4.3.

[0107] SELinux involves controlling data access using defined access policies. Access policies often rely on the application identifier (UID or AppID) and process ID (PID) of the process requesting access to the data. In theory, SELinux is a powerful tool for providing a high level of data security. However, operating systems that implement SELinux are still vulnerable to abuse of root privileges.

[0108] The application ID and process ID for a given application and process are generated by the operating system without any input from the user or external systems. As a result, the root user (e.g., when the rich operating system is root) can modify the application ID. For example, the root user or a process with root privileges may disable SELinux. The superuser may also utilize system calls and / or system utilities to modify existing SELinux policies and / or create new SELinux policies. Any of these actions may compromise data security.

[0109] SELinux is also notorious for its complexity and difficulty in configuration, as well as its interference with system performance. In practice, this often leads to the relaxation or disabling of SELinux protections to avoid complex configuration or to reduce interference with system performance. As a result, the data security provided by SELinux may be compromised.

[0110] SELinux also typically lacks fine granularity in its configuration policies and is often unable to configure access policies on demand and / or on the fly. SELinux may also fail to provide adequate protection for the labels it assigns to data, applications, and processes. Additionally, the labels assigned to data, applications, and processes in computing devices are often completely disconnected from the end user (e.g., the generation and assignment of labels is performed without any user input).

[0111] While the above data security technologies provide some protection for user data and applications, they are often still vulnerable to sophisticated attacks. In a 2017 report published by eSecurityPlanet, 64% of security experts surveyed questioned their organizational-level ability to prevent mobile data breaches. The report also found that more than a third of companies fail to adequately secure mobile devices. Therefore, mobile data security remains a serious and real problem for many organizations. Developing new data security methods that can address some of the shortcomings of the above technologies can help improve organizational-level data security and help prevent mobile data breaches.

[0112] Embodiments described herein provide systems, methods, and computer program products that can control access to data stored on a computer system. Embodiments described herein can control whether an application or process has the right to access certain data files (referred to herein as protected data files) stored in a computer system.

[0113] A computer system can be thought of as having a series or stack of conceptual layers. For example, a mobile computing system running with the Android operating system may include conceptual layers such as an end-user layer, an application layer, a framework layer, and a kernel layer. In some cases, a computing system may include other conceptual layers, such as a trusted execution environment (TEE).

[0114] Embodiments described herein may define access control systems and methods that operate across various conceptual levels of a computing system. The access control systems and methods may be configured to establish a secure chain of trust across conceptual levels of a computing system, such as from end users to application, framework and kernel levels, and then to a trusted execution environment.

[0115] Embodiments described herein may apply cryptographic techniques, including data encryption, to various stages of data access. Embodiments described herein may provide personalized and cryptographically secure access control (PACSAC) to establish a personalized and cryptographically secure chain of trust throughout a computer system (e.g., across all conceptual system levels).

[0116] The access control system and method described herein can be implemented to protect application data in an operating system such as the Android operating system. For each application to be protected, a user password (e.g., a user code) can be used to password protect the creation of an application identifier for identifying a particular application. The application identifier can also be used to identify processes and / or data / files associated with the corresponding application. User secrets can also be used to generate file access data (e.g., key material) for a given application.

[0117] The application identification and file access data may be used to authenticate and authorize a process corresponding to a given application. The access control system may be configured to allow a process to access protected data files only after the end user (or at least by using a user code) authenticates and authorizes the process for the protected data files. The authentication and authorization process may be cryptographically protected using a user password. Thus, for each protected application, the corresponding protected data may be protected from various attempts at intrusion, such as abuse of root privileges, ransomware attacks, and data breaches.

[0118] The embodiments described herein can overcome the shortcomings of some existing data security technologies, such as SELinux. SELinux relies on application identification codes (UID or AppID) and process IDs and access policies to provide access control. In SELinux, application identification codes and process IDs are generated by the computing system without input from the end user and without the use of user passwords. As a result, the application identification code can be modified by the root user (for example, when the rich operating system is root.) The embodiments described herein can help resist such root privilege abuse attacks by further password authenticating the process when the process is about to run. For example, the process can be authenticated based on a valid user code. The valid user code can be a stored user code received from the user, or already stored in the computing system (for example, stored in a trusted execution environment), or even a code stored outside the computing system.

[0119] For example, a PIN code or password for unlocking a phone (once received from a user) can be used as a user code. In some cases, the computing system can prompt the user to provide a user code to perform various authentication and / or authorization processes (e.g., when a process is initiated). Alternatively or additionally, the user code can be stored in the system after it is initially received and can be reused for subsequent authorization and / or authentication processes (e.g., when a subsequent process is initiated).

[0120] Alternatively, a user code may be stored in the device without requiring direct input from the end user. For example, a predefined user code may be associated with an application preinstalled on a computing device. The predefined user code may be stored on a computing system, such as in a non-volatile memory of a trusted execution environment. Thus, the predefined user code may be used to protect, authenticate, and authorize the preinstalled application.

[0121] System Architecture

[0122] The computer system architecture described below may be used alone or in any combination or sub-combination with other features or disclosed features in any access control system or method. The features include: user codes, application identification, application tokens, file access data, methods for adding applications to protected areas, methods for authenticating processes, methods for authorizing processes to access data files, protected data files, methods for launching applications, methods for generating new protected data files, and methods for accessing protected data files.

[0123] Figure 1 An example of a computer system 100 that can be used in accordance with embodiments described herein is shown. Figure 1The 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. Figure 1 The illustrated computer system 100 is an example of a computer system that may be used to provide personalized cryptographically secure access control.

[0124] exist Figure 1 In the example shown, the computer system 100 includes multiple system layers. As shown, the system layers include an end-user layer 110, an application layer 120, and an operating system layer. The operating system layer may include multiple operating system layers, such as an operating system framework 130, a kernel 140, and a trusted execution environment (TEE) 150.

[0125] Generally, the computer system 100 may include a processor (eg, a microprocessor having one or more CPU cores) and a memory. The processor may be coupled to the memory via a computer data bus.

[0126] The memory may include volatile memory and non-volatile memory such as non-volatile memory 109. Non-volatile memory stores computer programs consisting of computer executable instructions, which can be loaded into volatile memory as needed for execution by the processor. It will be understood by those skilled in the art that referring to the computer system 100 herein as performing a function or acting in a particular manner 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.

[0127] For example, non-volatile memory 109 may store a plurality of application instruction sets. Each application instruction set may correspond to one of applications 102 installed on computing device 100. The application instruction set may define the operation of application 102 configured to run within a rich operating system.

[0128] The memory may also store data to and from the processor during execution of computer executable instructions.For example, the non-volatile storage memory 109 may be configured to store a plurality of data files.

[0129] The file system module 108 operating within the kernel 140 may be configured to use a database structure to store data files in the non-volatile memory 109. For example, a relational database or a non-relational database, such as a key-value database, a NoSQL database, etc., may be used to store data files.

[0130] The plurality of data files may include a plurality of protected data files. The computer system may be configured to control access to the protected data files. For example, access to the protected data files may be limited to processes authorized for the protected data files.

[0131] The plurality of data files may include a plurality of encrypted data files. For example, some or all protected data files may be stored as encrypted data files. In some cases, other data files may also be stored as encrypted data files. For example, in some systems, all data files stored on the non-volatile memory 109 may be encrypted.

[0132] The file tag may be stored in association with the data file assigned to it in the non-volatile memory 109. For example, the file tag may be stored by the file system as a file attribute. Then, when the associated data file is accessed, the file attribute may be read into the kernel memory.

[0133] Computer system 100 can implement access control procedures to protect protected data files from unauthorized access. For example, computer system 100 can be configured to prevent a particular application from accessing an associated protected file when a verified application token is not currently present for the particular application. Processes associated with the application are allowed to access protected data files only when a verified application token is present for the associated application.

[0134] The processor may be configured to provide at least two isolated execution environments. The isolated execution environments may include a rich execution environment (REE) and a trusted execution environment (TEE) 150. The rich execution environment may support various components of a computing device operating system, such as a framework 130 and a kernel 140. The processor may define the REE and the trusted environment 150 to operate in isolation from each other, so that components running in the REE cannot access code and data loaded into the trusted environment 150. The trusted environment 150 may be contained within a more secure portion of the processor, thereby providing greater security for the trusted environment 150. Computer memory may be divided into two parts, secure memory and non-secure memory. Secure memory can only be accessed by the trusted environment 150.

[0135] In some examples, the processor can be configured to provide separate operating systems in the REE and TEE 102. The processor can operate the rich operating system in the REE. Examples of rich operating systems that can run in a rich execution environment include Android™ operating system, Linux operating system, Microsoft Windows™ operating system, etc. The rich operating system can include a kernel 140 that helps processes associated with the application 102 running on the rich operating system to access resources of the computer system 100. The application can call the kernel 140 to access files stored in the non-volatile storage memory 109 and perform operations on them. During normal operation, the user 101 and the computer system 100 can only interact directly with the rich operating system.

[0136] The processor may also be configured to run a trusted operating system in the trusted execution environment 150. The trusted operating system may be loaded into and run in the trusted execution environment 150. For example, a computing device using an Android rich operating system may be configured to implement a trusted secure operating system within the trusted execution environment.

[0137] Typically, a trusted operating system can be implemented by an operating system configured according to a defined set of operating standards that has a higher level of security than a rich operating system. For example, a trusted OS may have less capacity than a feature-rich OS, but with higher security. A trusted operating system can be defined according to standards such as Common Standards for Information Technology Security Evaluation (e.g., ISO / IEC 15408) and specified security functional requirements.

[0138] For example, a trusted operating system may be configured with a "secure boot sequence." In a secure boot sequence, the instructions of the trusted operating system 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's memory may be stored in a read-only memory (ROM). Each instruction segment may include instructions to verify the digital signature of subsequent instructions to be loaded into the computer's memory in the boot sequence. Optionally, the boot sequence may require verification of 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 aborted.

[0139] As shown, the computer system 100 may also include a trusted application 115 running on a trusted operating system within the trusted execution environment 150. A trusted process running on a trusted OS may be referred to as a trusted application (TA) 115. These trusted applications may provide additional security and verification functions to ensure higher security of the trusted OS. For example, the trusted application 115 may be digitally signed with a public key of a trusted application vendor, making it more complicated to hack into the trusted application.

[0140] like Figure 1 As shown, the kernel 140 may include a kernel module 106. The kernel module 106 may communicate with the trusted application 115 to process sensitive information. The kernel 140 may also include a task list 107. The task list 107 may provide a list of processes running on the computer system 100. The kernel module 106 may also control the operation of the file system 108 based on the process information obtained from the task list 107.

[0141] In particular, kernel 140 and kernel module 106 and file system module 108 operating within kernel 140 may enable application 102 to access non-volatile storage 109. Kernel module 106 and file system module 108 may enable application 102 to perform operations related to files stored in non-volatile storage 109.

[0142] The process corresponding to the application 102 can transmit a system call to the kernel 140 to perform operations related to data files in the non-volatile storage 109. The file system 108 can be configured as some system call implementations. The file system 108 can provide access to stored data files to the process. The file system 108 can also perform operations to store additional data files created or modified by the process.

[0143] Kernel module 106 may be configured to intercept system calls from a process corresponding to application 102. When a process submits a request (or system call) to rich operating system kernel 140, kernel module 106 may intercept the request before it reaches file system 108.

[0144] Kernel module 106 can be configured to monitor and intercept data file requests received from user mode processes corresponding to application 102 running within the rich operating system. In some cases, kernel module 106 can intercept each file request from a process corresponding to application 102 before the request reaches file system 108.

[0145] The trusted application 115 may be configured to perform access control operations related to file requests issued to the kernel 140 of the rich operating system. The trusted application 115 may communicate with the kernel module 106. The kernel module 106 and the trusted application 115 may manage access to protected data files stored in the non-volatile memory 109.

[0146] Trusted application 115 operates in trusted execution environment 150 to manage access to data files in response to data requests received by kernel module 106. Upon receiving a request from a process corresponding to one of application 102, kernel module 106 may communicate (e.g., via a secure channel) with trusted application 115. Kernel module 106 may send file request data corresponding to the intercepted request to trusted application 115.

[0147] In some cases, the trusted application 115 may evaluate the file request data to determine whether the request should be allowed. The trusted application 115 may provide a response to the kernel module 106 indicating whether the request is satisfied.

[0148] Trusted application 115 can also provide the data needed to complete the request to kernel module 106, such as the key needed to decrypt the encrypted file. Then, kernel module 106 can interact with the requesting process and file system 108 based on the data received from trusted application 115.

[0149] Trusted application 115 and kernel module 106 can communicate securely to manage data access by processes running in a rich operating system. For example, trusted application 115 can provide data that can be used to generate an application token for an application associated with a running process. Trusted application 115 can also provide feedback to kernel module 106 about currently available application tokens, such as by validating the application token.

[0150] Trusted application 115 may coordinate the generation of a valid application token by monitoring whether a valid user code is provided to computer system 100. For example, an application token may be generated after determining that a valid user code is available within trusted execution environment 150. Kernel module 106 may communicate with trusted application 115 to confirm whether the valid user code has been provided.

[0151] A valid application token can be generated using the valid user code or some modified form thereof. This allows the trusted application 115 to subsequently verify the application token, for example based on the valid user code (or a modified form thereof) stored in the trusted execution environment 150.

[0152] Each encrypted file may have associated file access data (also referred to as key attributes or key material). The file access data corresponding to a particular encrypted file may be used by a trusted application 115 running in a trusted execution environment 150 to regulate access to the encrypted file.

[0153] like Figure 1 As shown, the application 102 may interact with the kernel 140 through the framework layer 130. The framework layer 130 may include various programs, such as code libraries, compilers, and other programs used to coordinate the operation of the application 102 within a particular operating system.

[0154] A control gate 104 may be provided in the framework layer 130. The control gate 104 may coordinate authentication and authorization of an application 102 attempting to access a file stored in the non-volatile data storage 109 through a call to the kernel 140.

[0155] In the illustrated example, the application layer 120 may include a driver companion application 103. The driver companion application 103 may coordinate communications between the user 101 and the kernel 140. For example, the driver companion application 103 may communicate with a registration service 105 provided by the framework layer 130. The user 101 may interact with the registration service 105 (via the driver companion application 103) to specify that one or more applications 102 are protected applications, such as by registering applications 102A and 102B with access policies stored by the kernel module 106.

[0156] The configuration of the computer system 100 can provide a chain of trust from the user 101 to the application 102A, 102B, to the framework 130, to the kernel 140, to the trusted execution environment 150, and finally to the application data stored on the non-volatile memory 109. Therefore, the computer system 100 can provide personalized and cryptographically secure access control to users at various layers throughout the computer system 100.

[0157] 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) that enriches the operating system. Various other types of output devices may also be provided, such as speakers and / or tactile feedback sensors.

[0158] Input devices can enable a user to interact with a rich operating system. For example, computer system 100 may include one or more input devices, such as a keyboard, a mouse, a touch pad, and various other input devices.

[0159] It should also be understood that certain elements of computer system 100, such as some or all of the memory and / or processors, may be implemented using a combination of hardware and software resources, such as using virtual machines and / or containers.

[0160] Communication interfaces such as one or more wired or wireless data network interfaces may be provided to enable communication with external systems or devices and / or communication 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.

[0161] User Code

[0162] The user codes described below may be used alone in any access control system or method, or in any combination or sub-combination with other features or disclosed features. The features include: system architecture, application identification, application token, file access data, method for adding an application to a protected area, method for authenticating a process, method for authorizing a process to access a data file, a protected data file, method for launching an application, method for generating a new protected data file, and method for accessing a protected data file. In this document, the user code may also be referred to as a Qcode.

[0163] In embodiments herein, access control systems and methods may rely on user code to control access to protected data files. The user code may form the basis of a chain of trust between user 101 and components of computer system 100 (e.g., application 102, kernel 140, and trusted execution environment 150).

[0164] Computer system 100 may be configured to prevent access to protected data files unless a valid user code is available or has been made available within computer system 100. For example, access to protected data files may be blocked unless the user code is available in a trusted execution environment (although in some cases, the user code may only be stored in a modified and / or encrypted form, such as a hashed version of the user code). Even if a valid user code is available, access to protected data files may still be limited to a set of authorized applications.

[0165] In some examples, a user code may be provided to the computer system 100 by an end user 101. The end user 101 may enter the user code in various input forms. For example, the user 101 may directly provide a user code input to the computer system 100 using an input device such as a mouse, keyboard, or touch screen, which defines a user code (Qcode). Alternatively or additionally, the user 101 may provide a Qcode indirectly. For example, the user may provide a biometric user code input that may be measured by the computer system 100, such as a fingerprint or facial image. The biometric input may be used to derive the user code (Qcode).

[0166] Computer system 100 may store user code data that may be used to determine whether a claimed access code (i.e., a user code input) provided by a user (e.g., a password typed by the user, a fingerprint, a facial image, etc.) corresponds to an authentic user code. In some cases, the user code may be stored directly in non-volatile memory 109. For example, the user code may be stored in an encrypted or otherwise hidden form (e.g., a hashed version of the user code). Computer system 100 may then compare the claimed user code received from user 101 with the stored version of the user code.

[0167] Alternatively or additionally, the user code may not be directly stored in the non-volatile memory 109. In some cases, the computer system 100 may be configured to never store the user code directly in the non-volatile memory 109. For example, in the case where the end user 101 provides a user code input that indirectly defines the claimed user code (e.g., a biometric input), a modified version of the code input may be stored in the non-volatile memory 109. The computer system 100 determines the claimed user code by modifying the user code input using a code input modifier. For example, the code input modifier may define the difference between the user code and the user code input.

[0168] Once user 101 provides a user code input, computer system 100 can determine the user code. For example, computer system 100 can determine the user code by applying a code input modifier to a biometric input. In the absence of a user code input, determining the user code from the modified version of the code input may be nothing more than a random guess.

[0169] In some examples, the user code and / or the modified version of the code input may be stored in a portion of the non-volatile memory 109 that is accessible to the rich operating system. Alternatively, the user code and / or the modified version of the code input may be stored in a secure memory that is accessible only to the trusted execution environment 150. That is, only the trusted operating system and / or the trusted application 115 may access the storage space where the user code and / or the modified version of the code input is stored.

[0170] When user 101 enters a user code input including a claimed user code, computer system 100 may provide the claimed user code to trusted execution environment 150 for verification using a modified version of the user code stored in trusted execution environment 150. User 101 may thus provide one anchor point of a chain of trust within computer system 100, while the modified version of the user code stored in trusted execution environment 150 may provide another anchor point of the chain of trust.

[0171] In some examples, an obfuscated form of the user code may be stored in the trusted execution environment 150. For example, the trusted execution environment 150 may store a hashed version of the user code. The purported user code may be hashed using the same hash function to generate a hashed purported user code. The hashed purported user code may be compared with the hashed version of the user code stored in the trusted environment 150 to verify that the purported user code is a valid user code.

[0172] At one or more points in time during the operation of computer system 100, computer system 100 may generate a user code prompt for user 101. The user code prompt may indicate to the user that a user code should be entered. Computer system 100 may then determine the user code based on the input received from user 101. In some cases, a PIN code or password for unlocking a mobile phone (once received from the user) may be used as the user code. Alternatively or additionally, computing system 100 may prompt the user to provide a user code when an application and / or process is started.

[0173] The computer system 100 may determine the received user code based on the user code input received from the user 101. The computer system 100 may then determine the hashed user code by hashing the received user code. The hashed user code may be compared with a stored hashed user code stored in a trusted non-volatile memory in the trusted execution environment 150. If the hashed user code matches the stored hashed user code, the computer system 100 may determine that the received user code corresponds to a valid user code. Otherwise, the computer system 100 may determine that the received user code is invalid.

[0174] In the embodiments described herein, the user code can be used to generate various other types of data, such as application tokens and / or file access data. In some examples, the user code can be used directly in such calculations. Alternatively, a hashed version of the user code can be used to further protect the effective user code from being determined.

[0175] Application Identification

[0176] The application identification described below can be used alone in any access control system or method, or in any combination or sub-combination with other features or features disclosed. The features include: system architecture, user code, application token, file access data, method for adding applications to protected areas, method for authenticating entry and exit, method for authorizing only processes to access data files, protected data files, method for launching applications, method for generating new protected data files, and method for accessing protected data files. In this article, the application identification may also be referred to as appID.

[0177] As described above, the computer system 100 can define a unique application identifier (e.g., a UID or AppID generated by the operating system) for each application 102 running or installed in the computer system 100. The operating system can assign each application its own application identifier. The application identifier can be generated without user input.

[0178] Each application may be assigned only one application identification code. The application identification code of each application may be assigned to the application 102 after installation on the system 100 (i.e., for each application, the application identification code may be assigned to the application when the application is installed on the system 100). The application identification code of a particular application 102 may remain unchanged unless and until the application is uninstalled.

[0179] In some operating systems (e.g., operating systems for laptops, desktop computers, and server computers), a UID can define a user identification code or user ID. Each user of a computer can be assigned a UID. The UID can be used to indicate which user has started a particular program / application (and related processes).

[0180] Alternatively, in other operating systems, including mobile operating systems such as Android, the concept of a UID may be implemented differently. Each application may be assigned its own UID (i.e., application identification code). For example, the operating system may assign a UID to each application by default.

[0181] For example, for a device running the Android operating system, each Android package file installed on the device can be assigned its own unified Linux user ID (the above-mentioned UID / application identifier). The application identifier is usually assigned when the application is installed into the device. The application identifier of the application can remain permanently in the device until the application is uninstalled. The operating system can define a sandbox for the application. The sandbox can be configured to prevent other applications from affecting that specific application.

[0182] In the embodiments described herein, the computer system 100 may be configured to generate an application identifier (appID) for each application 102 (and a corresponding application instruction set stored in the non-volatile memory 109) operating or installed on the computer system 100. Each application 102 (and a corresponding application instruction set) may be assigned a unique application identifier. In addition to the application identifier defined by the operating system, an application identifier for each application 102 may be defined.

[0183] Each application identifier can provide a unique and persistent identity for the corresponding application and its related processes. The application identifier can be used to authenticate and authorize processes running in the computer system 100. The application identifier can also be used to provide access control systems and methods. For example, the application identifier can be used to specify which applications are allowed to access protected data files stored in the memory 109. Each protected data file can be associated with one or more application identifiers of applications that are allowed to access the protected data file.

[0184] For each application 102, an application identification may be defined using an application identification code generated for the application 102. As described above, the application identification code may be unique for each application in the operating system. However, after the application is uninstalled, the application identification code may be reused. As a result, the application identification code may not remain constant throughout the life cycle of the data stored in the device. That is, the application identification code may be assigned to different applications during the life cycle of the data on the device (even though a particular application identification code may only be assigned to one application at a given time). Therefore, in an access control system that relies solely on the application identification code, a new application may accidentally inherit the data privileges of a previously installed application.

[0185] Typically, the allocation of application identifiers is managed with root privileges. Similarly, UID verification is managed with root privileges. As a result, access control systems that rely solely on application identifiers can be vulnerable to attacks that abuse root privileges.

[0186] The embodiments described herein may use additional identification features to generate an application identity for each application. For example, an application certificate corresponding to a particular application may be used to generate an application identity. An application certificate may be data (e.g., a certificate string) defined by the developer of a particular application. In some cases, the same application certificate may be defined for multiple applications from the same developer. Alternatively, an application certificate may be defined for a single application. In some cases, an application certificate may be defined for a particular version of an application. Alternatively, an application certificate may remain unchanged for different versions or application updates. Using an application certificate may ensure that the application identity is dedicated to the application, or at least specific to the developer of the application.

[0187] In some operating systems, such as Android, each application package can be digitally signed with a corresponding application certificate. This may help prevent tampering with the application package. For a release package, the developer of the release package can specify that the release package be signed with a specific certificate. The certificate can be created by the developer for the application developed by his organization. The computer system 100 can then use the certificate when generating an application identity.

[0188] In some examples, if a specific certificate is not specified for the application, the computer system 100 can specify a system certificate that can be used to generate an application program identity. For example, a default system certificate can be stored on the computer system (e.g., see C:\Users\admin.android\debug.keystore).

[0189] The certificate file may contain a pair of public and private keys. The private key may be used to sign the application package. During installation, the system may use the public key corresponding to the private key in the certificate to verify whether the application package has been modified. If the application package is proven to be unmodified, the application package may be installed. If the evaluation of the signed application package indicates that the application package has been modified, the computer system 100 may block the installation of the application package.

[0190] An application identity can be defined using an application identifier and an application certificate. Application identification data based on the application identifier can be combined with certificate data based on the application certificate to generate an application identity. For example, an application identity can be defined by concatenating the application identification data and the certificate data.

[0191] In some examples, the certificate data may include a hash of an application certificate. The hashed application certificate may be generated by hashing the application certificate corresponding to the application. The application identifier may be generated by combining the application identifier and the hashed application certificate.

[0192] For example, an application's application identity (appID) can be defined by concatenating the application identification code and the hashed application certificate as follows:

[0193] UID | sha256hash (application certificate),

[0194] Among them, UID represents an application identification code (e.g., a 64-bit integer assigned to an application), "|" represents a concatenation operation used to join two strings into one (e.g., x|y means concatenating x and y together), credential can be a string, and sha256hash() is an example hash function using the sha256 algorithm.

[0195] The application identification may be defined in various forms. For example, the application identification may be defined as a byte buffer. The byte buffer may include a portion corresponding to the application identification code and a portion corresponding to the application certificate. For example, the byte buffer may be set to a length of 40. The byte buffer may include an 8-byte portion corresponding to the application identification code (UID) and a 32-byte portion corresponding to the application certificate (e.g., a hashed version of the certificate).

[0196] In some cases, the application identification may be stored in encrypted form in non-volatile memory 109. For example, the application identification may be encrypted using an encryption key stored in trusted execution environment 150.

[0197] The application identification encryption key may be defined based on the user code. Thus, input from the user may be required to define the application identification. Similarly, user input may be required to evaluate an existing application identification. This may ensure that the access control provided by the system 100 is personalized for the user 101.

[0198] The application identification can be used by applications such as application 102A and / or 102B to authenticate themselves to user 101 and computer system 100. System 100 can also use the application identification to authorize the application to perform certain operations. (e.g., access data, generate protected data, etc.). Kernel module 106 can use the application identification to control file system 108 to access application 102A or 102B data on non-volatile memory 109.

[0199] The application identifier of a particular application may also be associated with a process corresponding to the application. Files generated by a process corresponding to a particular application may also be associated with the application identifier. For example, the application identifier may be associated with each stored data file corresponding to the particular application. This may allow the kernel module 106 to identify the corresponding application and control whether the requesting process may access data stored in the non-volatile memory 109.

[0200] The computer system 100 can be configured to provide access control in a plurality of different stages. The current operating stage of the computer system 100 can vary depending on whether the user code is available. The security level applied can vary depending on the current stage of the computer system 100. For example, the trust chain from the end user 101 to the trusted environment 150 can operate in two stages. The first security stage can provide a higher security level than the second security stage.

[0201] For example, when the user code is not available, the computer system 100 can operate in the first security stage. When the user code is available, the computer system 100 can then operate in the second security stage.

[0202] In the first security stage, the computer system 100 can be configured to prevent any process from accessing the protected data in the non-volatile memory 109. That is, in the first security stage, all processes running on the computer system 100 cannot access the protected data stored in the non-volatile memory. In this first security stage, the user code is not available in the computer system 100 (e.g., not available in the trusted environment 150). In some cases, in the first stage, the process cannot access the encrypted data in the computer system 100 because the data required to decrypt the data (e.g., the user code) is not available.

[0203] When the user code is available, the computer system 100 can operate in the second security stage. In the second security stage, the computer system 100 can be configured to allow only authorized application processes to access protected data. In the second security stage, the computer system 100 can be configured to prevent unauthorized applications from accessing protected data. The computer system 100 can prevent unauthorized applications from accessing protected data while supporting authorized applications to access protected data.

[0204] The computer system 100 can distinguish between operations in the first security stage and the second security stage based on when the user code is provided to the system 100. The two stages can be distinguished using a timestamp corresponding to the time when the user code is entered. In the embodiments described herein, a token (referred to herein as appToken) can be used to identify when the user code is provided.

[0205] Application Token

[0206] The application token described below may be used alone in any access control system or method, or in any combination or sub-combination with other features or disclosed features. The features include: system architecture, user code, application identification, file access data, method for adding an application to a protected area, method for authenticating a process, method for authorizing a process to access a data file, protected data file, method for launching an application, method for generating a new protected data file, and method for accessing a protected data file. As used herein, an application token may also be referred to as an appToken.

[0207] In the embodiments described herein, an application token may be used to evaluate whether an application is allowed to access a requested data file. Figure 2 An example process 200 is shown that may be used to evaluate whether the process is allowed to access a requested data file. Process 200 is an example of a process that may be implemented by a computer system such as computer system 100.

[0208] At 210, the kernel module 106 may receive a file request for a requested data file stored in the non-volatile storage memory 109. The requested data file may correspond to a protected data file among the plurality of protected data files. In some examples, the kernel module 106 may determine whether the requested data file is one of the protected data files based on attribute data associated with the requested data file.

[0209] The file request may be received from a requesting process running in a rich operating system. For example, the requesting process may issue a system call for the requested data file to the kernel 140. The kernel module 106 may intercept the file request before the file request reaches the file system 108.

[0210] At 220, the computer system 100 may be configured to determine an associated application associated with the requesting process. For example, the computer system 100 may determine which of the applications 102 installed on the computing device 100 is associated with the requesting process in response to the system call for the requested data file. The kernel module 106 may identify an application identifier associated with the requesting process in order to identify the associated application.

[0211] At 230, in response to the file request, the computer system 100 may determine whether a verified application token exists for the associated application. The kernel module 106 may use the application identification of the associated application to determine whether the application token exists in the computer system 100. The kernel module 106 may also verify the application token, for example, by communicating with the trusted application 115.

[0212] At 240, after determining that there is a valid application token, the computing system 100 can provide the requesting process with access to the requested data file. Only when there is the above-mentioned verified application token, the computer system 100 can allow the requesting process to access the requested data file. Otherwise, the computer system 100 can prohibit the requesting process from accessing the requested data file.

[0213] The computer system 100 can be configured to prevent access (e.g., read / write) to the plaintext / ciphertext of the protected files stored on the non-volatile memory 109 unless the application token of the application corresponding to the requesting process is available within the computer system 100. Alternatively or additionally, each protected file can be associated with one or more specified applications 102A. This association can be accomplished by using an application identifier. The computer system 100 will prohibit read and / or write operations to the protected files unless the application token of the application associated with these files exists and is verified.

[0214] After determining that a valid user code is available in the computer system 100, the computer system 100 can generate an application token for a specific application. The application token will only be generated when the valid user code is available.

[0215] Reference now Figure 3 , which shows an example process 300 that can be used to generate an application token. The method 300 is one example of a token generation process that can be implemented by a computer system such as the computer system 100. At 310, the computer system 100 can detect the launch of a first process associated with a particular application.

[0216] At 320, the computer system 100 may determine whether the valid user code is available. Only after the valid user code is available in the computer system 100, the application token is defined.

[0217] For example, the computer system 100 may determine whether the valid user code is available in the trusted execution environment. After determining that the valid user code is available, the computer system 100 may use the valid user code to generate the application token at 360 .

[0218] The computer system 100 may determine a timestamp corresponding to the launch of the first process. The timestamp may then be used to generate the application token. The application token may be defined using a timestamp that indicates when the first process associated with the application was launched. Thus, the application token may provide an indication of when the application was first launched.

[0219] The application token can be generated by using the unique application identifier of the associated application. This ensures that each application has a unique application token, which can be verified before providing access to the requested data file to the associated process.

[0220] The application token may be generated using data that can be verified by communicating with the trusted execution environment 150. Some of the data used to generate the application token may only be available in the trusted execution environment 150 (or may only be derived from data stored in the trusted execution environment). For example, data stored in the trusted execution environment 150 or data generated from other data stored in the trusted execution environment 150 may be used to generate the application token. This may ensure that the trusted execution environment 150 is included (and must be consulted) in the process of verifying the application token.

[0221] In some cases, the application token may be defined using a combination of the application identifier and the user code. This may allow the application token to be subsequently verified using the user code. For example, a hashed version of the user code may be used to generate the application token. This may ensure that the user code cannot be determined from the application token.

[0222] As an example, an application token may be defined using a timestamp, an application identifier, and a user code. For example, the computer system 100 may define an application token (appToken) as:

[0223] enc(timestamp | appID_length | appID, Qcode_hash) |

[0224] hmac(timestamp | appID_length | appID, Qcode_hash)

[0225] Wherein timestamp represents the timestamp when the first process corresponding to the associated application is started, enc() represents an encryption function, wherein enc(x, y) represents the output generated by encrypting the string x using the string y, hmac() represents a hash function, wherein hmac(x, y) represents the output string of hashing the string x with the secret key y; “|” represents a concatenation operation, appID_length represents the byte length of the application identifier (appID), and Qcode_hash represents the hash value of the user code (Qcode).

[0226] The application token may be generated in response to user 101 entering a user code input corresponding to the valid user code.For example, as described above, computer system 100 may detect, at 320, the launch of a first process associated with the associated application.

[0227] At 330, the computer system 100 may generate an application startup prompt in conjunction with the startup of the first process. The application startup prompt is defined as prompting the user to input a user code or a corresponding user code input.

[0228] For example, at 320, computer system 100 may determine whether the user code is available within computer system 100. An application launch prompt may be generated in response to determining that the user code is not available within computer system 100. Alternatively or additionally, an application launch prompt may be generated in response to each application being launched. In some cases, an application launch prompt may be generated in response to each early launched user mode application, while the application launch prompt may be omitted for system applications.

[0229] At 340, computer system 100 may receive application launch input (e.g., user code input). A user may provide application launch input in response to an application launch prompt. The application launch input may correspond to an expected user code input that defines (directly or indirectly) an asserted user code.

[0230] At 350, the computer system 100 can determine whether the claimed user code corresponds to the valid user code. At 360, once it is determined at 350 that the application launch input corresponds to the valid user code (i.e., the claimed user code matches the valid user code), the computer system 100 can generate an application token.

[0231] As described above, the computer system 100 can determine whether a verified application token exists in order to respond to a file request. The application token associated with a particular application can be verified through communication with the trusted execution environment 150. For example, verification of the application token can be performed through communication between the kernel module 106 and the trusted application 115 running in the trusted execution environment 150.

[0232] As described above, an application token may be generated using data (e.g., a hashed user code) that requires access to the trusted execution environment 150. This trusted data may only be available to the computer system 100 in the trusted execution environment 150 or through input from the end user 101. This ensures that verification of the appToken can only be performed in the viable environment 150.

[0233] As described above, an application token may be generated in response to direct input from user 101 and verified in enabling environment 150. Thus, the application token may be used as a software lock that may provide a high level of security for protected data stored in non-volatile memory 109. That is, access to protected files may be prevented when the application token is not available to the application corresponding to the requesting process. This may help protect protected files from any software-level hacker attacks.

[0234] For example, a protected data file may be associated with a particular application. Thus, when an application token corresponding to a particular application 102A is not available, the computer system 100 may prevent a requesting process from accessing the protected data file. This provides protection against software-level hacking / attacks on data belonging to the application 102A.

[0235] When an application token corresponding to an application associated with protected data is available, there is an authorized application 102A to access the protected data. In this case, the computer system 100 can still be configured to prevent unauthorized access to the protected data file. For example, if the data file is not associated with the application of the requesting process, access requests to the requested data file from other processes running in the computer system 100 can still be blocked.

[0236] In some examples, the protected data files may be encrypted. The protected data files may be encrypted using an encryption key generated within the trusted environment 150. This may further prevent unauthorized access to the protected data files.

[0237] File access data

[0238] The file access data described below may be used alone or in any combination or sub-combination with other features or disclosed features in any access control system or method. The features include: system architecture, user code, application identification, application token, method for adding an application to a protected area, method for authenticating a process, method for authorizing a process to access a data file, protected data file, method for launching an application, method for generating a new protected data file, and method for accessing a protected data file.

[0239] In the embodiments described herein, some or all data files stored in the non-volatile memory 109 may be stored in encrypted form. For example, protected data files stored in the non-volatile memory 109 may be encrypted. In addition, all data files stored in the non-volatile memory 109 may be encrypted.

[0240] In addition, data files associated with one or more specific applications can be encrypted. For example, computer system 100 can include application 102A that requires a higher level of security. Therefore, all data files corresponding to application 102A can be stored in encrypted form.

[0241] Each encrypted data file may be encrypted using an encryption key. In some cases, the encryption key for each encrypted file may be specific to that file (a file-specific encryption key). Therefore, a file-specific decryption key may be required in order to access the plaintext data of each encrypted data file. Depending on the specific encryption technology used, the decryption key may be the same as the encryption key or different from the encryption key.

[0242] Each encrypted data file may be associated with file access data. For example, the file access data may be stored as an extended attribute of the encrypted data file. The file access data associated with the encrypted data file may include key material. The key material may be used to determine a decryption key corresponding to the encrypted data file. The file access data may allow the decryption key to be determined within the trusted execution environment 150. As described above, the encryption / decryption key may be specific to each encrypted file. Therefore, the key material for each encrypted file may be file specific.

[0243] The file access data may be generated based on data stored within the trusted execution environment 150. For example, the key material for each encrypted file may be defined using an access code secret corresponding to a user code. The access code secret may only be accessed within the trusted environment 150. This ensures that decryption of an encrypted data file requires communication with the trusted execution environment 150. As a result, a trusted application 115 running within the trusted execution environment may determine whether the system has provided an encryption key for the requested encrypted data file.

[0244] Each of the plurality of encrypted data files stored in the non-volatile memory 109 may be encrypted using a file-specific encryption key. The trusted application 115 may be configured to independently determine a file-specific encryption key for each encrypted data file. For example, the trusted application 115 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 a corresponding file encryption key. The key information or data that may be used to derive the key information may be included in the file access data for the corresponding file.

[0245] In some cases, the encrypted data file may be associated with a specific application program. For example, the associated application program may be an application program used to generate the specific encrypted data file.

[0246] The file access data associated with a particular encrypted data file may include dedicated access data. The application-specific access data may be defined based on identification data associated with an associated application. For example, the application identification of the associated application may be used to define application-specific access data corresponding to a particular data file.

[0247] In some cases, the file access data may be defined in an incomprehensible form. For example, the file access data may be encrypted using a user code (or user code data) stored in the trusted execution environment 150. As a result, knowledge of the user code may be required to derive useful data from the file access data. Since the user code may only be available in the trusted execution environment 150 (or input by the user), this may ensure that the trusted execution environment 150 or the user 101 is involved in the derivation of the plaintext file access data.

[0248] Computer system 100 may generate the file access data as a string. For example, for a data file associated with an application corresponding to a specific application identifier (appID), the file access data may be defined in the following format:

[0249] class_id|profile_id|reserved_len|appID_length|appID|enc(keyIndex,Qcode_secret)|enc(keyLength|fileKey,Qcode_secret)|

[0250] hmac(class_id|profile_id|reserved_len|appID_length|appID|keyIndex|keyLength|fileKey,Qcode_secret)

[0251] Where class_id represents a constant indicating the class of encryption key, profile_id represents a 64-bit integer that can be used to distinguish the profile associated with the file (which may correspond to a specific user of the device), fileKey represents the file encryption key, enc(,) represents an encryption function, where enc(x,y) represents the output string of encrypting string x using key y, hmac(,) represents a hash function, where hmac(x,y) represents the string output of computing the hash of string x using secret key y, "|" represents a cascade operation, and Qcode_secret represents an access code secret accessible only within the trusted environment 150. Examples of constants accessible only within the trusted environment 150 are described in detail in U.S. Patent Application No. 16 / 521,945, entitled "Personalized, Cryptographically Secure Access Control Techniques in a Trusted Execution Environment," which is incorporated herein by reference in its entirety.

[0252] The file access data string may be stored as an extended attribute of the encrypted data file. Subsequently, the computer system 100 may use the file access data string to identify and / or generate a decryption key for the encrypted data file.

[0253] In some embodiments, the file access data may be generated within the trusted execution environment 150. As described above, the file access data may be generated using data (e.g., access code secrets) that is only available within the trusted environment 150. The file access data may thus subsequently be analyzed within the trusted environment 150 to identify the appropriate decryption key.

[0254] The file access data may be sent from the trusted environment 150 to the rich operating system. As described above, the file access data may be stored as an extended attribute of the protected file on the non-volatile memory 109. Additionally, the file access data may be stored as a file attribute that may be read by the file system 108 and then sent back to the trusted environment 150.

[0255] How to add an application to a protected area

[0256] The following is a description of a method for adding an application to a protected area, which method may be used by itself in any access control system or method, or in any combination or sub-combination with any other one or more of the following features disclosed, including system architecture, user code, application identification, application token, file access data, method for authenticating a process, method for authorizing a process to access a data file, a protected data file, method for launching an application, method for generating a new protected data file, and method for accessing a protected data file.

[0257] In the embodiments described herein, the computer system 100 may designate one or more applications as a group of protected applications. Applications in the group of protected applications may be allowed to access protected data files. Protected applications may also generate new protected data files.

[0258] Access by other applications to protected data stored by a protected application may be limited. In some cases, other applications may be blocked from accessing protected data stored by a protected application.

[0259] In some cases, access to protected data may be restricted primarily for user-mode processes. For example, unprotected user-mode applications may be prohibited from accessing protected data stored by protected applications. In some cases, system applications may still be allowed to access protected data, assuming other requirements of the access control system (e.g., availability of user codes, application tokens, and / or decryption keys) are met.

[0260] Computer system 100 may provide a method for identifying an application as a protected application (e.g., registering the application in a protected application area). For example, computer system 100 may define an access policy file that identifies one or more protected applications. The access policy file may be used by computer system 100 to determine whether a particular application (or a process associated with the particular application) is allowed to access a requested file.

[0261] The access policy file can be defined to include a unique application identifier for each protected application in the set of protected applications. When a requesting process issues a file request to the kernel module 106 to obtain a protected data file, the kernel module 106 can check the access policy file to determine whether the application identifier of the associated application is included in the access policy file. Only when the unique application identifier of the associated application is included in the access policy file, the kernel module 106 allows the requesting process to access the requested data file. Otherwise, the kernel module 106 prohibits the requesting application from accessing the requested data file.

[0262] The access policy file may be stored in the non-volatile memory 109 of the computer system 100. Additionally, the access policy file may be stored in the non-volatile memory of the trusted execution environment 150.

[0263] The computer system 100 may provide a system function that can be used to protect data files stored in the non-volatile storage memory. For example, a computer system 100 running an Android operating system may provide a system function to protect files of any Android application. Figure 1 As shown, the computer system 100 may include a registration service 105, which may be used to register an application into a protected area (ie, identify the application as a protected application).

[0264] In some cases, the computer system may allow user 101 to designate one or more applications as protected applications. User 101 may add applications to a "protected zone" to ensure that data from the applications is stored and managed as protected data in computer system 100. User 101 may also remove applications from a protected zone.

[0265] The user 101 may select an application to be added to the protected area. After the user 101 selects the application, the computer system 100 may generate a policy modification prompt to request or prompt the user 101 to provide a user code (Qcode). The computer system 100 may then receive a policy modification input (e.g., a user code input). The computer system 100 may verify whether the input user code corresponds to a valid user code by communicating with the trusted application 115. Similarly, in the case where the user 101 selects an application to be deleted from the protected area, the computer system 100 may verify the request based on the user code.

[0266] Once the received user code input is successfully authenticated in the trusted environment 150, the computer system 100 may allow the registration service 105 to perform operations, such as adding an application to the protected area and / or deleting an application from the protected area.

[0267] To add an application to the protected area (ie, identify the application as a protected application), the application identification of the application may be determined first. The determined application identification may then be added to an access policy file stored in the non-volatile memory 109 and / or the trusted environment 150.

[0268] Optionally, computer system 100 may include a kernel access policy data structure (also referred to as appID_list) in kernel memory of kernel 140. Application identification may also be added to the kernel access policy data structure.

[0269] To remove an application from the protected area (i.e., to designate that the application is no longer a protected application), an application identification of the application may be first determined. The application identification may be used to search an access policy file stored on the computer system 100 (e.g., in the non-volatile memory 109). Additionally, the application identification may be used to search a kernel access policy data structure stored in kernel memory.

[0270] If the application identification is identified in the access policy file (or kernel access policy data structure), the application identification may be deleted from the access policy file stored on computer system 100. The kernel access policy data structure is stored in kernel memory.

[0271] The computer system 100 may store the access policy file in association with the user code data generated from the user code (e.g., a hashed version of the user code) in the non-volatile memory 109. The computer system 100 may compare the received user code data determined from the input received user code with the user code data stored in association with the access policy file.

[0272] Computer system 100 can prevent modification (e.g., write operation, delete operation) of access policy files unless policy modification input corresponding to a user code is received and verified against user code data stored in association with the access policy. This can help prevent unauthorized modification (i.e., tampering) of access policy files.

[0273] For example, the computer system 100 may store the access policy file in the non-volatile memory 109 in association with the hash version of the user code. The hash value of the user code may be used to protect the data access policy file. Therefore, the computer system 100 may prevent write operations to the policy file without the user code.

[0274] In some cases, even in the absence of a user code (i.e., in the absence of a policy modification input corresponding to a user code), a read operation to the access policy file may be permitted. Thus, even when a user code is not available, the system 100 may access the access policy file to determine whether the application is protected.

[0275] In actual operation, computer system 100 may receive a policy update input that specifies a particular application to be added to a set of protected applications included in an access policy file. In some examples, the computer system may generate an update verification prompt in response to the policy update input. The update verification prompt may be defined to prompt a user to enter a user code. This may ensure that user 101 has properly authorized modifications to the access policy file.

[0276] The computer system 100 may receive an update verification input (e.g., a user code input) in response to the update verification prompt. The computer system 100 may then use the user code data (e.g., a hashed version of the user code) stored in association with the access policy file to determine whether the update verification input corresponds to a valid user code. The computer system 100 may update the access policy file to include a specific application in response to determining that the update verification input corresponds to a valid user code. If the updated verification input does not correspond to a valid user code, modification of the access policy file may be denied / prevented.

[0277] As described above, the kernel 140 may store the access policy data structure in kernel memory accessible within the rich operating system. The computer system 100 may be configured to synchronize the access policy data structure with an access policy file stored in the non-volatile memory 109. The access policy data structure (i.e., the appID_list data structure) and the access policy file may be synchronized such that the access policy data structure includes a unique application identifier for each protected application in a set of protected applications defined in the access policy file.

[0278] In some cases, updates to the access policy file and access policy data structure can also be synchronized. For example, an access policy file can be updated by initially updating a kernel memory access policy data structure. Then, the existing access policy file can be overwritten with the updated kernel memory data structure.

[0279] In some embodiments, the access policy data structure in the kernel memory may be updated on the fly in response to a policy update input (following verification) from the user 101. The access policy data structure in the kernel memory may be updated first, and then a refresh operation may be performed to overwrite the corresponding policy file in the non-volatile storage. This process is best used if frequent updates to the access policy file are not desired.

[0280] As described above, access policy files and updates to access policy files may be controlled by user codes. Access policy files may thus be cryptographically protected based on user codes (which may be received from user 101 and stored in a hardware anchor of a trust chain in trusted environment 150).

[0281] Process Authentication Method

[0282] The following is a description of a method for authenticating a process, which method itself may be used in any access control system or method, or used in any combination or sub-combination with any other one or more of the following features disclosed, including system architecture, user code, application identification, application token, file access data, method for adding an application to a protected area, method for authorizing a process to access a data file, protected data file and method for launching an application, method for generating a new protected data file, and method for accessing a protected data file.

[0283] In many computer systems, process authentication can be performed based on an application identification code of an associated application. When a process is started, an application certificate of the application corresponding to the process can be verified. The process can also be associated with a process identification.

[0284] Once the application certificate has been verified, the process identity may be marked with the application identification code of the associated application. This process may introduce potential security vulnerabilities into the computer system. For example, the application identification code may be used to mark data files corresponding to the application. When the application identification code is reused (e.g., when the application is uninstalled and the application identification code is assigned to another application), data leakage may result in a different application being able to access data files stored by a previous application with the same identification code.

[0285] Additionally, it is possible to use system calls (e.g., setUID) to modify process labels, which could introduce vulnerabilities to data security. These system calls are usually protected by root privileges. However, for systems that require data security to prevent abuse of root privileges, application IDs are not a good choice for process authentication.

[0286] The embodiments described herein can provide a cryptographically secure process for authenticating an application process. In the embodiments described herein, an application identifier for a particular application can be associated with each process corresponding to the application. The application identifier can be associated with the process identifier by marking the process identifier with a corresponding application identifier.

[0287] like Figure 1 As shown, a process mapping data structure can be defined in the kernel 140. The process mapping data structure can be stored in the kernel memory. The process mapping data structure can be defined as a mapping between each process identifier maintained in the task list 107 and the application identifier of the corresponding application. The mapping between a specific process identifier (PID) and a corresponding application identifier can be represented as PID_appID. The mapping can be defined when each new process is created (for example, after the corresponding certificate is verified) and stored in the process mapping data structure. When each process is started, the process mapping data structure can be updated. When each process terminates, the process mapping data structure will also be updated.

[0288] In the computer system 100, cryptographically secure process authentication may be performed at the framework level 130. For example, the process authentication may be performed by the control gate 104. The system may generate a mapping (PID_appID) between a given process identifier and a corresponding process identifier by the control gate 104. When a new process is created to generate the mapping, the control gate 104 may receive input from the application 102A / 102B and the user 101. In some cases, the control gate 104 may generate the mapping (PID_appID) only after verifying the application certificate. The mapping may then be stored in a process mapping data structure.

[0289] Once the mapping (PID_appID) has been stored, the process mapping data structure may be used to authenticate the process corresponding to the process identification as the process corresponding to the application having the corresponding application identification.

[0290] The process mapping described above may be protected using a user access code. For example, a process mapping data structure may be protected using a user code. Modification of the process mapping data structure may require user code data corresponding to the user code to be implemented.

[0291] As a result, the process mapping data structure can be managed and protected through the interaction between the kernel module 106 and the trusted application 115. The process mapping data structure can ensure that the identity of the process (and the association with a specific application) can be authenticated through the use of the trusted environment 150, thereby achieving secure authentication and maintenance during its operational life.

[0292] As described above, a process mapping data structure can be stored in kernel memory to record the association between process identifiers and application identifiers. This can provide a centralized mapping between processes and corresponding applications.

[0293] In addition, the system can use a distributed mapping scheme. For example, the corresponding application identifier can be stored in the task structure of the process stored in the task list 107. When the application identifier is included in the task structure of the process, this can provide a simple method to indicate that the process has passed identity authentication. In some cases, the computer system 100 may need additional security to prevent the application identifier in the task structure from being imitated and / or to prevent the application identifier item in the task structure stored in the task list 107 of the legitimate process from being tampered with.

[0294] How to authorize a process to access a data file

[0295] The following is a description of a method for authorizing a process to access a data file, which method may be used by itself in any access control system or method, or used in any combination or sub-combination with any other one or more of the following features disclosed, including system architecture, user code, application identification, application token, file access data, method for adding an application to a protected area, method for authenticating a process, protected data file, method for launching an application, method for generating a new protected data file, and method for accessing a protected data file.

[0296] Computer system 100 may be configured to determine whether a requesting process is authorized to access a requested data file. Computer system 100 may be configured to provide a personalized and cryptographically secure method to authorize a requesting process to access a requested data file.

[0297] The above process authorization process may include multiple authorization stages. For example, the process authorization process may include three authorization stages. In the first authorization stage, an application token (appToken) corresponding to a specific application may be generated. For example, the token generation process described above in this document may be used to generate the token (e.g., method 300). When the user 101 provides input to start the application 102 in the computer system 100, such as by selecting an application icon or a voice command, the system may start the token generation process.

[0298] In the example of computer system 100, an application token may be generated by control gate 104. For example, application token 104 corresponding to application 102 may be generated by input from user 101 and application 102, as described above. When control gate 104 generates an application token, it may be forwarded to kernel module 106. Kernel module 106 may in turn send the application token to trusted environment 150. Trusted application 115 running in trusted environment 150 may be configured to verify the token received from kernel module 106.

[0299] When launching a process, the computer system 100 may determine the process identifier associated with the process. The computer system 100 may then verify the process certificate for the process. For example, the process certificate may be compared to the application certificate to ensure that the process has a valid and reliable certificate. If the process is the first process launched for an application, the computer system 100 may further verify and authenticate the application certificate.

[0300] In some cases, the computer system 100 may be configured to prompt the user for authorization before allowing the application to execute. After a process is created and the certificate is successfully verified, the system may prompt the end user 101 to provide a user code to authorize the application to run. Before the process begins loading the application code to be executed, the computer system 100 may prompt the end user 101 to provide a user code.

[0301] For example, after verifying the process certificate, the computer system 100 can determine whether the associated application is one of the protected applications. If the associated application is one of the protected applications, the computer system 100 can be configured to use the user code to manage updates to the process mapping data structure. The computer system 100 can generate a process startup prompt for the user 101. The process startup prompt is defined as prompting the user to enter a user code (e.g., directly or through an associated user code input). The computer system 100 can then receive a process startup input (i.e., a user code input) in response to the process startup prompt. The computer system 100 can determine whether the process startup input corresponds to a valid user code.

[0302] A user code input (e.g., a user code received in a process launch input in response to a process launch prompt) may be provided to control gate 104. Control gate 104 may forward purported user code data to trusted application 115 (via kernel module 106) based on the user code input to the user, thereby completing authentication in trusted execution environment 150.

[0303] For example, the control gate 104 may calculate a hash of the user code input. The hashed version of the user code input may then be provided to the kernel module 106. The kernel module 106 may in turn send the hashed version of the user code input to the trusted application (TA) 115 in the trusted environment 150. As described above, the hashed version of the user code may be stored within the trusted environment 150. The trusted application 115 may compare the hashed version of the input user code with the hashed version of the user code stored in the trusted environment 150. An example of a process for verifying a user code is further described in detail in U.S. patent application Ser. No. 16 / 521,945, entitled “Personalized, Cryptographically Secure Access Control in a Trusted Execution Environment,” the entire contents of which are incorporated herein by reference.

[0304] If the user code is not verified by the trusted application 115, the control gate 104 can prevent the process and application from executing. Additionally, the control gate 104 can generate another prompt to allow the user 101 to have one more opportunity to provide the user code.

[0305] If the user code is verified by the trusted application 115, the control gate 104 can then generate an application token for the corresponding application. As described above, the control gate 104 can generate the application token using the current timestamp and the application identifier of the corresponding application. The control gate 104 can then provide the application token to the trusted application 115 in the trusted environment 150 (e.g., via the kernel module 106). The application token can be used to indicate to the trusted application 115 that the application 102 has been launched.

[0306] Trusted application 115 may be configured to manage encryption keys and / or encryption key materials for the data files stored in non-volatile memory 109. Trusted application 115 may control when encryption keys are provided to kernel module 106 to decrypt requested data stored in non-volatile memory 109.

[0307] The trusted application 115 within the trusted execution environment 150 may be configured to generate and / or provide encryption key data only after a suitable application token is available within the trusted execution environment 150. For the trusted environment 150, the corresponding process running on the rich operating system may obtain the file encryption key from the trusted environment 150 in order to access the encrypted data files stored on the non-volatile memory 109. Before the application token is provided to the trusted environment 150 (e.g., from the control gate 104), the process running within the rich operating system will not be able to access the encrypted data files stored on the non-volatile memory 109.

[0308] Once the computer system 100 has determined that the process launch input corresponds to a valid user code (and the application token is available in the trusted execution environment), the computer system 100 can proceed to the second stage of the process authorization method. The second authorization stage can be performed after the user code input has been obtained from the end user 101 and successfully authenticated in the trusted environment 150. In the second stage, the computer system 100 can determine whether to allow the requesting process to access the requested protected data file.

[0309] In the second authorization phase, computer system 100 (e.g., control gate 104) can determine the application identification corresponding to the requesting process. Computer system 100 can then use the stored access policy file and / or kernel access policy data structure to determine whether the application identification corresponds to one of the protected applications.

[0310] For example, the application identification may be provided to kernel module 106. Kernel module 106 may use the received application identification to determine whether the associated application is included in the kernel access policy data structure.

[0311] If the application identifier corresponds to a protected application list listed in the kernel access policy data structure and / or access policy file, the computer system 100 can determine that the requesting process is a protected process. The requesting process can then be allowed to access protected data stored in the non-volatile memory 109.

[0312] The process identity of the requesting process may also be stored in an authorized process data structure (also referred to as a trusted_PID data structure or a PID_list data structure) in kernel memory. The authorized process data structure may be defined to provide a whitelist of all authorized processes. The authorized process data structure may be accessible in a rich operating system. The authorized process data structure may provide a centralized data structure that the system may then evaluate to determine whether the requesting process is allowed to access a requested data file.

[0313] As described above, the second authorization phase may occur only after a user code input is received from user 101 and successfully verified by trusted application 115. This ensures that the system can use the user code to ensure that modifications to the authorization process data structure are personalized and cryptographically secure.

[0314] Computer system 100 can also operate in the third authorization stage. The third authorization stage can occur after the process has been authenticated and the corresponding process identification has been added to the authorized process data structure. Kernel module 106 can be configured to access and evaluate the authorized process data structure in an ongoing mode. This can allow kernel module 106 to manage the file operations performed by file system 108 for the protected files stored in non-volatile memory 109.

[0315] For example, when a requesting process sends a file read request and / or a file write request about a protected file through the file system 108, the system 100 can check whether the process identification of the requesting process is stored in the file system. The kernel module 106 maintains an authorized process data structure in the kernel memory. The system 100 can be configured to allow the requesting process to perform the requested operation only after determining that the process identification of the requesting process is stored in the authorized process data structure.

[0316] Protected data files

[0317] The following is a description of a protected data file, which by itself may be used in any access control system or method, or used in any combination or sub-combination with any other one or more of the following features disclosed, including system architecture, user code, application identification, application token, file access data, method for adding an application to a protected area, method for authenticating a process, method for authorizing a process to access a data file, method for launching an application, method for generating a new protected data file, and method for accessing a protected data file.

[0318] The computer system 100 can be configured to restrict access to specific protected data files stored in the non-volatile memory 109. The protected data files can be used to provide cryptographically secure data. In some cases, the protected data files may include application-specific protected data files. Each application-specific protected data file can be associated with a set of authorized applications that are allowed to access the protected data file.

[0319] Each application-specific protected data file may be associated with a set of file-specific applications. The set of file-specific applications may include at least one application 102 installed on the computing system 100. A requesting process is allowed to access a requested application-specific protected data file only if the associated application associated with the requesting process is an application in the set of file-specific applications associated with the requested data file. The set of file-specific applications for a given protected data file may be included in the application-specific access data for the protected data file.

[0320] In some cases, each file generated by a particular protected application can be associated with an application identity for that application. The application identity associated with a protected data file can be used to restrict access to the protected data file by processes associated with other applications. For example, a data file associated with a particular application identity can only be accessed by processes associated with the same application identity (except for root processes).

[0321] In some cases, a file-specific application group associated with a protected data file can be associated with additional applications. For example, when creating a new file through APIs such as getSharedPreferences(String, int), openFileOutput(String, int), the application can be configured to use the MODE_WORLD_READABLE and MODE_WORLD_RITEABLE flags to allow additional applications to read / write the protected data file simultaneously and / or independently.

[0322] The protected data files may include encrypted protected data files. The encrypted protected data files may be stored in the non-volatile memory 109 in an encrypted / ciphertext form. This may help prevent unauthorized processes from reading any plaintext data of the protected data files. The file contents of each encrypted data file may be protected by an encryption process. The corresponding encryption keys may be managed by the trusted application 115 in the trusted environment 150.

[0323] Each encrypted protected file can be encrypted using a file-specific encryption key. The computer system 100 can be configured to associate file-specific file access data with each encrypted protected file. As described above, the file access data can include key material that specifies file encryption key information for a corresponding encryption / decryption key for the file. The key material can be used to identify the encryption / decryption key corresponding to the encrypted data file. In some cases, the key material can be used to derive the encryption / decryption key corresponding to the encrypted data file.

[0324] The file access data may be generated by the trusted application 115 in the trusted environment 150. The file access data may be stored in the non-volatile memory 109 in association with the corresponding encrypted data file. For example, the file access data may be stored in the non-volatile memory 109 by the file system 108 as an extended file attribute.

[0325] In some cases, the file attributes may also provide other data related to the encrypted data file. For example, the file attributes may define a tag that provides an indication that the corresponding file is a protected data file. In some cases, the protected file tag may be included as part of the file access data. Alternatively, the protected file tag may be provided separately from the file access data. This may help, for example, determine that the file is a protected data file if the file access data is encrypted.

[0326] As described above, the processed data files may include one or more encrypted data files. For each encrypted data file, a corresponding file encryption key may be generated in the trusted environment 150. Key derivation data (i.e., file access data) may be stored in association with the encrypted data file, such as as an extended attribute of the file. The file access data may also include an application identifier of an application associated with the protected data file.

[0327] In some cases, file access data may also be encrypted, such as using user code data as an attribute encryption key to encrypt file attributes. This can ensure that key-derived data is protected by trusted application 115 based on a user code defined by user 101. This allows user 101 to protect the content of protected data files and manage access to protected data files by using user codes.

[0328] How to start the application

[0329] The following is a description of a method for launching an application, which may be used in any access control system or method, or used in any combination or sub-combination with any other one or more of the following features disclosed, including: system architecture, user code, application identification, application token, file access data, method for adding an application to a protected area, method for authenticating a process, method for authorizing a process to access a data file, a protected data file, method for generating a new protected data file, and method for accessing a protected data file.

[0330] The computer system 100 may provide an application startup (e.g., application launch) method for implementing cryptographically secure access control. When a user launches an application 102, a corresponding application process may be launched. For example, in a computing system 100 operating using an Android operating system, a new process is derived from a zygote process. The zygote process is a special system process within the Android operating system that can effectively provide a template for a newly launched application process.

[0331] When launching a first process associated with a particular application, computer system 100 may verify an application certificate corresponding to the associated application.

[0332] After verifying the certificate, computer system 100 may determine whether the user code is available in trusted execution environment 150. Computer system 100 may determine whether the user code is available before loading and executing an application class.

[0333] In some cases, the computer system 100 may generate a verified application launch prompt in response to verifying the application certificate. The verified application launch prompt may be defined as prompting the user 101 to provide a user code input.

[0334] The computer system 100 may then receive a verified application launch input (e.g., a user code input that defines a claimed user code) in response to the verified application launch prompt. The computer system 100 may then use various processes described herein to determine whether the verified application launch input corresponds to a valid user code. For example, the control gate 104 may determine a hashed version of the user code input. The hashed version of the user code input may be provided to the kernel module 106 by the control gate 104 in the framework 130 and verified in the trusted environment 150.

[0335] If the verification of the user code fails, the above process startup process can be terminated. If the verification of the user code succeeds, the application (and the corresponding process) can be allowed to execute. The application (and the corresponding process) can only be allowed to execute after the application certificate has been verified and the computer system 100 determines that the verified application startup input corresponds to a valid user code.

[0336] When the verification of the user code is successful, the computer system 100 can perform further operations to establish a chain of trust between the user 101 and the trusted execution environment 150. For example, as described herein, the application token can be determined for the corresponding application. The application token can be determined at the control gate 104 and sent to the kernel module 106. The kernel module 106 can then send the application token to the trusted execution environment 150 as described above. An example process for verifying an application token and managing application operations using the application token is further described in detail in U.S. Patent Application No. 16 / 521,945, entitled "Personalized, Cryptographically Secure Access Control in a Trusted Execution Environment," the entire contents of which are incorporated herein by reference.

[0337] Computer system 100 can also include the process ID of the current process in the authorized process data structure maintained in kernel memory by kernel module 106 as a whitelist of all authorized processes. Then the current process can be authorized to access some or all protected files stored in non-volatile memory 109.

[0338] In some cases, if the application is one of the protected applications, the computer system 100 may only require a user code prior to application execution. Once the application certificate has been verified, the computer system 100 can determine whether the associated application is one of the protected applications. If the associated application is a protected application, the computer system 100 can determine whether the user code is available.

[0339] The computer system 100 may determine whether the associated application is one of the protected applications by determining the unique application identifier of the associated application. The computer system 100 may then determine whether the unique application identifier of the associated application is included in an access policy data structure stored by the kernel module 106. The control gate 104 may calculate the application identifier of the corresponding application and check the application identifier. The application identifier is stored in an access policy data structure, which is maintained by the kernel module 106 in kernel memory.

[0340] If the application identifier of the associated application is not included in the access policy data structure, the computer system 100 can determine that the associated application is an unprotected application. Upon determining that the associated application is an unprotected application, the computer system 100 can allow the associated application to execute without requiring a user code. Using the process described herein, unprotected applications can be prevented from accessing protected data files regardless of whether a user code is available.

[0341] When the unique application identification of the associated application is included in the access policy data structure, the computer system 100 can determine that the associated application is one of the protected applications. The control gate 104 can then determine whether the user code is available within the computing system 100.

[0342] In some cases, control gate 104 may prompt end user 101 to enter a user code directly or indirectly, as described herein. After determining that the associated application is one of the protected applications, control gate 104 may generate a protected application launch prompt. The verified application launch prompt may be defined as prompting user 101 to provide a user code input.

[0343] Computer system 100 may receive protected application launch input (e.g., a user code input) in response to a protected application launch prompt. Computer system 100 may determine whether the protected application launch input corresponds to a valid user code, for example, by comparing a hashed version of the input user code with a hashed version of a stored user code. Only after the processor has determined that the protected application launch input corresponds to a valid user code, does computer system 100 allow the associated application to execute.

[0344] Create a protected file

[0345] The following is a description of a method for generating a new protected data file, which can itself be used in any access control system or method, or used in any combination or sub-combination with any other one or more of the following features disclosed, including: system architecture, user code, application identification, application token, file access data, method for adding an application to a protected area, method for authenticating a process, method for authorizing a process to access a data file, a protected data file, method for launching an application, and method for accessing a protected data file.

[0346] Computer system 100 can be configured to generate new protected data files. Each protected data file can be associated with a set of file-specific applications that are allowed to access the protected data file. In some cases, all protected applications may be allowed to access a particular protected data file. In some cases, access to one or more protected data files may be limited to only a portion of the protected applications (in some cases only a single application).

[0347] The protected data file may include a file attribute that identifies the file as a protected data file. The file attribute may also include file access data. When the protected data file is encrypted data, the file access data may include key material. A portion of the file access data, such as key material, may be generated in the trusted environment 150 and sent back to the file system 108 and stored in an extended attribute domain in the non-volatile memory 109.

[0348] In some cases, a data file may be defined as a protected file when it is first generated. For example, the computer system 100 may be configured to automatically store each new file generated by one of the protected applications as one of the protected data files. That is, new files created by an authorized process corresponding to a protected application may be automatically protected (i.e., protected data files immediately after generation).

[0349] In some cases, a data file may be initially generated and / or stored as an unprotected data file. For example, an application may initially be an unprotected application. A data file generated by the application while unprotected may be stored in the non-volatile memory 109 as an unprotected data file. The application may subsequently be identified as a protected application, for example, if a user adds the application to a protected area. In this case, an existing file corresponding to the application may be converted from an unprotected data file to a protected data file.

[0350] When an application is identified as a protected application, the computer system 100 can identify a set of existing data files corresponding to the particular application stored in the non-volatile memory 109. The computer system 100 can then modify each unprotected data file to become a protected data file. For example, the registration service 105 can perform an operation to modify a data file from an unprotected data file to a protected data file.

[0351] As described above, a process associated with a protected application may store its corresponding process identification in an authorized process data structure in kernel memory managed by kernel module 106. In some cases, kernel module 106 may also define an additional conversion process data structure (also referred to as a conversion_PID data structure) in kernel memory. The conversion process data structure may be used to identify a process that may convert an existing (unprotected) data file to its protected version.

[0352] Before adding the process identifier to the conversion process data structure, the registration service 105 can determine whether the user code exists in the trusted environment 150. As described above, this may involve prompting the user to provide a user code input. This can allow the end user 101 to use the registration service 105 to define which process or processes are allowed to perform the conversion operation.

[0353] In some cases, kernel module 106 may receive a write operation request from a specific process running in a rich operating system. The write operation may be related to a protected data file. Kernel module 106 may be configured to allow the write operation request to occur only when the process ID of the specific process is included in the authorized process data structure.

[0354] When a process operating in a rich operating system creates a new file, computer system 100 can determine whether a process identification is included in a translation process data structure.

[0355] When the process identification PID exists in the conversion process data structure, the computer system 100 can be configured to store the new file as a protected data file. If the computer system determines that the process identification PID is not in the conversion process data structure, the kernel module 106 can further check whether the PID exists in the authorized process data structure in the kernel memory. If the process identification is included in the authorized process data structure, the computer system 100 can be configured to store the new file as a protected data file.

[0356] To store the new file as a protected data file, the kernel module 106 may send a request to the trusted environment 150 to generate an encryption key and file access data for the new file. The trusted environment 150 may generate a random file encryption key for the new file. The encryption key may be used to encrypt the file before storing it in the non-volatile memory 109. The file access data may be provided to the kernel module 106 to be associated with the newly created file (e.g., as an extended attribute).

[0357] If the process ID is not included in the conversion process data structure and the process ID is not included in the authorization process data structure, the computer system 100 can be configured to store the new file generated by the corresponding process as an unprotected data file. For example, the file can be created without the corresponding extended attribute.

[0358] Accessing existing protected data files

[0359] The following is a description of a method for accessing a protected data file, which method can be used by itself in any access control system or method, or in any combination or sub-combination with any one or more of the following other features disclosed, including: system architecture, user code, application identification, application token, file access data, method for adding an application to a protected area, method for performing process authentication, method for authorizing a process to access a data file, a protected data file, method for launching an application, and method for generating a new protected data file.

[0360] Computer system 100 can manage whether to allow the requesting process to access the requested data file. For example, in the case where the requested data file is a protected data file, computer system 100 can prevent the requesting process from accessing the protected data file unless the requesting process corresponds to a protected application.

[0361] The computer system 100 may define a set of protected applications. The set of protected applications may include at least one of the applications 102 installed on the computing device 100. The computer system 100 may then allow the requesting process to access the requested data file only if the associated application is one of the protected applications.

[0362] The computer system 100 may associate each protected data file with a file-specific application group. The file-specific application group may include at least one application installed on the computing device. For example, each protected data file may be associated with an application identifier of each application in the file-specific application group. The computer system 100 may allow the requesting process to access the requested data file only if the application associated with the requesting process is an application in the file-specific application group associated with the requested data file.

[0363] The process of accessing the requested data file may include an initial assessment of the file attributes of the requested data file. For example, the computer system 100 may determine whether the requested data file includes an extended attribute indicating that the requested data file is a protected data file, such as a label of a protected file. If the requested data file does not have a protected file attribute associated therewith (for example, if the data file does not include any extended attributes), the computer system 100 may determine that the requested data file is not protected. The requesting process may then be provided with access to the requested data file.

[0364] If the computer system determines that the protected file attribute is associated with the requested data file, the computer system 100 can determine whether the requesting process is an authorized process. For example, the computer system 100 can determine whether the requesting process is an authorized process by determining whether the process identifier of the requesting process is included in a data structure stored in the kernel memory, and the data structure can be the above-mentioned authorized process data structure and / or the above-mentioned conversion process data structure. If the computer system determines that the requesting process is an authorized process, the requesting process can be allowed to access the requested data file.

[0365] In some cases, when the computer system 100 determines that the process identifier of the requesting process is included in the conversion process data structure, the requesting process can be provided with the permission to directly access the requested data file. The requesting process can be provided with access to the requested data file without evaluating the application associated with the requested data file. In this case, the rest of the process authentication process can be bypassed, and the kernel module 106 can send a request to the trusted environment 150 to obtain the file encryption key. The request may include file access data (or at least a portion thereof, such as key material) associated with the requested data file. In this process, when the encrypted file is provided to the kernel module 106, the trusted application 115 may not verify whether the data file is associated with a specific application.

[0366] Processes whose process identifiers are included in the conversion process data structure may be subject to certain restrictions on the operations they perform on the file encryption key. For example, the process may be limited to using the encryption key to encrypt files and / or write new protected data files (rather than decrypting data files). This can support the operation of the conversion process because, typically, the conversion process can simply read a previously unprotected plaintext file and convert the file to a ciphertext format and write it to the non-volatile memory 109 as a protected data file. Therefore, the fact that the trusted application 115 does not check application-specific access data (e.g., file ownership data indicating an association between a file and one or more protected applications) does not introduce a security vulnerability. In addition, as described above, the addition of the process identifier to the conversion process data structure in kernel memory can be protected by verifying user code.

[0367] In some cases, when the computer system 100 determines that the process identifier of the requesting process is not included in the conversion process data structure, the computer system 100 can determine whether the process identifier of the requesting process is included in the authorization process data structure. If the process identifier of the requesting process is not included in the authorization process data structure, the requesting process can be prohibited from performing any read operation and / or write operation related to the protected file in the non-volatile memory 109.

[0368] If the process identifier of the requesting process is included in the authorized process data structure, the kernel module 106 can further evaluate whether the requesting process is allowed to access the specific requested file. For example, the computer system 100 can evaluate whether the requesting process is associated with an application that is also associated with the requested data file. The kernel module 106 can query the process mapping data structure in the kernel memory to determine the application identifier associated with the requesting process. The kernel module 106 can provide the application identifier of the application associated with the requesting process and the file access data (or a portion thereof) of the requested data file to the trusted application 115 in the trusted execution environment 150.

[0369] The trusted application 115 may compare the application identifier of the application associated with the requesting process with the application identifier of the application associated with the requested data file (e.g., determined based on the file access data) to determine whether the requesting process is allowed to access the requested data file. When the application identifier of the process matches the application-specific access data (e.g., file owner information) contained in the file access data, the trusted application 115 may only provide the encryption key corresponding to the requested data file to the kernel module 106. Thus, each authorized process may be allowed to access files associated with the same application as the requesting process (as well as any other files that identify the associated application as an allowed application). Similarly, authorized processes may be prevented from accessing protected files associated with other applications, i.e., those protected files whose file-specific application groups do not include the application associated with the requesting process.

[0370] Computer system 100 can be configured to update the authorized process data structure and / or conversion process data structure in kernel memory based on the life cycle of the process running in the rich operating system. Kernel module 106 can be configured to update the authorized process data structure and / or conversion process data structure by monitoring the process running in the rich operating system.

[0371] The computer system 100 can detect the termination action of a process that is about to be terminated and is running in a rich operating system. When an authorized process is terminated, the computer system 100 can update the process whitelist. The kernel module 106 can determine that the authorized process data structure includes the process identifier of the terminated process. Then, the kernel module 106 can update the authorized process data structure to remove the process identifier of the terminated process. The kernel module 106 can also update the process mapping data structure. This can allow the computer system 100 to reuse the process identifier when starting and terminating a process, while preventing erroneous authorization inheritance. That is, a new process can be prevented from inheriting a license granted to an expired process, where the expired process used the same process identifier and the process identifier was reused and assigned to a new process.

[0372] Although the above description presents the features of the example embodiments, it is to be understood that some features and / or functions of the described embodiments may be modified without departing from the spirit and operating principle of the described embodiments. For example, various characteristics described by means of the represented embodiments or examples may be selectively combined with each other. In other cases, well-known methods, processes, and components are not described in detail here to avoid confusing the description of the embodiments. Therefore, the above-described content is intended to illustrate the claimed concepts and is non-restrictive. Those skilled in the art will appreciate that other variations and modifications may be made without departing from the scope of the invention as defined in 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 for a computing device, the 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 being configured to operate a rich operating system in the rich execution environment and to operate a trusted operating system in the trusted execution environment; and (b) a non-volatile memory configured to store a plurality of data files and a plurality of application instruction sets, wherein each application instruction set corresponds to an application installed on the computing device and each application is configured to run in the rich operating system, wherein the plurality of data files includes a plurality of protected data files; (c) wherein the processor is configured to: (i) receiving a file request for a requested data file stored in a non-volatile memory, wherein the requested data file corresponds to a protected data file among the plurality of protected data files, and wherein the file request is received from a requesting process running within the rich operating system; (ii) determining an associated application associated with the requesting process, wherein the associated application corresponds to an application installed on the computing device; (iii) determine whether a verified application token exists for the associated application; and (iv) only when the verified application token is present, allowing the requesting process to access the requested data file; otherwise, preventing the requesting process from accessing the requested data file; The processor is configured to generate the verified application token for the associated application in the following manner: detecting a launch of a first process associated with the associated application; ensuring that a valid user code is available within the trusted execution environment; and After determining that the valid user code is available within the trusted execution environment, an application token is generated using the valid user code.

2. The system of claim 1, wherein: (a) the processor is configured to: (i) generating an application startup prompt in conjunction with the startup of the first process, wherein the application startup prompt is defined as prompting a user to enter a user code; (ii) receiving an application launch input in response to the application launch prompt; (iii) determining whether the application launching input corresponds to the valid user code; and (iv) after determining that the application launch input corresponds to the valid user code, generating the application token using the user code.

3. The system of claim 2, wherein: (a) determining whether the application launch input corresponds to the valid user code, comprising the following steps: (i) determining a received user code from said application initiation input; (ii) determining a hashed user code by performing a hash calculation on the received user code; (iii) comparing the hashed user code to a stored hashed user code stored in a trusted non-volatile memory of the trusted execution environment; and (iv) when the hashed user code matches the stored hashed user code, determining that the received user code corresponds to the valid user code, otherwise determining that the received user code is invalid.

4. A system according to any one of claims 1 to 3, wherein: (a) The processor is configured to generate the application token by: (i) determining a timestamp corresponding to the initiation of the first process; and (ii) generating the application token using the timestamp and the valid user code.

5. The system according to claim 1, wherein: The processor is configured to: (a) associating each protected data file with a file-specific application set, wherein the file-specific application set includes at least one application installed on the computing device; and (b) allowing the requesting process to access the requested data file only if the associated application associated with the requesting process is one of the file-specific application groups associated with the requested data file.

6. The system according to claim 5, wherein: The processor is configured to: (a) defining a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; and (b) allowing the requesting process to access the requested data file only if the associated application is one of the protected applications.

7. The system according to claim 6, wherein: The processor is configured to, for each new file generated by one of the protected applications, automatically store the file as one of the protected data files.

8. The system of claim 7, wherein: (a) for each application installed on the computing device, the processor is configured to assign a unique application identifier to the application, wherein the application identifier is defined by using a unique application identifier defined by the processor and an application certificate corresponding to the application; and (b) The processor is configured to generate the application token for the associated application by using the unique application identifier of the associated application and the valid user code.

9. The system of claim 8, wherein: (a) For each application installed on the computing device, the processor is configured to define the application identification by: (i) generating a hashed application certificate by hashing the application certificate corresponding to the application; and (ii) combining the application identification code with the hashed application certificate.

10. The system according to any one of claims 8 and 9, wherein: The processor is configured to, when the first process associated with the associated application is started, (a) verifying the application certificate corresponding to the associated application; (b) generating a verified application launch prompt in response to verifying the application certificate, wherein the verified application launch prompt is defined as prompting a user to enter a user code; (c) receiving a verified application launch input in response to the verified application launch prompt; (d) determining whether the authenticated application launching input corresponds to the valid user code; and (e) allowing the associated application to execute only after the application certificate has been verified and the verified application launch input corresponds to the valid user code.

11. The system according to claim 1, wherein: The processor is configured to: (a) for each application installed on the computing device, assigning a unique application identifier to the application, wherein the application identifier is defined by using a unique application identifier defined by the processor and an application certificate corresponding to the application; (b) defining a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; (c) defining an access policy file, wherein the access policy file includes a unique application identifier for each protected application in the group of protected applications; (d) storing the access policy file in a non-volatile memory; and (e) The requesting process is allowed to access the requested data file only when the access policy file contains the unique application identifier of the associated application.

12. The system according to claim 11, wherein: The processor is configured to: (a) storing the access policy file in a non-volatile memory in association with a code corresponding to a hash of the effective user code; (b) prohibiting modification of the access policy file unless a policy modification input corresponding to the valid user code is received and verified with the hash code corresponding to the valid user code; and (c) Allowing read operations on the access policy file without policy modification input.

13. The system according to claim 12, wherein: The processor is configured to: (a) defining an access policy data structure in kernel memory accessible within the rich operating system; and (b) synchronizing the access policy data structure with the access policy file stored in the non-volatile memory so that the access policy data structure includes a unique application identifier for each protected application in the group of protected applications.

14. The system according to claim 13, wherein: The processor is configured to: when the first process associated with the associated application is started, (a) verifying the application certificate corresponding to the associated application; (b) after verifying the application certificate, determining whether the associated application is one of the protected applications by: (i) a unique application identifier that identifies the associated application; and (ii) determining whether the unique application identifier of the associated application is contained in the access policy data structure; and (iii) when the access policy data structure includes the unique application identifier of the associated application, determining that the associated application is one of the protected applications; otherwise, determining that the associated application is an unprotected application; (c) after determining that the associated application is one of the protected applications, (i) generating a protected application launch prompt, wherein the protected application launch prompt is defined as prompting a user to enter a user code; (ii) receiving a protected application launch input in response to the protected application launch prompt; (iii) determining whether the protected application launching input corresponds to the valid user code; and (iv) allowing the associated application to execute only after the processor determines that the protected application launch input corresponds to the valid user code; and (d) after determining that the associated application is an unprotected application, allowing the associated application to execute.

15. The system according to claim 14, wherein the processor is configured to, when the request process is started, (a) determining a process identifier associated with the requesting process; (b) verifying an application certificate corresponding to the associated application; (c) after verifying the application certificate, determining whether the associated application is one of the protected applications; (d) upon determining that the associated application is one of the protected applications, generating a process start prompt, wherein the process start prompt is defined as prompting a user to enter a user code; (e) receiving a process start input in response to the process start prompt; (f) determining whether the process initiation input corresponds to the valid user code; (g) upon determining that the associated application is one of the protected applications and that the process launch input corresponds to the valid user code, storing a process identifier of the requesting process in an authorized process data structure in kernel memory accessible within the rich operating system; and (h) allowing the requesting process to access the requested data file only if the authorized process data structure contains the process identifier of the requesting process.

16. The system according to claim 15, wherein: The processor is configured to: (a) receiving a write operation request from a specific process running in a rich operating system, wherein the write operation request is related to a protected data file; and (b) The write operation request is allowed only when the authorized process data structure contains the process identifier of the specific process.

17. The system according to any one of claims 15 and 16, wherein: The processor is configured to: (a) detecting the termination of a terminating process running in a rich operating system; (b) determining that the authorized process data structure contains the process identifier of the terminated process; and (c) updating the authorized process data structure to delete the process identifier of the terminated process.

18. The system according to any one of claims 11 to 16, wherein: The processor is configured to: (a) storing the access policy file in a non-volatile memory in association with a code corresponding to a hash of the effective user code; (b) receiving a policy update input specifying that a particular application is to be added to the group of protected applications; (c) generating an update verification prompt in response to the policy update input, wherein the update verification prompt is defined as prompting a user to enter a user code; (d) receiving an update verification input in response to the update verification prompt; (e) determining whether the update verification input corresponds to the valid user code using a hash code corresponding to the valid user code stored in a manner associated with the access policy file; (f) upon determining that the update verification input corresponds to the valid user code, (i) updating the access policy file to include the above-mentioned specific application; (ii) identifying a set of existing data files stored in non-volatile memory that correspond to the particular application; and (iii) modifying each existing data file from an unprotected data file to a protected data file.

19. A method of controlling access to a plurality of data files stored in a non-volatile memory of a computing device, wherein: The plurality of data files include a plurality of protected data files, the method is performed by a processor configured to run a rich operating system in a rich execution environment and a trusted operating system in a trusted execution environment, the method comprising: (a) receiving, by the processor, a file request for a requested data file stored in a non-volatile memory, wherein the requested data file corresponds to a protected data file among the plurality of protected data files, and wherein the file request is received from a requesting process running in a rich operating system; (b) determining, by the processor, an associated application associated with the requesting process, wherein the associated application corresponds to an application installed on the computing device; (c) determining, by the processor, whether a verified application token exists for the associated application; and (d) the processor allows the requesting process to access the requested data file only when the verified application token is present, otherwise the processor prevents the requesting process from accessing the requested data file; The processor generates the verified application token for the associated application in the following manner: detecting a launch of a first process associated with the associated application; Determining that a valid user code is available within the trusted execution environment; and After determining that the valid user code is available within the trusted execution environment, an application token is generated using the valid user code.

20. The method according to claim 19, further comprising: (i) generating, by the processor in conjunction with the start of the first process, an application start prompt, wherein the application start prompt is defined as prompting a user to enter a user code; (ii) receiving, by the processor, an application launch input in response to the application launch prompt; (iii) determining, by the processor, whether the application launch input corresponds to the valid user code; and (iv) after determining that the application launch input corresponds to the valid user code, the processor generates the application token using the user code.

21. The method of claim 20, wherein: (a) determining whether the application launch input corresponds to the valid user code, comprising the following steps: (i) determining a received user code from said application initiation input; (ii) determining a hashed user code by performing a hash calculation on the received user code; (iii) comparing the hashed user code to a stored hashed user code stored in a trusted non-volatile memory of the trusted execution environment; and (iv) when the hashed user code matches the stored hashed user code, determining that the received user code corresponds to the valid user code, otherwise determining that the received user code is invalid.

22. The method according to any one of claims 19 to 21, further comprising: (a) Generate the application token by: (i) determining a timestamp corresponding to the initiation of the first process; and (ii) generating the application token using the timestamp and the valid user code.

23. The method of claim 19, further comprising: (a) associating each protected data file with a file-specific application set, wherein the file-specific application set includes at least one application installed on the computing device; and (b) allowing the requesting process to access the requested data file only if the associated application associated with the requesting process is one of the file-specific application groups associated with the requested data file.

24. The method according to claim 23, further comprising: (a) defining a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; and (b) allowing the requesting process to access the requested data file only if the associated application is one of the protected applications.

25. The method of claim 23, further comprising: For each new file generated by one of the protected applications, the file is automatically stored as one of the protected data files.

26. The method according to claim 25, further comprising: (a) for each application installed on the computing device, assigning a unique application identifier to the application, wherein the application identifier is defined by using a unique application identifier defined by the processor and an application certificate corresponding to the application; and (b) generating the application token for the associated application by using the unique application identifier of the associated application and the valid user code.

27. The method according to claim 26, further comprising: (a) for each application installed on the computing device, define the application identity as follows: (i) generating a hashed application certificate by hashing the application certificate corresponding to the application; and (ii) combining the application identification code with the hashed application certificate.

28. The method according to any one of claims 26 and 27, further comprising: When the first process associated with the associated application is started, (a) verifying the application certificate corresponding to the associated application; (b) generating a verified application launch prompt in response to verifying the application certificate, wherein the verified application launch prompt is defined as prompting a user to enter a user code; (c) receiving a verified application launch input in response to the verified application launch prompt; (d) determining whether the authenticated application launching input corresponds to the valid user code; and (e) allowing the associated application to execute only after the application certificate has been verified and the verified application launch input corresponds to the valid user code.

29. The method of claim 19, further comprising: (a) for each application installed on the computing device, assigning a unique application identifier to the application, wherein the application identifier is defined by using a unique application identifier defined by the processor and an application certificate corresponding to the application; (b) defining a protected application group, wherein the protected application group includes at least one of the applications installed on the computing device; (c) defining an access policy file, wherein the access policy file includes a unique application identifier for each protected application in the group of protected applications; (d) storing the access policy file in a non-volatile memory; and (e) The requesting process is allowed to access the requested data file only when the access policy file contains the unique application identifier of the associated application.

30. The method of claim 29, further comprising: (a) storing the access policy file in a non-volatile memory in association with a code corresponding to a hash of the effective user code; (b) prohibiting modification of the access policy file unless a policy modification input corresponding to the valid user code is received and verified with the hash code corresponding to the valid user code; and (c) Allowing read operations on the access policy file without policy modification input.

31. The method according to claim 30, further comprising: (a) defining an access policy data structure in kernel memory accessible within the rich operating system; and (b) synchronizing the access policy data structure with the access policy file stored in the non-volatile memory so that the access policy data structure includes a unique application identifier for each protected application in the group of protected applications.

32. The method of claim 31 further comprising: When the first process associated with the associated application is started, (a) verifying the application certificate corresponding to the associated application; (b) after verifying the application certificate, determining whether the associated application is one of the protected applications by: (i) a unique application identifier that identifies the associated application; and (ii) determining whether the unique application identifier of the associated application is contained in the access policy data structure; and (iii) when the access policy data structure includes the unique application identifier of the associated application, determining that the associated application is one of the protected applications; otherwise, determining that the associated application is an unprotected application; (c) after determining that the associated application is one of the protected applications, (i) generating a protected application launch prompt, wherein the protected application launch prompt is defined as prompting a user to enter a user code; (ii) receiving a protected application launch input in response to the protected application launch prompt; (iii) determining whether the protected application launching input corresponds to the valid user code; and (iv) allowing the associated application to execute only after the processor determines that the protected application launch input corresponds to the valid user code; and (d) after determining that the associated application is an unprotected application, allowing the associated application to execute.

33. The method of claim 29, further comprising: When the request process is started, (a) determining a process identifier associated with the requesting process; (b) verifying an application certificate corresponding to the associated application; (c) after verifying the application certificate, determining whether the associated application is one of the protected applications; (d) when it is determined that the associated application is one of the protected applications, generating a process start prompt, wherein the process start prompt is defined as prompting a user to enter a user code; (e) receiving a process start input in response to the process start prompt; (f) determining whether the process initiation input corresponds to the valid user code; (g) upon determining that the associated application is one of the protected applications and that the process initiation input corresponds to the valid user code, storing a process identifier of the requesting process in an authorized process data structure in kernel memory accessible within the rich operating system; and (h) allowing the requesting process to access the requested data file only if the authorized process data structure contains the process identifier of the requesting process.

34. The method of claim 33, further comprising: (a) receiving a write operation request from a specific process running in a rich operating system, wherein the write operation request is related to a protected data file; and (b) The write operation request is allowed to occur only when the authorized process data structure contains the process identifier of the above-mentioned specific process.

35. The method according to any one of claims 33 and 34, further comprising: (a) detecting the termination of a terminating process running in a rich operating system; (b) determining that the authorized process data structure contains the process identifier of the process to be terminated; and (c) updating the authorized process data structure to delete the process identifier of the terminated process.

36. The method of claim 29, further comprising: (a) storing the access policy file in a non-volatile memory in association with a code corresponding to a hash of the effective user code; (b) receiving a policy update input specifying that a particular application is to be added to the group of protected applications; (c) generating an update verification prompt in response to the policy update input, wherein the update verification prompt is defined as prompting a user to enter a user code; (d) receiving an update verification input in response to the update verification prompt; (e) determining whether the update verification input corresponds to the valid user code using a hash code corresponding to the valid user code stored in a manner associated with the access policy file; (f) upon determining that the update verification input corresponds to the valid user code, (i) updating the access policy file to include the above-mentioned specific application; (ii) identifying a set of existing data files stored in the non-volatile memory that correspond to the particular application; and (iii) modifying each existing data file from an unprotected data file to a protected data file.

37. 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 of a computing device, wherein: The computing device includes a processor configured to run a rich operating system in a rich execution environment and a trusted operating system in a trusted execution environment, wherein the plurality of data files include a plurality of protected data files, wherein the instructions are defined as configuring the processor to perform the following operations: (a) receiving a file request for a requested data file stored in a non-volatile memory, wherein the requested data file corresponds to a protected data file among the plurality of protected data files, and wherein the file request is received from a requesting process running within a rich operating system; (b) determining an associated application associated with the request process, wherein the associated application corresponds to an application installed on the computing device; (c) determine whether a verified application token exists for the associated application; and (d) only when the verified application token is present, the requesting process is allowed to access the requested data file; otherwise, the requesting process is prevented from accessing the requested data file; The instructions are defined as configuring the processor to generate the verified application token for the associated application in the following manner: detecting a launch of a first process associated with the associated application; Determining that a valid user code is available within the trusted execution environment; and After determining that the valid user code is available within the trusted execution environment, an application token is generated using the valid user code.

38. The computer readable medium of claim 37, further comprising instructions defined to configure the processor to perform the method of any of claims 20 to 36.