Introduction
In traditional access control models, a clear distinction exists between subjects (users) and objects (resources). However, the rise of the Internet of Things (IoT) has blurred these lines. In modern smart environments, a single device—such as a smart hub—often acts as both a subject (requesting data from sensors) and an object (serving data to a mobile application). This "symmetry of roles" complicates manual policy authoring, making it prone to errors and security gaps.
Domain-based policies address this complexity by grouping entities with identical access behaviors into "protection domains." The core challenge lies in Policy Mining: the automated generation of a succinct, efficient set of domains from incomplete system logs. While this task is computationally straightforward with perfect data, real-world logs are almost always incomplete. This paper frames the mining of such policies as an NP-complete "graph sandwich problem" and proposes an optimized MaxSAT-based solution.
Theoretical Framework
The authors represent access control matrices as edge-labeled directed graphs (digraphs). To simplify these complex networks, they define a "strong homomorphism" that maps a large network of devices to a condensed "summary" digraph.
For scenarios with complete logs, the authors provide Algorithm 1 (Summarize), which identifies the optimal policy in polynomial time. However, when logs contain "don't care" entries—representing missing information—the problem becomes significantly harder. The authors formally prove that Domain-Based Policy Mining (DBPM) and Domain and Type Enforcement Policy Mining (DTEPM) are NP-complete by reducing them from the classic Graph 3-Colorability problem.
MaxSAT Encodings and Optimization
To tackle the NP-complete nature of mining from incomplete logs, the authors translate the problem into a Maximum Satisfiability (MaxSAT) framework. The goal is to find an assignment that satisfies all "hard" constraints (representing the rules of the policy model) while maximizing the satisfaction of "soft" constraints (representing the goal of minimizing the number of domains).
As shown in the encoding above, the variables $x_{i,a,j}$ represent the instantiation of "don't care" entries, $y_{i,p}$ track entity-to-class assignments, and $z_{p,a,q}$ defines the permissions between classes. The hard clauses (1) through (7) ensure that the resulting policy is a valid strong homomorphism, while the soft clause (8) drives the solver toward the most parsimonious solution by minimizing the number of occupied classes.
To improve solver efficiency, the authors introduced several optimization techniques:
- Non-Functional Optimization (NF): This allows entities to temporarily map to multiple classes during the search process, simplifying the solver's path to a solution.
- Symmetry Breaking (MD & LI): This is a critical performance driver. Because domain labels (e.g., "Domain 1" vs "Domain 2") are arbitrary, solvers often waste time exploring identical permutations. The authors implemented constraints to enforce a canonical ordering, drastically pruning the search space.
Experimental Evaluation
The authors evaluated their approach using a new benchmark suite of 300 DBPM instances. These instances featured up to 1,000 entities and 10 original domains, with 10% of the access matrix entries replaced by "don't care" symbols to simulate real-world data gaps.
The results highlighted the impact of clever encoding over raw computational power. A baseline MaxSAT encoding struggled, solving only 170 of the 300 instances within a five-minute window. In contrast, the most advanced encoding—combining basic encoding with non-functional optimization and symmetry breaking (BE+NF+MD+LI)—successfully solved 297 out of 300 instances.
Key Insights
A primary takeaway is the "Don't Care Paradox": while missing data theoretically provides more flexibility in policy design, it is precisely this flexibility that increases the search space and makes the problem computationally difficult. Furthermore, the evaluation revealed that Symmetry Breaking was the most significant factor in performance gains, far outweighing simple constraint optimizations.
Conclusion and Future Work
This research demonstrates that domain-based policies are uniquely suited for the symmetric roles found in IoT environments. By leveraging optimized MaxSAT encodings, it is possible to automate the discovery of efficient security policies even from messy, incomplete data.
Future work will focus on scaling these methods to industrial-sized deployments with tens of thousands of devices, potentially through approximation algorithms. Additionally, the authors aim to explore "resilient" policies that remain robust when new, previously unobserved device behaviors emerge, moving beyond simple minimality as the sole metric of policy quality.
Summary updated