{"id":{"repo_id":"ksu","oai_identifier":"oai:krex.k-state.edu:2097/47450"},"canonical_url":"https://search.ndltd.org/etd/ksu/oai:krex.k-state.edu:2097/47450","repository":{"repo_id":"ksu","name":"Kansas State University","base_url":"https://krex.k-state.edu/server/oai/request"},"display":{"title":"Self-consistency checking for indirect prompt injection defense in email agents","abstract":"As the scale of agentic large language model (LLM) deployment increases, indirect prompt injection (IPI) persists as a major vulnerability when connecting agents to untrusted data sources. One solution to IPI is human review of agent actions, but this imposes a utility cost by reducing the autonomy of the agent. An ideal solution must balance agent autonomy and security. This thesis investigated to what extent inference-time compute scaling via self-consistency checking (SCC) reduces IPI vulnerability in a local, open-weight email agent and characterized the autonomy-security tradeoff for this defense mechanism. The research design consisted of a factorial experiment crossing self-consistency sample size, voting method, and attack plausibility level across 4,000 trial records for a ReAct agent with access to sandboxed email infrastructure. The study found that increasing inference-time compute via the SCC mechanism decreased IPI attack success rate (ASR) from 13.7% at sample size N = 1 to 0.7% at N = 7 with unanimous voting. The largest single reduction occurred between sample sizes N = 1 and N = 3, with further reductions from increasing N observed only under unanimous voting. The utility cost was also concentrated in unanimous voting, which reduced benign task completion rate (TCR) to 75% at N = 7. Majority and super-majority voting showed no measurable utility cost but left a 17.3% residual ASR on high-plausibility attacks. The relationship between plausibility and ASR was non-monotonic with medium-plausibility attacks succeeding less often than either low- or high-plausibility attacks. These findings are consistent with SCC operating by aggregation over independent per-sample decisions, where attack plausibility raises the per-sample rate at which the agent follows the injection. This suggests that the SCC mechanism has added security value and can be effective as a defense-in-depth layer, but practitioners should acknowledge the utility cost and consider this method in combination with other agent security mechanisms.","abstract_html":"As the scale of agentic large language model (LLM) deployment increases, indirect prompt injection (IPI) persists as a major vulnerability when connecting agents to untrusted data sources. One solution to IPI is human review of agent actions, but this imposes a utility cost by reducing the autonomy of the agent. An ideal solution must balance agent autonomy and security. This thesis investigated to what extent inference-time compute scaling via self-consistency checking (SCC) reduces IPI vulnerability in a local, open-weight email agent and characterized the autonomy-security tradeoff for this defense mechanism. The research design consisted of a factorial experiment crossing self-consistency sample size, voting method, and attack plausibility level across 4,000 trial records for a ReAct agent with access to sandboxed email infrastructure. The study found that increasing inference-time compute via the SCC mechanism decreased IPI attack success rate (ASR) from 13.7% at sample size N = 1 to 0.7% at N = 7 with unanimous voting. The largest single reduction occurred between sample sizes N = 1 and N = 3, with further reductions from increasing N observed only under unanimous voting. The utility cost was also concentrated in unanimous voting, which reduced benign task completion rate (TCR) to 75% at N = 7. Majority and super-majority voting showed no measurable utility cost but left a 17.3% residual ASR on high-plausibility attacks. The relationship between plausibility and ASR was non-monotonic with medium-plausibility attacks succeeding less often than either low- or high-plausibility attacks. These findings are consistent with SCC operating by aggregation over independent per-sample decisions, where attack plausibility raises the per-sample rate at which the agent follows the injection. This suggests that the SCC mechanism has added security value and can be effective as a defense-in-depth layer, but practitioners should acknowledge the utility cost and consider this method in combination with other agent security mechanisms.","abstract_has_math":false,"creators":["Merritt, Ryan"],"institution":null,"degree_name":null,"degree_level":"Masters","degree_discipline":null,"degree_department":"College of Technology and Aviation","school":null,"contributors":[],"advisors":["Michael J. Pritchard"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-26T03:09:19Z","subjects":["Indirect prompt injection","Self-consistency","Agents","Large language models","Security","Artificial intelligence"],"languages":["en_US"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/2097/47450","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/2097/47450","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aksu%3Aoai%3Akrex.k-state.edu%3A2097%2F47450","prefix":"oai_dc"},"source_record":{"url":"https://krex.k-state.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Akrex.k-state.edu%3A2097%2F47450","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.department","label":"Department","values":["College of Technology and Aviation"]},{"key":"dc:creator","label":"Author","values":["Merritt, Ryan"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-08-21T19:21:03Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-08-21T19:21:03Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_date","label":"Thesis Degree Date","values":["August"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Indirect prompt injection","Self-consistency","Agents","Large language models","Security","Artificial intelligence"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en_US"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2097/47450"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["As the scale of agentic large language model (LLM) deployment increases, indirect prompt injection (IPI) persists as a major vulnerability when connecting agents to untrusted data sources. One solution to IPI is human review of agent actions, but this imposes a utility cost by reducing the autonomy of the agent. An ideal solution must balance agent autonomy and security. This thesis investigated to what extent inference-time compute scaling via self-consistency checking (SCC) reduces IPI vulnerability in a local, open-weight email agent and characterized the autonomy-security tradeoff for this defense mechanism. The research design consisted of a factorial experiment crossing self-consistency sample size, voting method, and attack plausibility level across 4,000 trial records for a ReAct agent with access to sandboxed email infrastructure. The study found that increasing inference-time compute via the SCC mechanism decreased IPI attack success rate (ASR) from 13.7% at sample size N = 1 to 0.7% at N = 7 with unanimous voting. The largest single reduction occurred between sample sizes N = 1 and N = 3, with further reductions from increasing N observed only under unanimous voting. The utility cost was also concentrated in unanimous voting, which reduced benign task completion rate (TCR) to 75% at N = 7. Majority and super-majority voting showed no measurable utility cost but left a 17.3% residual ASR on high-plausibility attacks. The relationship between plausibility and ASR was non-monotonic with medium-plausibility attacks succeeding less often than either low- or high-plausibility attacks. These findings are consistent with SCC operating by aggregation over independent per-sample decisions, where attack plausibility raises the per-sample rate at which the agent follows the injection. This suggests that the SCC mechanism has added security value and can be effective as a defense-in-depth layer, but practitioners should acknowledge the utility cost and consider this method in combination with other agent security mechanisms."]},{"key":"dc:description.advisor","label":"Dc Description Advisor","values":["Michael J. Pritchard"]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Master of Science"]},{"key":"dc:title","label":"Title","values":["Self-consistency checking for indirect prompt injection defense in email agents"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.department":["College of Technology and Aviation"],"dc:creator":["Merritt, Ryan"],"dc:date.accessioned":["2026-08-21T19:21:03Z"],"dc:date.available":["2026-08-21T19:21:03Z"],"dc:date.issued":["2026"],"dc:description.abstract":["As the scale of agentic large language model (LLM) deployment increases, indirect prompt injection (IPI) persists as a major vulnerability when connecting agents to untrusted data sources. One solution to IPI is human review of agent actions, but this imposes a utility cost by reducing the autonomy of the agent. An ideal solution must balance agent autonomy and security. This thesis investigated to what extent inference-time compute scaling via self-consistency checking (SCC) reduces IPI vulnerability in a local, open-weight email agent and characterized the autonomy-security tradeoff for this defense mechanism. The research design consisted of a factorial experiment crossing self-consistency sample size, voting method, and attack plausibility level across 4,000 trial records for a ReAct agent with access to sandboxed email infrastructure. The study found that increasing inference-time compute via the SCC mechanism decreased IPI attack success rate (ASR) from 13.7% at sample size N = 1 to 0.7% at N = 7 with unanimous voting. The largest single reduction occurred between sample sizes N = 1 and N = 3, with further reductions from increasing N observed only under unanimous voting. The utility cost was also concentrated in unanimous voting, which reduced benign task completion rate (TCR) to 75% at N = 7. Majority and super-majority voting showed no measurable utility cost but left a 17.3% residual ASR on high-plausibility attacks. The relationship between plausibility and ASR was non-monotonic with medium-plausibility attacks succeeding less often than either low- or high-plausibility attacks. These findings are consistent with SCC operating by aggregation over independent per-sample decisions, where attack plausibility raises the per-sample rate at which the agent follows the injection. This suggests that the SCC mechanism has added security value and can be effective as a defense-in-depth layer, but practitioners should acknowledge the utility cost and consider this method in combination with other agent security mechanisms."],"dc:description.advisor":["Michael J. Pritchard"],"dc:description.degree":["Master of Science"],"dc:identifier.uri":["https://hdl.handle.net/2097/47450"],"dc:language.iso":["en_US"],"dc:subject":["Indirect prompt injection","Self-consistency","Agents","Large language models","Security","Artificial intelligence"],"dc:title":["Self-consistency checking for indirect prompt injection defense in email agents"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_date":["August"],"thesis:degree_level":["Masters"]},"updated_at":"2026-11-26T03:09:19Z"}