Back to search

Virginia Tech

Architectural Defenses for Agentic Systems: Prompt Injection and Beyond

Abstract

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

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
Computer Science & Applications
Department dc:contributor.department
Computer Science and#38; Applications
Grantor dc:publisher
Virginia Tech
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Tiwari, Rahul
Chairs dc:contributor.committeechair
  • Williams, Daniel John
  • Sundararajah, Kirshanthan
Committee member dc:contributor.committeemember
  • Li, Huaicheng

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • In Copyright
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Other
vt_gsexam:47298

Chain of custody

source
Harvested from
Virginia Tech
Base URL
vtechworks.lib.vt.edu/oai/request
Last updated
2026-11-18
Source record
OAI-PMH GetRecord
citation

Tiwari, Rahul. Architectural Defenses for Agentic Systems: Prompt Injection and Beyond. masters thesis, Virginia Tech, 2026. https://hdl.handle.net/10919/143362