arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.23781cs.CR
收藏

利用大语言模型评估网络应用的可信度

Leveraging Large Language Models for Trustworthiness Assessment of Web Applications

University of Coimbra(科英布拉大学)

Oleksandr Yarotskyi, José D'Abruzzo Pereira, João R. Campos

AI总结:

本文提出利用大语言模型自动评估网络应用的可信度,通过比较不同提示工程技术,提出基于逻辑偏好分数的分层质量模型,实验表明规则提示能提高评估可靠性。

摘要:

网络应用的广泛应用使其安全问题变得至关重要,需要系统的方法来评估其可信度。然而,现有技术主要聚焦于已知漏洞或依赖人工评估,限制了可扩展性。本文提出一种经验方法,利用大语言模型(LLMs)验证对安全编码实践的遵守情况。我们比较了五种最先进的LLM在提示工程技术上的表现,从基线零样本分类到包含语义定义、调用图结构上下文和显式指导的提示。此外,我们提出基于逻辑偏好分数(LSP)的分层质量模型扩展,利用LLM输出填充模型的质量属性并计算整体可信度分数。实验结果表明,过多的结构上下文会引入噪声,而基于规则的提示指导能提高评估可靠性。所得可信度分数能够区分安全和易受攻击的实现,支持使用LLM进行可扩展和上下文感知的可信度评估。

英文摘要:

The widespread adoption of web applications has made their security a critical concern and has increased the need for systematic ways to assess whether they can be considered trustworthy. However, "trust" assessment remains an open problem as existing techniques primarily focus on detecting known vulnerabilities or depend on manual evaluation, which limits their scalability; therefore, evaluating adherence to secure coding practices offers a complementary, pragmatic perspective by focusing on observable development behaviors. In practice, the identification and verification of secure coding practices are predominantly performed manually, relying on expert knowledge and code reviews, which is time-consuming, subjective, and difficult to scale. This study presents an empirical methodology to automate the trustworthiness assessment of web applications by leveraging Large Language Models (LLMs) to verify adherence to secure coding practices. We conduct a comparative analysis of prompt engineering techniques across five state-of-the-art LLMs, ranging from baseline zero-shot classification to prompts enriched with semantic definitions, structural context derived from call graphs, and explicit instructional guidance. Furthermore, we propose an extension of a hierarchical Quality Model (QM) based on the Logic Score of Preference (LSP), in which LLM outputs are used to populate the model's quality attributes and compute a holistic trustworthiness score. Experimental results indicate that excessive structural context can introduce noise, whereas rule-based instructional prompting improves assessment reliability. The resulting trustworthiness score allows discriminating between secure and vulnerable implementations, supporting the feasibility of using LLMs for scalable and context-aware trust assessment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑