Mining Domain-Based Policies

Si Zhang, Philip W. L. Fong

TL;DR

This paper tackles the challenge of automatically generating ("mining") domain-based access control policies from incomplete system logs. By framing the problem through graph theory and solving it with optimized MaxSAT encodings, the authors provide a path toward securing complex IoT environments where devices act as both users and resources.

What Problem Does This Paper Address?

In traditional access control, we usually have a clear divide: subjects (users) and objects (files or printers). However, the Internet of Things (IoT) breaks this mold. A smart sensor might request data from a hub (acting as a subject) but also serve data to a dashboard (acting as an object). This "symmetry of roles" makes manual policy authoring a nightmare.

Domain-based policies simplify this by grouping entities with identical behavior into "protection domains." The challenge is Policy Mining: how do we look at a messy, incomplete history of network logs and automatically figure out the smallest, most efficient set of domains? The authors identify that while this is easy if your logs are perfect, it becomes an NP-complete "graph sandwich problem" when logs are incomplete—which they always are in the real world.

Methods

The authors approach the problem in two stages: theoretical foundation and practical optimization.

  1. Graph Theory Foundation: They represent access control matrices as edge-labeled directed graphs (digraphs). They define a "strong homomorphism" to map a complex network of devices to a succinct "summary" digraph. For complete logs, they provide Algorithm 1 (Summarize), which finds the optimal policy in polynomial time.
  2. MaxSAT Encodings: To handle incomplete logs (the NP-complete part), they translate the problem into Maximum Satisfiability (MaxSAT). Instead of a basic translation, they introduce several sophisticated optimization techniques:
  3. Non-Functional Optimization (NF): Allowing entities to temporarily map to multiple classes to simplify the solver's search.
  4. Symmetry Breaking (MD & LI): This is the "secret sauce." Since the solver doesn't care if you call a group "Domain A" or "Domain B," it often wastes time checking every possible permutation of names. The authors devised constraints to force the solver to pick a single, canonical ordering, drastically pruning the search space.

Datasets

Because no standard benchmark exists for this specific problem, the authors created a new benchmark suite:

  • 300 DBPM Instances: Generated synthetically with varying numbers of entities ($n$ up to 1,000) and original domains ($m^*$ up to 10).
  • Simulated Incompleteness: They took complete access matrices and randomly turned 10% of the entries into "don't care" symbols to simulate missing log data.
  • Comparison: They evaluated six different encoding combinations to see which optimizations actually moved the needle.

Key Insights and Ideas

  • The "Don't Care" Paradox: In theory, missing data gives an algorithm more "freedom to maneuver" because it can interpret a missing entry as either a grant or a deny. In practice, this freedom is exactly what makes the problem computationally "hard" (NP-complete).
  • Symmetry is Natural for IoT: The authors argue that domain-based policies are inherently better for IoT than Role-Based Access Control (RBAC) because they naturally handle the dual subject/object nature of devices without needing complex role hierarchies.
  • Symmetry Breaking > Constraints: A major "aha moment" in their evaluation was that optimizing the "at most one" constraint provided negligible gains, whereas Symmetry Breaking (preventing the solver from re-checking identical permutations) was the primary driver of performance.

Key Results

  • Proof of Hardness: The authors formally proved that both Domain-Based Policy Mining (DBPM) and Domain and Type Enforcement (DTEPM) are NP-complete by reducing them from the classic Graph 3-Colorability problem.
  • Solver Performance: The baseline MaxSAT encoding was sluggish, solving only 170 of the 300 instances within a 5-minute timeout.
  • The Winning Combo: The most advanced encoding (BE+NF+MD+LI) solved 297 out of 300 instances. It wasn't just more successful; it was often faster, demonstrating that clever encoding is more important than raw hardware for these types of logic problems.

Limitations and Future Work

  • The "Occam's Razor" Assumption: The paper assumes the "best" policy is always the one with the fewest domains. The authors acknowledge that in the future, they might need to optimize for other goals, such as "resilience"—creating policies that don't break when new, previously unknown device behaviors are discovered.
  • Scalability: While 1,000 entities is a solid start, massive industrial IoT deployments might involve tens of thousands of devices, which may require approximation algorithms rather than exact MaxSAT solvers.
  • Alternative Solvers: The authors suggest investigating other constrained optimization techniques (like Constraint Programming) to see if they can outperform MaxSAT for specific network topologies.

Summary updated

BibTeX
@inproceedings{zhang2024mining,
  author = {Si Zhang and Philip W. L. Fong},
  title = {{Mining Domain-Based Policies}},
  booktitle = {CODASPY},
  year = {2024},
  doi = {10.1145/3626232.3653265},
}
Figure