用智能代理分析多语言微服务,精准发现权限提升漏洞
Detecting Privilege Escalation in Polyglot Microservices via Agentic Program Analysis

- 构建智能代理动态规划分析路径,融合大模型与传统程序分析
- 在25个开源项目中发现24个零日漏洞,准确率81.0%,召回率85.0%
- 适用于多语言微服务,可扩展至其他安全漏洞检测
现代云系统广泛采用微服务架构以提升可扩展性和容错性,但其复杂的权限控制机制易引发权限提升漏洞,攻击者可借此获取未授权资源访问。由于跨服务交互复杂、代码库多语言共存及权限检查多样,现有方法难以有效检测此类漏洞。本文提出Neo,一种结合大语言模型(LLMs)与经典程序分析的智能代理分析框架。Neo通过大模型代理动态生成分析计划、自适应调整代码搜索策略并验证语义正确性,并设计了支持跨服务、跨语言的可扩展代码搜索原语。我们在涵盖7种编程语言、620万行代码的25个开源微服务应用上评估Neo,共发现24个零日权限提升漏洞,在真实漏洞数据集上实现81.0%的精度和85.0%的召回率。相比现有分析与智能代理方案,Neo在检测准确率和可扩展性上均有显著提升。此外,我们还验证了其在其他应用领域和漏洞类型中的适用性,额外发现了18个零日漏洞。
原文摘要 · Abstract (English)
Microservices are widely adopted in modern cloud systems due to their scalability and fault tolerance. However, microservice architectures introduce significant complexity in privilege and permission control, creating risks of privilege escalation where attackers can gain unauthorized access to resources or operations. Detecting such vulnerabilities is challenging due to complex cross-service interactions, polyglot codebases, and diverse privileged operations and permission checks. We present Neo, an agentic program analysis framework that combines large language models (LLMs) with classic program analysis to address these challenges. Neo leverages an LLM-based agent that dynamically generates analysis plans, adapts code search strategies, and validates semantics. We develop code search primitives that enable Neo to perform scalable and flexible code exploration across services and languages. We evaluated Neo on 25 open-source microservice applications spanning 7 programming languages and 6.2 million lines of code. Neo uncovered 24 zero-day privilege escalation vulnerabilities and achieved 81.0% precision and 85.0% recall on a ground-truth dataset. Compared to existing program analysis and agentic solutions, Neo demonstrated significant improvements in both detection accuracy and scalability. We further showcased Neo's extensibility by applying it to other application domains and vulnerability types, uncovering 18 additional zero-day vulnerabilities.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。