混合LLM工作流可帮助识别任意规模程序中的用户权限相关变量
A hybrid LLM workflow can help identify user privilege related variables in programs of any size
AI总结:
针对程序中用户权限相关(UPR)变量识别耗时、逻辑漏洞难发现的问题,提出一种语句级应用LLM的混合工作流,为变量输出UPR分数,在13.49%误报率下发现的UPR变量远多于启发式方法。
摘要:
许多程序包含操作用户权限的逻辑与操作,这对组织的安全至关重要。因此,攻击者的常见恶意目标之一是获取或提升权限,从而造成权限泄露。为保护程序和组织免受权限泄露攻击,必须消除可被利用来实施此类攻击的漏洞。遗憾的是,虽然内存漏洞的发现难度相对较低,但逻辑漏洞更为普遍、危害更大且更难识别。因此,许多分析人员选择先找出用户权限相关(UPR)变量作为切入点,调查这些UPR变量可能被使用的代码区域,以检查是否存在漏洞,尤其是逻辑漏洞。本文提出了一种可辅助分析人员识别此类UPR变量的大语言模型(LLM)工作流,该识别工作被认为极为耗时。具体而言,我们的工具会审计程序中的所有变量,并为每个变量输出一个UPR分数,即该变量与用户权限的关联(紧密)程度。所提方法避免了直接提示LLM查找UPR变量带来的弊端,其核心是将LLM的应用聚焦于语句层面,而非向LLM输入极长的代码片段。那些UPR分数较高的变量本质上就是潜在的UPR变量,需要进行人工核查。我们的实验表明,采用典型的UPR分数阈值(即UPR分数>0.8)时,误报率(FPR)仅为13.49%,同时发现的UPR变量数量显著多于基于启发式的方法。
英文摘要:
Many programs involves operations and logic manipulating user privileges, which is essential for the security of an organization. Therefore, one common malicious goal of attackers is to obtain or escalate the privileges, causing privilege leakage. To protect the program and the organization against privilege leakage attacks, it is important to eliminate the vulnerabilities which can be exploited to achieve such attacks. Unfortunately, while memory vulnerabilities are less challenging to find, logic vulnerabilities are much more imminent, harmful and difficult to identify. Accordingly, many analysts choose to find user privilege related (UPR) variables first as start points to investigate the code where the UPR variables may be used to see if there exists any vulnerabilities, especially the logic ones. In this paper, we introduce a large language model (LLM) workflow that can assist analysts in identifying such UPR variables, which is considered to be a very time-consuming task. Specifically, our tool will audit all the variables in a program and output a UPR score, which is the degree of relationship (closeness) between the variable and user privileges, for each variable. The proposed approach avoids the drawbacks introduced by directly prompting a LLM to find UPR variables by focusing on leverage the LLM at statement level instead of supplying LLM with very long code snippets. Those variables with high UPR scores are essentially potential UPR variables, which should be manually investigated. Our experiments show that using a typical UPR score threshold (i.e., UPR score >0.8), the false positive rate (FPR) is only 13.49%, while UPR variable found is significantly more than that of the heuristic based method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。