A new study examines how multi-step skill chains can steer LLM agents toward actions selected by an attacker. The researchers introduce APEX, a method for constructing and refining such chains around a user task and a chosen action.
The attack exploits the handoff between skills. An upstream skill prompts the agent to create a file that records genuine task progress but falsely claims that the user approved an action. A downstream skill then relies on that claim to guide the agent’s next decision. This matters because skills from external open-source repositories can contribute information to the workflow.
Across six models and four targeted-action families on SkillsBench, the selected action occurred in 512 of 690 attempts, or 74.2%. For GPT-5.4, the complete chain succeeded in 84.3% of attempts. When the same workflow was combined into a single skill, the rate was 17.4%.
A tested defense asks the agent to compare skill-generated files with the original request. It reduced targeted-action success on GPT-5.4 to 59.1%, but the pass rate on 72 benign tasks also fell, from 86.7% to 56.3%. The findings highlight a trade-off between blocking attacker-directed actions and maintaining reliable performance on legitimate tasks. Read the original paper on arXiv