Automated reverse engineering of role-based access control policies of web applications

被引:2
作者
Ha Thanh Le [1 ]
Shar, Lwin Khin [2 ]
Bianculli, Domenico [3 ]
Briand, Lionel Claude [3 ,4 ]
Nguyen, Cu Duy [5 ]
机构
[1] Getcare Pharma Corp, Ho Chi Minh City, Vietnam
[2] Singapore Management Univ, Sch Comp & Informat Syst, Singapore, Singapore
[3] Univ Luxembourg, Interdisciplinary Ctr Secur Reliabil & Trust SnT, Luxembourg, Luxembourg
[4] Univ Ottawa, Ottawa, ON, Canada
[5] Cyberforce Dept POST Luxembourg, Luxembourg, Luxembourg
基金
新加坡国家研究基金会;
关键词
Access control testing; Reverse engineering; Access control policies; Machine learning; ALGORITHMS;
D O I
10.1016/j.jss.2021.111109
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Access control (AC) is an important security mechanism used in software systems to restrict access to sensitive resources. Therefore, it is essential to validate the correctness of AC implementations with respect to policy specifications or intended access rights. However, in practice, AC policy specifications are often missing or poorly documented; in some cases, AC policies are hard-coded in business logic implementations. This leads to difficulties in validating the correctness of policy implementations and detecting AC defects. In this paper, we present a semi-automated framework for reverse-engineering of AC policies from Web applications. Our goal is to learn and recover role-based access control (RBAC) policies from implementations, which are then used to validate implemented policies and detect AC issues. Our framework, built on top of a suite of security tools, automatically explores a given Web application, mines domain input specifications from access logs, and systematically generates and executes more access requests using combinatorial test generation. To learn policies, we apply machine learning on the obtained data to characterize relevant attributes that influence AC. Finally, the inferred policies are presented to the security engineer, for validation with respect to intended access rights and for detecting AC issues. Inconsistent and insufficient policies are highlighted as potential AC issues, being either vulnerabilities or implementation errors. We evaluated our approach on four Web applications (three open-source and a proprietary one built by our industry partner) in terms of the correctness of inferred policies. We also evaluated the usefulness of our approach by investigating whether it facilitates the detection of AC issues. The results show that 97.8% of the inferred policies are correct with respect to the actual AC implementation; the analysis of these policies led to the discovery of 64 AC issues that were reported to the developers. (C) 2021 Elsevier Inc. All rights reserved.
引用
收藏
页数:18
相关论文
共 64 条
  • [61] Automated Model-Based Testing of Role-Based Access Control Using Predicate/Transition Nets
    Xu, Dianxiang
    Kent, Michael
    Thomas, Lijo
    Mouelhi, Tejeddine
    Le Traon, Yves
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 2015, 64 (09) : 2490 - 2505
  • [62] Mining Attribute-Based Access Control Policies
    Xu, Zhongyuan
    Stoller, Scott D.
    [J]. IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING, 2015, 12 (05) : 533 - 545
  • [63] Xu ZY, 2014, LECT NOTES COMPUT SC, V8566, P276, DOI 10.1007/978-3-662-43936-4_18
  • [64] Yan J, 2006, P INT COMP SOFTW APP, P385