Back to search

University of Washington

Identifying and Mitigating Vulnerabilities in LLM-Integrated Applications

Abstract

dc:description.abstract

Large language models (LLMs) are increasingly deployed as the backend for various applications, including code completion tools and AI-powered search engines. Unlike traditional LLM usage where users directly query the model, LLM-integrated applications act as middleware, refining user inputs with domain-specific knowledge. This approach enhances the quality and relevance of LLM responses by providing more context and specialized information. While LLM-integrated applications offer numerous benefits, they also introduce new attack surfaces. Understanding, mitigating, and eliminating these emerging vulnerabilities is an active area of research. This work examines a setup where users interact with LLMs through an intermediary LLM-integrated application. We focus on the communication cycle from user queries to application responses, powered by backend LLMs. Within this query-response protocol, we identify potential high-risk vulnerabilities that may originate from malicious application developers or external threat actors capable of controlling database access and manipulating critical data. Successful exploitation of these vulnerabilities could result in users receiving responses tailored to the threat initiator's intent, such as biased product preferences. We evaluate these threats against LLM-integrated applications powered by OpenAI's GPT-3.5 and GPT-4. Our empirical results demonstrate that these threats can effectively bypass OpenAI's restrictions and moderation policies, leading to user responses containing bias, toxic content, privacy leakage, and disinformation risks. To mitigate these threats, we identify and define four key properties that a safe LLM-integrated application must satisfy: integrity, source identification, attack detectability, and utility preservation. Based on these properties, we develop a lightweight, threat-agnostic defense called Sheild that mitigates both insider and outsider threats. Our theoretical and empirical evaluations demonstrate the efficacy of this defense mechanism.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Jiang, Fengqing
Advisor dc:contributor.advisor
  • Poovendran, Radha

Subjects

dc:subject × 7

Rights

dc:rights
Statement dc:rights
  • CC BY-NC-ND
Language dc:language.iso
en_US

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1773/52779

Chain of custody

source
Harvested from
University of Washington
Base URL
digital.lib.washington.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Jiang, Fengqing. Identifying and Mitigating Vulnerabilities in LLM-Integrated Applications. 2025. https://hdl.handle.net/1773/52779