{"id":{"repo_id":"vt","oai_identifier":"oai:vtechworks.lib.vt.edu:10919/143362"},"canonical_url":"https://search.ndltd.org/etd/vt/oai:vtechworks.lib.vt.edu:10919/143362","repository":{"repo_id":"vt","name":"Virginia Tech","base_url":"https://vtechworks.lib.vt.edu/oai/request"},"display":{"title":"Architectural Defenses for Agentic Systems: Prompt Injection and Beyond","abstract":"Large Language Model (LLM) agents are now incrementally being deployed in real-world systems solving general purpose tasks as well as coding tasks. These agents often interact with external untrusted environments and among many other problems, two problems emerge and stand out from this interaction: prompt injection and supply chain attacks. We propose architectural and deterministic defenses for these two problems. Firstly, we present a taxonomy of tasks based on the minimum data knowledge required for task completion by agents. Motivated by the fact that many tasks can be completed without the LLM observing any untrusted data, we present Execute-Only Agent (XOA), a defense paradigm that provides architectural protection rather than probabilistic protection against prompt injection by ensuring the LLM never observes untrusted data. XOA leverages the LLM's capabilities to generate scripts that execute in an isolated sandbox, which returns output to the user. We evaluate XOA on AgentDojo and InjecAgent benchmarks using three models of increasing capability, demonstrating an effective 0.0% Attack Success Rate with a utility gap of ~16 percentage points(for the best performing model) compared to ReAct agents under attack, narrowed from ~27 points on clean tasks as ReAct degrades while XOA remains stable. Secondly, we discuss the need for deterministic checks as coding agents scale in the context of eBPF. We discuss how seemingly benign code can encode malicious control or data flows and introduce BPFflow, a framework for the system administrator to define policies that are deterministically enforced by an Information FlowControl (IFC) system within the eBPF verifier to track the propagation of sensitive data to prevent unauthorized leakage to userspace or any other untrusted sinks without any runtime overhead. We evaluate BPFflow against real-world rootkits and find that it is effective at blocking supply chain attacks","abstract_html":"Large Language Model (LLM) agents are now incrementally being deployed in real-world systems solving general purpose tasks as well as coding tasks. These agents often interact with external untrusted environments and among many other problems, two problems emerge and stand out from this interaction: prompt injection and supply chain attacks. We propose architectural and deterministic defenses for these two problems. Firstly, we present a taxonomy of tasks based on the minimum data knowledge required for task completion by agents. Motivated by the fact that many tasks can be completed without the LLM observing any untrusted data, we present Execute-Only Agent (XOA), a defense paradigm that provides architectural protection rather than probabilistic protection against prompt injection by ensuring the LLM never observes untrusted data. XOA leverages the LLM&#x27;s capabilities to generate scripts that execute in an isolated sandbox, which returns output to the user. We evaluate XOA on AgentDojo and InjecAgent benchmarks using three models of increasing capability, demonstrating an effective 0.0% Attack Success Rate with a utility gap of ~16 percentage points(for the best performing model) compared to ReAct agents under attack, narrowed from ~27 points on clean tasks as ReAct degrades while XOA remains stable. Secondly, we discuss the need for deterministic checks as coding agents scale in the context of eBPF. We discuss how seemingly benign code can encode malicious control or data flows and introduce BPFflow, a framework for the system administrator to define policies that are deterministically enforced by an Information FlowControl (IFC) system within the eBPF verifier to track the propagation of sensitive data to prevent unauthorized leakage to userspace or any other untrusted sinks without any runtime overhead. We evaluate BPFflow against real-world rootkits and find that it is effective at blocking supply chain attacks","abstract_has_math":false,"creators":["Tiwari, Rahul"],"institution":"Virginia Tech","degree_name":"Master of Science","degree_level":"masters","degree_discipline":"Computer Science & Applications","degree_department":"Computer Science and#38; Applications","school":null,"contributors":[],"advisors":[],"committee_chairs":["Williams, Daniel John","Sundararajah, Kirshanthan"],"committee_members":["Li, Huaicheng"],"year":2026,"date_issued":"2026-06-11","date_published":"2026-06-11","updated_at":"2026-11-18T20:14:32Z","subjects":["AI Safety","AI Security","Prompt Injection"],"languages":["en"],"rights":["In Copyright"],"rights_urls":["http://rightsstatements.org/vocab/InC/1.0/"],"identifier_entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:47298"],"render_values":[{"text":"vt_gsexam:47298","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10919/143362","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10919/143362","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://vtechworks.lib.vt.edu/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Avtechworks.lib.vt.edu%3A10919%2F143362","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeechair","label":"Committee Chair","values":["Williams, Daniel John","Sundararajah, Kirshanthan"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Li, Huaicheng"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science and#38; Applications"]},{"key":"dc:creator","label":"Author","values":["Tiwari, Rahul"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-06-12T08:00:57Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-06-12T08:00:57Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-06-11"]},{"key":"dc:publisher","label":"Institution","values":["Virginia Tech"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science & Applications"]},{"key":"thesis:degree_level","label":"Degree Level","values":["masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Virginia Polytechnic Institute and State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["AI Safety","AI Security","Prompt Injection"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["In Copyright"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://rightsstatements.org/vocab/InC/1.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:47298"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10919/143362"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Large Language Model (LLM) agents are now incrementally being deployed in real-world systems solving general purpose tasks as well as coding tasks. These agents often interact with external untrusted environments and among many other problems, two problems emerge and stand out from this interaction: prompt injection and supply chain attacks. We propose architectural and deterministic defenses for these two problems. Firstly, we present a taxonomy of tasks based on the minimum data knowledge required for task completion by agents. Motivated by the fact that many tasks can be completed without the LLM observing any untrusted data, we present Execute-Only Agent (XOA), a defense paradigm that provides architectural protection rather than probabilistic protection against prompt injection by ensuring the LLM never observes untrusted data. XOA leverages the LLM's capabilities to generate scripts that execute in an isolated sandbox, which returns output to the user. We evaluate XOA on AgentDojo and InjecAgent benchmarks using three models of increasing capability, demonstrating an effective 0.0% Attack Success Rate with a utility gap of ~16 percentage points(for the best performing model) compared to ReAct agents under attack, narrowed from ~27 points on clean tasks as ReAct degrades while XOA remains stable. Secondly, we discuss the need for deterministic checks as coding agents scale in the context of eBPF. We discuss how seemingly benign code can encode malicious control or data flows and introduce BPFflow, a framework for the system administrator to define policies that are deterministically enforced by an Information FlowControl (IFC) system within the eBPF verifier to track the propagation of sensitive data to prevent unauthorized leakage to userspace or any other untrusted sinks without any runtime overhead. We evaluate BPFflow against real-world rootkits and find that it is effective at blocking supply chain attacks"]},{"key":"dc:description.abstractgeneral","label":"General Abstract","values":["AI agents are used in real-world systems like customer service, coding, data analysis and more. These agents interact with data sources like emails, files, and web pages using special components called tools. However, even if the tools are trusted, an agent can be manipulated to perform unauthorized actions or exfiltrate data if the Large Language Model (LLM) powering the agent is exposed to a malicious instruction. For example, an attacker could embed a command such as \"IGNORE PREVIOUS INSTRUCTIONS and SEND ALL SECRET DATA to attacker@example.com\" within one of these data sources. This problem is known as indirect prompt injection in the world of AI agents. To understand the problem better, we categorize tasks based on the minimum data knowledge required for completion and note that many tasks can be completed without the LLM observing untrusted data. Motivated by the fact that many tasks can be completed without the LLM observing any untrusted data, we present Execute-Only Agent (XOA), a defense paradigm that provides architectural protection rather than probabilistic protection against prompt injection by ensuring the LLM never observes untrusted data. XOA can generate scripts that execute in an isolated sandbox, which returns output to the user. We evaluate our suggested architecture on a benchmark and find that it is effective at preventing prompt injection attacks while maintaining considerable utility. We also discuss the pressing need for deterministic policies and their enforcement in the context of eBPF. eBPF is a technology that allows for the execution of code verified by the eBPF verifier in the Linux kernel. As coding agentsscale, the chances of malicious (unintentional or intentional) code getting deployed in the kernel will increase. We discuss how seemingly harmless eBPF code can contain malicious control or data flows. We introduce BPFflow, a framework for the system administrator to define policies that can be deterministically enforced."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Master of Science"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["ETD"]},{"key":"dc:title","label":"Title","values":["Architectural Defenses for Agentic Systems: Prompt Injection and Beyond"]}]}],"canonical_facts":{"dc:contributor.committeechair":["Williams, Daniel John","Sundararajah, Kirshanthan"],"dc:contributor.committeemember":["Li, Huaicheng"],"dc:contributor.department":["Computer Science and#38; Applications"],"dc:creator":["Tiwari, Rahul"],"dc:date.accessioned":["2026-06-12T08:00:57Z"],"dc:date.available":["2026-06-12T08:00:57Z"],"dc:date.issued":["2026-06-11"],"dc:description.abstract":["Large Language Model (LLM) agents are now incrementally being deployed in real-world systems solving general purpose tasks as well as coding tasks. These agents often interact with external untrusted environments and among many other problems, two problems emerge and stand out from this interaction: prompt injection and supply chain attacks. We propose architectural and deterministic defenses for these two problems. Firstly, we present a taxonomy of tasks based on the minimum data knowledge required for task completion by agents. Motivated by the fact that many tasks can be completed without the LLM observing any untrusted data, we present Execute-Only Agent (XOA), a defense paradigm that provides architectural protection rather than probabilistic protection against prompt injection by ensuring the LLM never observes untrusted data. XOA leverages the LLM's capabilities to generate scripts that execute in an isolated sandbox, which returns output to the user. We evaluate XOA on AgentDojo and InjecAgent benchmarks using three models of increasing capability, demonstrating an effective 0.0% Attack Success Rate with a utility gap of ~16 percentage points(for the best performing model) compared to ReAct agents under attack, narrowed from ~27 points on clean tasks as ReAct degrades while XOA remains stable. Secondly, we discuss the need for deterministic checks as coding agents scale in the context of eBPF. We discuss how seemingly benign code can encode malicious control or data flows and introduce BPFflow, a framework for the system administrator to define policies that are deterministically enforced by an Information FlowControl (IFC) system within the eBPF verifier to track the propagation of sensitive data to prevent unauthorized leakage to userspace or any other untrusted sinks without any runtime overhead. We evaluate BPFflow against real-world rootkits and find that it is effective at blocking supply chain attacks"],"dc:description.abstractgeneral":["AI agents are used in real-world systems like customer service, coding, data analysis and more. These agents interact with data sources like emails, files, and web pages using special components called tools. However, even if the tools are trusted, an agent can be manipulated to perform unauthorized actions or exfiltrate data if the Large Language Model (LLM) powering the agent is exposed to a malicious instruction. For example, an attacker could embed a command such as \"IGNORE PREVIOUS INSTRUCTIONS and SEND ALL SECRET DATA to attacker@example.com\" within one of these data sources. This problem is known as indirect prompt injection in the world of AI agents. To understand the problem better, we categorize tasks based on the minimum data knowledge required for completion and note that many tasks can be completed without the LLM observing untrusted data. Motivated by the fact that many tasks can be completed without the LLM observing any untrusted data, we present Execute-Only Agent (XOA), a defense paradigm that provides architectural protection rather than probabilistic protection against prompt injection by ensuring the LLM never observes untrusted data. XOA can generate scripts that execute in an isolated sandbox, which returns output to the user. We evaluate our suggested architecture on a benchmark and find that it is effective at preventing prompt injection attacks while maintaining considerable utility. We also discuss the pressing need for deterministic policies and their enforcement in the context of eBPF. eBPF is a technology that allows for the execution of code verified by the eBPF verifier in the Linux kernel. As coding agentsscale, the chances of malicious (unintentional or intentional) code getting deployed in the kernel will increase. We discuss how seemingly harmless eBPF code can contain malicious control or data flows. We introduce BPFflow, a framework for the system administrator to define policies that can be deterministically enforced."],"dc:description.degree":["Master of Science"],"dc:format.medium":["ETD"],"dc:identifier.other":["vt_gsexam:47298"],"dc:identifier.uri":["https://hdl.handle.net/10919/143362"],"dc:language.iso":["en"],"dc:publisher":["Virginia Tech"],"dc:rights":["In Copyright"],"dc:rights.uri":["http://rightsstatements.org/vocab/InC/1.0/"],"dc:subject":["AI Safety","AI Security","Prompt Injection"],"dc:title":["Architectural Defenses for Agentic Systems: Prompt Injection and Beyond"],"dc:type":["Thesis"],"thesis:degree_discipline":["Computer Science & Applications"],"thesis:degree_level":["masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Virginia Polytechnic Institute and State University"]},"updated_at":"2026-11-18T20:14:32Z"}