[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-734502-105":59,"doc-detail-734502-en":130,"doc-similar-734502":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","iterinject-indirect-prompt-injection-against-llm-agents-via-feedback-guided-iterative-optimization","IterInject - Indirect Prompt Injection Against LLM Agents via Feedback-Guided Iterative Optimization","","IterInject addresses indirect prompt injection (IPI) threats against LLM agents that plan, use tools, and interact with external services. Retrieved adversarial instructions can hijack behavior, while prior static or weakly adaptive attacks lack structured feedback to improve payloads against agent-specific defenses. IterInject closes the loop via a rule-based diagnoser, an LLM optimizer conditioned on full optimization history, and a synthesis step that evolves disguise seeds from failure patterns. It outperforms baselines on AgentDojo and InjectAgent, and provides mechanistic analysis with causal interventions for concrete defense directions.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/iterinject-indirect-prompt-injection-against-llm-agents-via-feedback-guided-iterative-optimization/734502/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/iterinject-indirect-prompt-injection-against-llm-agents-via-feedback-guided-iterative-optimization/734502.png","ImageObject",300,407,{"name":92,"@type":93},"Blue Pony","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-11-23",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does IterInject target in LLM agents?","Question",{"text":112,"@type":113},"IterInject targets indirect prompt injection (IPI), where adversarial instructions embedded in retrieved external data hijack an agent’s behavior without direct interaction.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does IterInject iteratively improve injection payloads?",{"text":117,"@type":113},"IterInject uses an inner loop that injects payloads, collects four-level diagnostic labels with behavioral descriptions, and feeds both to an LLM-based optimizer conditioned on the accumulated optimization history.",{"name":119,"@type":110,"acceptedAnswer":120},"What do the mechanistic analyses reveal, and how are they validated?",{"text":121,"@type":113},"The analysis identifies an attention amplification zone and a threshold-like decision boundary in mid-to-late layers. Causal interventions—attention knockout, activation patching, and attention steering—validate the findings and suggest inference-time attention suppression over untrusted tokens as a defense direction.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},734502,1795399088,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":46,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":31,"preview_page_count":19,"preview_urls":143},962090760266,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","IterInject: Indirect Prompt Injection Against LLM Agents via Feedback-Guided Iterative Optimization  \nZixuan Chen1 Jiaxiang Chen1 Li Luo1 Ke Xu1 Xiaoxiang Huang2 Tanfeng Sun1 Xinghao Jiang1 *  \n1 Shanghai Jiao Tong University 2The University of Hong Kong  \n[13924560444@sjtu.edu.cn](13924560444@sjtu.edu.cn)  \nAbstract  \nLLM-based agents are increasingly deployed for complex tasks requiring planning, tool use, and interaction with external services. Their reliance on untrusted external content exposes them to indirect prompt injection (IPI), in which adversarial instructions embedded in retrieved data hijack agent behavior. Existing attacks rely on static payloads that cannot adapt to agent-specific defenses; even recent adaptive methods lack structured feedback to guide optimization. We introduce IterInject, a feedbackguided iterative framework that closes the loop between injection, diagnosis, and refinement: a rule-based diagnoser produces structured outcome labels with behavioral descriptions, and an LLM-based optimizer refines payloads conditioned on the full optimization history. A synthesis step generates new disguise seeds from failure patterns, enabling the strategy space to self-evolve. On AgentDojo and InjectAgent, IterInject substantially outperforms static baselines and existing adaptive methods across four victim models. Extension experiments on Claude Code, a production-grade coding agent with layered defenses, show that optimized payloads achieve full success on 5 of  \n9 targets; even those that resist full exploitation exhibit measurable improvement from iterative refinement. We further present a mechanistic analysis of IPI, identifying an attentionmediated threshold mechanism in mid-to-late layers; three causal interventions validate this finding and point to concrete defense directions.  \n1 Introduction  \nLLM-based agents are increasingly deployed for complex tasks requiring planning, tool use, and interaction with external services (Schick et al., 2023 ; Yao et al., 2023 ; Wang et al., 2024) . As these agents gain autonomy and access to sensitive resources, indirect prompt injection (IPI) emerges as  \n* Corresponding author.  \na critical threat: adversarial instructions embedded in external data sources—emails, documents, webpages—can hijack agent behavior without direct interaction with the victim (Figure 1) (Greshake et al., 2023 ; Cohen et al., 2025) .  \nDespite growing attention, key gaps remain in IPI attack methodology. Most existing attacks rely on fixed, handcrafted payloads that cannot adapt to agent-specific defenses (Debenedetti et al., 2024 ; Zhan et al., 2024) . Recent automated frameworks introduce iterative refinement but depend on generic heuristic mutations (Wang et al., 2025), sparse or binary feedback signals (Liu et al., 2025), or attack-vector-specific designs (Wanget al., 2026), with mutation spaces confined to surface-level rewrites of existing seeds.  \nWe address these gaps with IterInject, an iterative optimization framework for IPI. IterInject maintains a seed bank of disguise templates derived from large-scale public red-teaming submissions (Dziemian et al., 2026), curated and extended per evaluation setting. For each attack target, an inner loop repeatedly injects a payload into the victim agent’s external context, collects a four-level diagnostic label (SUCCESS, PARTIAL, DETECTED, IGNORED) together with a behavioral description, and feeds both into an LLM-based optimizer that refines the payload conditioned on the accumulated optimization history. A cross-target scoring mechanism prioritizes effective seeds on subsequent targets; a synthesis step further generates new seeds from failure patterns, enabling the seed bank to self-evolve beyond the initial strategy space.  \nExperimentally, IterInject substantially outperforms static baselines and existing adaptive methods on two benchmarks across four victim models. On AgentDojo (510 attack instances, four task suites), IterInject ach","cbCaiiBLlK524Dms","https://ap.wps.com/l/cbCaiiBLlK524Dms","pdf",4483693,"English","# Abstract\n# 1 Introduction\n## Threat model and background on IPI\n## Key gaps in existing attack methodology\n## IterInject framework and optimization loop\n## Experimental results and extensions\n## Mechanistic analysis and causal interventions","[{\"question\":\"What problem does IterInject target in LLM agents?\",\"answer\":\"IterInject targets indirect prompt injection (IPI), where adversarial instructions embedded in retrieved external data hijack an agent’s behavior without direct interaction.\"},{\"question\":\"How does IterInject iteratively improve injection payloads?\",\"answer\":\"IterInject uses an inner loop that injects payloads, collects four-level diagnostic labels with behavioral descriptions, and feeds both to an LLM-based optimizer conditioned on the accumulated optimization history.\"},{\"question\":\"What do the mechanistic analyses reveal, and how are they validated?\",\"answer\":\"The analysis identifies an attention amplification zone and a threshold-like decision boundary in mid-to-late layers. Causal interventions—attention knockout, activation patching, and attention steering—validate the findings and suggest inference-time attention suppression over untrusted tokens as a defense direction.\"}]","IterInject - Indirect Prompt Injection Against LLM Agents via Feedback-Guided Iterative Optimization | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/a7da08cf12fff386b64f9b629497559f.webp",983,1390,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/ca3eb65920bdb6bf38e375b2b3e12355.webp",982,1388,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/a99f1eaf94d0a5fe4336c200f3e453a7.webp",981,1387,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-23/f288c596bf8c92d376a0427bafcdecb8.webp",980,1385,{"list":161,"token":66},[162,168,175,182,188,195,202,209,216,223],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":81,"category_name":40,"create_tm":167},673178,"Modular Discovery of General Game-Playing Algorithms with Large Language Models - arXiv 2609.33115","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990398684/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=V2xrG6w3HpU4MvmMH9VyJJwLOlY%3D","modular-discovery-of-general-game-playing-algorithms-with-large-language-models-arxiv-260933115",1793623523,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":40,"create_tm":174},273837,"ForeDreamer - A Self-Evolving Dual-Agent Memory Architecture for Future Event Prediction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899968265/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=AUOl%2BGun1%2FqkMHyDwZ4zabX4vZw%3D","foredreamer-a-self-evolving-dual-agent-memory-architecture-for-future-event-prediction",12,1789472940,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":180,"category_name":40,"create_tm":181},84849,"FirstResearch: Auditable Question Formation for LLM Scientific Discovery Agents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809073914/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=E%2BDwqL2tlYVBzQJgHGOiaB4E2UY%3D","firstresearch-auditable-question-formation-for-llm-scientific-discovery-agents",21,1784198792,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":39,"category_name":40,"create_tm":187},419137,"Smart Imitator: Learning from Imperfect Clinical Decisions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922298709/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=aRvuoGageTZXuiql6eD5FskmjTo%3D","smart-imitator-learning-from-imperfect-clinical-decisions",1790615770,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":193,"category_name":40,"create_tm":194},82178,"Neuro-Agentic Control: A Deep Learning-based LLM-Powered Agentic AI Framework for Controlling Security Controls","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808674207/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=5srdTWQuU9hEiBD9evHp7SwMVOA%3D","neuro-agentic-control-a-deep-learning-based-llm-powered-agentic-ai-framework-for-controlling-security-controls",28,1784178613,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":200,"category_name":40,"create_tm":201},273455,"HYPERSKILL - Self-Evolving LLM Agents via Hypergraph-Structured Skill Memory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899938238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=%2FVtkzV4w6qk8%2Ff8Xo7sbF3fZs7c%3D","hyperskill-self-evolving-llm-agents-via-hypergraph-structured-skill-memory",18,1789471499,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":40,"create_tm":208},82965,"Narrative World Model: Narratology-Grounded Writer Memory for Long-Form Fiction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808924140/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=SDeUGNccKQensBF0BCCR01wzk7M%3D","narrative-world-model-narratology-grounded-writer-memory-for-long-form-fiction",31,1784184361,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":214,"category_name":40,"create_tm":215},327881,"Detecting Hallucinations in Retrieval-Augmented Generation through Grounding-Aware Sensitivity by Perturbation (GASP)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909352434/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=o6rZrbEinrlZm%2BA6laidUVkOBho%3D","detecting-hallucinations-in-retrieval-augmented-generation-through-grounding-aware-sensitivity-by-perturbation-gasp",16,1789978256,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":221,"category_name":40,"create_tm":222},84923,"DynaKRAG: A Unified Framework for Learnable Evidence Control in Multi-Hop Retrieval-Augmented Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809078561/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=%2BrPNHEznyN7VSc0dUhihGgMK0g8%3D","dynakrag-a-unified-framework-for-learnable-evidence-control-in-multi-hop-retrieval-augmented-generation",27,1784199364,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":40,"create_tm":229},85584,"A Fraud-Detection-Inspired Framework for LLM Agents Security","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809329700/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110259&Signature=wi3NQsrP02KZoQoKrjA2GV150iA%3D","a-fraud-detection-inspired-framework-for-llm-agents-security",34,1784204752]