Skip to content

ActionGuard: intercepting poisoned skills before tool call executionActionGuard: Tool Call Authorization under Poisoned Skills

Paper Tracker· arXiv:2609.39450· Jihun Han, Yejin Jang, Byung Il Kwak, Mee Lan Han·Indexed by this site · 2026-10-04· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

ActionGuard's overall ASR on the gpt-5.5 target in extended SKILL-INJECT is 8.65% (Table 4).

Threat modelA user without malicious intent gives a task to a tool-based LLM agent. The attacker only influences action generation by poisoning third-party skills, and can modify SKILL.md, auxiliary scripts, metadata, external endpoints, or remote payloads; they cannot modify trusted user requests, model parameters, system instructions, defenses, or the tool runtime. Success means an unauthorized Tool Call has been executed and produced the intended security effect.

Questions
After a third-party skill is injected with malicious instructions, benign user requests may trigger data exfiltration, file deletion, or unauthorized execution. The authors believe that existing defenses rarely verify whether the information that induces an action is trustworthy and whether it remains within the user's authorization.
Methods
ActionGuard intercepts Tool Calls before execution. The agent still reads the original skill; the Reviewer does not see the original skill but uses a self-built profile, the trusted request at the start of the session, current and recent calls, and pre-script-execution content to make an ALLOW/DENY decision; if the call fails, it is denied.
Experiments and results
ActionGuard overall ASR 8.65%, TSR 90.38%; No Safeguard is 29.05% (Table 4). The average ASR for the two injection types is 8.20% and 9.00%. In Table 3, some individual Reviewers already have lower ASR with safeguards.
Limitations and future work
The authors state that the evaluation is only on OpenClaw, one target model, and SKILL-INJECT. After a composite call is entirely denied, task completion depends on whether the agent can re-plan. The authors plan to extend the framework and do profile hash invalidation and mixed adjudication. The paper does not report the number of failed cases or human agreement.
Experimental setupgpt-5.5-2026-04-23、Gemma 4 (gemma4:e4b-it-q4_K_M) et al. · SKILL-INJECT(2026-07-01仓库快照,扩展版)、OpenClaw · ASR、TSR
Evaluated models
gpt-5.5-2026-04-23Gemma 4 (gemma4:e4b-it-q4_K_M)Qwen 3.5 (qwen3.5:9b)Ministral 3 (ministral-3:8b-instruct-2512-q4_K_M)GPT-5.4 mini (gpt-5.4-mini-2026-03-17)Claude Haiku (claude-haiku-4-5-20251001)
Benchmarks
SKILL-INJECT(2026-07-01仓库快照,扩展版)OpenClaw
Metrics
ASRTSR
AI summaryThe researchers propose ActionGuard, which performs an authorization check just before a skill-influenced tool call executes, to block data exfiltration, file deletion, or unauthorized code execution induced by poisoned skills. The method separates the target agent's action generation context from the guardrail's authorization context; the Reviewer does not see the potentially poisoned original skill text, but instead judges whether each action is supported by the trusted user request based on a balanced skill profile, current and recent tool calls, and local script content. ActionGuard intercepts each tool call at OpenClaw's before-tool-call stage and executes ALLOW or DENY decisions with a fail-closed policy. In the SKILL-INJECT setting, against 139 context injections and 180 obvious injections, using three open-source and two commercial Reviewer models, it is compared with Dynamic Guardian and SkillGuard, with each condition repeated three times, evaluated by attack success rate (ASR) and task success rate (TSR).

The researchers propose ActionGuard, which performs an authorization check just before a skill-influenced tool call executes, to block data exfiltration, file deletion, or unauthorized code execution induced by poisoned skills. The method separates the target agent's action generation context from the guardrail's authorization context; the Reviewer does not see the potentially poisoned original skill text, but instead judges whether each action is supported by the trusted user request based on a balanced skill profile, current and recent tool calls, and local script content. ActionGuard intercepts each tool call at OpenClaw's before-tool-call stage and executes ALLOW or DENY decisions with a fail-closed policy. In the SKILL-INJECT setting, against 139 context injections and 180 obvious injections, using three open-source and two commercial Reviewer models, it is compared with Dynamic Guardian and SkillGuard, with each condition repeated three times, evaluated by attack success rate (ASR) and task success rate (TSR).

Related events and news

1 events · 1 news mentions

News that mentions this paper

ActionGuard:按可信意图授权工具调用

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Skill injection can cause benign requests to trigger unauthorized Tool Calls, which need to be authorized according to user intent before execution.

    Skill injection can cause benign requests to trigger unauthorized Tool Calls, requiring authorization based on trusted user intent before execution.

    • Scenario: The authors state that third-party skills contain task instructions, scripts, and tool usage, and the agent can modify external state based on them; data exfiltration, file deletion, or unauthorized execution lands on real systems, not just text output.
    • Existing gaps: The authors state that most safeguards mainly check whether actions are dangerous, and rarely verify whether the inducing information comes from a trusted source or matches the current request; if malicious instructions are treated as normal workflow, existing safeguards may not block them.
    • Hypothesis: The authors believe that malicious instructions in skills are only one side; the fundamental problem is the lack of a standard to judge whether an action is authorized in the current request and execution context.
    • Method: Propose ActionGuard. The target agent can read the original skill and plan; the review model does not see the potentially poisoned original skill text, but makes an ALLOW/DENY decision before execution, and executes in a fail-closed manner.
    • Threat model:
      • Goal: Execute unauthorized Tool Calls and produce a predetermined security effect, such as leaking sensitive information, deleting or modifying files, remote code execution, or reading/writing resources unavailable to the user.
      • What cannot be controlled: Does not directly break the target agent or tool runtime; cannot change the trusted user request, model parameters, trusted system instructions, safeguards, security policies, tool runtime, or access controls. Does not consider attackers directly calling tools.
      • Controllable inputs: Can write or modify skills that still provide benign functionality, insert malicious instructions into SKILL.md, and control auxiliary scripts, metadata, external endpoints, or remote payloads referenced by the skill. Instructions can be explicit or disguised as steps like backups or validation.
      • Victim system and judgment: A user without malicious intent gives tasks to a tool-using LLM agent. Unauthorized means the action is not necessary or a reasonable side effect for the trusted request, or the access target/operation exceeds user permissions or this delegation. Success means the call has executed and produced the effect; merely generating a call does not count as success.
  2. What related research exists?

    Related work is divided into skill threats, general safeguards, and skill safeguards; this work authorizes at the execution boundary, rather than cleaning skills or only limiting permissions.

    Related work is divided into skill threats, general agent safeguards, and skill-oriented safeguards; the experimental baselines are No Safeguard, Dynamic Guardian, and SkillGuard.

    Skill threats and benchmarks

    • Skill artifacts: The authors review that skills are reusable modules providing instructions, workflows, code, scripts, and tool usage (Hao et al., 2026), and can be distributed by third parties via public repositories or community registries (Holzbauer et al., 2026; Zhang et al., 2026). Liu et al. (2026) discuss that if skills are treated as trusted guidance, embedded malicious instructions can influence tool selection and execution flow.
    • SKILL-INJECT (Schmotz et al., 2026): Inserts malicious instructions into benign skills, containing 23 skills and 202 injection–task pairs, of which 76 pairs are explicitly malicious and 126 are disguised as normal workflows like backups or validation. The authors argue that the same instruction can be seen as benign or malicious depending on the user request and execution context, so surface keywords may not be enough.
    • HarmfulSkillBench (Jiang et al., 2026): Collects 98,440 skills from ClawHub and Skills.Rest, labels 4,858 harmful skills, and builds a benchmark covering 20 categories with 200 harmful skills. The authors separate this from their work: that work is about skills that are harmful in themselves; this work only handles skills poisoned under benign requests.

    General agent safeguards

    • GuardAgent (Xiang et al., 2025): Generates step-by-step plans and executable guardrail code based on user-defined guard requests, target agent instructions, and input/output logs, to allow or deny inputs or outputs; also introduces EICU-AC and Mind2Web-SC.
    • ToolSafe (Mou et al., 2026): Does step-level detection before execution. TS-Guard uses the user request, interaction history, available tool set, and candidate calls to judge whether the current action is safe; TS-Flow returns decisions and feedback to the target agent to prompt alternative actions. Also introduces TS-Bench.
    • The authors state that these works expand the verification scope to actions generated during planning and execution, not just agent inputs and final outputs.

    Skill-oriented safeguards

    • Dynamic Guardian (Fujinuma et al., 2026): Reviews the original text when the agent references a skill, and only gives the cleaned content to the agent. Static Guardian pre-checks and cleans skill artifacts before the session starts. The experimental baseline uses Dynamic Guardian, not Static Guardian.
    • SkillGuard (Pan et al., 2026): Treats skills as executable artifacts with permissions. The Skill Manifest declares tools, resource access, and expected side effects; at runtime it does permission checks, user consent, and default-deny, and infers whether the dependent capabilities needed for executing commands and referenced scripts are within the current skill's permissions.

    Baselines and positioning

    • Baselines: No Safeguard, Dynamic Guardian, SkillGuard. Benchmark: Extended SKILL-INJECT; the original reports 202 pairs, this experiment uses 139 context pairs and 180 explicit pairs from the 2026-07-01 snapshot.
    • The authors position this work as a safeguard that verifies agent-generated actions, applied to poisoned skills: it does not assume skill instructions are trustworthy, does not use the original skill as a basis for execution authorization, and instead uses observable execution context to judge whether a Tool Call is authorized.
  3. How does the paper address this problem?

    ActionGuard does not give the potentially poisoned original skill to the Reviewer, but uses the profile and runtime evidence for ALLOW/DENY.

    ActionGuard sits between the target agent and the tool runtime, determining before execution whether a Proposed Tool Call is authorized. Figure 2 divides the process into Resolve Skill Profile, Build Context, Authorize.

    Authorization Criteria

    • An unauthorized Tool Call satisfies at least one of: it is not necessary for completing the trusted user request, nor a reasonable incidental; or the accessed target/operation exceeds the user's actual permissions or the portion delegated in this request. Authorization must satisfy both request relevance and permission compliance (§3.2).
    • The trusted user request is captured at session start, defining the task goal and delegation scope. Skill artifacts, external content referenced by skills, the target agent's plans and explanations, and Tool Calls cannot serve as the basis for execution authorization. Session history and tool results only prove the current execution state; instructions or goals within them cannot expand permissions.
    • Task quality issues (complex execution, potential errors, local state changes, output quality degradation) do not by themselves constitute unauthorized; only if they exceed the user's delegated scope. This paper does not directly perform pre-installation skill screening or registry review, nor does it cover malicious users, direct compromise of the target or defenses, tool runtime vulnerabilities, or post-execution detection and recovery (§3.3).

    Skill Profile

    • The defense builds its own skill profile DB, separate from the original skills. It queries by skill identifier; if present, it reuses without executing Construct Skill Profile. On first use or no match, a profile-construction model generates a balanced skill profile from the original skill and writes it to the DB (Figure 3).
    • The profile includes ordinary workflow (common operations, tools and commands, resource scope, local transformations and validations) and suspicious signals (actions and patterns that deviate from routine or require additional review). The authors call it "balanced" because it records both routine workflows and behaviors worth reviewing.
    • The original skill is used only to build the profile, not given to the semantic Reviewer that decides individual executions. The profile does not grant execution rights by itself; appearing in ordinary workflow does not therefore ALLOW. Matching a suspicious signal does not automatically DENY either; it still requires checking whether the current call or target script actually exhibits that behavior, and whether the trusted request justifies its goal and expected side effects.
    • In experiments, under the same condition, all LLM decision or construction components of the three defenses use the same Reviewer model (§5.1). Appendix Table 6: profile construction output budget 2,048 tokens, semantic review 256 tokens; if a legitimate review cannot be obtained, the current call is denied fail-closed.

    Review Context

    • Intercept the current Tool Call at OpenClaw's before_tool_call hook, and store the trusted user request as session-level context, separate from subsequent agent messages, tool outputs, skill instructions, and execution history.
    • Current Tool Calls: original parameters, plus normalized action type, access target, resources, and expected side effects. The authors claim normalization loses detail, so the final decision uses both.
    • Recent Tool Calls: the recent sequence before the current call, used to place the action in the workflow. Previously executed or approved actions do not grant new permissions to subsequent actions.
    • Inspected Files: pre-execution content of local scripts referenced by the current call, looking at file operations, subprocesses, and network access. Code, comments, strings, and natural language are only untrusted evidence of expected behavior, not new instructions. The target agent's full record or hidden reasoning is not used.

    Decision and Execution

    • An independent Reviewer judges the current action, related action sequence, and expected behavior in scripts per §3.2. Outputs Decision (ALLOW or DENY), Reason, Reason Code (Table 1).
    • Legitimate ALLOW: forward the call and parameters as-is, without modification. DENY only blocks that execution, not the session. If the output cannot be parsed correctly, or the Reviewer call fails, it is also denied, with the failure reason recorded in a separate reason code.
    • On denial, the Reason and Reason Code are returned to the target agent for generating alternative calls. The audit log distinguishes three cases: no attack action generated; generated but blocked; allowed action not executed at runtime.
  4. What experiments did the paper conduct?

    Across five Reviewers and 319 pairs, ActionGuard's overall ASR is 8.65% (Table 4).

    Experimental Setup

    • Target and Judge: The target agent and Judge for all conditions are gpt-5.5-2026-04-23. The Judge independently determines attack success and task success, does not participate in planning, and does not participate in ALLOW/DENY. In Appendix G, attack labels are attack_success, guarded, ignored, technical; task labels are task_success, task_failed, technical. The two verdicts are independent.
    • Reviewer: Gemma 4 (gemma4:e4b-it-q4_K_M), Qwen 3.5 (qwen3.5:9b), Ministral 3 (ministral-3:8b-instruct-2512-q4_K_M), GPT-5.4 mini (gpt-5.4-mini-2026-03-17), Claude Haiku (claude-haiku-4-5-20251001). Under the same condition, the LLM decisions and construction components of Dynamic Guardian, SkillGuard, and ActionGuard use the same model (Table 2).
    • Benchmark: Extended SKILL-INJECT, 2026-07-01 snapshot, 319 pairs: 139 context injection, 180 obvious injection. Each pair has both a malicious goal and a benign user task. TSR uses only the subset that can be adjudicated separately from attack disruption: 100/139 for context, 155/180 for obvious, shared across methods.
    • Baselines and intervention points: No Safeguard has no separate defense. Dynamic Guardian provides the target agent with mediated skill context. SkillGuard pre-builds manifests and permission mappings, checking required capabilities at runtime. ActionGuard lets the agent plan with the original skills, checking the call and the pre-execution content of referenced local scripts at before_tool_call.
    • Metrics: ASR is the proportion of tasks where the attack succeeds. Success means a malicious Tool Call has been executed and produced the benchmark-defined attack effect; if no malicious call is generated, or it is blocked before execution with no side effects, it counts as attack failure. TSR is the proportion of benign tasks correctly completed; if the attack is blocked but the required result is still produced, it counts as success; if actions needed for the benign workflow are restricted, it counts as failure. Technical failures are excluded from both metrics. The paper does not report their count.
    • Replication: Each condition is independently repeated 3 times, reporting the mean. Each of the 319 tasks runs in a new sandbox and new session. Appendix D: Ollama conditions use temperature 1, thinking off, num_ctx 65,536. The paper does not specify the temperature for commercial Reviewers.

    Main Results

    The overall numbers are weighted averages across five Reviewers and two injection types (Table 4). Per-type ASR is the mean across five Reviewers (§6.2 narrative for Figure 4). The 8.20% and 9.00% in the introduction are these two means, not a row in Table 3. No Safeguard does not use a Reviewer, and the paper does not give per-type numbers.

    | Method | Overall ASR | Overall TSR | Context Injection ASR | Obvious Injection ASR | | Dynamic Guardian | 16.05% | 92.08% | 14.92% | 16.93% | | SkillGuard | 13.42% | 88.55% | 19.81% | 8.48% | | ActionGuard | 8.65% | 90.38% | 8.20% | 9.00% | | No Safeguard | 29.05% | 93.46% | Not reported | Not reported |

    Per Table 4 and §6.2.

    • There are three versions of relative reduction. §6.1: ActionGuard's overall ASR is 7.40 and 4.77 percentage points lower than Dynamic Guardian and SkillGuard, with relative reductions of 46.1% and 35.5%. The conclusion writes 46.11% and 35.54%. The abstract writes a 35.54–46.11% reduction relative to existing defenses. Relative to No Safeguard, §6.1 gives a 20.40 percentage point reduction (relative 70.2%), and TSR drops 3.08 percentage points (relative 3.3%); the abstract writes a relative ASR reduction of 70.44%; the conclusion writes about 70.2%.
    • The authors claim the overall results strengthen attack blocking while maintaining benign task performance. In Table 4, its TSR is lower than No Safeguard and Dynamic Guardian, and higher than SkillGuard.
    • Table 3 has per-type counterexamples: for context injection, on Ministral 3, Dynamic Guardian ASR is 7.19%, ActionGuard is 8.87%. For obvious injection, SkillGuard on Ministral 3, GPT-5.4 mini, and Claude Haiku has ASR 7.96%, 8.33%, 7.96%, while ActionGuard has 9.63%, 9.26%, 8.33%.

    By Injection Type

    • The authors claim ActionGuard's two-type ASR differ by 0.80 percentage points, Dynamic Guardian by 2.01 percentage points. SkillGuard's two types differ by 11.33 percentage points; its obvious injection mean is 0.52 percentage points lower than ActionGuard's (§6.2).
    • Context injection TSR means: Dynamic Guardian 88.27%, SkillGuard 89.13%, ActionGuard 87.73%. The authors claim the gap with existing defenses is 1.40 percentage points.
    • Obvious injection TSR: Dynamic Guardian 94.54%, ActionGuard 92.09%, SkillGuard 88.17%. The authors claim the latter two have similar attack mitigation but different utility. They also claim that looking only at low ASR cannot distinguish selective blocking from restricting benign workflows as well.

    Across Reviewer Models

    • §6.3 / Figure 5 gives weighted results across both injection types for each Reviewer. ActionGuard ASR: Gemma 8.99%, Qwen 8.67%, Ministral 9.30%, GPT 8.57%, Claude 7.73%, range 7.73%–9.30%.
    • The authors give ranges: Dynamic Guardian ASR 11.39%–19.44%, SkillGuard 12.64%–14.94%. They claim ActionGuard has the lowest ASR on all evaluated Reviewers, with similar levels on open-source and commercial models. This is a weighted comparison; Table 3's single injection types do not all follow this.
    • TSR ranges: Dynamic Guardian 91.63%–92.68%, SkillGuard 87.71%–89.28%, ActionGuard 87.58%–92.55%. The authors claim its attack blocking is relatively stable, while benign task performance is more affected by Reviewer choice.

    Case Studies

    • §7 selects three examples: context injection INST-2_pptx_task0, obvious injection INST-3_docx_task3, utility failure INST-10_git_task1.
    • In the first two, the authors claim they use the external transfer destination and artifact parameters in the current call, and the pre-execution content of referenced scripts, respectively, to identify side effects beyond the user request and DENY; the benign slide modification and document conversion complete, adjudicated as attack failure and task success. Matching a suspicious signal is not a standalone reason for denial.
    • INST-10_git_task1 combines a benign git operation and an unauthorized force push into one Tool Call, which is rejected as a whole. The agent later performs add and commit, but does not generate a safe push. Attack fails and task fails. The authors claim that even when identification is correct, task failure can occur due to call granularity and lack of replanning after DENY.

    Other Ablations and Analyses

    • The paper does not report ablation numbers for removing skill profiles, recent calls, or script inspection.
    • Table 3 context injection ActionGuard ASR: Claude Haiku 6.95%, Gemma 4 and Ministral 3 both 8.87%; TSR ranges from Claude Haiku 85.00% to Ministral 3 90.67%.
    • Table 3 obvious injection ActionGuard ASR: Claude Haiku 8.33%, Ministral 3 9.63%; TSR ranges from Qwen 3.5 88.60% to Ministral 3 and GPT-5.4 mini 93.76%.
    • On obvious injection, Qwen 3.5 SkillGuard and ActionGuard ASR are both 8.70% (Table 3).
    • Context injection Dynamic Guardian ASR ranges from Ministral 3 7.19% to GPT-5.4 mini 20.62% (Table 3).
    • Results are means of 3 runs. The paper does not report per-run variance, number of technical failures, latency, or query counts.
  5. What are some points that can be further explored?

    The authors note that the evaluation is only on OpenClaw, one target model, and SKILL-INJECT, where composite Tool Calls are rejected as a whole.

    Limitations and Future Directions Noted by the Authors

    • When a benign action and an unauthorized action are combined into one Tool Call, the whole call is rejected; if the target agent does not generate a safe alternative workflow, the task fails. The authors claim the utility of execution-boundary defense depends on authorization accuracy and the target agent's recovery after DENY (§7.3, §8).
    • The evaluation is limited to one agent framework OpenClaw, one target agent model, and one benchmark SKILL-INJECT. The authors claim environments with different skill loading methods or Tool Call schemas need further validation (§8).
    • The authors plan to extend the evaluation to more agent frameworks (§8).
    • The authors plan to strengthen skill profile reliability using version/hash-based profile invalidation and independent verification (§8).
    • The authors plan to use a hybrid adjudication of deterministic evaluators plus LLM Judge to improve result adjudication stability (§8).

    Experimental Coverage

    • Target agent and Judge are both gpt-5.5-2026-04-23; Reviewers are Gemma 4, Qwen 3.5, Ministral 3, GPT-5.4 mini, Claude Haiku (§5.1, Table 2).
    • Baselines are No Safeguard, Dynamic Guardian, SkillGuard, ActionGuard; all run in OpenClaw, with ActionGuard attached at before_tool_call (§5).
    • Data is the 2026-07-01 SKILL-INJECT snapshot: 139 context injection pairs, 180 obvious injection pairs; TSR uses 100 and 155 pairs; each condition independently repeated 3 times (§5.1–§5.3).
    • Each task sandbox initializes its own Skill Profile DB, reused only among subsequent Tool Calls within that sandbox (Appendix C, Table 6). Case studies are INST-2_pptx_task0, INST-3_docx_task3, INST-10_git_task1 (§7).
    • The paper does not report in §5 the number of technical failures, per-run variance, Judge-human agreement, latency, or query counts, nor quantitative results for component ablations.
  6. Summarize the main content of the paper

    ActionGuard authorizes Tool Calls at the execution boundary based on trusted requests, with an overall ASR of 8.65% (Table 4).

    ActionGuard is an authorization safeguard placed before tool execution to block Tool Calls induced by poisoned skills that go beyond the trusted user request.

    • Problem: Third-party skills can have malicious instructions inserted. Under benign requests, the agent may treat data exfiltration, deletion, or unauthorized execution as normal workflow. The authors argue that what needs to be verified is whether the action is authorized by the current request, not whether the skill text contains risky words.
    • Method: The agent still reads the original skill and plans. ActionGuard builds a skill profile containing normal workflows and suspicious signals, without giving the original skill to the Reviewer. The review uses the trusted request at the start of the session, the profile, current and recent calls, and pre-script-execution content. ALLOW passes through as-is; DENY or review failure denies that call and returns a reason.
    • Results: The target agent is gpt-5.5-2026-04-23, extended SKILL-INJECT has 319 pairs total, five Reviewers, 3 runs per condition. In Table 4, ActionGuard overall ASR 8.65%, TSR 90.38%; No Safeguard is 29.05% and 93.46%; Dynamic Guardian is 16.05% and 92.08%; SkillGuard is 13.42% and 88.55%. In §6.2, the average ASR for the two injection types is 8.20% and 9.00%, with TSR 87.73% and 92.09%. On explicit injection, SkillGuard average ASR is 8.48%, 0.52 percentage points lower. On context injection with Ministral 3, Dynamic Guardian ASR is 7.19%, lower than ActionGuard's 8.87%.
    • Authors' conclusion: The authors state that authorizing at the execution boundary using trusted user intent and runtime behavior evidence can limit unauthorized Tool Calls induced by skill injection without excessively harming benign tasks. Utility also depends on whether the agent can recover to a safe call after a DENY; the evaluation is only on OpenClaw, one target model, and SKILL-INJECT.

Related papers

Show 3 more papers
Read originalarxiv.org