用图神经网络和机器学习自动检测SELinux策略异常,准确率达95%。
Machine Learning-Based Security Policy Analysis
- 将策略转为图结构,用Node2vec生成向量嵌入
- MLP模型在不同数据规模下均达95%准确率
- 适合安全研究人员快速分析复杂策略
安全增强型Linux(SELinux)是一种强制访问控制机制,但其策略语言复杂,难以分析与管理。本研究探索基于图分析与机器学习的自动化策略分析方法,以检测策略异常。通过Neo4j构建策略图结构,利用Node2vec将其转化为向量嵌入,再输入机器学习模型进行异常检测。实验表明,多层感知机(MLP)在不同数据规模下表现最优,准确率达95%,且精确率与召回率均衡;随机森林与支持向量机(SVM)表现良好但略逊一筹。该方法相比传统人工分析,提供了更高效、智能的复杂策略分析路径。
原文摘要 · Abstract (English)
Security-Enhanced Linux (SELinux) is a robust security mechanism that enforces mandatory access controls (MAC), but its policy language's complexity creates challenges for policy analysis and management. This research investigates the automation of SELinux policy analysis using graph-based techniques combined with machine learning approaches to detect policy anomalies. The study addresses two key questions: Can SELinux policy analysis be automated through graph analysis, and how do different anomaly detection models compare in analyzing SELinux policies? We will be comparing different machine learning models by evaluating their effectiveness in detecting policy violations and anomalies. Our approach utilizes Neo4j for graph representation of policies, with Node2vec transforming these graph structures into meaningful vector embeddings that can be processed by our machine learning models. In our results, the MLP Neural Network consistently demonstrated superior performance across different dataset sizes, achieving 95% accuracy with balanced precision and recall metrics, while both Random Forest and SVM models showed competitive but slightly lower performance in detecting policy violations. This combination of graph-based modeling and machine learning provides a more sophisticated and automated approach to understanding and analyzing complex SELinux policies compared to traditional manual analysis methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。