Source-linked AI summary

Beyond Direct Access: Resource Hijacking in LLM Agents

Puyu Zeng, Qibing Ren

arXiv:2608.15108v1cs.CRcs.AI

TL;DR

High-value resources accessible to LLM agents have received less attention as direct attack targets than instructions, information, and actions. This paper introduces a benchmark for agent resource hijacking and finds that attacks remain effective across resources, model backends, and defenses.

  • Problem

    Agent security research has focused mainly on instructions, information, and actions, while high-value resources accessible to agents have received less attention as direct attack targets.

  • Method

    The paper introduces ResourceHijackBench, an automated case-generation pipeline with 300 attack scenarios and 900 prompts across six high-value resource categories.

  • Results

    84.06% average attack success on OpenClaw, with attacks remaining effective across model backends and the strongest evaluated defense leaving 55.11% success.

  • Takeaways & Limitations

    High-value resources accessible to agents form an important overlooked attack surface that current defenses do not sufficiently protect from resource hijacking.

Abstract

from arXiv · show

Large language model agents are increasingly connected to high-value resources such as computing infrastructure, credentials, usage budgets, identities, private knowledge, communication channels, and organizational workflows. Existing agent security research mainly studies attacks on instructions, data, and tool behaviors, while high-value resources accessible to agents have received much less attention as direct attack targets. We are the first to identify and systematically study agent resource hijacking, a security blind spot in which attackers induce agents to invoke, consume, transfer, or control high-value resources for their own goals without directly obtaining those resources or their credentials. To study this threat, we introduce ResourceHijackBench together with an automated pipeline for generating resource hijacking cases. We organize high-value agent resources into six categories and construct 300 attack scenarios with 900 attack prompts. Each case runs in an isolated local environment that records actual resource use, allowing attacks to be evaluated from agent behavior rather than text responses alone. Without additional defenses, OpenClaw reaches an average attack success rate of 84.06%. The attack remains effective across different model backends, with average success rates ranging from 69.98% to 89.58%. Existing defenses reduce part of the risk, but the strongest evaluated defense still leaves an average attack success rate of 55.11%. These results show that high-value resources accessible to agents form an important and previously overlooked attack surface, and that current agent defenses are not sufficient to protect them from resource hijacking.

1 INTRODUCTION

The paper identifies agent resource hijacking as an overlooked attack surface in which attackers induce agents to use high-value resources for their goals without obtaining the resources or credentials. It introduces ResourceHijackBench to systematically evaluate these attacks and finds substantial success rates despite existing defenses.

  • Threat and motivation: Agent resource hijacking targets high-value resources by inducing agents to invoke, consume, transfer, or control them for an attacker’s goal without exposing the resource or credential.The resource is the attack target, while the agent serves as the means of exploitation.
  • Threat and motivation: Legitimate operations make resource hijacking difficult to detect because attacks alter resource usage rather than relying on obviously malicious actions.Examples include running code on GPUs, calling APIs, sending emails, reading internal documents, and using repository accounts.
  • Benchmark and methodology: ResourceHijackBench organizes high-value resources into six categories and provides an automated pipeline for systematically generating resource hijacking cases.The categories cover material, condition, energy, social and symbolic, information and knowledge, and interaction resources.
  • Benchmark and methodology: 300 attack scenarios and 900 attack prompts are constructed across three settings: implicit requests, direct requests without confirmation, and persistent-context attacks.Each case includes a task source, target resource, attack goal, and matching local simulated environment.
  • Benchmark and methodology: The evaluation uses automatically created isolated local environments that record actual tool calls and assess whether the target resource was hijacked.The framework is designed to evaluate agent behavior rather than relying only on text responses.
  • Evaluation results: 84.06% is OpenClaw’s average attack success rate without additional defenses across the six resource categories.Success rates across different model backends range from 69.98% to 89.58%, while the strongest evaluated defense still leaves a 55.11% average attack success rate.

2 RELATED WORK

Prior agent-security research examines prompt injection, unsafe privilege use, resource abuse, and general safety risks, while existing benchmarks mainly organize evaluations around malicious instructions or harmful actions. ResourceHijackBench instead centers evaluation on high-value resources accessible to agents and records whether agents actually invoke intended resource uses.

  • Agent Security: Agent security studies indirect prompt injection, executable attack environments, unsafe privilege use, and authority exercised beyond task requirements.These works address attacks affecting prompts, tools, memory, or privilege selection across agent systems.
  • Resource-related risks: Recent resource-abuse research shows attackers can induce prolonged tool-calling chains or inflate reasoning budgets, increasing computational cost and degrading availability.A high-performance-computing study also considers agents with valid credentials redirected by untrusted instructions toward actions outside the intended context, though the supplied passage is truncated.
  • Agent Safety Benchmarks: Existing agent-safety benchmarks evaluate risky tool behavior, explicitly harmful multi-step tasks, or broader unsafe behavior across agents.Examples include ToolEmu, AgentHarm, and Agent-SafetyBench.
  • ResourceHijackBench: ResourceHijackBench organizes test cases around high-value resources rather than malicious instructions, harmful actions, prompt injection, or general safety risks.Its covered resources include computing resources, credentials, consumable budgets, identity, private knowledge, and organizational interactions.
  • ResourceHijackBench: Each ResourceHijackBench case records intended resource use and evaluates whether the agent actually invokes it.This resource-centered evaluation distinguishes the benchmark from prior safety benchmarks organized primarily around attack or harm types.

3 METHOD

Section 3 defines resource hijacking, organizes hijackable agent resources into six categories, and uses a constrained LLM-based process to generate validated cases. It then packages these cases into an executable benchmark that evaluates actual resource use in isolated environments.

  • Threat definition: Resource hijacking induces an agent to invoke, consume, transfer, or control an accessible high-value resource without requiring disclosure of its credential.The attack can use an operation request, external context, or persistent setting, distinguishing it from traditional credential leakage.
  • Resource taxonomy: Six resource categories define the fixed semantic space for automated case generation, while models discover concrete targets, uses, goals, and invocation paths within each category.The taxonomy constrains coverage and prevents the generator from introducing new top-level categories.
  • Case generation: 36 initial targets seed generation, with each model call producing one complete scenario and three prompt variants while using prior scenario names to reduce repetition.The variants share a resource target and hijacking goal but differ in task settings and wording.
  • Validation: 36 scenarios and 900 candidate prompts are produced across six categories and filtered for valid structure, required fields, invocation paths, resource-use clues, duplication, and sensitive real-world content.The generation model creates candidate cases but does not execute the attacks or determine their outcomes.
  • Benchmark construction: ResourceHijackBench contains 900 attack prompts spanning implicit requests, direct requests without confirmation, and persistent-context attacks.Each case includes structured metadata covering the resource, attack setting, workflow context, expected invocation path, and success criteria.
  • Evaluation setup: Cases run in isolated OpenClaw states and local simulated environments that record tool calls and environment-state changes, with an LLM judge determining whether the target resource was hijacked.The benchmark provides resource operations for computing, APIs, code platforms, communication systems, and organizational workflows.

4 EXPERIMENTS

Experiments on ResourceHijackBench show that resource hijacking succeeds broadly across resource categories, model backends, and attack modes. Existing defenses reduce risk unevenly, while lower attack success can also reflect failure to invoke the target resource rather than stronger protection.

  • Benchmark and setup: ResourceHijackBench contains 900 attack cases spanning six resource categories and three attack settings, evaluated in isolated local environments with simulated tools.The environments exclude real credentials, accounts, cloud resources, repositories, and external recipients.
  • Baseline vulnerability: 84.06% average ASR was achieved by OpenClaw without additional defenses, with energy and condition resources most vulnerable at 93.88% and 92.00%.ASR exceeded 68% in every resource category.
  • Defense evaluation: 55.11% average ASR remained under LlamaFirewall, while Prompt Defense reached 57.13% and AgentDog reduced ASR only from 84.06% to 83.00%.Neither stronger defense provided reliable protection across all resource categories.
  • Model backend robustness: 89.58% was GPT-5.5’s average ASR, compared with 84.06% for DeepSeek-V4-Pro and 69.98% for Gemini-3.5-Flash, showing vulnerability across backends.Changing the model altered attack success but did not eliminate the vulnerability.
  • Failure analysis: 50.7% of valid failures for both GPT-5.5 and DeepSeek-V4-Pro were safety-blocked, while Resource Not Invoked caused 41.3% and 44.2% of their failures.Thus, unsuccessful attacks do not always indicate that the agent recognized and blocked hijacking.
  • Direct acquisition comparison: 84.06% average ASR for resource hijacking contrasted with 7.39% for direct acquisition on DeepSeek-V4-Pro, a gap of 76.67 percentage points.The contrast shows that preventing direct resource acquisition does not prevent attackers from exploiting resources through the agent.

5 CONCLUSION

The work identifies and systematically studies agent resource hijacking as a security blind spot, and introduces ResourceHijackBench for behavior-level evaluation. The benchmark covers six high-value resource categories through 300 attack scenarios and 900 attack prompts in executable local environments.

  • Conclusion: The paper identifies agent resource hijacking as a security blind spot in which attackers exploit high-value resources through agents without directly obtaining those resources.This frames resource hijacking as an attack on agent-accessible resources rather than direct acquisition of the resources themselves.
  • Conclusion: ResourceHijackBench contains 300 attack scenarios and 900 attack prompts covering six categories of high-value resources.The benchmark includes executable local environments for behavior-level evaluation.
  • Conclusion: Generative AI tools were used only to improve the manuscript’s language and readability, with the authors reviewing all AI-assisted revisions and taking responsibility for the final content.The authors state that they take full responsibility for the final manuscript content.
Loading 2608.15108v1…