Hiding in Plain Sight: Decoupling Pretext from Actuation for Skill Poisoning in LLM Agents

Wenxin Wu, Lingyong Yan, Lei Sha, Shuaiqiang Wang, Jiashu ZhaoarXiv 2026

TL;DR

This paper introduces CoordPoison, a novel attack framework that manipulates LLM agents by decoupling the malicious action (actuation) from its justification (pretext). By splitting these across two different "Skills," the attack hides in plain sight, appearing as a legitimate, task-driven operation that bypasses traditional isolated security audits and persists across multiple user sessions.

What Problem Does This Paper Address?

LLM agents are increasingly built using modular "Skills"—reusable bundles of code and instructions that allow them to use tools, browse the web, or manage files. However, this modularity creates a massive supply-chain vulnerability. If an attacker can poison a Skill's instruction file (SKILL.md), they can steer the agent’s behavior.

Existing attacks usually colocate the malicious code and the trigger within a single skill, making them relatively easy to detect during a security audit. Other attacks try to fragment the malicious code across multiple skills, but this is complex to coordinate. The authors identify a fundamental gap: previous work ignores the rationale behind an agent's decision. If an agent believes a harmful action is a necessary step for a benign task, it will execute it without hesitation.

Methods

The authors formalize the attack using two Risk-Realization Factors (RRFs):

  1. Actuation Factor $A(P)$: The actual harmful operation (the "what").
  2. Pretext Factor $Z$: The situational rationale that convinces the agent the operation is necessary (the "why").

Their framework, CoordPoison, automates the creation of these attacks through a multi-stage pipeline:

  • Dependency Qualification: It first identifies "coordination substrates"—natural ways skills interact in benign workflows (e.g., one skill writes a report, another converts it to PDF).
  • Decoupling Construction: It uses a planner LLM to split the attack. A Grounding Skill subtly modifies the environment (e.g., adding a "preflight requirement" to a text file), while a Steering Skill contains the intact malicious payload, which it only fires if it sees that specific environmental trigger.
  • Failure-Guided Refinement: The framework runs the attack in a sandbox. If it fails, an LLM analyst diagnoses the "broken link" in the coordination chain and iteratively repairs the instructions.
Overview of the CoordPoison framework, showing the qualification, construction, and validation stages.

Datasets

The researchers evaluated CoordPoison using:

  • Substrate Dataset: 62 qualified skill pairs extracted from public GitHub repositories (like anthropics-skills and microsoft-deep-wiki) and runtime packages.
  • Payloads: 7 fixed, task-independent malicious payloads adapted from established benchmarks (e.g., SkillJect and Skill-Inject), covering behaviors like information disclosure, privilege escalation, and backdoors.
  • Victim Models: Evaluation was performed across several state-of-the-art models, including DeepSeek-V4-Flash, GLM-5.3-Flash, Claude-Sonnet-4.6, MiniMax-M3, and GPT-5.5.

Key Insights and Ideas

  • Hiding in Plain Sight: By preserving the malicious code as an intact operation but providing a fabricated pretext, the attack looks like a standard "if-then" logic common in complex workflows. As shown in Figure 2, the injected instructions look like routine utility operations.
  • The "Fait Accompli" Effect: The most striking finding is that attacks are more successful when they span across different user sessions (cross-lifecycle). In a single session, the LLM might detect the weirdness of creating a pretext and then immediately acting on it. In a cross-lifecycle scenario, the agent sees the pretext as a "pre-existing environmental truth" and doesn't question its origin.
  • The Failure of Isolated Audits: Because the Grounding Skill and Steering Skill appear benign when viewed individually, standard security scanners that check one skill at a time are fundamentally incapable of detecting this threat.
An illustrative case study showing how instructions are injected into two different skills to create a coordinated flow.

Key Results

  • High Efficacy: CoordPoison achieved an Attack Success Rate (ASR) of 76.19% on DeepSeek-V4-Flash and 51.23% on GLM-5.3-Flash in scenarios where traditional single-skill attacks failed completely.
  • Stealthiness: The framework maintained a 100% Task Completion Rate (TCR), meaning the agent successfully completed the user's original benign request while simultaneously executing the attack.
  • Robust Transferability: Attacks optimized for one model transferred effectively to others. For example, variants synthesized on GLM-5.3-Flash achieved over 95% ASR when tested on GPT-5.5 and MiniMax-M3.
  • Refinement Works: As seen in Figure 3, the iterative refinement process is crucial, with success rates climbing steadily over 12 iterations as the LLM learns to better align the pretext and actuation.
Figure 3: Cumulative attack success rate across failure-guided refinement iterations. Curves report the proportion of qualified substrate instances (where Steering-only baseline fails) successfully resolved by Co- ordPoison over successive repair steps.

Limitations and Future Work

The authors acknowledge that CoordPoison relies on the existence of natural dependencies between skills; if an agent uses skills in total isolation, the attack is harder to ground. Additionally, the iterative refinement loop is computationally expensive, requiring multiple LLM calls and sandboxed executions.

Future work suggests moving toward composition-aware defenses. Rather than auditing skills in isolation, security systems must monitor the entire execution trace and state-transfer graph of an agent to identify suspicious coordination patterns that "decouple" intent from action.

Summary updated

BibTeX
@misc{wu2026hiding,
  author = {Wenxin Wu and Lingyong Yan and Lei Sha and Shuaiqiang Wang and Jiashu Zhao},
  title = {{Hiding in Plain Sight: Decoupling Pretext from Actuation for Skill Poisoning in LLM Agents}},
  year = {2026},
  eprint = {2609.39352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39352},
}
Figure