Problemadvanced
Role mining problem
Also called basic role mining problem.
Given a user-permission matrix, find the fewest roles whose Boolean product with a user-role matrix gives it exactly. Its decision version is NP-complete.
The role mining problem asks for the smallest set of roles that explains an existing assignment of permissions to users. The input is the user-permission matrix of a system, as it is before the move to role-based access control. The output is a set of roles, each a set of permissions, and an assignment of roles to users, such that each user gets exactly the permissions he has now, no more and no fewer. Vaidya, Atluri and Guo stated it in 2007 and showed that its decision version is NP-complete. The problem is the same as the Boolean rank of a 0-1 matrix and as the minimum biclique cover of a bipartite graph.
In plain words
A company has many users and many permissions, and a big table that says which user has which permission. It wants to replace the table with roles, such as "clerk" or "auditor": each role is a bundle of permissions, and each user gets some roles. The goal is to use as few roles as possible, under one strict condition: after the change, every user must have exactly the same permissions as before. A user may not lose a permission he needs, and he may not gain one he did not have. Finding the smallest number of roles is hard in general, so tools use fast methods that find a good set of roles but not always the best one. Some versions of the problem allow a small number of errors in return for fewer roles.
Definition
Let be a set of users and a set of permissions. On this page is the number of users, the number of permissions and the number of roles. The input is a 0-1 matrix of size , with if user has permission .
A role set of size is a pair of 0-1 matrices: of size (users to roles) and of size (roles to permissions). Their Boolean product is
Basic role mining problem. Given , find and with and as small as possible.
Decision version. Given and an integer , is there a role set of size at most with ?
The minimum is the Boolean rank of . In graph terms, let be the bipartite graph with users on one side, permissions on the other, and an edge for each 1 of . A role is a complete bipartite subgraph (a biclique) between the users that have it and its permissions. The product equals exactly when every biclique uses only edges of and every edge is in some biclique. So the minimum is the minimum number of bicliques that cover the edges of .
Variants
- Delta-approx role mining (Vaidya, Atluri and Guo 2007). Given , find the smallest with , where the norm counts the cells that differ. The basic problem is the case .
- MinNoise role mining (Vaidya, Atluri and Guo 2007). Given , find a role set of size that minimizes the number of cells that differ.
- Fewest assignments. Minimize , the number of 1s in the two matrices, instead of . This measures the work of the administrators more closely than the number of roles.
- Role hierarchy mining (Guo, Vaidya and Atluri 2008). Find roles together with a hierarchy among them, so that a role inherits the permissions of the roles below it, and minimize the size of the hierarchy.
The approximate variants have a security cost. A cell with 1 in the product and 0 in gives a user a permission he did not have. If the adversary is a user who uses every permission he holds, such a cell is a real gain for him and a break of the principle of least privilege. A cell with 0 in the product and 1 in only blocks his work. So tools often allow only the second kind of error.
Examples
Take four users and five permissions:
| user | permissions |
|---|---|
Three roles suffice: , and , with , , and . A search over all role sets shows that there are five optimal role sets of size 3.
Two roles are not enough, for two separate reasons. First, the four users have four different nonempty permission sets, and with roles there are at most different nonempty unions of roles, which is 3 for . Second, the three cells , and are pairwise isolated: no role can contain two of them, because a role that gives to and to would also give to , which is 0 in , and the other two pairs fail at and . Each of the three cells needs its own role.
Known algorithms
- Remove duplicates (exact). Users with equal rows can share one role set, and permissions with equal columns can be merged into one. This never changes the minimum .
- Kernel and exact search (theorem). After duplicates are removed, a matrix with Boolean rank at most has at most different rows and at most different columns, since each row is a union of a subset of the roles and each column is the set of users of a subset of the roles. So if there are more than distinct rows, the answer is no. Otherwise the reduced matrix has size at most , and an exhaustive search over the roles, each a subset of the at most columns, decides the instance. The total time is polynomial in and plus a function of alone, so the decision problem is fixed-parameter tractable in . The function of is doubly exponential, so this is useful only for very small .
- Greedy cover by maximal bicliques (theorem for the ratio). Every role of an optimal solution can be grown to a maximal biclique of without breaking exactness, so there is an optimal solution made of maximal bicliques. Running greedy set cover with the edges as elements and the maximal bicliques as sets gives at most times the minimum number of roles, where is the number of 1s in . The weak point is that can have exponentially many maximal bicliques.
- Candidate roles from intersections (heuristic). Practical tools build candidate roles from the permission sets of the users and their pairwise intersections, which are polynomially many, and then pick roles from the candidates greedily. This keeps the result exact but gives no bound on its size.
- Integer programming and SAT (exact). The decision version for a given is a SAT instance with main variables, one for each cell of and . How large a matrix a solver handles in practice is a matter of measurement, not of a proven bound.
Bounds
Each item is a theorem.
- Upper bound. : one role per user (its row) or one role per permission (assigned to the users of its column) is always exact.
- Counting lower bound. If has distinct nonempty rows, then .
- Isolated set lower bound. A set of 1 cells such that for any two of them, and , one of and is 0, needs one role per cell. So is at least the size of the largest such set.
- Hardness. The decision version is NP-complete (Vaidya, Atluri and Guo 2007). It is in NP because a role set of size is a certificate of polynomial size that is checked by one Boolean matrix product.
Reductions
- Set basis. In the set basis problem (problem SP7 in the Garey and Johnson compendium), the input is a collection of subsets of a finite set and an integer , and the question is whether there are sets such that each member of is a union of some of them. Take to be the set of rows of : the basic role mining problem with bound is then exactly set basis with bound . Since set basis is NP-complete, so is role mining. Vaidya, Atluri and Guo use this reduction.
- Biclique cover. As in the definition, role mining is the minimum cover of the edges of a bipartite graph by bicliques. The covering form is close to edge clique cover, where the graph is general and the covering sets are cliques.
- Set cover. Once a family of candidate roles is fixed, choosing the fewest of them is an instance of set cover on the 1 cells of .
- Boolean matrix factorization. Role mining is exact factorization of a 0-1 matrix over the Boolean semiring with the smallest inner dimension. The MinNoise variant is the approximate factorization studied in data mining.
Applications
- Role engineering. Moving a large organization to role-based access control needs an initial set of roles. Bottom-up role mining finds them from the current permissions; top-down role engineering starts from job functions. Most projects use both.
- Access review. Users whose permissions are far from every mined role are candidates for review, since their access may be a leftover of earlier jobs.
- Separation of duty. Mined roles must still be checked against separation of duty constraints, which a pure minimization ignores.
References
- Jaideep Vaidya, Vijayalakshmi Atluri and Qi Guo, The role mining problem: finding a minimal descriptive set of roles, Proceedings of the 12th ACM Symposium on Access Control Models and Technologies (SACMAT), 2007, pages 175 to 184, the basic role mining problem, the delta-approx and MinNoise variants, and the proof of NP-completeness by the set basis problem
- Jaideep Vaidya, Vijayalakshmi Atluri and Qi Guo, The role mining problem: a formal perspective, ACM Transactions on Information and System Security 13(3), 2010, the journal version, with the variants and their relation to known problems
- Qi Guo, Jaideep Vaidya and Vijayalakshmi Atluri, The role hierarchy mining problem: discovery of optimal role hierarchies, Annual Computer Security Applications Conference (ACSAC), 2008, pages 237 to 246, the role hierarchy mining problem
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 37H975 Edit this page History Report an error Markdown