Method, system and storage medium for security policy monitoring service

Through the security policy analyzer service and propositional logic converter, the complexity of computer system and network security management is solved, and accurate control of user access rights and effective management of computing resource access are achieved.

CN114124444BActive Publication Date: 2024-10-15AMAZON TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111162818.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-06-29
Filing Date
2018-06-15
Publication Date
2024-10-15
Estimated Expiration
2038-06-15

AI Technical Summary

Technical Problem

In a computing resource service provider environment, managing and maintaining the security of computer systems and networks is complex and challenging, especially when user access rights change over time and it is difficult to determine whether a user should have access or be denied access to computing resources. Especially as the number and types of users scale.

Method used

Introduce a security policy analyzer service to compare and evaluate security policies through API calls, use propositional logic converters and satisfiability engines to determine the relative lenientness and equivalence of policies, and support communication between client computing devices and the policy analyzer service. Communications to determine relative laxity and equivalence of security policies.

Benefits of technology

Effectively manage and maintain the security of computer systems and networks, ensure the accuracy and consistency of user access rights, and improve the accuracy and efficiency of access control of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114124444B_ABST
    Figure CN114124444B_ABST
Patent Text Reader

Abstract

Security policies may be utilized to grant or deny permissions associated with access to computing resources. Two or more security policies may be compared to determine whether the policies are equivalent, whether one security is more permissive than another, and so on. In some cases, it may be possible to identify whether there are sufficient security permissions to determine that two security policies lack equivalence. Propositional logic may be used to evaluate security policies.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention application is a divisional application of the invention patent application with an international application date of June 15, 2018, an international application number of "PCT / US2018 / 037947", a national application number of "201880043935.4", and an invention name of "Security Policy Analyzer Service and Satisfiability Engine".

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application claims priority to U.S. Patent Application No. 15 / 637,227, filed on June 29, 2017, entitled “SECURITY POLICY ANALYZER SERVICE AND SATISFIABILITY ENGINE,” and U.S. Patent Application No. 15 / 637,238, filed on June 29, 2017, entitled “SECURITY POLICY MONITORING SERVICE,” the disclosures of which are incorporated herein by reference in their entirety. Background Art

[0004] In many environments, the security of computing resources and associated data is very important. As an example, a network of computing devices can be used to provide a robust set of services to its users. Within the network, a first user can be granted certain access rights, and a second user can have a second set of access rights that may be different from the first user's access rights. User access rights can be defined using security policies in the environment of a computing resource service provider, which can be utilized by the service provider as part of determining whether to grant or deny user access to computing resources.

[0005] Managing and maintaining the security of computer systems and computer networks is often complex and challenging. In many cases, user access rights in a system may change over time, which in some cases may require changes to the security policies applied to users. As the number and types of users supported in a computer system or computer network expand, it may become difficult to determine whether the access rights associated with a user actually grant access to resources that the user should have access to and deny access to resources that the user should not have access to. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Various techniques will be described with reference to the accompanying drawings, in which:

[0007] Figure 1 illustrates an environment in which various embodiments may be implemented;

[0008] Figure 2 An environment is shown in which a computing resource service provider may use to implement various embodiments;

[0009] Figure 3 An environment is shown in which a client issues a request to analyze two security policies for equivalence and receives an equivalence result;

[0010] Figure 4 illustrates an environment in which a distributed computer system may utilize the various techniques described herein;

[0011] Figure 5 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0012] Figure 6 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0013] Figure 7 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0014] Figure 8 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0015] Fig. 9 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0016] Fig.10 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0017] Fig.11 A diagram showing the use of propositional logic as part of determining the satisfiability of a propositional logic formula;

[0018] Fig.12 A diagram illustrating a process for determining the equivalence of two or more security policies is shown;

[0019] Fig.13 An environment is shown in which an event-driven platform is utilized in conjunction with security policies applied to a system in conjunction with analytics;

[0020] Fig.14 A diagram illustrating a process for monitoring policies applied to a system is shown;

[0021] Fig.15 shows a diagram illustrating a graphical user interface in which various embodiments may be implemented; and

[0022] Fig.16 An environment is shown in which various embodiments may be implemented. DETAILED DESCRIPTION

[0023] In the environment of a computing resource service provider, a client may make a request to access a resource of the computing resource service provider. The client may have a security policy associated with the client so that the security policy may be utilized as part of determining whether to grant client access to one or more computing resources, such as computing resources that the client may request via an application programming interface (API) call, which may be routed to the service provider over a network. In some cases, the computing resource service provider may provide users with the ability to create, change, or delete a security policy or a portion of a security policy. A security policy analyzer service may be used to compare security policies and determine whether a first security policy is more permissive than a second security policy.

[0024] In various instances, a client may request a policy analyzer service to analyze a security policy to determine the relative permissiveness of the policies—in other words, the policy analyzer may be used to determine whether two security policies are equivalent, whether a first security policy is more permissive than a second security policy, and so on. The policy analyzer service may be a service of a computing resource service (such as the computing resource services described elsewhere in this disclosure) and may be accessed via an API call that may be routed over a network to a service provider. The client computing device may be operable to access a computing resource service provider's services, computing resources, and the like. In various instances, the client computing device communicates with the policy analyzer service via a network API call.

[0025] A client computing device on behalf of a client can utilize a policy analyzer service to determine the equivalence of two or more security policies. A client can use a client computing device to make an API request including two or more security policies to a policy analyzer service. In general, a security policy can be information that specifies one or more security permissions. A security permission can be an element of a security policy that defines access rights associated with a resource and / or subject of a system. For example, a permission can be used to grant or deny access to a computing resource of a computing resource service provider. In some cases, a permission can specify a subject, computing resources, actions, conditions, and effects. In some embodiments, a permission can also specify multiple or more of these elements, such as a set of users or a class of users, a set of resources, several different actions, and / or multiple conditions.

[0026] A security policy may include one or more permission statements as well as additional information, such as version information and information about the scope of the policy. A security policy may include a set of conditions that may be used to determine whether to grant or deny access to a computing resource in a variety of environments, such as in environments with different users, different actions performed on the computing resource, and different access conditions. An authorization module or authorization service, such as the authorization modules or authorization services described elsewhere in this disclosure, may be used to evaluate whether to grant or deny a request to access a resource based at least in part on evaluating the security policy in conjunction with the request. In some cases, information about the scope of the policy is included in a policy header at the beginning of the policy, or may even be stored separately from (and associated with) a policy document. A policy may include multiple policy statements, such as those described elsewhere in conjunction with the policy document. Figure 2 Describes the policy statement.

[0027] As described throughout this disclosure, a policy analyzer service can be a service of a computing resource service provider, and can support one or more APIs that a client can use to submit a request to evaluate a security policy to the policy analyzer service, such as an API for determining whether a first security policy is more permissive than a second security policy, and whether two or more security policies are equivalent. In this case, permissiveness is used to describe access to a resource. For example, if a first policy can be used to access a first computing resource (e.g., resource "A") and a second resource (e.g., resource "B") and the second policy only agrees to access computing resource "B", the first policy can be described as being more permissive than the second policy, because there are computing resources that the first policy agrees to access but the second policy does not agree to access, and there are no resources that the second policy agrees to access but the first policy does not agree to access. If both policies can be used to access the same resource and deny (implicitly or explicitly) access to the same resource, then the two policies can be equivalent. In general, if two policies are not equivalent, they can be said to lack equivalence. In some cases, if a first policy grants access to a first computing resource "A" and a second computing resource "B," and a second policy grants access to the second computing resource "B" and a third computing resource "C," the policies may be said to be incomparable.

[0028] An API call supported by a policy analyzer service may accept two security policies and determine whether they are equivalent, whether one policy is more relaxed than another policy, whether the policies are incomparable, and the like. As a second example, an API call may accept two or more security policies and determine whether all security policies provided as part of an API request are equivalent. As a third example, an API call may accept a single security policy and compare the security policy with one or more best practice policies. A best practice policy may be a set of security policies that are determined to be a set of permissions that should not be allowed. For example, a first best practice policy may be a policy that a specific data container should not be globally writable (e.g., any subject, even a guest user or an anonymous user, can write to the container). The API may verify compliance with the best practice policy by determining that the received policy is not more relaxed than each of the best practice policies. An example of a best practice policy may include resources that are globally writable, globally readable, globally accessible, and the like. In some embodiments, a set of best practice policies may be determined based on the API call, the type of computing resource requested, and other contextual information.

[0029] The policy analyzer service may include multiple components and / or modules, such as a policy parser; a propositional logic converter; and a satisfiability engine. A policy parser may be a component or module that receives a security policy and obtains one or more permission statements from the policy. For example, if a client provides a first policy "A" and a second policy "B", the policy parser may obtain a first set of permission statements from policy "A" and a second set of permission statements from policy "B". The permission statements may each be associated with granting or denying access to a computing resource. The propositional logic converter may convert the permission statements into one or more constraints described using propositional logic. Constraints may be described in various formats and according to various standards, such as the SMT-LIB standard format, the CVC language, and the Center for Discrete Mathematics and Theoretical Computer Science (DIMACS) format. The propositional logic expression generated by the propositional logic converter may represent a set of constraints that must be satisfied for the corresponding permission statement to take effect.

[0030] The satisfiability engine can be used to compare a first propositional logic expression with a second propositional logic expression to determine whether one propositional logic is looser than another propositional logic. The satisfiability engine can be used to analyze the looseness of two or more propositional logic expressions. The satisfiability engine can generate additional propositional logic constraints as part of determining whether the first propositional logic expression is looser than the second propositional logic expression. In addition to the constraints of the first propositional logic expression and the second propositional logic expression, constraints can also be generated and evaluated. Constraints can be generated based at least in part on the content of a client request. For example, the satisfiability engine can generate constraints that are satisfied only in the following circumstances: in response to a request from a caller to determine whether the first propositional logic expression is looser than the second propositional logic expression, the first policy grants access to the resource and the second policy denies access to the resource or is neutral about the resource. The satisfiability engine can be used to verify whether propositional logic constraints (e.g., constraints obtained from first and second propositional logic expressions and constraints generated by the satisfiability engine). In some embodiments, commands can be used to determine whether a set of constraints can be satisfied. If there is an interpretation of the formula that makes all assertions true, then the formula may be satisfiable. In other words, if each of the constraints is satisfied under some conditions, then the model is satisfiable. In some embodiments, the satisfiability engine can be implemented at least in part using an SMT solver such as Z3, as described in https: / / github.com / Z3Prover / z3.

[0031] In the foregoing and following descriptions, various techniques are described. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of possible ways to implement the techniques. However, it will also be apparent that the techniques described below may be practiced in different configurations without the specific details. In addition, well-known features may be omitted or simplified to avoid obscuring the techniques described.

[0032] Figure 1 is an illustrative example of an environment 100 in which various embodiments of the present disclosure may be practiced. In an embodiment, environment 100 includes: a client computing device 102; a security policy 104; a policy analyzer service 106; a policy parser 108; a propositional logic converter 110; and a satisfiability engine 112. Environment 100 illustrates an example in which a client may request policy analyzer service 106 to analyze security policy 104 to determine the relative permissiveness of the policy—in other words, policy analyzer may be used to determine whether security policy 104 is equivalent to a first security policy (e.g., Figure 1 Is the security policy A shown in Figure 1 better than the second security policy (e.g., Figure 1 The security policy B) shown is more relaxed, and so on.

[0033] The client computing device 102 may be a client of a service that provides access to computing resources. In some embodiments, computing resources are accessed via application programming interface (API) calls that may be routed through a network to a service provider. The client computing device 102 may be an entity operable to access services, computing resources, etc. of a computing environment. In some embodiments, the client computing device 102 may communicate with the policy analyzer service 106 via a network API call.

[0034] In some embodiments, the client computing device 102 utilizes the policy analyzer service 106 to determine the equivalence of two or more security policies 104. The client can propose an API request including two or more security policies 104 to the policy analyzer service. A security policy can be information (e.g., encoded in a file) that specifies one or more security permissions. A security permission can be an element of a security policy that defines the access rights associated with the resources and / or subject of the system. For example, a permission can be used to agree or deny access to computing resources of a computing resource service provider. A policy can be expressed in a language-independent format, such as JavaScript object notation (JSON). The examples discussed in this disclosure can be in JSON format or in a format similar to JSON, and can be used as an illustration of various embodiments that can be implemented. Of course, it is also expected that various other formats that can be utilized in a manner described in combination with JSON and a format similar to JSON and the various other formats are within the scope of this disclosure. A security policy can include one or more permission statements and additional information, such as version information and information on policy scope. In some cases, information on policy scope is included in the policy header at the beginning of the policy, or can even be stored separately from the policy document (and in association with the policy document). A policy may include multiple policy statements, such as those combined elsewhere Figure 2 Describes the policy statement.

[0035] The policy analyzer service 106 may be a computing resource service provider (e.g., in conjunction with Figure 4 The policy analyzer service 106 may be implemented using hardware, software, or a combination thereof. In some cases, the policy analyzer service 106 supports one or more APIs that a client (e.g., the client computing device 102) may use to provide requests to the policy analyzer service 106. The policy analyzer service 106 may support a method for evaluating security policies (e.g., in conjunction with Figure 1 One or more APIs for determining the security policies 104 described herein, such as an API for determining whether a first security policy is more permissive than a second security policy and whether two or more security policies are equivalent.

[0036] In some embodiments, permissiveness is used to describe granting access to resources. For example, if a first policy grants access to a first computing resource (e.g., resource "A") and a second resource (e.g., resource "B") and a second policy grants access only to computing resource "B", the first policy can be described as being more permissive than the second policy because there are computing resources that the first policy grants access to and the second policy does not grant access to, and there are no resources that the second policy grants access to and the first policy does not grant access to. If both policies grant access to the same resource and deny (implicitly or explicitly) access to the same resource, the two policies can be equivalent. In some cases, equivalence can refer to two policies explicitly granting access to the same resource and explicitly denying access to the same resource—in other words, in some embodiments, if the first policy explicitly denies access to a computing resource, while the second policy implicitly denies access to the computing resource (e.g., by not affirmatively granting access in a default deny environment), there may be a lack of equivalence. In general, if two policies are not equivalent, they can be said to lack equivalence. In some cases, if a first policy grants access to a first computing resource "A" and a second computing resource "B," and a second policy grants access to the second computing resource "B" and a third computing resource "C," the policies may be said to be incomparable. It should be noted that, unless otherwise noted, the instances described herein may implement a default-deny security model in which access to computing resources is denied unless there is explicit consent for access to the computing resources. It should also be noted that in the context of these discussions, security policies may be used to grant or deny access to resources in the context of a computing resource service provider, where requests to access resources may be evaluated by an authorization module or authorization service by utilizing a security policy applicable to the request. The applicable security policy may be a security policy associated with the requestor, a security policy associated with a token presented by the requestor, and so on. The security policy described elsewhere may be used in conjunction with the authorization module or authorization service. Figure 4 Described computing resource service providers to perform such techniques.

[0037] The policy analyzer service 106 can be used to determine the looseness of one or more policies. For example, an API call supported by the policy analyzer service 106 can accept two security policies and determine whether they are equivalent, whether one policy is looser than another policy, whether the policies are incomparable, etc. As a second example, an API call can accept two or more security policies and determine whether all security policies provided as part of the API request are equivalent. As a third example, an API call can accept a single security policy and compare the security policy with one or more best practice policies. A best practice policy can be a set of security policies that are determined to be a set of permissions that should not be allowed. For example, a first best practice policy can be a policy that a specific data container should not be writable by the entire domain (for example, any subject, even a guest user or an anonymous user can write to the container). The API can verify compliance with the best practice policy by determining that the received policy is not looser than each of the best practice policies. An example of a best practice policy can include resources that are writable by the entire domain, readable by the entire domain, accessible by the entire domain, etc. In some embodiments, a set of best practice policies can be determined based on an API call, the type of computing resource requested, and other contextual information.

[0038] The policy analyzer service 106 may include multiple components and / or modules, such as a policy parser 108; a propositional logic converter 110; and a satisfiability engine 112. In some embodiments, the functionality of the various components and / or modules may be delegated to other services that the policy analyzer service 106 may utilize. For example, in some embodiments, the policy analyzer service 106 may utilize different services to perform functions related to parsing policies.

[0039] The policy parser 108 can be a component or module that receives a security policy (e.g., a security policy received from a client associated with an API call or obtained via a policy management service) and obtains one or more permission statements from the policy. For example, if a client provides a first policy "A" and a second policy "B" to the policy analyzer service 106, the policy analyzer service 106 can use the policy parser 108 to obtain a first set of permission statements from policy "A" and a second set of permission statements from policy "B". The permission statements can each be associated with granting or denying access to a computing resource. The permission statements can be in a specific format, such as JSON, Aspen, etc.

[0040] As described herein, propositional logic may refer to symbolic logic associated with the evaluation of propositions, which may be evaluated as true or false. Propositional logic may be used to evaluate the logical equivalence of propositional formulas. Propositional formula. A propositional formula may be a grammatical statement, the grammar including propositional variables and logical connectives connecting the propositional variables. Examples of logical connectives or logical operators may include: "AND" (connection), "OR" (disjunction), "NOT" (negation), and "IF AND ONLYIF" (biconditional) connectives. Propositional logic may also be described herein as "propositional expressions" or "propositional logic expressions". In some embodiments, first-order logic may be utilized instead of propositional logic. First-order logic may refer to a formal system that utilizes quantifiers in addition to propositional logic. Examples of quantifiers include "FOR ALL" (universal quantifier) ​​and "THERE EXISTS" (existential quantifier). Unless explicitly stated, the embodiments of the present disclosure described in conjunction with propositional logic may also be implemented using first-order logic—for example, in some embodiments, a first-order logic converter ( Figure 1 ) is used instead of propositional logic converter 110 to convert the permissible statement into a first-order logic expression, and the satisfiability engine can evaluate one or more first-order logic expressions to determine whether the expressions are equivalent.

[0041] A permission statement (e.g., a permission statement obtained by policy parser 108) may be provided to propositional logic converter 110. Propositional logic converter 110 may receive a permission statement (e.g., in JSON format) and convert the permission statement into one or more constraints described using propositional logic. Constraints may be described in various formats and according to various standards, such as the SMT-LIB standard format, the CVC language, and the Center for Discrete Mathematics and Theoretical Computer Science (DIMACS) format.

[0042] For example, a consent statement (e.g., a consent statement included as part of a security policy) may be described as:

[0043] "Statement": [

[0044] {

[0045] ″Effect″:″Allow″,

[0046] ″Resource″:*,

[0047] ″Principal″: *,

[0048] ″Action″: ″put*″

[0049] }]

[0050] The corresponding propositional logic constraints can be generated from the instance policy statements and can be described as follows:

[0051] (assert policy.statement.resource)

[0052] (assert policy.statement.principal)

[0053] (assert(=policy.statenent.action(or(and(=″storage″actionNamespace)

[0054] (str.prefixof″put″actionName)))))

[0055] (assert(=policy.statement.effect.allows(and policy.statement.actionpolicy.statement.resource policy.statement.principal)))

[0056] (assert(not policy.statement.effect.denies))

[0057] (assert(=policy.allows(and(not policy.denies)

[0058] policy.statenent.effect.allows)))

[0059] (assert(=policy.denies policy.statement.effect.denies))

[0060] The propositional logic expression generated by the propositional logic converter 110 may represent a set of constraints that must be satisfied for the corresponding permission statement to take effect. The above constraints correspond to a set of constraints that must be satisfied if a previous permission statement that allows access to an API beginning with "put" (e.g., "put-object") is to be fulfilled.

[0061] In some embodiments, the client computing device 102 transmits (eg, on behalf of a client end user) a network API request to the policy analyzer service 106 to request that the policy analyzer service 106 determine a first security policy (eg, Figure 1The security policy 104 may be encoded in a network API request, or information that may be used to obtain the security policy may be provided (e.g., a pointer or URI indicating the location where the policy may be obtained). The policy analyzer service 106 may obtain the security policy 104 (e.g., directly from the request or via a policy management service using a URI encoded in the request), and utilize the policy parser 108 to obtain a first set of permission statements from the first policy and a second set of permission statements from the second policy. The policy statements may be provided to the propositional logic converter 110 to obtain a set of propositional logic expressions corresponding to constraints that must be satisfied for the corresponding policy statements to take effect. A first propositional logic expression may be generated from the first set of policy statements, and a second propositional logic expression may be generated from the second set of policy statements. The propositional logic expressions may be expressed in a language that conforms to an SMT-LIB standard language (such as the STM-LIB2.0 standard). The satisfiability engine 112 may be used to compare a first propositional logic expression to a second propositional logic expression to determine whether one propositional logic is looser than the other.

[0062] The satisfiability engine 112 can be used to analyze the looseness of two or more propositional logic expressions. The satisfiability engine 112 can be hardware, software, or a combination thereof. In some embodiments, the satisfiability engine 112 allows a client (e.g., an internal client such as the propositional logic converter 110, the policy analyzer service 106, etc.) to determine whether a first propositional logic expression is looser than a second propositional logic expression. The satisfiability engine 112 can generate additional propositional logic constraints as part of determining whether a first propositional logic expression is looser than a second propositional logic expression.

[0063] In some embodiments, the satisfiability engine 112 utilizes the following constraints to determine whether a first policy (e.g., policy A) is more relaxed than a second policy (e.g., policy B):

[0064] (assert(or policyB.neutral policyB.denies))

[0065] (assert policyA.allows)

[0066] In addition to the constraints of the first propositional logic expression and the second propositional logic expression, constraints can also be generated and evaluated. Figure 1The constraints are encoded in a manner described in the discussion of . The constraints can be generated based at least in part on the content of the client request. For example, the satisfiability engine 112 can generate constraints that are satisfied only when: in response to a request from a caller (e.g., the policy analyzer service 106) to determine whether a first propositional logic expression is more relaxed than a second propositional logic expression, the first policy grants access to the resource and the second policy denies access to the resource or is neutral with respect to the resource. Such implementation schemes can be implemented in a default-deny environment in a neutral environment (i.e., an environment in which there is no permission to explicitly grant or deny access to a particular resource). In a default-allow environment, the satisfiability engine 112 can generate different constraints that are satisfied when the first policy grants access to the resource or is neutral with respect to the resource and the second policy does not deny access to the resource.

[0067] Satisfiability engine 112 can be used to verify whether propositional logic constraints (e.g., constraints obtained from the first and second propositional logic expressions and constraints generated by the satisfiability engine) are equivalent. In some embodiments, commands can be used to determine whether a set of constraints can be satisfied. If there is an explanation that makes all asserted formulas true, the formula may be satisfied. In other words, if each of the constraints is satisfied under some conditions, the model can be satisfied. In some embodiments, the satisfiability engine can be implemented at least in part using a satisfiability module theory (SMT) constraint solver to determine whether the formula can be satisfied. An example of a constraint solver based on SMT is Z3. According to the technology described herein, other types of solvers can be utilized as a part of implementing a satisfiability engine, including but not limited to a satisfiability (SAT) solver and a binary decision diagram (BDD) solver. Satisfiability engine 112 can generate equivalence results, which indicate whether the formula can be satisfied, and whether two or more strategies are equivalent by extension. In some embodiments, the equivalence result is made available to another computing entity, such as the requesting client computing device 102, a system administrator, and other computing entities.

[0068] Figure 2 An illustrative example of a diagram 200 is shown, showing security permissions and corresponding propositional logic expressions. Figure 2 The permission 202 shown in FIG. 2 may be a security policy (such as that incorporated elsewhere in Figure 1 One of multiple security permissions specified in the security policy described by the .

[0069] Figure 200 shows an example of a license 202 that can be associated with a computing resource policy. In some embodiments, a license 202 can specify a subject 204, a resource 206, an action 208, a condition 210, and an effect 212. In some embodiments, a license 202 can also specify multiple or more of these elements, such as a user set or a class of users, a set of resources, several different actions, and / or multiple conditions. In some embodiments, a license 202 can specify one or more wildcards or characters that can be modified in other ways, which can be used to indicate that a license 202 can be modified so that the license 202 is applicable to different users and their associated resources. Wildcards can be represented in various formats—for example, an asterisk can represent any number of characters, and a question mark can represent any single character. In some embodiments, a language-independent format such as JavaScript object notation (JSON) can be used to express a policy. The examples discussed in this disclosure can be in JSON format or a format similar to JSON, and can be used as an illustration of various embodiments that can be implemented. Of course, it is also contemplated that various other formats that can be utilized in a manner described in conjunction with JSON and a format similar to JSON and that the various other formats are within the scope of this disclosure.

[0070] A subject 204 may be a user, a group, an organization, a role, or a collection and / or combination of these or other such entities. A subject 204 may be any entity that can submit an API call that results in the performance of an action associated with a resource and / or any entity that can be granted a permission associated with a resource. As an example, a permission 202 may have a subject 204 element specified in the following manner:

[0071] "Principal": "rn:ws:iam::ducksfan8"

[0072] In some embodiments, a principal 204 is identified by a resource name that uniquely identifies the principal 204. A principal 204 may include one or more namespaces that include additional information about the principal. For example, "rn" may refer to a resource name prefix and identify the subsequent information as part of the resource name; "ws" may refer to a partition namespace in which a resource resides; "iam" may refer to a service namespace that identifies a computing resource service provider's services (e.g., a computing resource service provider may provide services related to identity and access management); the namespace may additionally be omitted (note that in the above example, there are two semicolons between "iam" and "ducksfan8")—in some formats and / or for some resources, a regional namespace may be an option; and "ducksfan8" may refer to an identifier of an account (such as an account that owns the resource 206 specified in the license 202).

[0073] Resources 206 may refer to computing resources of a computing resource service provider. The computing resources of a computing resource service provider may include: computing resources (e.g., virtual machine instances); storage resources (e.g., scalable storage, block storage, and managed file storage systems); database systems (e.g., managed relational database systems); migration services (e.g., applications, services, and hardware for simplifying data transfer from one physical data center to another); network and content delivery; developer tools; management tools; security, identity, and access management services; analysis services; artificial intelligence services; and the like. Computing resources 206 may be organized in a hierarchical structure, and structures such as folders, directories, buckets, and the like may be used to organize a collection of computing resources into groups. In some cases, policies and / or permissions may be applied directly to buckets and consent to cross-account access to the environment. As an example, a license 202 may have a resource 206 element specified in the following manner:

[0074] "Resource": "rn:ws:storage::bucket / MM4_Heisman.png"

[0075] In some embodiments, resource 206 is identified by a resource name that uniquely identifies resource 206. In some cases, resource 206 may share the same naming convention as principal 204 or other elements of a license. However, this need not be the case, as each individual element of license 202 may use a naming convention, namespace, format, etc. that is independent of other elements. In the example resources given above, "rn" may refer to a resource name prefix and identify the subsequent information as part of the resource name; "ws" may refer to a partition namespace in which a resource is located; "storage" may refer to a service namespace that identifies a computing resource service provider's service (e.g., a computing resource service provider may provide services related to object-based storage); as discussed elsewhere, namespaces may be omitted in some cases—for example, regional namespaces and / or account namespaces may be omitted; and resources that may also include an indicator of the resource type. In the above example, a resource may indicate an image in a portable network graphics (PNG) format and stored in a storage bucket.

[0076] Actions 208 may be one or more specific actions that a license will allow or deny. Different types of services (e.g., with different service namespaces) may support different actions. For example, an identity and account management service may support an action for changing a password, while a storage service may support an action for deleting an object. An action may be performed in association with a resource, and the action may be identified, for example, by a type of API call, library call, program, process, series of steps, workflow, or some other such action. As an example, a license 202 may have an action 208 element specified in the following manner:

[0077] "Action": "storage: GetObject"

[0078] In this instance, the action that is allowed or denied (determined based on the effect 212 specified in the license) corresponds to a storage service that supports the GetObject action (e.g., an API call), which can be used in conjunction with obtaining objects and / or access to objects of the storage service. As discussed elsewhere, various namespaces can be used in conjunction with specifying actions. Wildcards can be used to specify multiple actions. For example, an action element described as "Action":"storage:*" can refer to all APIs supported by the storage service. As a second example, an action element described as "Action":"iam:*AccessKey*" can refer to actions related to access keywords of the service supported by the identity and access management service—illustrative examples can include actions related to creating access keywords (e.g., there may be a "CreateAccessKey" action), deleting access keywords (e.g., "DeleteAccessKey"), listing access keywords (e.g., "ListAccessKeys"), and updating existing access keywords (e.g., "UpdateAccessKey").

[0079] The condition 210 element may be one or more conditions that specify when a policy takes effect. In some embodiments, the condition element is optional and may be omitted in some licenses. A condition may be described as a Boolean expression that may be used to determine whether a policy is in effect (i.e., whether the expression evaluates to TRUE) or not in effect (i.e., whether the expression evaluates to FALSE). A policy that does not take effect may not be enforced or ignored by an authorization module (such as an authorization module described elsewhere herein). In some embodiments, the conditions in a license may be evaluated against a value provided as part of a network API request corresponding to one or more APIs specified in the action 208 element. As an example, a license 202 may have a condition 210 element specified in the following manner:

[0080] ″Condition″:{″DateLessThan″:{″ws:CurrentTime″:″2014-12-13″}}

[0081] In this example, the condition, i.e., the "ws:CurrentTime" value of the request, is compared to the literal value "2104-12-13" using the conditional operator "DateLessThan", which can be used to evaluate whether the condition is satisfied. In this example, the condition can be true when the current time (e.g., the time the service provider receives the request) is less than the provision date of December 13, 2014. It should be noted that the keyword value (the current time in this example) can be compared not only to a literal value, but also to a policy variable. There may be various other types of conditional operators, which can be used to compare string conditions, numeric conditions, Boolean conditions, binary conditions (e.g., a test value in binary format), IP address conditions (e.g., a test value against a specific IP address or IP address range), etc. In addition, the condition can include quantifiers. For example, a string condition can include an operator such as "StringEquals" that compares whether two strings are equal, and a similar operator can include a quantifier, so that when a keyword value is present in the context of the evaluation, "StringEqualsIfExists" can be used to compare two strings. Quantifiers can be used in conjunction with wildcards, where multiple resources matching the wildcard expression can support different context keywords. Figure 5-11 Examples of this type are discussed. In some embodiments, such as those where the condition includes quantifiers, first-order logic may be utilized instead of propositional logic.

[0082] Effect 212 may refer to whether permission 202 is used to grant or deny access to a computing resource specified in resource 206 element in permission 202. Effect 212 may be an ALLOW effect that grants access to a resource and a DENY effect that denies access to a resource. In some embodiments, access to computing resources of a computing resource service provider is denied by default, and a permission that affirmatively includes an ALLOW effect is required. As an example, permission 202 may have an effect 212 element specified in the following manner:

[0083] "Effect":"ALLOW"

[0084] Thus, a permission statement may be specified in the following manner, which grants a particular principal (e.g., "rn:ws:iam::ducksfan8") access to call a storage service API (e.g., "storage:GetObject") and obtain a particular image (e.g., "rn:ws:storage:::bucket / MM4_Heisman.png") when a particular condition is true (e.g., the API request was made before December 13, 2016).

[0085]

[0086] It should be noted that the above example describes only one of many ways in which permission can be expressed. Figure 2 Variations of the described principles can be applied in various ways.

[0087] In some embodiments, an element can be described with an inverse (e.g., negation) term. An inverse element can apply to all matches except the matches specified in the element. For example, if a permission statement is described as "NotPrincipal:ducksfan8", the permission statement applies to all principals except one or more specific principals listed in the permission statement - in this case, the permission statement will apply to all principals except ducksfan8. Inverse elements can be used in conjunction with subject elements (e.g., a "NotPrincipal" element will apply to all principals except the listed principals), action elements (e.g., a "NotAction" element will apply to all actions except the listed actions), resource elements (e.g., a "NotResource" element will apply to all resources except the listed resources), and so on.

[0088] like Figure 2 As shown, the license 202 can be used to generate a propositional logic expression 214. The propositional logic expression 214 may include a set of logical expressions representing the license 202. The propositional logic expression can be evaluated to determine whether the formula can be satisfied. For example, propositional logic can be used to determine whether the following situation can be satisfied: a resource is allowed under a first propositional logic expression corresponding to a first security policy including a first set of permissions and the resource is not allowed (e.g., explicitly denied and / or the ALLOW effect is not explicitly agreed) under a second propositional logic expression corresponding to a second security policy including a second set of permissions. In some embodiments, the license 202 statement can be used to generate the propositional logic expression 214. The body 204 elements can be mapped to the body propositional logic expression 216, which can include statements in propositional logic and one or more assertions used as constraints on whether the formula can be satisfied. The following is combined with Figure 5-11 Similarly, resource 206 elements may be mapped to resource propositional logic expressions 218, action 208 elements may be mapped to action propositional logic expressions 220, condition 210 elements may be mapped to condition propositional logic expressions 222, and effect 212 elements may be mapped to effect propositional logic expressions 224. Figure 5-11 Various examples related to these mappings are described.

[0089] Figure 3 is an illustrative example of an environment 300 in which various embodiments of the present disclosure may be practiced. Environment 300 illustrates an example in which a client may issue a request to analyze the equivalence of two security policies and receive an equivalence result indicating whether the policies are equivalent. Environment 300 may utilize components described elsewhere in this disclosure, such as in conjunction with Figure 1 , 2 and the components described in 4.

[0090] In some embodiments, the client computing device 302 (such as in conjunction with Figure 1 A client computing device as described herein may issue a request on behalf of a client to determine equivalence between two security policies. In some embodiments, the request is a network API request that encodes the security policy to be analyzed as part of the request. However, this need not be the case—in some embodiments, the secure client computing device may provide a reference to one or more security policies that the recipient of the request may use to obtain the one or more security policies. In some embodiments, the network API request is transmitted from the client computing device to a server according to a combination of Figure 4 The request may be served by a policy analyzer (such as a combination of Figure 1 and Figure 4 The first security policy 304A may be parsed to obtain one or more permission statements 306A, and the permission statements may be converted to a first set of propositional logic expressions, which may serve as constraints on propositional logic formula 308. Similarly, the second security policy 304B may be parsed to obtain one or more permission statements 306B, and the permission statements may be converted to a second set of propositional logic expressions, which may serve as constraints on propositional logic formula 308. The system (e.g., the policy analyzer service or a component thereof) may utilize a satisfiability engine 310 (such as in conjunction with Figure 1 The policy analyzer service described in ) determines whether two propositional logic expressions are equivalent, whether one is more permissive than the other, and so on.

[0091] The determination may be made according to techniques described elsewhere in this disclosure. In some embodiments, the equivalence result 312 may indicate that two policies are equivalent. Two policies may be said to be equivalent if the security permissions from the first policy and the second policy apply in the same manner to all actions, resources, and subjects—in other words, for any given set of actions, resources, and subjects, the first policy and the second policy will both deny access (either explicitly based on a deny statement or implicitly based on a lack of permissions granting access), or both will grant access—the situation will not be one policy granting access and the other denying access. In the event that one policy is determined to be more permissive than another, the situation will be one policy granting access under a set of parameters under which the other policy denies access.

[0092] In some embodiments, the equivalence result 312 can be transmitted to the client computing device 302 as a response to the network API request. In some embodiments, the equivalence result 312 can encode a permissive result (e.g., whether one policy is more permissive than a second policy). In some embodiments, other information is provided instead of or in addition to the permissive result. For example, in the case where a first policy is more permissive than a second policy, the equivalence result 312 can encode a set of parameters that cause the first policy to grant access and the second policy to deny access (e.g., the subject, resource, and operation can be encoded in the response so that the first policy will grant access to the subject to perform the action on the resource, while the second policy will deny access to the subject to not perform the action on the resource).

[0093] Environment 300 can be used to implement various embodiments. In some embodiments, a computing device can make a request to determine whether a policy (e.g., encoded in a request) complies with a minimum set of security standards. The computing resource service provider can receive the request, route it, obtain a security policy associated with the security standard, and determine the relative permissiveness of the provided policy and the security standard policy. If the provided policy is more permissive than the security standard, the response can indicate that the policy does not comply with the security standard. For example, in some embodiments, a client can attempt to use a policy management service (such as one that is incorporated elsewhere in the Figure 4 The policy management service may use the policy analyzer service 422 to determine whether the client's security policy complies with one or more security standards. If the policy does not comply, the policy management service may refuse to fulfill the request and indicate to the client that the request was not fulfilled, and may encode that the security policy is more permissive than one or more security standard policies.

[0094] Figure 4406. It is an illustrative example of an environment 400 in which a distributed computer system can utilize various technologies described herein. In one embodiment, a subject 402 can use a computing device to communicate with a computing resource service provider 406 through a network 404. The communication between the computing resource service provider 406 and the subject 402 can, for example, be used for the purpose of accessing a service 408 operated by the computing resource service provider 406, which can be one of many services operated by the computing resource service provider 406. The service 408 can include a service front end 410 and a service back end 414. The subject 402 can issue a request to access the service 408 provided by the computing resource service provider 406 (and / or a request to access resources associated with the service 408) through an associated computing device. The request can be, for example, a network service application programming interface request. The subject can be a user, or a group of users, or a role associated with a group of users, or a process representing one or more of these entities that can be run on one or more (relative to the computing resource service provider 406) remote computer systems, or can be some other such computer system entity, user or process. Each user, group, role or other such subject set can have a corresponding user definition, group definition, role definition or other definition that defines the attributes and / or members of the set. For example, a group can be a group of subjects with the same geographic location. The definition of the group subject can include the members of the group, the location, and other data and / or metadata associated with the group. As used herein, a subject is an entity corresponding to an identity managed by a computing resource service provider, wherein the computing resource service provider manages the permissions of the identity and wherein the entity can include one or more sub-entities that can themselves have an identity.

[0095] The subject 402 can communicate with the computing resource service provider 406 via one or more connections (e.g., a transmission control protocol (TCP) connection). The subject 402 can use a computer system client device to connect to the computing resource service provider 406. The client device can include any device capable of connecting to a computer system via a network, such as the example devices discussed below. The network 404 can include, for example, the Internet or another network or a combination of networks discussed below.

[0096] The computing resource service provider 406 can provide access to one or more computing resources through the service 408, and the one or more computing resources are such as virtual machine (VM) instances, automatic scaling groups, file-based database storage systems, block storage services, redundant data storage services, data archiving services, data warehousing services, user access management services, identity management services, content management services and / or other such computer system services. Other example resources include, but are not limited to, user resources, policy resources, network resources and / or storage resources. In some instances, the resources associated with the computer service can be physical devices, virtual devices, a combination of physical devices and / or virtual devices, or other such device implementation schemes.

[0097] The request of access service 408 can be received by service front end 410, and service front end 410 in some examples comprises the network server that is configured to receive this type of request and processes the request according to one or more strategies associated with service 408.The request of access service 408 can be the request of digital signature, and therefore can have digital signature.In some embodiments, network server adopts the technology described synchronously with processing request herein.Service front end 410 can send request and digital signature to authentication service 416 for verification then.Authentication service 416 can be independent service or can be a part of service provider or other entity.In one embodiment, authentication service 416 is the computer system that is configured to the operation involved in the authentication of execution subject.

[0098] After successfully authenticating the request, authentication service 416 can then obtain the policy applicable to the request. The policy can be applicable to the request by virtue of being associated with subject 402, resources accessed as part of fulfilling the request, groups of which subject 402 is a member, roles assumed by subject 402, and / or the like. To obtain the policy applicable to the request, authentication service 416 can transmit a query to policy repository 418 managed by policy management service 420. The query to policy repository 418 can be a request that includes information sufficient to determine a set of policies applicable to the request. The query to policy repository can, for example, include a copy of the request and / or include parameters that are based at least in part on information in the request, such as information identifying a subject, a resource, and / or an action (an operation to be performed as part of fulfilling the request).

[0099] The policy management service 420 can provide access to and management of policies applicable to requests (e.g., network service application programming interface requests) to access computing resources. For example, the policy management service can receive information sufficient to select a policy applicable to a pending request. In some embodiments, the information can be a copy of the request, or can be information generated at least in part based on the request. For example, a service such as the service front end 410 can receive a request to access a resource and can generate a query to the policy management service based at least in part on information specified by the request.

[0100] In the case of obtaining any policy applicable to the request, the authentication service 416 can provide the authentication response and the obtained policy (if applicable) back to the service front end 410. The authentication response can indicate whether the authentication response is successful. Then, the service front end 410 can use the authorization module 412 to check whether the fulfillment of the request of the access service 408 will comply with the obtained policy. Note that in some embodiments, the policy can be configured so that whether the fulfillment of the request violates the policy depends on whether the violation of the uniqueness constraint has occurred. For example, some data can be considered as less sensitive than other data, and although a violation of the uniqueness constraint is detected, a request for less sensitive data can be fulfilled, and access to more sensitive data may require that no uniqueness constraint violation occurs in conjunction with the public keyword specified for the authentication request. Similar techniques can be used for other types of computing resources, such as computing devices, storage locations, collections of data, identities, policies, etc.

[0101] The authorization module 412 can be a process executed on the service front end that is operable to compare requests for one or more permissions in the policy to determine whether the service can satisfy the request (i.e., whether to authorize the fulfillment of the request). For example, the authorization module can compare the API call associated with the request with the permitted API calls specified by the policy to determine whether the request is allowed. If the authorization module 412 cannot match the request for the permission specified by the policy, the authorization module 412 can perform one or more default actions, such as providing a message to the service front end causing the service front end to deny the request, and causing the denied request to be recorded in the policy management service 420. If the authorization matches the request for one or more permissions specified by the policy, the authorization module 412 can resolve this situation by selecting the least restrictive response (as defined by the policy) and by informing the service front end whether to authorize the fulfillment of the request (i.e., whether the fulfillment of the request complies with the applicable policy) based on the selected response. The authorization module 412 can also resolve this situation by selecting the most restrictive response, or can select some other such response, and inform the service front end whether the fulfillment of the request is authorized based on the selected response. It should be noted that although Figure 4The authorization module 412 is shown as a component of the service front end 410, but in some embodiments, the authorization module 412 is a separate service provided by the computing resource service provider 406 and the service front end can communicate with the authorization module 412 over a network.

[0102] Finally, if the fulfillment of the request to access service 408 complies with the applicable obtained policy, the service front end 410 can use the service back end 414 to fulfill the request. The service back end 414 can be a component of the service that is configured to receive authorized requests from the service front end 410 and is configured to fulfill such requests. The service front end 410 can, for example, submit a request to the service back end that causes the service back end 414 to perform one or more operations involved in fulfilling the request. In some instances, the service back end 414 provides data provided by the service front end in response to the request from the subject 402 back to the service front end 410. In some embodiments, a response to the subject 402 can be provided from the service front end 410, the response indicating whether the request is allowed or denied, and if allowed, indicating one or more results of the request.

[0103] Figure 5 An illustrative example of a diagram 500 is shown in which propositional logic is used as part of determining the satisfiability of a propositional logic formula based at least in part on a policy. Diagram 500 shows an example policy 502, which can be used in conjunction with other places in this disclosure, such as Figure 1-4 The diagram 500 shows an aspect in which propositional logic (shown below the dashed line) is used to determine whether a policy 502 can be satisfied. The policy 502 may include one or more policy statements, which may be constraints on the propositional logic. Figure 4 Example policy statements (eg, permissions statements) are described.

[0104] Figure 500 shows propositional logic that can be used in part to determine whether strategy 502 can be satisfied. In Figure 500, propositional logic shows constraints that are used in part to determine the satisfiability of a strategy. Specifically, Figure 500 shows the following constraints: what the strategy allows must be equivalent to what the strategy does not explicitly deny and what any one of the one or more statements of the strategy allows. In some embodiments, propositional logic can be expressed in terms of an SMT language that can conform to one or more SMT-LIB standards. Other formats can also be used to describe propositional logic, such as CVC language and the Center for Discrete Mathematics and Theoretical Computer Science (DIMACS) format. SMT-LIB Standards: Version 2.5, SMT-LIB Standard Version 2.0, SMT-LIB Standard Version 1.2, and SMT-LIB Standard Version 1.0 are incorporated herein by reference.

[0105] For example, an implementation according to the STM-LIB standard v2.0 may include constraints of the following form as described above:

[0106] (assert(=policyA.allows(and(notpolicyA.denies)(orpolicyA.statement0.allows policyA.statement1.allowspolicyA.statement2.allows...))))

[0107] It should be noted that here and elsewhere, examples are given to illustrate how to implement the concepts of various embodiments according to the teachings of the present disclosure. For example, in the examples above, ellipsis is used to illustrate that a policy with more than two permission statements will have more constraints connected using OR statements. It should be noted that in various embodiments (such as embodiments according to various STM-LIB standards), propositional logic can be expressed using Polish notation (i.e., prefix notation).

[0108] Figure 6 An illustrative example of a diagram 600 is shown in which propositional logic is used as part of determining the satisfiability of a propositional logic formula based at least in part on a policy. Diagram 600 shows an example policy 602, which can be used in conjunction with other places in this disclosure, such as Figure 1-5 600 illustrates aspects in which propositional logic (shown below the dashed line) is used to determine whether a policy 602 can be satisfied. Policy 602 may include one or more policy statements, which may be constraints on the propositional logic. Figure 2 Example policy statements (eg, permissions statements) are described.

[0109] Figure 600 shows propositional logic that can be used in part to determine the satisfiability of propositional logic formulas based at least in part on a policy. In Figure 600, propositional logic shows constraints that are used in part to determine the satisfiability of a policy. Specifically, Figure 600 shows the following constraints: the content rejected by the policy must be equivalent to the content rejected by any one of the one or more statements of the policy. In some embodiments, propositional logic can be expressed according to an SMT language that can meet one or more SMT-LIB standards. Other formats can also be used to describe propositional logic, such as CVC language and the Center for Discrete Mathematics and Theoretical Computer Science (DIMACS) format.

[0110] For example, an implementation according to the STM-LIB standard v2.0 may include constraints of the following form as described above:

[0111] (assert(=policyA.denies(or policyA.statement0.deniespolicyA.statementl.denies plicyA.statement2.denies...)))

[0112] In other words, the constraints provided by the above example make the content rejected by a policy (eg, policyA) equivalent to the content rejected by any individual statement (eg, statement1, statement2, statement3, etc.).

[0113] Figure 7 An illustrative example of a diagram 700 is shown in which propositional logic is used as part of determining the satisfiability of a propositional logic formula based at least in part on a policy. Diagram 700 shows an example policy 702, which can be used in conjunction with other places in this disclosure, such as Figure 1-6 700 illustrates aspects in which propositional logic (shown below the dashed line) is used to determine whether a policy 702 can be satisfied. Policy 702 may include one or more policy statements, which may be constraints on the propositional logic. Figure 2 Example policy statements (eg, permissions statements) are described.

[0114] Figure 700 shows propositional logic that can be used in part to determine the satisfiability of propositional logic formulas based at least in part on policies. In Figure 700, propositional logic shows constraints that are used in part to determine the satisfiability of policies. Specifically, Figure 700 shows the following constraints: policies must be equivalent to the content that is not allowed by the policy and the content that is not rejected by the policy for its neutral content. In some embodiments, propositional logic can be expressed according to an SMT language that can meet one or more SMT-LIB standards. Other formats can also be used to describe propositional logic, such as CVC language and the Center for Discrete Mathematics and Theoretical Computer Science (DIMACS) format.

[0115] For example, an implementation according to the STM-LIB standard v2.0 may include constraints of the following form as described above:

[0116] (assert(=p0.neutral(and(not p0.allows)(not p0.denies))))

[0117] In other words, the constraints provided by the above example make a policy (eg, policyA) equivalent with respect to content that is neutral to the policy for content that is not permitted by the policy and content that is not denied by the policy.

[0118] Combined with about Figure 5-7 As discussed above, the constraints described can be combined to define the constraints of a policy (e.g., policyA), which can be described in the following form:

[0119]

[0120] Similarly, the constraints of the second policy (i.e., policyB) can be described in the following form:

[0121]

[0122] Therefore, in addition to these constraints, additional constraints can be used to determine whether a policy is more relaxed than another policy. For example, given two policies (e.g., policyA and policyB in the above example), the following constraints can be used to determine whether the first policy (i.e., policyA) is more relaxed than the second policy (i.e., policyB):

[0123] (assert(orpB.neutralpB.denies))

[0124] (assertpA.allows)

[0125] In various embodiments, a policy analyzer service may be utilized to determine that the above policies (policyA and policyB above) are equivalent.

[0126] In some embodiments (such as embodiments implementing a default-deny system), the authorization module denies access to any resource of the computing resource service provider to which the requestor (e.g., the principal) has not explicitly consented (e.g., via a permission statement affirmatively allowing access to the resource).

[0127] For example, an implementation according to the STM-LIB standard v2.0 may include constraints of the following form as described above:

[0128] (assert(=p0.neutral(and(not p0.allows)(not p0.denies))))

[0129] In other words, the constraints provided by the above example make a policy (eg, policyA) equivalent with respect to content that is neutral to the policy for content that is not permitted by the policy and content that is not denied by the policy.

[0130] Figure 8 An illustrative example of a diagram 800 is shown in which an element (e.g., as part of a strategy) is converted into propositional logic. Figure 1The propositional logic converter discussed above performs the conversion. Diagram 800 shows an example of converting a JSON element (shown above the dashed line) into propositional logic (shown below the dashed line). The propositional logic can be expressed in an SMT language that can conform to one or more SMT-LIB standards.

[0131] As an example, an effects element of a permission statement that allows access to certain resources (e.g., specified elsewhere in the permission statement) may be expressed as propositional logic with the following constraints:

[0132] (assert(=policy.statement.allows(and policy.action policy.resourcepolicy.principal)))

[0133] (assert(notpolicy.statement.denies))

[0134] In other words, the allowable effect generates two constraints in propositional logic - the first constraint that the policy statement has an allowable effect and satisfies the action, resource, and subject constraints; and the second constraint that the policy statement has no denyable effect. The action, resource, and subject constraints can be combined with Figure 8-11 The constraints described in the permission statement may also be different depending on what elements are included in the permission statement. For example, if the permission statement includes conditions, the constraints may also include conditions for the constraint to be satisfied. In some embodiments, at least one of the action, resource, and subject elements is a required element of the permission statement, such that a valid policy statement must have at least one of the action, resource, and subject elements.

[0135] Fig. 9 An illustrative example of a diagram 900 is shown in which an element (e.g., as part of a strategy) is converted into propositional logic. Figure 1 The propositional logic converter discussed above performs the conversion. Diagram 900 shows an example of converting a JSON element (shown above the dashed line) into propositional logic (shown below the dashed line). The propositional logic can be expressed in an SMT language that can conform to one or more SMT-LIB standards.

[0136] As an example, an action element of a permission statement that grants or denies (depending on the effect element of the permission statement) access to certain resources (e.g., specified elsewhere in the permission statement) can be expressed as propositional logic with the following constraints:

[0137] (assert(=policy.action(or(and(=″storage″actionNamespace)(str.prefixof″Delete″actionName)))))

[0138] In other words, the action elements above the dotted line in diagram 900 can be converted into propositional logic having constraints that are satisfied when the action has a "storage" namespace and an action name with a string prefix of "Delete" (such as "DeleteObject" or "DeleteAllObjects" or "DeleteContainer", etc.). In some embodiments, various string evaluation functions can be used as part of the constraints, such as evaluating string prefixes, suffixes, lengths, substrings (e.g., whether to include a certain string as part of a second string), etc. Comparisons of strings can also include additional comparison parameters, such as case-insensitive comparisons, ignoring symbols and punctuation, ignoring diacritics, ignoring differences between Hiragana and Katakana characters, etc. Effect, action, resource, and subject constraints can be combined with Figure 8-11 The constraints described in the permission statement may also be different depending on what elements are included in the permission statement. For example, if the permission statement includes conditions, the constraints may also include conditions for the constraint to be satisfied. In some embodiments, at least one of the effects, actions, resources, and subject elements is a required element of the permission statement, such that a valid policy statement must have at least one of the effects, actions, resources, and subject elements.

[0139] Fig.10 An illustrative example of a diagram 1000 is shown in which an element (e.g., as part of a strategy) is converted into propositional logic. Figure 1 The propositional logic converter discussed above performs the conversion. Diagram 1000 shows an example of converting a JSON element (shown above the dashed line) into propositional logic (shown below the dashed line). The propositional logic can be expressed in an SMT language that can conform to one or more SMT-LIB standards.

[0140] As an example, the resource element of a permission statement that grants or denies (depending on the effect element of the permission statement) access to a resource can be expressed as propositional logic with the following constraints:

[0141] (assert(=policy.resource(or(and(=″storage″resourceService)(=″″resourceAccount)(str.prefixof″foo / ″resourceResource))(and(=″storage″resourceService)(=″user″resourceAccount)(str.prefixof″bar / ″resourceResource)))))

[0142] In other words, the resource elements above the dashed line in diagram 900 can be converted to propositional logic with constraints that are satisfied when the resource has a "storage" service namespace, a blank resource account, and the resource begins with "foo / ", or in some embodiments, the resource has a "storage" service namespace, a "user" account, and the resource begins with "bar / ". Effect, action, resource, and subject constraints can be combined with Figure 8-11 The constraints described in the permission statement may also be different depending on what elements are included in the permission statement. For example, if the permission statement includes conditions, the constraints may also include conditions for the constraint to be satisfied. In some embodiments, at least one of the effects, actions, resources, and subject elements is a required element of the permission statement, such that a valid policy statement must have at least one of the effects, actions, resources, and subject elements.

[0143] Fig.11 An illustrative example of a diagram 1100 is shown in which an element (e.g., as part of a strategy) is converted into propositional logic. Fig.11 The propositional logic converter discussed above performs the conversion. Figure 1100 shows an example of converting a JSON element (shown above the dashed line) into propositional logic (shown below the dashed line). The propositional logic can be expressed in an SMT language that can conform to one or more SMT-LIB standards.

[0144] As an example, an effects element of a permission statement that allows access to certain resources (e.g., specified elsewhere in the permission statement) may be expressed as propositional logic with the following constraints:

[0145] (assert(=policy.condition(=>SourceVpce_exists|(=″baz″SourceVpce))))

[0146] In other words, the resource elements above the dotted line in Figure 1100 can be converted into propositional logic, which has a constraint that is satisfied when the "sourceVpce" conditional keyword (e.g., a field specifying the name of the source virtual PC instance) exists in the resource and the value on the resource is "baz". In some embodiments, an implication operator can be used as part of the constraint. In some embodiments, the implication can be represented by an operator such as the "=>" shown in Figure 1100, and can include a predicate that is evaluated only when and only when the antecedent condition is true. For example, consider the expression shown above the dotted line, which is partially:

[0147] StringEqualsIfExists":{"sourceVpce":"baz"}

[0148] This expression can be converted into a propositional logic constraint such that the predicate is evaluated if and only if the antecedent is true. In diagram 1100, the antecedent can be that the "sourceVpce" condition keyword exists, and the predicate can be that the value of the "sourceVpce" condition keyword is equal to the string "baz", as depicted below the dashed line in diagram 1100. For example, consider the combination Fig.11 The conditions described include those applicable to the combination Fig.10 ce field is not present for a resource, then the condition is not evaluated for that resource. Effects, actions, resources, and subject constraints can be combined with Figure 8-11 The constraints described in the permission statement may also be different depending on what elements are included in the permission statement. For example, if the permission statement includes conditions, the constraints may also include conditions for the constraint to be satisfied. In some embodiments, at least one of the effects, actions, resources, and subject elements is a required element of the permission statement, such that a valid policy statement must have at least one of the effects, actions, resources, and subject elements.

[0149] Fig.12 An illustrative example of a process 1200 for determining the equivalence of two or more security policies is shown. In general, the process 1200 can be performed by any suitable system, such as a policy analyzer service described elsewhere in this disclosure, such as in conjunction with Figure 1The process 1200 may be implemented using hardware, software, or a combination thereof. In one embodiment, the process 1200 includes receiving 1202 information specifying a first security policy and a second security policy. In some embodiments, the system receives the information as part of an interface such as a network API request. In some embodiments, the security policies each encode a set of security permissions, which may be expressed in a language-independent format such as JSON. The security permissions may be combined with other formats such as JSON. Figure 2 In some embodiments, information specifying either or both policies may be specified directly (e.g., encoded as part of the data payload of the request) or indirectly (e.g., a reference to the policy is received by the system so that the reference can be used, such as to obtain the policy from a policy management service).

[0150] The system can determine 1204 a first propositional logic expression based at least in part on the first security policy. In addition, the determination can be made based on a first security permission set associated with the first security policy. The determination can be made according to various embodiments described elsewhere in this disclosure. For example, the system can use a parser to obtain the first security permission set from the first security policy using parsing, and can use the above combination of Figure 1-11 The described manner converts the first security permission set into a constraint set in propositional logic. In some embodiments, the system converts the security policy expressed in JSON into a propositional logic expression (e.g., including one or more constraints) described according to the SMT-LIB standard (such as the SMT-LIB 2.0 standard).

[0151] The system may determine 1206 the second propositional logic expression in the same or substantially similar manner as described above in conjunction with determining 1204 the first propositional logic expression. However, in some embodiments, the steps may be different. For example, in some cases, the system may receive the first security policy directly in a request (e.g., data encoding the policy may be included in the request), while the second security policy is indirectly referenced in the request (e.g., the request is a request to determine whether the first security policy complies with the standard security policy). In such embodiments, the system may use the information specifying the second security policy included in the request to obtain the second security policy, and then use the obtained second security policy to obtain the second propositional logic expression. Such techniques may be used in conjunction with Figure 1-11 Those techniques described.

[0152] The system can determine 1208 whether the first propositional logic expression and the second propositional logic expression are equivalent. Two policies are said to be equivalent if the security permissions from the first policy and the second policy apply in the same manner to all actions, resources, and subjects - in other words, for any given set of actions, resources, and subjects, the first policy and the second policy will both deny access (either explicitly based on a deny statement or implicitly based on a lack of permissions granting access), or both will grant access - it will not be the case that one policy grants access and the other denies access. In the case where one policy is determined to be more permissive than the other, it will be the case that one policy grants access under a set of parameters and the other policy denies access under that set of parameters.

[0153] The satisfiability engine can be used to analyze the looseness of two or more propositional logic expressions, including determining whether two propositional logic expressions are equivalent. The satisfiability engine can be used to verify whether propositional logic constraints (e.g., constraints obtained from the first and second propositional logic expressions and constraints generated by the satisfiability engine) are equivalent. In some embodiments, an SMT solver such as Z3 can be used at least in part to implement determining whether two or more propositional logic expressions are equivalent. More generally, the techniques described herein for determining the looseness, relative looseness, and / or equivalence of propositional logic expressions and propositional logic constraints can be used in conjunction with determining 1208 whether the first propositional logic expression and the second propositional logic expression are equivalent.

[0154] In some embodiments, process 1200 may include performing one or more transformations such that the security policy is mapped to a propositional logic expression in a particular format recognized by an SMT solver. For example, if a Z3 solver is used in conjunction with determining equivalence, the security policy may be mapped to a format that conforms to an SMT-LIB standard language, such as the STM-LIB 2.0 standard.

[0155] If the system determines that the first propositional logic expression and the second propositional logic expression are equivalent, the system can provide 1214 an indication of policy equivalence. In some embodiments, the indication can be encoded in response to a network API request.

[0156] However, if the system determines that the first propositional logic expression and the second propositional logic expression are not equivalent, the system can identify 1210 a parameter set sufficient to determine that the first propositional logic expression and the second propositional logic expression lack equivalence. The parameter set can encode one or more resources, one or more subjects, one or more actions, or a combination thereof. In some embodiments, the parameter set can be used to prove that the first security policy corresponding to the first propositional logic and the second security policy corresponding to the second propositional logic are not equivalent, because the result of evaluating the first security policy using the parameter set—in other words, whether the result is access granted or access denied—is different from the result of evaluating the second security policy using the same parameter set. In other words, for a particular parameter set, the situation may be that the first security policy grants access based on those parameters, while the second security policy denies access based on those same parameters, or vice versa. In some embodiments, the system can identify 1210 the parameter set as part of determining 1208 whether the propositional logic expressions are equivalent. In some cases, the system can provide 1212 the parameter set as part of the network API response as an indication that the security policies are not equivalent. In some embodiments, this parameter set may not be provided, but instead an indication (e.g., a return code) may indicate whether the policies are equivalent. For example, a Boolean value may be returned such that TRUE is returned if the security policies are equivalent, and FALSE is returned if they are not equivalent. Alternatively, an integer value may be returned such that 0 is returned if the security policies are equivalent, -1 is returned if the first security policy is more permissive than the second security policy, and 1 is returned if the second security policy is more permissive than the first security policy.

[0157] The order of the various steps shown in process 1200 is merely illustrative, and it may be the case that determination 1206 of the second propositional logic expression may occur before determination 1204 of the first propositional logic expression and / or may occur in parallel with determination 1204. In fact, in some embodiments, the ordering may not even be deterministic. For example, determinations 1204 and 1206 may be handed off to separate compute instances of a pool of compute instances that may run in parallel and may have different computational performance characteristics.

[0158] Fig.13is an illustrative example of an environment 1300 in which various embodiments of the present disclosure may be practiced. In one embodiment, environment 1300 includes: a client computing device 1302; a policy management service 1304; a policy repository 1306; an event-driven platform 1310; a policy monitoring service 1312; and a policy analyzer service 1314. Environment 1300 illustrates an example in which a client may apply a policy that generates a corresponding event 1308, and the event 1308 in turn triggers event-driven platform 1310 to analyze one or more policies. In some cases, such as where a client computer system applies or attempts to apply a security policy that does not comply with a rule set, an administrator 1316 of the network may be notified, perhaps providing a warning to the client that the policy is not in compliance, or performing additional audit steps, in addition to other actions (such as denying a request to fulfill the application of a noncompliant policy).

[0159] In some embodiments, a computing resource service provider (such as a Figure 4 The computing resource service provider described in the foregoing description) is configured so that the client of the computing resource service provider can apply security policies within the environment. In some embodiments, the client uses a command line interface to set security policies using a network API supported by a policy management service 1304. The policy management service 1304 receives a network API request for applying a security policy, and can execute one or more authorization and authentication procedures as part of fulfilling the request. Policies can be applied and stored in a policy repository 1306, where the policies can be retrieved for later use. In some embodiments, applying policies and / or storing the applied policies in the policy repository 1306 generates corresponding log entries via a log system. The log system can be used to record some or all activities on the entire network, such as recording information about network API requests made to the computing resource service provider.

[0160] Event 1308 may be generated in response to the application of a security policy or one or more downstream actions resulting from the application of a security policy. For example, event 1308 may be triggered by a network API call to apply a security policy, store a policy in a policy repository, record the application of a security policy and / or store a policy in a policy repository, or some combination thereof.

[0161] The event-driven platform 1310 can determine when the event 1308 occurs and execute custom logic in response to the event being triggered. The event trigger can be detected, for example, when the policy is applied, or the event trigger can be determined at a later point in time, such as when an asynchronous process (e.g., running daily) processes log events and detects that the security policy is applied. The event-driven platform 1310 can be implemented using software, hardware, or a combination thereof. In some embodiments, the distributed computing resources can provide and load custom logic / code in response to the event, run the code, and then uninstall the code and cancel the provision of the computing resource. The event-driven platform 1310 can be a component of a computing resource service provider, or it can be a separate component.

[0162] The event-driven platform 1310 can be implemented using an event-driven architecture. When a particular event occurs (such as a network API request to apply a security policy), the event-driven platform 1310 can be notified of the event (e.g., by an authentication service), and the event-driven platform can further receive additional information about the request, which can be obtained separately (e.g., from a policy management service to which the request is directed). The event-driven platform 1310 can determine how to handle the event, which can be handled in part by custom code or logic selected based on information obtained about the request—for example, custom logic may be different for security policies based on the type of resources to which the security policy applies. In some embodiments, the event-driven platform 1310 can subscribe to notification messages for events from the authentication service, and the authentication service can call callback functions (such as lambda expressions) in response to events that the event-driven platform subscribes to receive notifications of.

[0163] The event-driven platform 1310 can receive the event 1308 and determine how to handle the event internally (e.g., using components of the event-driven platform) or externally (e.g., by delegating to another service). As an example, the event-driven platform can include rules about which custom logic in a list of custom logics should be invoked based on a particular type of security policy being applied or other metadata associated with the security policy being applied. There may be a mapping of security policy types to custom logic. For example, a first custom logic can be invoked based on a security policy applied to a computing resource having a first service namespace, and a second custom logic can be invoked based on a security policy applied to a computing resource having a second service namespace.

[0164] The policy monitoring service 1312 can be called by the event-driven platform 1310. In some embodiments, the event-driven platform 1310 calls the policy monitoring service 1312 and provides contextual information about the security policy that triggered the event 1308, thereby allowing the policy monitoring service 1312 to perform various custom logic, for example, based on various parameters of the applied policy. For example, a computing resource service provider may support several services for various types of computing resources, and the set of best practice rules may differ based on the type of computing resource to which the security policy applies. The policy monitoring service 1312 can determine a reference policy for the resource type and utilize the policy analyzer service 1314 to determine whether the applied policy is more permissive than the reference policy. The policy analyzer service 1314 can be used in conjunction with other places in this disclosure, such as Figure 1-12 The Policy Analyzer service described here is consistent with the Policy Analyzer service described here.

[0165] If the policy analyzer service 1314 indicates that the applied policy is more lenient than the applicable reference policy, the policy monitoring service 1312 can perform various mitigation procedures. For example, the policy management service 1304 can be notified that the network API request to apply the security policy is more lenient than the reference policy and the policy management service 1304 can be instructed to deny the request (i.e., refuse to fulfill the request). In some cases, the fulfillment of the request to apply the security policy can depend on the policy management service 1304 receiving an indication from the policy monitoring service that the request should be granted. The requester (e.g., a client) can be notified that the requested security policy is too lenient. In some cases, the requester has the opportunity to modify the security policy or apply the security policy. Applying an overly lenient security policy may result in notifying the system administrator 1316, logging the security policy to a separate system for later review, and various other mitigation measures. Of course, other entities within the organization, such as a network security team, etc., can be informed.

[0166] Fig.14 An illustrative example of a process 1400 for monitoring policies applied to a system is shown. In general, the process 1400 can be performed by any suitable system, such as an event-driven platform described elsewhere in this disclosure, such as in conjunction with Fig.131402 , the system can monitor the incoming request of the computing resource service provider. The system can monitor the incoming business of the computing resource service provider 1402 and determine whether the request 1404 applies the policy. It should also be noted that in this case, the monitoring 1402 step can be an active monitoring process (such as when the monitoring agent actively polls the log system to determine whether the request has been received) or a passive monitoring process (such as when the service front end calls the monitoring agent after determining that the incoming request applies the policy).

[0167] More generally, a monitoring agent can be used to track the incoming request itself or the downstream effects caused by the request. For example, in some cases, network API requests to a computing resource service provider are parsed at the service front end, and the network API requests are distributed among multiple services of the computing resource service provider. In some cases, the monitoring agent can detect when a request is forwarded to a policy management service, and parse those requests to determine whether the request applies a policy. As another example, when a request is received, some or all requests may be recorded in a logging system. The logging system may record information about the request, such as the specific network API called, the parameters of the API call, and so on. The monitoring agent may read the log generated by the request to determine when the request applies a policy. Such systems may be executed while the request is being logged, or at a later point in time—for example, a monitoring agent may audit the log once a day to check if there are any policies that may violate the rules imposed on the system.

[0168] If the system determines that the request does not have a policy applied, the system can continue to monitor the request. Alternatively, if the system determines that the request applies a security policy, the system can select 1406 a policy verification routine based at least in part on one or more security permissions of the security policy. For example, a policy verification routine can be selected from a list of policy verification routines based on a subject element of a security permission—a policy verification routine associated with a guest or anonymous user can limit the most permissive set of permissions that the guest or anonymous user can receive. As a second example, a policy verification routine can be selected based on a service namespace encoded in a resource element of a security permission—e.g., a most permissive set of permissions for a particular resource type specified in a service namespace can vary from service to service.

[0169] Once a policy validation routine has been selected, the policy validation routine may be called. The event-driven platform may perform at least some of the steps associated with selecting a policy validation routine and calling the selected policy validation routine. One or more baseline policies may be obtained 1408 in conjunction with the selected policy validation routine. The system may have multiple baseline policies, and the selection of one or more baseline policies may be based on the permissions attached to the policy validation routine and the security policy that triggered the policy validation routine to be called.

[0170] One or more baseline policies obtained by the policy validation routine may be compared to the security policy applied in the request 1410. The reference policy may be selected based on various factors, such as input parameters of the network API request to which the policy is applied. The baseline policy may be a best practice policy for a set of permissions that are determined to not be allowed. For example, a baseline best practice policy may be a policy that resources of a storage service should not be globally writable (e.g., any principal, even a guest user or anonymous user, can write to a container).

[0171] The system may determine 1412 whether the policy applied to the request is more permissive than the reference policy. A policy analyzer service (such as a combination of Figure 1-4 The Policy Analyzer Service described in ) can be used to compare the security policy applied in the request with the reference policy. More generally, a constraint solver such as an SMT-based constraint solver (e.g., Z3) can be used to determine whether the security policy applied in the request is more permissive than the reference policy or as permissive as the reference policy.

[0172] In some embodiments, a fuzzifier can be used to perform a determination whether the policy applied by the request is looser than the reference policy. A fuzzifier can be a software module including an executable code, which can be configured to test a software component by determining an input set to an interface and verifying that the output matches the expected value. For example, a fuzzifier can be used to test the arithmetic operation of a processor by selecting an input set from a lookup table and performing a calculation (e.g., division) set, and verifying that the result is correct based on the output lookup table. A fuzzifier can select a parameter (e.g., subject, action, and computing resource) set and determine whether a request corresponding to the parameter set will be fulfilled under the security policy and reference policy of the request. If one policy will fulfill the request and the other will reject the request, the relative looseness of the two policies can be determined (e.g., one policy is looser than another policy, the two policies are incomparable, etc.). In some embodiments, a fuzzifier can have a predetermined list of parameters that it tests. In some embodiments, a fuzzifier can randomly select a parameter set.

[0173] If the system determines that the requested security policy is less permissive than a reference policy, such information may be indicated. In some embodiments, when a policy management service receives a request to set a security policy, the requested security policy may be analyzed in the manner described above to determine whether the security policy complies with an applicable baseline policy. In some cases, fulfillment of the request (e.g., applying the security policy to a policy database) is contingent upon receipt of an indication that the security policy being applied in the request complies with any and all applicable policy validation routines. Thus, when a request to apply a security policy is received, the policy management service may wait for a response from a policy validation routine before fulfilling the request, and the policy validation routine may provide an indication 1416 that the request should be fulfilled. However, this need not be the case—in some cases, the policy management service sets a security policy without waiting for an indication from a policy validation routine.

[0174] Alternatively, if the system determines that the requested security policy is more permissive than the reference policy, such information may be indicated 1414. In some embodiments, the client may use a GUI to submit a request to apply a security policy. In response to detecting that the requested security policy is more permissive than the reference policy, a failure code may be returned to the client, which may be presented in the GUI, for example, as a pop-up window. If the client uses a command line interface, the failure code may be presented as text per line.

[0175] In some embodiments, the system may also provide a set of parameters sufficient to determine that the requested security policy and the reference policy lack equivalence. Figure 1-4 The policy analyzer service described herein and utilized elsewhere in this disclosure such as in conjunction with Fig.12 Describe the technology.

[0176] If the requested security policy and the reference policy are equivalent, the system can perform various appropriate actions. In some embodiments, this can be handled in the same way as if the system determined that the security policy was more permissive than the reference policy. Alternatively, it can be handled in the same way as if the system determined that the security policy was less permissive than the reference policy. How the system handles the situation when the security policies are equivalent can be a configurable setting.

[0177] In some embodiments, there may be multiple baseline policies with which the security policy is compared. In this case, the security policy applied by the request can be compared individually with each reference policy. These comparisons can be performed sequentially or in parallel with each other.

[0178] Fig.15Figure 1500 is shown, which shows a graphical user interface (GUI) that can be implemented according to an embodiment of the present disclosure. In some examples, the GUI can be implemented and presented to a user via a client computing device, such as a client (e.g., elsewhere such as in conjunction with Figure 1-4 The GUI may be presented as part of a web page, an application, etc.

[0179] A first graphical user interface 1502 is shown in diagram 1500. The first graphical user interface 1502 may include: a first input area 1504; a second input area 1506; a button 1508; and a visual indication 1510 of a result. The first input area 1504 may be an area of ​​the GUI where a client may enter a policy. For example, the first input area 1504 may be a text box in which a client may enter a policy, such as a policy described elsewhere in this disclosure. The client may enter the policy in several ways, such as by typing the policy in the text box (e.g., using a touch screen keyboard or a physical keyboard), by pasting the policy from a clipboard, and so on. The GUI may also include a second input area 1506 that may support an input mechanism for a second policy, which may be different from the policy entered into the first input area 1504. The GUI may also include a button 1508 that, when pressed, may be used to analyze the permissiveness of the policies included in the input areas 1504 and 1506. For example, pressing a "Submit" button 1508 on a GUI presented to a client computing device may submit a network API request to a policy analyzer service (e.g., in conjunction with Figure 1-4 The policy analyzer service described in the GUI) can be used to compare the permissiveness of the first policy included in the first input area 1504 with the permissiveness of the second policy included in the second input area 1506. The computing resource service provider, the policy analyzer service, or other suitable systems described elsewhere in this disclosure can be used to fulfill the request. The response to the network API request can be presented in the visual indication 1510 area of ​​the GUI as well as other areas. For example, Fig.15 The GUI 1502 shown in can present a visual indication 1510 that two policies are equivalent through two equal signs "==", and text that further explains the policy equivalence can also be included elsewhere in the GUI. In some embodiments, the GUI can present additional information about the equivalence of the two policies. In some cases, when the two policies lack equivalence, the GUI can present a parameter set that can provide an instance of the lack of equivalence of the two policies. For example, the parameter set can include subjects, actions, and can list computing resources, so that applying a first security policy to the parameter set results in a first effect (e.g., granting access), while applying a second security policy to the same parameter set results in a different effect (e.g., denying access).

[0180] A second graphical user interface 1512 is shown in Figure 1500. The second graphical user interface 1512 may include: an input area 1514; a drop-down list 1516; a drop-down arrow 1518 that can be used to expand the drop-down list; a button 1520; and a visual indication 1522 of the result. The second graphical user interface may be implemented using the techniques described above in conjunction with the first graphical user interface 1502. In some embodiments, the input area 1514 may be consistent with the input area described elsewhere in this disclosure. The drop-down list 1516 may be a list of items describing one or more predefined policies (such as the reference policy described above). The items of the drop-down list may include descriptions of various predefined policies (such as reference policies), and those descriptions may be mapped to corresponding base policies (such as policies in JSON format). In some embodiments, the drop-down list 1516 may be expanded by pressing the drop-down arrow 1518 to display multiple policies of the list. As described elsewhere, the button 1520 may be used to submit a network API request to compare two policies. For example, when the client presses the "Submit" button 1520 shown in the second graphical user interface 1512, the system can submit a network API request to compare the policy included in the input area 1514 with a second policy obtained from a mapping that maps the drop-down list items to their corresponding policies. As a second example, when the client presses button 1520, the system can submit a network API request that includes the input 1514 and an identifier corresponding to a predefined policy such as a reference policy, and the service that receives the request can perform a mapping of the identifier to the corresponding policy. A computing resource service provider, a policy analyzer service, or other suitable systems described elsewhere in this disclosure may be used to fulfill the request. A response to the network API request may be presented in the visual indication 1522 area of ​​the GUI as well as other areas. For example, Fig.15 The GUI 1512 shown in can present a visual indication 1522 that the policy of the input area is equivalent to the policy of the drop-down list through two equal signs "==", and text that further explains the policy equivalence can also be included elsewhere in the GUI. In some embodiments, the GUI can present additional information about the equivalence of the two policies. In some cases, when the policy of the input area lacks equivalence with the policy of the drop-down list, the GUI can present a parameter set that can provide an instance of the lack of equivalence of the two policies. For example, the parameter set can include a subject, an action, and can list computing resources, so that applying the security policy of the input area 1514 to the parameter set results in a first effect (e.g., granting access), while applying the security policy corresponding to the selected drop-down item to the same parameter set results in a different effect (e.g., denying access).

[0181] Fig.16Aspects of example environment 1600 for implementing aspects according to various embodiments are shown. It should be understood that, although a network-based environment is used for the purpose of explanation, various embodiments can be implemented using different environments in appropriate cases. Environment includes electronic client device 1602, which may include any appropriate device operable to send and / or receive requests, messages or information through appropriate network 1604 and transmit information back to the user of the device in some embodiments. Examples of such client devices include personal computers, mobile phones, handheld messaging devices, laptop computers, tablet computers, set-top boxes, personal data assistants, embedded computer systems, e-book readers, and the like. Networks may include any appropriate network, including intranets, the Internet, cellular networks, local area networks, satellite networks, or any other such networks and / or combinations of the above-mentioned networks. Components for such systems may depend at least in part on the type of selected network and / or environment. Many protocols and components for communicating via such networks are well known and will not be discussed in detail herein. Communication through a network may be achieved by wired or wireless connections and combinations thereof. In this example, the network includes the Internet and / or other publicly addressable communications network, as the environment includes a network server 1606 for receiving requests and providing content in response to the requests, but for other networks, alternative devices for similar purposes may be used, as will be apparent to those skilled in the art.

[0182] The illustrative environment includes at least one application server 1608 and a data storage device 1610. It should be understood that there may be several application servers, layers or other elements, processes or components that may be linked or otherwise configured, which may interact to perform tasks such as obtaining data from an appropriate data storage device. As used herein, a server may be implemented in various ways (such as a hardware device or a virtual computer system). In some cases, a server may refer to a programming module being executed on a computer system. As used herein, unless otherwise specified or clear from the context, the term "data storage device" refers to any device or combination of devices capable of storing, accessing and retrieving data, which may include any combination of data servers, databases, data storage devices and data storage media in any standard, distributed, virtual or clustered environment and any number of said data servers, databases, data storage devices and data storage media. The application server may include any appropriate hardware, software and firmware, which are used to integrate with the data storage device as needed to perform aspects of one or more applications of the client device, handling some or all of the data access and business logic of the application. The application server can provide access control services in cooperation with the data storage device, and can generate content including but not limited to the following: text, graphics, audio, video and / or other content that can be used to provide to the user, which can be provided to the user by the network server in the form of hypertext markup language ("HTML"), extensible markup language ("XML"), JavaScript, cascading style sheets ("CSS"), JavaScript object representation (JSON) and / or another appropriate client-side structured language. The content transmitted to the client device can be processed by the client device to provide the content in one or more forms, including but not limited to forms that the user can perceive by hearing, vision and / or other senses. In this example, the handling of all requests and responses and the delivery of content between the client device 1602 and the application server 1608 can be handled by the network server using PHP: hypertext preprocessor ("PHP"), Python, Ruby, Perl, Java, HTML, XML, JSON and / or another appropriate server-side structured language. In addition, unless otherwise clear from the context, the operations described herein as being performed by a single device can be performed jointly by multiple devices that may form a distributed and / or virtual system.

[0183] The data storage device 1610 may include several separate data tables, databases, data files, dynamic data storage schemes, and / or other data storage mechanisms and media for storing data related to specific aspects of the present disclosure. For example, the data storage device shown may include a mechanism for storing production data 1612 and user information 1616, which can be used to provide content to the production side. The data storage device is also shown as including a mechanism for storing log data 1614, which can be used for reporting, analysis, or other such purposes. It should be understood that there may be many other aspects that may need to be stored in the data storage device, such as page image information and access rights information, which can be stored in any of the mechanisms listed above or in additional mechanisms in the data storage device 1610 when appropriate. The data storage device 1610 can receive instructions from the application server 1608 through the logic operations associated therewith, and obtain, update, or otherwise process data in response to the instructions. The application server 1608 can provide static data, dynamic data, or a combination of static and dynamic data in response to the received instructions. Dynamic data, such as data used in web logs (blogs), shopping applications, news services, and other such applications, can be generated by a server-side structured language as described herein or can be provided by a content management system ("CMS") operating on an application server or under the control of an application server. In one example, a user can submit a search request for a certain type of item through a device operated by the user. In this case, the data storage device can access user information to verify the identity of the user, and can access directory details to obtain information about the type of item. The information can then be returned to the user, such as in the results listed on a web page that the user can view via a browser on the user device 1602. Information about a specific item of interest can be viewed in a dedicated browser page or window. However, it should be noted that the embodiments of the present disclosure are not necessarily limited to the environment of a web page, but can be more generally applicable to processing requests in general, where the request is not necessarily a request for content.

[0184] Each server will typically include an operating system that provides executable program instructions for the general administration and operation of the server, and will typically include a computer-readable storage medium (e.g., a hard disk, random access memory, read-only memory, etc.) storing instructions that, when executed by (i.e., as a result of being executed by) the server's processor, enable the server to perform its intended functions.

[0185] In one embodiment, the environment is a distributed and / or virtual computing environment utilizing several computer systems and components that are interconnected via communication links using one or more computer networks or direct connections. However, those skilled in the art will appreciate that such systems may be more complex than Fig.16 The system may also operate well with fewer or more components as shown in FIG. Fig.16 The description of system 1600 in should be considered illustrative in nature and not limiting the scope of the present disclosure.

[0186] Embodiments of the present disclosure may be described in terms of the following:

[0187] 1. A computer-implemented method, the computer-implemented method comprising:

[0188] Information is received via the interface specifying:

[0189] a first security policy encoding a first set of security permissions; and

[0190] a second security policy encoding a second set of security permissions;

[0191] determining a first propositional logic expression based at least in part on the first set of security permissions;

[0192] determining a second propositional logic expression based at least in part on the second set of security permissions;

[0193] identifying a set of parameters sufficient to determine a lack of equivalence of a first propositional logic and a second propositional logic such that applying the first security policy to the set of parameters results in denying access to a computing resource associated with the set of parameters and applying the second security policy to the set of parameters results in granting access to the computing resource; and

[0194] Provided via the interface:

[0195] an indication of a lack of equivalence between the first security policy and the second security policy; and

[0196] The parameter set.

[0197] 2. The computer-implemented method of claim 1, wherein determining that the first propositional logic and the second propositional logic lack equivalence comprises utilizing a satisfiability modulo theory (SMT) solver to determine whether constraints generated at least in part from the first propositional logic and the second propositional logic are satisfiable.

[0198] 3. The computer-implemented method of clause 2, wherein the constraints generated at least in part from the first propositional logic and the second propositional logic conform to the SMT-LIB standard.

[0199] 4. The computer-implemented method of any of clauses 1-3, wherein the indication of the lack of equivalence of the first security policy and the second security policy comprises an indication of whether the first security policy is more permissive than the second security policy.

[0200] 5. A system, comprising:

[0201] one or more processors; and

[0202] a memory storing computer executable instructions that, if executed, cause the system to:

[0203] determining a first propositional logic based at least in part on the first set of security permissions;

[0204] determining a second propositional logic based at least in part on the second set of security permissions; and

[0205] using the first propositional logic and the second propositional logic to determine a lack of equivalence between the first propositional logic and the second propositional logic; and

[0206] An indication of a lack of equivalence between the first set of security permissions and the second set of security permissions is provided.

[0207] 6. The system of claim 5, wherein the computer executable instructions for determining the lack of equivalence of the first propositional logic and the second propositional logic further comprise computer executable instructions that, if executed, cause the system to utilize a satisfiability modulo theory (SMT) solver to determine whether constraints generated at least in part from the first propositional logic and the second propositional logic are satisfiable.

[0208] 7. The system of clause 5 or 6, wherein the first set of security permissions is included in a first policy and the second set of security permissions is included in a second policy.

[0209] 8. The system of clause 6, wherein the constraints generated at least in part from the first propositional logic and the second propositional logic conform to a CVC format or a DIMACS format.

[0210] 9. The system of any of clauses 5-8, wherein the computer executable instructions to determine the lack of equivalence of the first propositional logic and the second propositional logic further comprise computer executable instructions that if executed cause the system to:

[0211] generating a first set of constraints for access consent corresponding to the first set of security permissions; and

[0212] A second set of constraints corresponding to access denials of the first set of security permissions is generated.

[0213] 10. The system of claim 9, wherein the computer executable instructions for determining the lack of equivalence between the first propositional logic and the second propositional logic further comprise computer executable instructions that, if executed, cause the system to generate a third set of constraints, the third set of constraints corresponding to access-neutral constraints of the first security permission set.

[0214] 11. The system of any one of clauses 5-10, wherein the second security permission set is obtained by a user selecting the second security permission set from a predetermined plurality of security permission sets.

[0215] 12. The system of any of clauses 5-11, wherein the computer executable instructions to determine that the first propositional logic and the second propositional logic lack equivalence further comprise computer executable instructions that, if executed, cause the system to determine that the first propositional logic and the second propositional logic are incomparable.

[0216] 13. A non-transitory computer-readable storage medium having executable instructions stored thereon, wherein the executable instructions, when executed by one or more processors of a computer system, cause the computer system to at least:

[0217] identifying whether there are security permissions associated with a first security permission set or a second security permission set sufficient to determine that a first propositional logic determined from the first security permission set and a second propositional logic determined from the second security permission set lack equivalence; and

[0218] An indication of a lack of equivalence between the first set of security permissions and the second set of security permissions is provided.

[0219] 14. The non-transitory computer-readable storage medium of clause 13, wherein the executable instructions that, when executed, cause the computer system to identify whether the security permission exists further comprise executable instructions that use a satisfiability modulo theory (SMT) solver.

[0220] 15. The non-transitory computer-readable storage medium of clause 13 or 14, wherein the executable instructions that, when executed, cause the computer system to identify whether the security permission exists sufficient to determine whether the first propositional logic and the second propositional logic lack equivalence also include executable instructions using a satisfiability (SAT) solver.

[0221] 16. The non-transitory computer-readable storage medium of clause 15, wherein the SAT solver is a (Binary Decision Diagram) BDD SAT solver.

[0222] 17. The non-transitory computer-readable storage medium of any of clauses 13-16, wherein the first set of security permissions identifies at least:

[0223] main body;

[0224] action;

[0225] Computing resources; and

[0226] Agree to the effect or reject the effect.

[0227] 18. The non-transitory computer-readable storage medium of clause 17, wherein the first set of security permissions further identifies at least one conditional predicate.

[0228] 19. The non-transitory computer-readable storage medium of any of clauses 13-18, wherein at least one of the first set of security permissions and the second set of security permissions is obtained from a policy repository including security policies for a plurality of applications, the security policies for the applications including a set of security permissions.

[0229] 20. The non-transitory computer-readable storage medium of any of clauses 13-19, wherein the executable instructions, due to being executed by one or more processors of a computer system, further cause the computer system to at least:

[0230] identifying the security clearance sufficient to determine a lack of equivalence between the first propositional logic and the second propositional logic; and

[0231] The identified security permission is provided as part of a response to a request to determine equivalence of the first propositional logic and the second propositional logic.

[0232] 21. A computer-implemented method, the computer-implemented method comprising:

[0233] accessing a record from a log of application programming interface calls, wherein the record corresponds to an application programming interface call in the application programming interface calls;

[0234] Based at least in part on the record, determining that the application programming interface call applies a first policy, the first policy being operable to grant or deny access to one or more computing resources;

[0235] A policy validation routine is called, wherein the policy validation routine includes:

[0236] selecting a reference policy from a plurality of security policies based at least in part on the first policy;

[0237] determining a first propositional logic expression based at least in part on a first set of security permissions associated with the first policy;

[0238] determining a second propositional logic expression based at least in part on a second set of security permissions associated with the reference policy; and

[0239] determining whether the first propositional logic expression is looser than the second propositional logic expression; and

[0240] In response to determining that the first propositional logic expression is more permissive than the second propositional logic expression, a mitigation routine is executed that modifies or overrides the first policy.

[0241] 22. The computer-implemented method of clause 21, wherein a satisfiability modulo theory (SMT) solver is utilized as part of determining whether the first propositional logic expression is looser than the second propositional logic expression.

[0242] 23. The computer-implemented method of clause 21 or 22, wherein the mitigation routine comprises denying access to at least one computing resource that the first policy enables access to.

[0243] 24. The computer-implemented method of any of clauses 21-23, wherein determining that the first propositional logic expression is looser than the second propositional logic expression comprises identifying a set of parameters, wherein:

[0244] The set of parameters identifies subjects, actions, and computing resources;

[0245] Applying the first policy to the set of parameters causes access to the computing resource to be granted; and

[0246] Applying the reference policy to the set of parameters causes access to the computing resource to be denied.

[0247] 25. A system, comprising:

[0248] one or more processors; and

[0249] a memory storing computer executable instructions that, if executed, cause the system to:

[0250] determining, based at least in part on the plurality of received application programming interface calls, that an application programming interface call in the plurality of application programming interface calls applies a first policy, the first policy being operable to grant or deny access to one or more computing resources; and

[0251] calling a policy validation routine, wherein the instructions that cause the system to call the policy validation routine, if executed, cause the system to:

[0252] Select a reference policy from multiple predefined security policies;

[0253] determining a set of constraints based at least in part on a first mapping of the first policy to a first expression comprising propositional logic and a second mapping of the reference policy to a second expression comprising propositional logic;

[0254] determining whether the first policy is more relaxed than the reference policy based at least in part on whether the set of constraints can be satisfied; and

[0255] Information is transmitted based at least in part on a determination whether the first policy is more permissive than the reference policy.

[0256] 26. The system of clause 25, wherein the first expression further comprises first order logic.

[0257] 27. The system of clause 25 or 26, wherein the instruction that causes the system to determine whether the first policy is more relaxed than the reference policy, if executed, causes the system to use a satisfiability modulo theory (SMT) solver to evaluate whether the set of constraints is satisfiable.

[0258] 28. The system of clause 27, wherein a Z3 solver is the SMT solver.

[0259] 29. The system of any one of clauses 25-28, wherein the computer executable instructions, if executed, further cause the system to:

[0260] denying access to all computing resources to which the first policy enables access; and

[0261] An indication that the first policy is more permissive than a second policy is provided to an entity associated with the application programming interface call to which the first policy is applied.

[0262] 30. The system of any of clauses 25-29, wherein the policy validation routine further comprises providing an indication of a set of parameters, wherein:

[0263] The parameter set includes:

[0264] main body;

[0265] action;

[0266] Computing resources; and

[0267] consent to effect or refusal to effect;

[0268] Applying the first policy to the set of parameters grants access to the computing resource; and

[0269] Applying the reference policy to the set of parameters denies access to the computing resource.

[0270] 31. The system of clause 30, wherein the parameter set further comprises at least one conditional predicate defining whether the corresponding policy is in effect.

[0271] 32. The system of any of clauses 25-31, wherein the reference policy is selected based at least in part on a service namespace associated with a computing resource encoded in the application programming interface call.

[0272] 33. A non-transitory computer-readable storage medium having executable instructions stored thereon, the executable instructions, when executed by one or more processors of a computer system, causing the computer system to at least:

[0273] monitoring a plurality of requests, at least some of the plurality of requests applying a security policy granting or denying access to computing resources of a computing resource service provider;

[0274] identifying a request among the plurality of requests to which a first policy is applied; and

[0275] Invoking a policy validation routine, wherein the policy validation routine causes the computer system to at least:

[0276] determining a set of constraints based at least in part on a first mapping of the first policy to a first expression comprising propositional logic and a second mapping of a reference policy to a second expression comprising propositional logic;

[0277] determining whether the first policy is more relaxed than the reference policy by evaluating whether the set of constraints can be satisfied; and

[0278] In response to determining that the first policy is more permissive than the reference policy, a mitigation routine is performed.

[0279] 34. The non-transitory computer-readable storage medium of clause 33, wherein the second expression comprises first-order logic.

[0280] 35. The non-temporary computer-readable storage medium of claim 33 or 34, wherein the executable instructions for determining whether the first policy is more relaxed than the reference policy, when executed, cause the computer system to use a satisfiability modulo theory (SMT) solver to evaluate whether the set of constraints is satisfiable.

[0281] 36. The non-transitory computer-readable storage medium of clause 35, wherein the constraints are encoded in a format that complies with the SMT-LIB standard.

[0282] 37. The non-transitory computer-readable storage medium of any of clauses 33-36, wherein the first policy is encoded in JavaScript Object Notation (JSON) format.

[0283] 38. The non-transitory computer-readable storage medium of any of clauses 33-37, wherein the second policy is obtained from a predetermined plurality of security policies.

[0284] 39. The non-transitory computer-readable storage medium of any of clauses 33-38, wherein the executable instructions, due to being executed by the one or more processors of the computer system, further cause the computer system to perform the mitigation routine in response to determining that the first policy and the reference policy are equivalent.

[0285] 40. The non-transitory computer-readable storage medium of any of clauses 33-39, wherein the executable instructions, due to being executed by the one or more processors of the computer system, further cause the computer system to perform the mitigation routine in response to determining that the first policy and the reference policy are not comparable.

[0286] Various embodiments can also be implemented in a wide variety of operating environments, which can include one or more user computers, computing devices or processing devices that can be used to operate any one of multiple applications in some cases. A user or client device can include any one of a variety of computers, such as a desktop computer, a laptop computer or a tablet computer running a standard operating system, and a cellular device, a wireless device and a handheld device that run mobile software and can support multiple networking and messaging protocols. Such systems can also include multiple workstations, which run any one of various commercially available operating systems and other known applications for purposes such as development and database management. These devices can also include other electronic devices, such as virtual terminals, thin clients, gaming systems, and other devices that can communicate via a network. These devices can also include virtual devices, such as virtual machines, supervisors, and other virtual devices that can communicate via a network.

[0287] Various embodiments of the present disclosure utilize at least one network that will be familiar to those skilled in the art to support communications using any of a variety of commercially available protocols, such as the Transmission Control Protocol / Internet Protocol ("TCP / IP"), the User Datagram Protocol ("UDP"), protocols operating in various layers of the Open Systems Interconnection ("OSI") model, the File Transfer Protocol ("FTP"), Universal Plug and Play ("UPnP"), the Network File System ("NFS"), the Common Internet File System ("CIFS"), and AppleTalk. The network can be, for example, a local area network, a wide area network, a virtual private network, the Internet, an intranet, an extranet, a public switched telephone network, an infrared network, a wireless network, a satellite network, and any combination of the above networks. In some embodiments, a connection-oriented protocol can be used to communicate between network endpoints. A connection-oriented protocol (sometimes referred to as a connection-based protocol) is capable of transmitting data in an ordered stream. A connection-oriented protocol can be reliable or unreliable. For example, the TCP protocol is a reliable connection-oriented protocol. Asynchronous Transfer Mode ("ATM") and frame relay are unreliable connection-oriented protocols. Connection-oriented protocols are in contrast to packet-oriented protocols, such as UDP, which transmit packets without guaranteed ordering.

[0288] In embodiments utilizing a web server, the web server may run any of a variety of server or middle-tier applications, including a Hypertext Transfer Protocol ("HTTP") server, an FTP server, a Common Gateway Interface ("CGI") server, a data server, a Java server, an Apache server, and a business application server. The server may also be capable of executing programs or scripts in response to requests from user devices, such as by executing one or more web applications, which may be implemented as a web application written in any programming language, such as, C, C# or C++) or any scripting language (such as Ruby, PHP, Perl, Python or TCL) and their combinations. The server may also include a database server, including but not limited to as well as Commercially available servers as well as open source servers such as MySQL, Postgres, SQLite, MongoDB, and any other server capable of storing, retrieving, and accessing structured or unstructured data. The database servers may include table-based servers, document-based servers, unstructured servers, relational servers, non-relational servers, or a combination of these and / or other database servers.

[0289] The environment may include a variety of data storage devices and other memories and storage media as described above. These may reside in a variety of locations, such as local to one or more of the computers (and / or reside in one or more of the computers) or on a storage medium away from any or all computers on a network. In a specific set of embodiments, information may reside in a storage area network ("SAN") familiar to those skilled in the art. Similarly, any necessary files for performing functions attributed to computers, servers or other network devices may be stored locally and / or remotely where appropriate. In the case where the system includes a computerized device, each such device may include hardware elements that may be electrically connected via a bus, including, for example, at least one central processing unit ("CPU" or "processor"), at least one input device (e.g., mouse, keyboard, controller, touch screen or keypad) and at least one output device (e.g., display device, printer or speaker). Such systems may also include one or more storage devices, such as disk drives, optical storage devices, and solid-state storage devices such as random access memory ("RAM") or read-only memory ("ROM"), as well as removable media devices, memory cards, flash memory cards, etc.

[0290] Such devices may also include a computer-readable storage medium reader, a communication device (e.g., a modem, a network card (wireless or wired), an infrared communication device, etc.), and a working memory as described above. The computer-readable storage medium reader may be connected to or configured to receive a computer-readable storage medium, which represents a remote, local, fixed and / or removable storage device, and a storage medium for temporarily and / or more permanently accommodating, storing, transmitting and retrieving computer-readable information. The system and various devices will also typically include a plurality of software applications, modules, services or other elements located within at least one working memory device, including an operating system and application programs, such as a client application or a web browser. In addition, customized hardware may also be used and / or specific elements may be implemented in hardware, software (including portable software, such as applets), or both. In addition, connections to other computing devices such as network input / output devices may be employed.

[0291] Storage media and computer-readable media for containing code or portions of code may include any suitable media known or used in the art, including storage media and communication media, such as, but not limited to, volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing and / or transmitting information (such as, computer-readable instructions, data structures, program modules or other data), including RAM, ROM, electrically erasable programmable read-only memory ("EEPROM"), flash memory or other memory technology, compact disc read-only memory ("CD-ROM"), digital versatile disc (DVD) or other optical storage device, magnetic cassette, magnetic tape, magnetic disk storage device or other magnetic storage device, or any other medium that can be used to store the desired information and can be accessed by the system device. Based on the disclosure and teachings provided herein, those skilled in the art will understand other ways and / or methods for implementing various embodiments.

[0292] Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the claims.

[0293] Other variations are within the spirit of the present disclosure. Thus, while the disclosed technology is susceptible to various modifications and alternative constructions, certain illustrative embodiments thereof are shown in the accompanying drawings and have been described in detail above. However, it should be understood that there is no intention to limit the invention to the specific forms disclosed, but on the contrary, the invention is intended to cover all modifications, alternative constructions and equivalents that fall within the spirit and scope of the invention as defined in the appended claims.

[0294] Unless otherwise indicated herein or explicitly contradicted by context, the use of the terms "one" and "a kind of" and "said" and similar referents in the context of describing the disclosed embodiments (particularly in the context of the appended claims) should be interpreted as covering both the singular and the plural. Unless otherwise indicated, the terms "comprising", "having", "including" and "containing" will be interpreted as open terms (i.e., meaning "including but not limited to"). In the case of unmodified and referring to physical connection, the term "connected" should be interpreted as partially or completely included, attached to or joined together, even if there are some intervening objects. Unless otherwise indicated herein, the enumeration of the range of values ​​herein is intended only to be used as a convenient method for individually referring to each individual value falling within the range, and each individual value is incorporated into this specification as if individually listed herein. Unless otherwise indicated or contradicted by context, the use of the term "set" (e.g., "set of items") or "subset" should be interpreted as a non-empty set including one or more members. Furthermore, unless otherwise noted or contradicted by context, the term "subset" of a corresponding set does not necessarily mean a true subset of the corresponding set, but rather a subset and a corresponding set may be equal.

[0295] Unless specifically stated otherwise or otherwise expressly contradicted by context, conjunction language, such as phrases of the form "at least one of A, B, and C" or "at least one of A, B, and C" may be otherwise understood in the context of common usage to mean that an item, term, etc. may be A or B or C, or any non-empty subset of the set of A and B and C. For example, in the illustrative example of a set having three members, conjunction phrases "at least one of A, B, and C" and "at least one of A, B, and C" refer to any of the following sets: {A}, {B}, {C}, {A, B}, {A, C}, {B, C}, {A, B, C}. Thus, such conjunction language is generally not intended to imply that certain embodiments require that at least one of A, at least one of B, and at least one of C each be present. Additionally, unless otherwise noted or contradicted by context, the term "plurality" indicates plural status (e.g., "a plurality of items" indicates several items). The number of plural items is at least two, but may be more when indicated explicitly or by context.

[0296] Unless otherwise indicated herein or otherwise explicitly contradicted by context, the operations of the processes described herein may be performed in any suitable order. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as codes (e.g., executable instructions, one or more computer programs, or one or more applications) that are executed jointly on one or more processors by hardware or a combination thereof. The code may be stored, for example, in the form of a computer program on a computer-readable storage medium, the computer program including multiple instructions that may be executed by one or more processors. The computer-readable storage medium may be non-transitory. In some embodiments, the code is stored on a collection of one or more non-transitory computer-readable storage media, on which executable instructions are stored, which, when executed by one or more processors of a computer system (i.e., due to being executed by one or more processors of a computer system), cause the computer system to perform the operations described herein. The collection of non-transitory computer-readable storage media may include multiple non-transitory computer-readable storage media, and one or more of the individual non-transitory storage media in the multiple non-transitory computer-readable storage media may lack all codes, while multiple non-transitory computer-readable storage media store all codes together. Furthermore, in some instances, the executable instructions are executed such that different instructions are executed by different processors. As an illustrative example, a non-transitory computer-readable storage medium may store the instructions. The main CPU may execute some of the instructions and the graphics processor unit may execute other instructions of the instructions. In general, different components of a computer system may have separate processors, and different processors may execute different subsets of the instructions.

[0297] Thus, in some instances, the computer system is configured to implement one or more services that individually or collectively perform the operations of the processes described herein. Such computer systems may, for example, be configured with applicable hardware and / or software that enables the operations to be performed. In addition, the computer system implementing the various embodiments of the present disclosure may be a single device in some instances, and may be a distributed computer system including multiple devices in other instances, the multiple devices operating differently so that the distributed computer system performs the operations described herein and so that a single device cannot perform all operations.

[0298] Unless otherwise required, the use of any and all examples or exemplary language (e.g., "such as") provided herein is intended only to better illustrate embodiments of the invention and is not intended to limit the scope of the invention. No language in this specification should be construed as indicating any non-claimed element is essential to the practice of the invention.

[0299] Embodiments of the present disclosure are described herein, including the best mode known to the inventor for implementing the present invention. After reading the foregoing description, the changes of those embodiments may become apparent to those skilled in the art. The inventor expects that the technician will adopt such changes when appropriate, and the inventor intends to practice the embodiments of the present disclosure in a manner different from the specific description herein. Therefore, the scope of the present disclosure includes all modifications and equivalents to the subject matter recited in the attached claims as allowed by applicable law. In addition, unless otherwise noted herein or otherwise explicitly contradicted with the context, the scope of the present disclosure covers any combination of the above-mentioned elements in all possible changes thereof.

[0300] All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein.

Claims

1. A computer-implemented method for a security policy monitoring service, comprising: accessing a record from a log of application programming interface calls, wherein the record corresponds to an application programming interface call in the application programming interface calls; determining, based at least in part on the record, that the application programming interface call applies a first policy, the first policy being operable to grant or deny access to one or more computing resources; selecting custom logic from a plurality of custom logics based at least in part on the first policy; Providing a collection of computing resources to execute the custom logic; The custom logic is executed on the set of computing resources by performing at least the following steps: selecting a reference policy from among the plurality of security policies based at least in part on a mapping between the plurality of custom logics and the plurality of security policies; determining a first propositional logic expression based at least in part on a first set of security permissions associated with the first policy; determining a second propositional logic expression based at least in part on a second set of security permissions associated with the reference policy; as well as parsing the first propositional logic expression and the second propositional logic expression to generate a set of constraints, wherein evaluation of the set of constraints indicates whether the first propositional logic expression is looser than the second propositional logic expression; Unprovisioning the set of computing resources as a result of executing the custom logic; as well as In response to determining whether the first propositional logic expression is more permissive than the second propositional logic expression, a mitigation routine is executed that modifies or overrides the first policy.

2. The computer-implemented method of claim 1, wherein: A satisfiability modulo theory SMT solver is utilized as part of determining whether the first propositional logic expression is looser than the second propositional logic expression.

3. The computer-implemented method of claim 1, wherein: The mitigation routine includes denying access to at least one computing resource that the first policy enables access to.

4. The computer-implemented method of claim 1 , wherein determining that the first propositional logic expression is looser than the second propositional logic expression comprises identifying a set of parameters, wherein: The set of parameters identifies subjects, actions, and computing resources; applying the first policy to the set of parameters causes access to the computing resource to be granted; as well as Applying the reference policy to the set of parameters causes access to the computing resource to be denied.

5. The computer-implemented method of claim 1, wherein: Providing the set of computing resources to execute the custom logic includes initializing a virtual machine instance; and Canceling the provisioning of the set of computing resources includes canceling the provisioning of the virtual machine instance.

6. A system for security policy monitoring service, comprising: one or more processors; as well as a memory storing computer executable instructions that, if executed, cause the system to: determining, based at least in part on the plurality of obtained application programming interface calls, that an application programming interface call in the plurality of application programming interface calls applies a first policy, the first policy being operable to grant or deny access to one or more computing resources; as well as selecting custom logic from a plurality of custom logics based at least in part on the first policy; executing the custom logic, wherein the instructions causing the system to execute the custom logic, if executed, cause the system to: selecting a reference policy from among the plurality of predefined security policies based at least in part on a mapping between the plurality of custom logics and the plurality of predefined security policies; determining a set of constraints based at least in part on a first mapping of the first policy to a first expression comprising propositional logic and a second mapping of the reference policy to a second expression comprising propositional logic; The set of constraints is evaluated to determine a result, wherein the result is one of: The first policy is more relaxed than the reference policy; The reference policy is more relaxed than the first policy; The first strategy is equivalent to the reference strategy; or The first policy is not comparable to the reference policy; and Information is transmitted based at least in part on the result.

7. The system of claim 6, wherein the first expression further comprises first order logic.

8. The system of claim 6, wherein a satisfiability modulo theory (SMT) solver is utilized as part of evaluating whether the set of constraints is satisfiable.

9. The system of claim 8, wherein the SMT solver is a Z3 solver.

10. The system of claim 6, wherein the instructions that cause the system to execute the custom logic, if executed, further cause the system to: denying access to all computing resources to which the first policy enables access; and An indication that the first policy is more permissive than the reference policy is provided to an entity associated with the application programming interface call to which the first policy is applied.

11. The system of claim 6, wherein the instructions that cause the system to execute the custom logic, if executed, further cause the system to provide an indication of a set of parameters, wherein: The parameter set includes: main body; action; Computing resources; and consent to effect or refusal to effect; Applying the first policy to the set of parameters grants access to the computing resource; and Applying the reference policy to the set of parameters denies access to the computing resource.

12. The system of claim 11, wherein the parameter set further comprises at least one conditional predicate defining whether the corresponding policy is in effect.

13. The system of claim 6, wherein the reference policy is selected based at least in part on a service namespace associated with a computing resource encoded in the application programming interface call.

14. A non-transitory computer-readable storage medium having executable instructions stored thereon, wherein the executable instructions, when executed by one or more processors of a computer system, cause the computer system to at least: monitoring a plurality of requests, at least some of the plurality of requests applying a security policy granting or denying access to computing resources of a computing resource service provider; identifying a request among the plurality of requests to which a first policy is applied; as well as selecting custom logic from a plurality of custom logics based at least in part on the first policy; Running the custom logic, wherein the custom logic causes the system to perform at least the following steps: selecting a reference policy from the plurality of policies based at least in part on a third mapping between the plurality of custom logics and the plurality of policies; determining a set of constraints based at least in part on a first mapping of the first policy to a first expression comprising propositional logic and a second mapping of the reference policy to a second expression comprising propositional logic; Determining whether the first policy is looser than the reference policy by evaluating whether the constraint set is satisfiable, wherein a result of the constraint set indicates one of the following: The first policy is more relaxed than the reference policy; The reference policy is more relaxed than the first policy; The first strategy is equivalent to the reference strategy; The first policy is not comparable to the reference policy; and In response to determining that the first policy is more permissive than the reference policy, a mitigation routine is performed.

15. The non-transitory computer-readable storage medium of claim 14, wherein the reference policy is a globally writable policy.

16. The non-transitory computer-readable storage medium of claim 14, wherein a satisfiability modulo theory (SMT) solver is utilized as part of evaluating whether the set of constraints is satisfiable.

17. The non-transitory computer-readable storage medium of claim 16, wherein: The constraint set is encoded in a format that complies with the SMT-LIB standard.

18. The non-transitory computer-readable storage medium of claim 14, wherein: The third mapping between the multiple custom logics and multiple policies is at least partially based on the first service namespace and the second service namespace, the security policy of the computing resources with the first service namespace is associated with the first custom logic, and the security policy of the computing resources with the second service namespace is associated with the second custom logic.

19. The non-transitory computer-readable storage medium of claim 14, wherein: The reference policy is obtained from a plurality of predetermined security policies.

20. The non-transitory computer-readable storage medium of claim 14, wherein: The executable instructions, if executed by the one or more processors of the computer system, further cause the computer system to perform the mitigation routine in response to determining that the first policy and the reference policy are equivalent.

21. The non-transitory computer-readable storage medium of claim 14, wherein: The executable instructions, if executed by the one or more processors of the computer system, further cause the computer system to perform the mitigation routine in response to a result indicating that the first policy and the reference policy are not comparable.

22. A computer-implemented method for a security policy monitoring service, comprising: Obtain one or more baseline security policies from a client of a computing resource service provider; storing the web application programming interface call request in a log system to apply a security policy that can be used to grant or deny access to computing resources of the computing resource service provider; selecting a custom logic from a plurality of custom logics for processing as a result of detecting an event trigger, wherein the event trigger is detected based at least in part on one or more security policies being applied and recorded in a logging system; Providing a collection of computing resources to execute the custom logic; The custom logic is executed on the computing resource set by performing at least the following steps: Acquire a first security policy from the log system; parsing the first security policy and the one or more baseline security policies to determine one or more propositional logic expressions that can be used to generate a set of constraints, wherein evaluation of the set of constraints indicates whether the first security policy is more permissive than the one or more baseline security policies; as well as Because the first security policy is more relaxed than the one or more baseline security policies, recording the first security policy to a storage system; As a result of executing the custom logic, cancelling provisioning of the set of computing resources; Acquire the first security policy from the storage system; as well as The first security policy is presented to a user through a graphical user interface, indicating that the first security policy is more permissive than the one or more baseline policies.

23. The computer-implemented method of claim 22, wherein: A satisfiability modulo theory SMT solver is used to determine whether the set of constraints is satisfiable.

24. The method of claim 23, wherein: The set of constraints is generated at least in part from the one or more propositional logic expressions in accordance with the SMT-LIB standard.

25. The method of claim 22, wherein: The event trigger is detected when applying the security policy.

26. A system for security policy monitoring services, comprising: one or more processors; as well as a memory storing computer executable instructions that, if executed by the one or more processors, cause the system to: Obtaining a first security policy set from a client of a computing resource service provider; storing in a log system a record of a Web application programming interface call request for applying a second set of security policies that can be used to grant or deny access to a computing resource of a computing resource service provider; selecting custom logic from a plurality of custom logics for processing as a result of detecting an event trigger, wherein the event trigger is detected based at least in part on one or more security policies being applied and recorded in the logging system; Providing a collection of computing resources to execute the custom logic; Executing the custom logic on the set of computing resources to at least: Acquire a first security policy from the log system; parsing the first security policy and the first set of security policies to determine one or more propositional logic expressions that can be used to generate a set of constraints, wherein evaluation of the set of constraints indicates whether the first security policy is more permissive than the first set of security policies; and Because the first security policy is looser than the first security policy set, recording the first security policy in a storage system; As a result of executing the custom logic, cancelling provisioning of the set of computing resources; Acquire the first security policy from the storage system; as well as The first security policy is presented to a user through a graphical user interface, indicating that the first security policy is more permissive than the first set of security policies.

27. The system of claim 26, wherein: A satisfiability modulo theory SMT solver is used to determine whether the set of constraints is satisfiable.

28. The system of claim 26, wherein: The set of constraints is generated at least in part from the one or more propositional logic expressions in accordance with the SMT-LIB standard.

29. The system of claim 26, wherein: The one or more propositional logic expressions conform to the CVC format or the DIMACS format.

30. The system of claim 26, wherein: The user in question is an administrator.

31. The system of claim 26, wherein: The first security policy set is a globally accessible security policy.

32. The system of claim 26, wherein: The computer-executable instructions include additional instructions that, as a result of execution by the one or more processors, cause the system to further present a set of parameters that, when evaluated under the first security policy, result in access being granted and that, when evaluated under the first set of security policies, result in access being denied.

33. The system of claim 26, wherein: Evaluation of the constraint set produces a result that is more permissive, less permissive, equally permissive, or incomparable.

34. A non-transitory computer-readable storage medium having executable instructions stored thereon, the executable instructions, when executed by one or more processors of a computer system, causing the computer system to at least: Obtaining a first security policy set from a client of a computing resource service provider; storing in a log system a record of a Web application programming interface call request for applying a second set of security policies that can be used to grant or deny access to a computing resource of a computing resource service provider; selecting custom logic from a plurality of custom logics for processing as a result of detecting an event trigger, wherein the event trigger is detected based at least in part on one or more security policies being applied and recorded in the logging system; Providing a collection of computing resources to execute the custom logic; Executing the custom logic on the set of computing resources to at least: Acquire a first security policy from the log system; parsing the first security policy and the first set of security policies to determine one or more propositional logic expressions that can be used to generate a set of constraints, wherein evaluation of the set of constraints indicates whether the first security policy is more permissive than the first set of security policies; and Because the first security policy is looser than the first security policy set, recording the first security policy in a storage system; As a result of executing the custom logic, cancelling provisioning of the set of computing resources; Acquire the first security policy from the storage system; as well as The first security policy is presented to a user through a graphical user interface, indicating that the first security policy is more permissive than the first set of security policies.

35. The non-transitory computer-readable storage medium of claim 34, wherein: The executable instructions, when executed, cause the computer system to evaluate the set of constraints using a satisfiability modulo theory (SMT) solver to determine whether the first security policy is more relaxed than the first set of security policies.

36. The non-transitory computer-readable storage medium of claim 34, wherein: The executable instructions, when executed, cause the computer system to evaluate the set of constraints using a satisfiability SAT solver to determine whether the first security policy is more relaxed than the first set of security policies.

37. The non-transitory computer-readable storage medium of claim 36, wherein the SAT solver is a binary decision graph satisfiability solver.

38. A non-transitory computer-readable storage medium as described in claim 34, wherein the executable instructions include additional instructions that, as a result of execution by the one or more processors, cause the system to further present a set of parameters: the set of parameters causes access to be granted when evaluated under the first security policy and causes access to be denied when evaluated under the first security policy set.

39. The non-transitory computer-readable storage medium of claim 38, wherein the set of parameters identifies at least: main body; action; Computing resources; and Agree to the effect.

40. The non-transitory computer-readable storage medium of claim 39, wherein The first security policy also identifies at least one conditional predicate.