Annual Computer Security Applications Conference (ACSAC) 2023

Log2Policy: An Approach to Generate Fine-Grained Access Control Rules for Microservices from Scratch

Microservice application architecture is one of the most widely used service architectures in the industry. To prevent a compromised microservice from abusing other microservices, authorization policy is applied to regulate the access among them. However, configuring access control policies manually is challenging due to the complexity and dynamic nature of microservice applications. In this paper, we present πΏπ‘œπ‘”2π‘ƒπ‘œπ‘™π‘–π‘π‘¦, a novel approach to generate microservice authorization policies based on access logs. Our approach consists of three fundamental techniques: (1) a log-based topological graph generation mechanism that automatically infers the invocation logic among microservices, (2) a machine learning based attributes mining method that extracts the relevant attributes of requests, and (3) a policy upgrade mechanism based on traffic management that can significantly reduce the upgrade time. We have implemented a prototype of πΏπ‘œπ‘”2π‘ƒπ‘œπ‘™π‘–π‘π‘¦ on mainstream microservice infrastructures and evaluated it with several microservice applications. The results show that πΏπ‘œπ‘”2π‘ƒπ‘œπ‘™π‘–π‘π‘¦ can generate fine-grained and effective access control rules and upgrade them with negligible overhead.

Shaowen Xu
Institute of Information Engineering, Chinese Academy of Sciences. School of Cyber Security, University of Chinese Academy of Sciences.

Qihang Zhou
Institute of Information Engineering, Chinese Academy of Sciences

Heqing Huang
Institute of Information Engineering, Chinese Academy of Sciences

Xiaoqi Jia
Institute of Information Engineering, Chinese Academy of Sciences. School of Cyber Security, University of Chinese Academy of Sciences.

Haichao Du
Institute of Information Engineering, Chinese Academy of Sciences

Yang Chen
Institute of Information Engineering, Chinese Academy of Sciences. School of Cyber Security, University of Chinese Academy of Sciences.

Yamin Xie
Institute of Information Engineering, Chinese Academy of Sciences

Paper (ACM DL)

Slides