An Automatic Attribute-Based Access Control Policy Extraction From Access Logs

Leila Karimi, Maryam Aldairi, James Joshi, Mai Abdelhakim

TL;DR

This paper introduces an unsupervised learning approach to automatically extract Attribute-Based Access Control (ABAC) policies from system access logs. Their method can handle complex policies with both positive and negative rules, and includes novel techniques for refining and pruning the extracted policies to improve quality and maintainability.

What Problem Does This Paper Address?

Modern applications, especially in areas like IoT, cloud computing, and healthcare, require increasingly sophisticated access control mechanisms. Traditional models like DAC, MAC, and RBAC are often too rigid to express the fine-grained authorization needs of these dynamic systems. Attribute-Based Access Control (ABAC) offers a more flexible solution by granting access based on attributes of users, objects, and the environment. However, manually creating and managing ABAC policies for large, distributed organizations is a monumental and error-prone task. This paper tackles the challenge of automating this process by learning ABAC policies directly from existing access logs.

Methods

The core of the proposed solution is an unsupervised learning approach, specifically using the K-modes algorithm for clustering categorical data. The process involves several key steps:

  • Data Pre-processing: Numerical attributes are discretized into categorical values, and missing values are handled by replacing them with an "UNK" (unknown) token.
  • Parameter Tuning: This crucial step involves determining the optimal number of clusters (k) and cluster initialization methods to balance policy accuracy and complexity. They employ techniques like the Elbow Method and cross-validation.
  • Clustering: Access log entries are grouped into clusters, where each cluster is intended to represent a single ABAC policy rule.
  • Rule Extraction: For each cluster, attribute filters (both positive and negative) and relation conditions are extracted. This involves identifying attribute-value pairs and attribute equalities that occur with significantly higher or lower frequency within a cluster compared to the overall dataset.
  • Policy Enhancement: Two novel algorithms are introduced to improve the quality of the extracted policies:
  • Rule Pruning: Identifies and removes redundant or very similar rules to reduce policy complexity without sacrificing accuracy.
  • Policy Refinement: Addresses issues arising from false positives (FPs) and false negatives (FNs) by analyzing these misclassified access requests. It either adds missing filters to overly permissive rules or removes extraneous filters from overly restrictive rules.

Datasets

The authors evaluated their approach using a combination of synthesized and real-world datasets:

  • Synthesized Datasets:
    • Manually written ABAC policies adapted from existing literature, covering scenarios like "University," "Healthcare," and "Project Management." These were used to generate access logs with both positive and negative attribute filters and relations.
  • Completely randomly generated ABAC policies to test the algorithm's performance on diverse structural characteristics.
  • Real Datasets:
    • Amazon Kaggle competition dataset (access requests to resources).
  • Amazon UCI dataset (user-permission assignments).
  • Specialized Datasets:
    • Partial Datasets: Created by randomly selecting a small percentage (e.g., 0.1% or 10%) of tuples from complete datasets to simulate sparse logs.
  • Noisy Datasets: Generated by randomly reversing the decisions (permit/deny) of a percentage of authorization tuples to simulate errors in logs.

Key Insights and Ideas

  • Unsupervised Learning for ABAC: The paper demonstrates that unsupervised learning, specifically clustering, can be effectively applied to learn complex ABAC policies from raw access logs, bypassing the need for manual policy creation.
  • Handling Negations: A significant contribution is the ability to extract policies that include both positive and negative attribute filters and relation conditions. This is crucial for expressing exceptions and creating more concise policies.
  • Policy Refinement is Key: The inclusion of rule pruning and policy refinement algorithms is vital. Simply extracting rules from logs often results in suboptimal policies; these enhancement steps are critical for achieving high-quality, practical ABAC policies.
  • Balancing Complexity and Accuracy: The authors emphasize the trade-off between policy complexity (WSC) and accuracy (F-score) and propose a policy quality metric (Qπ) to balance these factors.
  • Robustness to Sparse and Noisy Data: The proposed approach shows promising results even when dealing with incomplete (sparse) or erroneous (noisy) access logs, which are common in real-world scenarios.

Key Results

  • The proposed approach achieved high F-scores (a measure of accuracy and precision) across various datasets, often exceeding 0.8, and in some cases reaching over 0.98.
  • The mined policies demonstrated significantly lower Weighted Structural Complexity (WSC) compared to the original policies, indicating a more concise and manageable output. For instance, WSC values were often in the tens or low hundreds, while original policies had WSC in the thousands or tens of thousands.
  • The algorithm performed well on sparse datasets, with F-scores remaining high even when using only 0.1% of the original access logs.
  • The policy quality metric (Qπ) consistently showed high values for the mined policies, indicating a good balance between accuracy and complexity.
  • The approach outperformed previous state-of-the-art methods in terms of policy quality on several datasets, particularly when dealing with policies that included negative filters.

Limitations and Future Work

  • Parameter Tuning Sensitivity: The authors acknowledge that the performance of the algorithm is dependent on tuning multiple parameters, and there's a risk of getting stuck in local optima. They suggest using more randomization in cluster initialization and exploring a wider range of parameters.
  • Difficulty in Determining Optimal k: While they propose methods for finding the number of clusters (k), determining the truly optimal k remains a challenge in unsupervised learning.
  • Sampling Quality: The random selection used to create sparse and noisy datasets makes guaranteeing the quality of the sampling difficult.
  • Future Work: The authors plan to extend their method to support numerical data, extract negative authorization rules more comprehensively, and investigate various conflict resolution strategies. They also aim to further study the impact of different parameters on policy quality.

Summary updated

BibTeX
@article{karimi2022automatic,
  author = {Leila Karimi and Maryam Aldairi and James Joshi and Mai Abdelhakim},
  title = {{An Automatic Attribute-Based Access Control Policy Extraction From Access Logs}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2022},
  doi = {10.1109/tdsc.2021.3054331},
}
Figure