Skip to main content
QUICK REVIEW

[Paper Review] Policy by Example: An Approach for Security Policy Specification

Adwait Nadkarni, William Enck|arXiv (Cornell University)|Jul 13, 2017
Advanced Malware Detection TechniquesComputer Science41 references4 citations
TL;DR

This paper introduces Policy by Example (PyBE), a novel approach that enables users to specify user-specific security policies by providing representative examples of allowed or denied actions in given scenarios. Using a k-nearest neighbors classifier with a novel weighted distance metric and active learning for error correction, PyBE achieves 76% prediction accuracy in a feasibility study with experts, significantly outperforming naive methods.

ABSTRACT

Policy specification for personal user data is a hard problem, as it depends on many factors that cannot be predetermined by system developers. Simultaneously, systems are increasingly relying on users to make security decisions. In this paper, we propose the approach of Policy by Example (PyBE) for specifying user-specific security policies. PyBE brings the benefits of the successful approach of programming by example (PBE) for program synthesis to the policy specification domain. In PyBE, users provide policy examples that specify if actions should be allowed or denied in certain scenarios. PyBE then predicts policy decisions for new scenarios. A key aspect of PyBE is its use of active learning to enable users to correct potential errors in their policy specification. To evaluate PyBE's effectiveness, we perform a feasibility study with expert users. Our study demonstrates that PyBE correctly predicts policies with 76% accuracy across all users, a significant improvement over naive approaches. Finally, we investigate the causes of inaccurate predictions to motivate directions for future research in this promising new domain.

Motivation & Objective

  • To address the challenge of specifying user-specific security policies for abstract, subjective data such as notes, selfies, and whiteboard snapshots.
  • To reduce the burden on users by enabling policy specification through examples rather than full policy enumeration.
  • To improve policy prediction accuracy and usability by incorporating active learning for error detection and correction.
  • To explore the feasibility and limitations of using machine learning for policy specification in real-world user scenarios.

Proposed method

  • Users provide policy examples consisting of data-use scenarios (inputs) and corresponding policy decisions (outputs), such as 'allow' or 'deny' for specific data types.
  • The system uses a k-nearest neighbors (kNN) classifier with a novel Boolean-based distance metric to compute similarity between new scenarios and user-provided examples.
  • A weighted distance metric is introduced to reflect the relative importance of different policy attributes, enabling users to assign weights to tags or conditions.
  • Active learning is employed to detect inconsistencies in user-provided examples; the system prompts users to correct potentially erroneous decisions, improving policy quality.
  • The framework supports non-parametric learning, ensuring no assumptions are made about data distribution or fixed parameter sets.
  • The system evaluates predictions on randomly generated scenarios not seen during training, using manual and interactive reviews to validate accuracy.

Experimental results

Research questions

  • RQ1Can users effectively specify security policies for abstract, user-specific data using only a few examples?
  • RQ2How accurate is policy prediction using the PyBE approach compared to naive baselines?
  • RQ3To what extent does active learning improve the detection and correction of errors in user-provided policy examples?
  • RQ4What factors contribute to prediction inaccuracies in PyBE, and how can they be mitigated in future designs?

Key findings

  • PyBE achieved a prediction accuracy of 76% across all expert users in the feasibility study, significantly outperforming naive approaches.
  • The active learning component was found to be five times more effective than manual review in identifying and correcting errors in policy examples.
  • Incorrect predictions were primarily caused by ambiguous or inconsistent tagging, especially when users applied multiple, overlapping semantics to tags.
  • Users struggled with reasoning about randomly generated scenarios, particularly when tags had complex or conflicting interpretations (e.g., 'created at' vs. 'derived from').
  • The study revealed that tag semantics significantly impact usability, and that users benefit from clear, consistent labeling conventions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.