CORSA: Skill injection attacks targeting skill routers transfer across routers and LLMsSurviving the Router
CORSA optimizes retrieval and execution of skill injection by task cluster; with GPT-5.4 as both attacker and victim, the in-domain ASR is 22.0% (Table 1).
Skills can be published to markets that allow public downloads; router scores can be queried, and the victim LLM, whose identity is known during optimization, can be queried offline. No weights, cannot modify other skills, system prompts, scaffold, or task t. Experimental success means ranking 1st among 2000+1 candidates and the helper script being executed.
- In the skill marketplace, a malicious skill must first compete with benign skills for retrieval by the router. The authors say existing evaluations often assume it has already been selected for execution, thus overestimating effective ASR.
- CORSA uses two-stage GEPA to rewrite skill names, descriptions, and body text on related task clusters: first aiming for rank one, then requiring retrieval success and execution of a fixed helper script.
- With GPT-5.4 as both attacker and victim and averaged over eight payload types, CORSA's Hit@1/ASR is 32.3%/22.0%, and SKILLJECT's is 11.0%/10.0% (Table 1). It remains higher than SKILLJECT after transferring to other victims and OpenHands, but the ASR on Qwen3.8-27B is 6.2%.
- The paper does not specifically discuss limitations. The experiments specify five victim LLMs, five routers, Codex and OpenHands, and two scanners' detection of a single payload. The paper does not report GEPA iterations or query counts, or repetition counts, and the main results do not specify the router.
- Evaluated models
- GPT-5.4DeepSeek-V4-Pro (DS-V4-Pro)Qwen3.8-27BGLM-5.3GLM-5.3-Flashtext-embedding-3-large (OAI-Emb-3L)Qwen3-Embedding-8BQwen3-Reranker-8BSkillRouter-Embedding-0.6BSkillRouter-Reranker-0.6BR3-Embedding-0.6BR3-Reranker-0.6B
- Benchmarks
- SkillRouter(75 prompts,扩展为安全场景)SKILL-INJECT的八类harm taxonomy
- Metrics
- Hit@1ASRUser utilityNaturalismRecallFPR
The paper notes that existing evaluations of prompt injection in third-party skills for agents often assume malicious skills have already been selected for execution, which significantly overestimates attack success rates; in real multi-skill environments, injected skills must first compete in retrieval, reducing the effective attack success rate of existing injections by 87-97%. The authors propose CORSA (Cluster Optimization for Router-Aware Skill Attacks), a router-aware attack method that simultaneously optimizes skill retrieval and execution for clusters of related tasks. The study extends SkillRouter's benchmark with eight categories of malicious payloads, using staged optimization to first improve retrieval and then optimize end-to-end attack success rate, and separately evaluates user utility and injection naturalness. Experiments show CORSA improves retrieval and end-to-end attack success rates while maintaining user utility, and the attacks transfer to different router architectures and LLM backbones.
Related events and news
3 events · 3 news mentions
- The reports cite this paper
CORSA 研究揭示 Agent Skill 检索排名攻击面
- This event's paper
研究:路由选择影响提示注入成功率评估
News that mentions this paper
CORSA 研究揭示 Agent Skill 检索排名攻击面
- 公众号 模安局cites the paper's id or link当攻击者开始争夺 Skill 排名:CORSA 揭示 Agent 安全的新攻击面
Adversa AI 发布 11 月 Agent 技能安全资源汇编
- Adversa AIcites the paper's id or linkAgent 技能安全资源精选(2026 年 11 月)
it first has to win retrieval, which cuts the effective attack success of existing injections by 87-97%.
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:决策性模型护栏也能被攻击者绕过
Surviving the Router: Optimizing Skill Injections for Retrieval and Execution(https://arxiv.org/abs/2610.08098)
Paper analysis
What problem does this paper attempt to solve?
Under real multi-skill routing, injection must first be retrieved; existing evaluations overestimate ASR.
In a realistic multi-skill environment, an injected skill must first be retrieved by the router; evaluations that assume it has already been executed overestimate ASR.
- Scenario: An agent extends its capabilities with third-party skills built around SKILL.md, and a router ranks them by relevance. The authors believe skills are consumed as task instructions, so prompt injection in them is worth attention.
- Existing evaluations: The authors believe existing work often assumes the poisoned skill will always be executed, yielding overly optimistic ASR and ignoring the router. The abstract reports that competitive retrieval reduces the effective ASR of existing injections by 87–97%.
- Hypothesis: The authors hypothesize that naive prompt injection lowers retrieval rank, so the poisoned skill is not selected and the attack is not attempted.
- Method: The authors propose CORSA, which jointly optimizes retrieval and execution on relevant task clusters, and extends SkillRouter into a safety evaluation with eight malicious payload categories.
- Threat model:
- Goal: The skill still completes its original benign function; after being retrieved, it executes a fixed payload; and it keeps the user's task as solvable as possible.
- Knowledge: The attacker can publish skills to a marketplace that permits public download, can query the router's scores, and knows the victim LLM used for optimization and can query it offline. They do not have the weights of either.
- Cannot control: They cannot change other skills in the catalog, the system prompt, the scaffold, or the user task t.
- Success criteria: Formal success requires entering the top-k and payload execution. In the experiments, Hit@1 and ASR require ranking 1st among 2,000+1 candidates and the helper script being executed.
What related research exists?
Related work covers prompt injection, skill attacks, retrieval manipulation, and defenses; the baseline is SKILLJECT.
The paper divides related work into prompt injection, automated skill attacks, retrieval manipulation, and defenses; the baseline is SKILLJECT reproduced in the same multi-skill setting.
Prompt Injection and Agent Skills
- Prompt injection: Perez & Ribeiro (2022) and Greshake et al. (2023) discuss models following untrusted instructions in input. The paper does not compare numbers with them against CORSA.
- Agent benchmarks: INJECAGENT (Zhan et al., 2024), AGENTDOJO (Debenedetti et al., 2024), and WASP (Evtimov et al., 2025) evaluate injection on tool or web agents.
- Skill surface: Schmotz et al. (2025) point out that normal skills can contain harmful instructions; Schmotz et al. (2026)'s SKILLINJECT evaluates skill prompt injection across skills, tasks, and agent systems.
Automated Skill Attacks
- Rewriting skills: SKILLJECT (Jia et al., 2026) puts the payload in an auxiliary helper script, modifies SKILL.md, and refines with execution feedback.
- Other entry points: SKILLATTACK (Duan et al., 2026) does not modify the skill but searches for user prompts that trigger unsafe behavior in benign skills; Qu et al. (2026) hide malicious behavior in examples and templates; SKILLTROJAN (Feng et al., 2026) and BADSKILL (Tie et al., 2026) study malicious skill combinations and models poisoned within skills, respectively.
- The paper's criticism: The authors say this group mostly focuses on payload execution after the skill is already available to the agent, and does not consider whether the router will select the poisoned skill first.
Retrieval, Routing, and Defenses
- Tool and skill routing: TOOLHIJACKER (Shi et al., 2025) optimizes malicious tool documentation to affect retrieval and selection; TOOLTWEAK (Sneh et al., 2025) modifies tool names and descriptions. Saha et al. (2026) manipulate skill routing by changing SKILL.md, and He et al. (2026) use deceptive skill descriptions. SKILLROUTER (Zheng et al., 2026) shows that selecting a skill from many similar candidates is hard and that full skill content is an important retrieval signal.
- Defenses: Pre-installation checks include Hou & Yang (2026), Holzbauer et al. (2026), and Bhardwaj (2026); SKILLGUARD (Pan et al., 2026) restricts actions with skill-level permissions; Fujinuma et al. (2026) discuss how injection phrasing affects success rate. The authors say CORSA is complementary to these defenses.
- Baselines and benchmarks: The baseline is SKILLJECT, using the same eight payload categories and multi-skill evaluation as CORSA. Tasks come from SkillRouter and are extended to security scenarios.
The authors position CORSA as jointly optimizing retrieval and execution, rather than assuming the injected skill has already been selected.
How does the paper address this problem?
CORSA uses two-stage GEPA, optimizing retrieval and end-to-end execution sequentially on task clusters.
CORSA optimizes only one injected skill per related task cluster: two-stage GEPA rewrites the name, description, and body text; the payload is fixed; utility and naturalism are evaluated separately and do not enter the main reward.
Skill, Injection, and Victim Flow
- Skill: S = (n, d, s, A), i.e., name, short description, SKILL.md instruction body, and optional artifacts such as scripts.
- Injection constraints: S' must still perform the original benign function; the injection instruction appears in the body text; the payload is published with the skill. Editable are n', d', s'; p is fixed.
- Victim flow: agent π solves task t; router scores catalog D and returns top-k. D contains at least one benign skill related to t. The paper does not give the value of k.
- Attacker interface: uses router scores as feedback and queries the victim LLM offline during optimization. Cannot modify other skills, system prompts, scaffold, or t.
Cluster-Level Objective
- Why clusters: the authors believe optimizing per individual task is unrealistic and prone to overfitting to wording; optimizing over all tasks would make the skill irrelevant to most tasks or make the attack too obvious. Tasks within a cluster share domain vocabulary; the paper says typically 3–13 tasks per cluster.
- Two signals: retrieval checks whether it ranks 1st; execution checks whether the helper script appears in the action sequence, verified by trajectory or file system state. The authors state retrieval requires content relevant to the task, and execution requires instructions to call the helper script.
- Staged rewards: Stage A only accumulates retrieval success; Stage B gives credit only when both retrieval and execution succeed. Defined as Hit(t,S)=1[rankR(t,S,D)=1], rB(t,S)=Hit(t,S)· Exec(t,S). The former indicates whether it ranks first; the latter is 1 only when both ends succeed.
Two-Stage GEPA
- Optimizer: GEPA (Agrawal et al., 2026) maintains a pool of candidates that perform well on different tasks, with a reflection LLM rewriting skill text based on scores and text feedback, without backpropagating gradients to the router or victim.
- Process: Stage A tries to make the skill rank first on more tasks in the cluster; Stage B continues optimizing the end-to-end reward from Stage A winners, with the payload still fixed. Figure 2 draws utility judgment outside this optimization loop.
- Optimization catalog: candidates are ranked together with a fixed set of 2,000 benign skills (including the ground-truth skill) and the injected skill. The victim model, system prompt, user task, and payload remain fixed.
- Models given in the paper: in the main experiment, both attacker and victim are GPT-5.4. Additionally, DS-V4-Pro is optimized from scratch, with victim and judge still GPT-5.4. The paper does not report iteration count, population size, or query budget.
Separately Computed Metrics
- Hit@1: proportion of tasks where the injected skill ranks first among 2,000+1 candidates.
- ASR: counts only when it ranks first and the payload executes; retrieval alone does not count. First computed per cluster, then weighted average over eight clusters by number of tasks.
- Utility and naturalism: utility is the proportion of original tasks still completed under the injected skill. Stealthiness in 4.3 and Naturalism in Figure 3 are both scores from GPT-5.4 on how well the injected content blends in; higher means less conspicuous.
What experiments did the paper conduct?
GPT-5.4 in-domain CORSA ASR is 22.0%, and SKILLJECT's is 10.0% (Table 1).
Experimental Setup
- Models and scaffolding: In the main experiment, the attacker, victim, and utility judge are all GPT-5.4, and the execution scaffold is Codex. Additional transfer victims are DS-V4-Pro, Qwen3.8-27B, GLM-5.3, GLM-5.3-Flash; the scaffold also tests OpenHands.
- Tasks: 75 prompts from SkillRouter, with a skill pool of about 80K; 24 single-skill and 51 multi-skill. GPT-5.4 is divided into eight clusters: coding-and-devops, data-science-and-analytics, document-and-office, engineering-and-simulation, general-tooling-and-web, media-and-signals, scientific-research, security-and-privacy. The ranking target is a fixed set of 2,000 benign skills plus the injected skill.
- Payloads and baselines: One indirect payload is made for each of the eight categories from SKILL-INJECT: Data Exfiltration, Data Destruction, DoS, Malware/Ransomware, Phishing, Backdoors, Manipulation, Poisoning. The baseline is SKILLJECT reproduced under the same settings. The column names in Table 6/7 contain Bias, and the paper does not state how it corresponds to Manipulation.
- Routers: BM25, OAI-Emb-3L without reranking, and Qwen3-8B, SR-0.6B, R3-0.6B with embedding plus reranking. Figure 3 and Table 1 do not state which one is used for the main results.
- Metrics and unreported items: Hit@1, ASR, user utility; naturalism is scored by GPT-5.4. The paper does not report the number of repetitions, nor inter-annotator and human agreement. The included tables do not give separate numbers for single-skill / multi-skill.
Main Results
Swipe horizontally to read the table
Condition Method Hit@1 ASR Utility GPT-5.4, 8 payload average (Table 1) SKILLJECT 11.0% 10.0% 38.3% Same CORSA 32.3% 22.0% 38.8% Table 7, attacker DS-V4-Pro, task-weighted SKILLJECT 11.5% 9.2% not reported Same CORSA 30.3% 17.5% not reported - Authors' interpretation: The authors say retrieval worsens after injecting any payload: benign skills have a Hit@1 of 100%, and SKILLJECT drops to about 11% (Section 5.1). The authors say CORSA's Hit@1 more than doubles SKILLJECT's, ASR improves by a similar margin, utility is comparable to SKILLJECT's, and naturalism is higher. Figure 3 also labels 0.67, 0.10, 0.17, which the text cannot map to the three skills.
- Cluster differences: On Table 6's task-weighted averages, all eight payload columns for GPT-5.4 show CORSA with higher Hit@1 and ASR. Cluster averages are not uniform: CORSA's Hit@1 ranges from 17.3% for data-sci to 91.7% for document, and ASR from 11.6% to 62.5%.
- Exceptions: In Table 6, data-sci Poison, SKILLJECT's Hit@1 is 11.0% and CORSA's is 7.7%; in that cluster, Phish and Poison ASR are 6.5% and 9.8%, and CORSA's are both 0.0%. In Table 7, media DoS Hit@1 is 0.0% for CORSA and 13.6% for SKILLJECT, and document Destr ASR is 0.0% versus 10.9%. The paper does not explain these cells. Table 7's ASR of 17.5% also differs from Table 2's 17.6% for the DS-V4-Pro attacker and GPT-5.4 victim, and the paper does not explain this.
Task Variants and Hard Retrieval
- Setup: Frozen skills are placed back among 2,000 benign skills, and the pipeline is the same as the main evaluation. Paraphrase rewrites the phrasing while keeping the goal and environment; Synthetic is new tasks in the same cluster. The paper says GPT-5.4 was used to construct 72 new tasks, 9 per cluster. The Hard tier adds 780 distractor skills that are topic-related but functionally different.
- Numbers: Table 1's Paraphrase ASR is 1.0% for SKILLJECT and 11.5% for CORSA; Synthetic is 0.2% and 5.4%. CORSA's utility drops from in-domain 38.8% to 15.8% and 11.8%. In Table 8's distractor setting, CORSA has Hit@1 33.3%, ASR 19.9%, utility 33.0%, and SKILLJECT has 16.0%, 15.0%, 32.0%.
- Authors' interpretation: The authors consider Synthetic to differ more from the original task, with a larger ASR drop, and say SKILLJECT is no longer effective on either variant while CORSA retains the above ASR. The authors say CORSA's Hit@1 and ASR remain higher than SKILLJECT's in the Hard tier. The paper does not explain why SKILLJECT's Hit@1 and ASR in that tier are higher than its numbers on the original skill set.
Cross-Model, Scaffold, and Router
- Victim models: With the router fixed, Hit@1 does not vary with the victim. In Table 2, CORSA with the GPT-5.4 attacker has Hit@1 32.3%; ASR on GPT-5.4, DS-V4-Pro, GLM-5.3, GLM-5.3-Flash, Qwen3.8-27B is 22.5%, 19.4%, 13.4%, 17.1%, 6.2%. CORSA with the DS-V4-Pro attacker has Hit@1 30.3%, with corresponding ASR of 17.6%, 17.3%, 13.3%, 15.7%, 6.7%. The authors say that except for Qwen3.8-27B, CORSA's ASR is above 10%, and all are higher than SKILLJECT's. Table 2's 22.5% differs from Table 1's 22.0%, and the paper does not explain this.
- Scaffold: Skills optimized on Codex are evaluated on OpenHands without re-optimization on 75 tasks and eight payload categories (Table 3). CORSA has Hit@1 32.0%, ASR 16.2%, utility 34.6%; SKILLJECT has 11.1%, 2.5%, 33.3%. The authors say CORSA transfers better than SKILLJECT.
- Routers: Each source router uses only one fixed indirect payload, and skills are no longer optimized (Table 4). The matching router has the highest Hit@1 in that row, but ASR does not necessarily follow: after optimizing on SR-0.6B, SR-0.6B's ASR is 23.3% and BM25's is 26.4%. Optimizing on BM25 gives matching Hit@1/ASR of 51.8%/31.4%. The three sources' Hit@1 on Qwen3-8B are 9.8%, 14.8%, 13.1%, each the lowest in its row. The authors say switching routers does not necessarily block the attack, and utility does not move in step with ASR.
Pre-Retrieval Scanners
- Setup: The static versions of Cisco Skill Scanner and NVIDIA SkillSpector, plus Qwen3.8-27B and GPT-5.4 enhancements. A single indirect payload; CORSA has 8 packages on each of SR, BM25, OAI, SKILLJECT has 8 packages, and benign packages are likewise 2,000. Cisco flags at HIGH or CRITICAL, SkillSpector flags when the default risk score exceeds 50; the rules were not tuned on this data, and invalid outputs are treated as not flagged.
- Numbers: Both static scanners have 0/8 recall on attack packages (Table 5). SkillSpector+Qwen3.8-27B gives 6/8, 7/8, 6/8 on the three CORSA groups and 7/8 on SKILLJECT, with FPR 4.20%. Cisco+Qwen3.8-27B gives 6/8, 7/8, 5/8, and 6/8, with FPR 2.40%, and the paper notes 5 invalid outputs. Cisco+GPT-5.4 gives 0/8, 1/8, 1/8.
- Authors' interpretation: The authors say detection depends on the scanner–model combination, Qwen3.8-27B outperforms GPT-5.4 on both scanners, and detection of the two attacks is broadly similar. The authors say screening reduces but does not eliminate the threat: even without optimization against the scanner, the strongest configuration still misses 5 of the 24 CORSA packages.
Other Ablations and Analyses
- Granularity and staging (Figure 4, GPT-5.4): The authors say Task-Wise has lower Hit@1 and ASR than CORSA, Joint's ASR in particular is lower, and utilities are close. The figure also has 15.9, 19.3, 1.8, 6.2, 31.6, 35.0, which the text cannot map to variants.
- Stealthiness in reward (Figure 5, eight payload categories averaged, GPT-5.4): The authors say Hit@1 rises, ASR falls, and utility drops slightly. The figure labels 38.8, 32.3, 22.0, 10.9, 34.0, 38.8, and the text does not show the correspondence between bars and legend.
- Table 6 weighted Hit@1: CORSA ranges from Poison's 26.7% to Exfil/Ransom's 36.0%; SKILLJECT ranges from Exfil's 3.1% to Bias's 17.4%.
- Table 6 weighted ASR: CORSA ranges from Backdoor/Poison's 16.0% to Destr's 29.3%; SKILLJECT ranges from Exfil's 3.1% to Bias's 16.0%.
What are some points that can be further explored?
The paper does not explicitly write out limitations or plans for follow-up experiments.
Limitations and future directions noted by the authors
The paper does not specifically discuss limitations. The Conclusion, Ethics, and appendices do not frame any design as a weakness, nor do they list planned future experiments.
Experimental coverage
- Tasks and payloads: The evaluation uses SkillRouter's 75 prompts and a fixed set of 2,000 benign skills plus the injected skill from an approximately 80K skill library; eight semantic clusters, eight types of indirect helper-script payloads. Additionally, Paraphrase and Synthetic are used, with the paper stating 72 new tasks, 9 per cluster; the Hard setting adds 780 distractor skills (Section 4, 5.2, Appendix B).
- Models and systems: Victims include GPT-5.4, DS-V4-Pro, GLM-5.3, GLM-5.3-Flash, Qwen3.8-27B. Scaffolds are Codex and OpenHands. Routers are BM25, OAI-Emb-3L, Qwen3-8B, SR-0.6B, R3-0.6B (Section 4.4, 5.3).
- Defenses: Cisco Skill Scanner and NVIDIA SkillSpector with static and Qwen3.8-27B, GPT-5.4 backends; a single indirect payload, 24 CORSA packages, 8 SKILLJECT packages, 2,000 benign packages (Section 6, Appendix D).
- Cross-router protocol: In Table 4, source routers are SR-0.6B, BM25, OAI-Emb-3L, each using a fixed payload.
- Not reported in the paper: Number of GEPA iterations, number of queries, and number of experimental repetitions; agreement of utility and naturalism reviews with humans; the specific k in Rk; the router names used for the main results in Figure 3 and Table 1.
Summarize the main content of the paper
CORSA optimizes routing and retrieval first, then payload execution; the main setting has higher ASR than SKILLJECT.
CORSA targets injection in skill marketplaces: a malicious skill must first pass the router before it can potentially execute the payload.
- Problem: The authors argue that existing evaluations assume poisoned skills always execute. The abstract reports that when retrieval must be competed for, the effective ASR of existing injections drops by 87–97%.
- Approach: One skill is optimized per eight related task clusters. GEPA first maximizes ranking first, then maximizes "ranked first and helper script executed". The name, description, and body are rewritten; the payload is fixed; utility and naturalism are evaluated separately.
- Main numbers: With GPT-5.4 as both attacker and victim, averaged over eight payload types, CORSA's Hit@1/ASR/utility are 32.3%/22.0%/38.8%, while SKILLJECT's are 11.0%/10.0%/38.3% (Table 1). This main result does not specify the router. On individual cluster×payload combinations, CORSA can be 0 while SKILLJECT is higher (Table 6, Table 7).
- Transfer: CORSA from a GPT-5.4 attacker has an ASR of 6.2% on Qwen3.8-27B (Table 2); switching to OpenHands gives 16.2% (Table 3). On Paraphrase and Synthetic, it is 11.5% and 5.4% (Table 1). In Table 4, ASR after switching routers can be higher than with the matched router.
- Scanning and conclusions: Two static scanners have 0/8 recall on the tested attack packages. The authors claim LLM enhancement improves detection, but the strongest configuration still misses 5 of the 24 CORSA packages. The authors conclude that skill routing must be included in the threat model when evaluating skill injection.