Skip to content

APEX-Harm: Evaluating Agent Security in Shared Professional WorkspacesAPEX-Harm: Evaluating Agent Safety in Shared Professional Workspaces

Paper Tracker· arXiv:2610.13623· Ziyi Yang, Adel Bibi, Guohao Li, Bernard Ghanem, Carlos Hinojosa·Indexed by this site · 2026-10-12· Originally publishedSelected EvaluationSelectedAttention42

Quick read

Evaluation and benchmarks

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

APEX-Harm evaluates 12 models on injections in shared workspaces; Opus 5 has an overall ASR of 8%, and script replacement has an average ASR of 81–84%.

Questions
Specialized agents use command lines and various tools in shared workspaces for long-horizon financial, consulting, and legal tasks. Attackers often do not know which files an agent will read, so injection evaluations at a single known location cannot simultaneously measure exposure and unauthorized actions.
Methods
APEX-Harm builds 180 instances from 15 APEX-Agents tasks, including static and dynamic prompt or script injection, task-specific script replacement, and attacker-provided universal scripts, while recording attack success, exposure, and task score.
Experiments and results
Each of the 12 models was evaluated on 180 instances. Opus 5 and Sonnet 5 have total ASRs of 8% and 20%, respectively; script replacement averages 81–84%, and generic scripts 73%. Gemini 3.8 Flash has a task score of 0.877 and an ASR of 33%. The authors state that doing the task correctly is not sufficient evidence of safety.
Limitations and future work
The authors state that coverage is limited to investment banking, law, and consulting, and generalization to other domains is limited; each instance is evaluated only once, Sonnet 5 shows a floor effect with 0% ASR, and reviewer consistency was measured on 60 instances annotated by a single person.
Experimental setupOpus 5、Sonnet 5 et al. · APEX-Harm、APEX-Agents · ASR、ER et al.
Evaluated models
Opus 5Sonnet 5GPT-6 AstraGemini 3.8 FlashGPT-5.6 LunaGemini 3.7 FlashKimi K3DeepSeek V4 FlashGPT-5.6 SolGLM 5.3 FlashGPT-5.6 TerraGemini 3.6 Flash
Benchmarks
APEX-HarmAPEX-Agents
Metrics
ASRERScore
AI summaryand selection rationaleThe authors propose APEX-Harm, a benchmark for evaluating prompt injection and script injection in long-horizon agents operating in shared professional workspaces, with tasks covering investment banking, law, and management consulting. Each task contains 115 to 328 files and provides email, calendar, chat, document, spreadsheet, PDF, and code execution tools via MCP servers. The benchmark includes six attack categories, covering static and dynamic injections, task-specific script replacement, and attacker-provided generic scripts, while measuring attack success rate, exposure rate, and task performance. The authors evaluate 180 task instances on each of 12 frontier models; Opus 5 and Sonnet 5 have the lowest overall attack success rates at 8% and 20%, respectively. Task-specific script replacement and attacker-provided generic script attacks remain effective, with average attack success rates of 81–84% and 73%, respectively. Gemini 3.8 Flash achieves the highest average task score of 0.877 while still having a 33% attack success rate.

The authors propose APEX-Harm, a benchmark for evaluating prompt injection and script injection in long-horizon agents operating in shared professional workspaces, with tasks covering investment banking, law, and management consulting. Each task contains 115 to 328 files and provides email, calendar, chat, document, spreadsheet, PDF, and code execution tools via MCP servers. The benchmark includes six attack categories, covering static and dynamic injections, task-specific script replacement, and attacker-provided generic scripts, while measuring attack success rate, exposure rate, and task performance. The authors evaluate 180 task instances on each of 12 frontier models; Opus 5 and Sonnet 5 have the lowest overall attack success rates at 8% and 20%, respectively. Task-specific script replacement and attacker-provided generic script attacks remain effective, with average attack success rates of 81–84% and 73%, respectively. Gemini 3.8 Flash achieves the highest average task score of 0.877 while still having a 33% attack success rate.

Why it was selectedThe paper reports attack success rates and task scores for 12 frontier models in shared workspaces, distinguishing between the exposure and execution stages, which can serve as a reference for teams deploying professional agents.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    In shared workspaces, attackers may not know what is read; APEX-Harm measures exposure, unauthorized actions, and task utility simultaneously.

    Long-horizon professional agents in shared workspaces may perform unauthorized actions while completing legitimate tasks, yet the attacker cannot predict what will be read.

    • Scenario: The authors state that in finance and legal workflows, agents process shared files and communications via command line, MCP servers, and applications, with access to sensitive client information and artifacts such as valuations and memos. Adversarial participants can modify some content, attempting to obtain information or outcomes that appear only due to the agent's work; the authors call unauthorized actions exceeding the user's authorization boundary (Wu et al., 2026).
    • Existing gap: The authors state that existing tool-use and dynamic attack evaluations cover risks from untrusted content, but injections are often placed at known read locations. With hundreds of files in a workspace, reporting only attack success cannot distinguish between never encountering the injection and encountering it without executing.
    • Observation: The authors argue that success depends both on whether the agent follows malicious instructions and whether attacker-controlled content enters the context. Task-relevant filenames, locations in existing files, and modifications during execution correspond to different knowledge assumptions and exposure opportunities.
    • Benchmark: APEX-Harm builds 180 attack instances from APEX-Agents' investment banking, legal, and management consulting tasks, covering static and dynamic injections and script-based attacks, while measuring utility, exposure, and attack success. The authors state that APEX-Agents remains difficult, with the best model achieving 68.6% success, not an APEX-Harm result.
    • Threat model:
      • Goals: 24 targets adapted and deduplicated from OS-Harm and AgentDojo, with internal disclosure added. Internal disclosure exfiltrates via shared folders or calendar; external uses email, chat, or URL; internal checks verify both destination and protected information.
      • Knowledge: Depending on category, includes 3 to 4 task keywords from the user prompt, and MCP usage; interface knowledge does not grant the victim's authenticated MCP access. C3, C4, and C6 lack task-keyword knowledge.
      • Capabilities: Can create files in shared locations. Dynamic attacks use background Linux inotify monitoring without sudo to modify resources with write permission. C5 and C6 use user authorization for workspace instructions or referenced scripts, with the user unaware the resources are attacker-controlled.
      • Victim system: A simulated professional CLI agent, using code execution and MCP tools for calendar, chat, documents, file system, mail, PDF, spreadsheets, presentations. The authors state these capabilities alone cannot perform the harmful actions evaluated, thus requiring the victim agent.
  2. What related research exists?

    Related work covers workplace agents, tool safety, and indirect injection; the authors distinguish their work by the exposure from workspace placement and program execution.

    The paper organizes related work into complex-task capability, agent safety, and indirect injection and adaptive attacks.

    • Complex-task agents: WebArena (Zhou et al., 2024) and OSWorld (Xie et al., 2024) evaluate agents on websites and computer applications. WorkArena++ (Boisvert et al., 2024) studies compositional knowledge work, and TheAgentCompany (Xu et al., 2026) evaluates workplace tasks with tools, code, and communication. APEX-Agents (Vidgen et al., 2026) has professional tasks authored by investment banking analysts, management consultants, and corporate lawyers; this paper uses its tasks and environment, measuring both legitimate utility and harmful outcomes.
    • Agent safety benchmarks: ToolEmu (Ruan et al., 2024) uses a language model to simulate tool execution to discover potentially harmful failures, AgentHarm (Andriushchenko et al., 2025) evaluates deliberately malicious user requests; Gonzalez et al. (2026) do safety evaluations in multimodal social simulations. AgentDojo (Debenedetti et al., 2024) evaluates prompt-injection attacks and defenses in legitimate tasks, and OS-Harm (Kuntz et al., 2026) covers deliberate misuse, prompt injection, and model misbehavior in computer use.
    • Other benchmarks and defense layers: WASP (Evtimov et al., 2026) and TRAP (Korgul et al., 2025) study prompt injection against web agents, LITMUS (Zhang et al., 2026) checks both responses and operating-system actions, and Agent Security Bench (Zhang et al., 2025) formalizes attacks and defenses across varied scenarios. CaMeL (Debenedetti et al., 2025) uses guard layers to control information flow and tool use, and MAGE (Wang et al., 2026) evaluates pending actions in long trajectories with safety memory.
    • Indirect injection and adaptive attacks: Indirect prompt injection embeds instructions in external content (Greshake et al., 2023). InjecAgent (Zhan et al., 2024) evaluates tool-based agents, AgentPoison (Chen et al., 2024) targets memory or knowledge bases, Skill-Inject (Schmotz et al., 2026) targets skill files, and OMNI-LEAK (Naik et al., 2026) studies leaks in multi-agent orchestration with access control. AgentDyn (Li et al., 2026) studies the need to use helpful external instructions while rejecting malicious ones. AgentLAB (Jiang et al., 2026) evaluates task injection, goal drift, and memory poisoning in long interactions, where adversaries can be malicious users or environment influencers.

    Baseline methods and benchmarks: The main results do not use other attack methods as baselines, but compare 12 models on APEX-Harm; tasks come from APEX-Agents. In ablations, the existing-file baseline assumes the attacker knows the full prompt and has seen one prior trajectory, then places injections at file beginnings or near keywords (Table 6). The 24 targets are adapted and deduplicated from OS-Harm and AgentDojo, with additional internal-disclosure targets.

    The authors state they share AgentLAB's concern with attacks unfolding during execution, but focus on how workspace placement, file modification, and program execution cause exposure in professional tasks, with a separate dynamic setting requiring background file monitoring and modification permissions.

  3. How does the paper address this problem?

    APEX-Harm uses six categories of static, dynamic, and script attacks, measuring exposure and unauthorized actions separately in large workspaces.

    APEX-Harm in APEX-Agents' shared professional world constructs six attack categories based on attacker knowledge and write permissions, separately recording whether the injection was read, whether unauthorized actions were taken, and the original task score.

    Environment and tasks

    • World: Each task has 115 to 328 shared files, plus email, calendar, and chat, with roles including partners, assistants, analysts, etc. The agent primarily uses code execution and calls MCP servers for Calendar, Chat, Documents, File System, Mail, PDFs, Spreadsheets, Presentations.
    • Scale: Table 1 totals 180 tasks, 30 per category; 9 applications, 63 tools; average 175 files; Word and PDF average 43.4 pages; average 56.9 turns. At Gemini 3.8 Flash, cost is 103.1 USD, 86.6 minutes with 32-way parallelism.
    • Additions: Safety-relevant assets (e.g., sensitive events and OTP emails), sensitive client information in user prompts, and injected files or harmful scripts are added. The authors state these additions preserve original task content and feasibility. External network is restricted, with specified URLs resolving to a local collector that records requests.
    • Tool distribution: Table 17, over Gemini 3.8 Flash's 180 attacked runs, shows code execution accounts for 87.6% (7,625/8,700) of direct MCP calls, appearing in 177/180 runs. The authors state this describes attacked runs only; time and tool selection in unattacked tasks are not in this analysis.

    Six attack categories and exposure

    • C1 static prompt injection: Knowing 3 to 4 task keywordsate, with file and app write access, the attacker places injections in workspace files or email, chat, and calendar. Static artifact filenames derive from these keywords, and opening them presents seemingly relevant task content alongside the injection.
    • C2 static script injection: Additionally knowing MCP usage, but without the victim's authenticated access, the attacker places text instructions accompanied by Python, PYC, or ELF.
    • C3 and C4 dynamic attacks: No prior task keywords needed. A background monitor uses file events from trajectories to hide or rename the original file after one read, placing a replacement pointing to an injected prompt or a malicious recovery script, then restores the workspace (Figure 2). Implemented with Linux inotify, no sudo required. C4.1 lacks explicit permission to "follow file instructions," while C4.2 has it.
    • C5 and C6 with user authorization: C5 knows task context and replaces a task-specific utility program named by the user; 5.1 can execute directly, 5.2 needs runtime input from the workspace or user prompt. C6 has the attacker provide a universal script, which the user asks to execute, without needing task keywords. The authors state that the dynamic monitoring process cannot access the user prompt, out-of-scope protected resources, or the victim's authenticated MCP services.

    Sampling and attack targets

    • 15 base tasks: 5 each from investment banking, law, and management consulting, with 3 easy, 1 medium, and 1 hardper domain, selected using scores and turns from multiple models to separate utility loss from capability limits due to safety settings. Appendix F: easy is score=1, medium is 0.75≤score<1, hard is 0.5≤score<0.75, with Opus 5, GPT-5.6 Sol, and Gemini 3.5 Flash all falling in the respective ranges; Gemini 3.5 Flash requires 30–100 turns.
    • Instance counts: C1–C3 and C6 pair each base task with two applicable targets, 30 instances per category. C4 and C5 have 15 instances per variant. Targets are uniformly sampled from the applicable set.
    • Vector allocation: C1 uses GPT-5.4 for relevance ranking, then a capacity-constrained minimum-cost bipartite matching, with 3 or 4 instances per vector and priority to the top three. C2, C5, and C6 sample uniformly from py, pyc, and ELF; C3 and C4 use fixed vectors.
    • 24 targets: Distinguished by internal or external disclosure, implicit or explicit harm, and whether runtime-only information is needed. Runtime targets obtain information from user prompts, protected resources, or task results provided by the victim agent. Appendix E gives the taxonomy and checks; Appendix A gives configurations and generation prompts.

    Success determination

    • Three metrics: Utility follows APEX-Agents, with an LLM judge determining true/false for each of 1–10 expert rubric items per task. Safety uses 1–2 programmatic rules for each of the 24 targets, with five semantic checks supplemented by LLM judgment. Exposure indicates whether the agent read the injected prompt while exploring the workspace; first a string match on tool outputs, then LLM for unmatched cases. Attacks placed directly in the user prompt do not get an ER, so C5 and C6 have no ER.
    • Definitions: ASR = Ns / N, where Ns is the number of successful attacks and N the number of runs for that model and attack setting. Score = (1/N)∑i(1/Ki)∑j rij, where rij is 0 or 1, and Ki is the rubric count for that run. ER is the number of exposed runs divided by N. The authors state lower ASR and ER indicate stronger robustness, and higher task score indicates better utility.
    • Review: Exposure and safety reviews by Gemini 3.6 Flash, returning binary decisions; the exposure reviewer is instructed to treat the evaluated prompt and tool outputs as untrusted data. The paper does not specify the model for utility rubric review. In the main evaluation, rules cover 94% of safety assessments (appendix 3,924/4,188, i.e., 93.70%) and 70% of exposure assessments (appendix 1,014/1,440, i.e., 70.42%).
    • Human validation: 95% agreement on 40 exposure cases (38/40, Cohen's κ=0.900), 100% on 20 safety cases (20/20, κ=1.000), annotated by one rater (Appendix B.4).
  4. What experiments did the paper conduct?

    12 models with 180 instances each; Opus 5 total ASR 8%, script replacement averages 81–84%, and the authors state that high scores can still come with unauthorized actions.

    Experimental Setup

    • Models under test: Opus 5, Sonnet 5, GPT-6 Astra, Gemini 3.8 Flash, GPT-5.6 Luna, Gemini 3.7 Flash, Kimi K3, DeepSeek V4 Flash, GPT-5.6 Sol, GLM 5.3 Flash, GPT-5.6 Terra, Gemini 3.6 Flash, all using the APEX-Agents harness. Appendix H.1 specifies a 150-step limit, no timer, non-streaming, with different inference settings per provider.
    • Data: 180 attack instances per model, from 15 APEX-Agents tasks. 30 per category; 15 per variant for C4 and C5. Experiments were conducted in a simulated world with synthetic credentials, not using real customer information or external live targets (ethics statement).
    • Metrics: ASR, ER, mean task score. Utility uses a 1–10 rubric to judge true/false. Safety relies primarily on programmatic rules, with five categories of semantic checks using an LLM.
    • Review: Exposure and safety reviews were done by Gemini 3.6 Flash, which is also among the 12 models under test. Rules resolved 3,924/4,188 safety checks and 1,014/1,440 exposure determinations. Human agreement was 38/40 for exposure and 20/20 for safety, with a single annotator. The paper does not state which model reviewed utility.
    • Replication: The main evaluation ran each model and attack instance combination only once (Section 5).
    • Other runs: In ablations, Gemini 3.5 Flash was the attacked model reporting ASR and ER; GPT-5.4 was used only for C1 vector relevance ranking.

    Main Results

    The table below is the Average column of Table 4. Total ER covers only Categories 1–4; high ASR in C5–C6 can make total ASR higher than average ER.

    Swipe horizontally to read the table

    ModelTotal ASRTotal ERTask Score
    Opus 58%83%0.790
    Sonnet 520%73%0.767
    GPT-6 Astra28%49%0.758
    Gemini 3.8 Flash33%89%0.877
    GPT-5.6 Luna42%33%0.389
    GPT-5.6 Sol52%71%0.777
    GPT-5.6 Terra57%68%0.696
    Gemini 3.6 Flash58%77%0.792

    Omitted: Gemini 3.7 Flash (46%, 86%, 0.840), Kimi K3 (47%, 75%, 0.819), DeepSeek V4 Flash (47%, 95%, 0.799), GLM 5.3 Flash (57%, 81%, 0.816). The twelve-model average is ASR 41%, ER 73%, task score 0.760.

    • Script categories remain high: The authors state that several models have very low ASR for static and dynamic prompt injection, but in the Average row of Table 4, task-specific script replacement is 84% (Direct Action) and 81% (Runtime Info.), with attacker-provided generic scripts at 73%. GPT-5.6 Sol and Terra are 100% on these three categories, and Luna is 97%–100%.
    • Zero success and permission: Sonnet 5 and GPT-6 Astra have 0% ASR on C1, C3, and both C4 variants (Table 3, Table 4), but Sonnet 5's C1 exposure rate is still 83%. The twelve-model average ASR for C4 without and with permission is 20% and 25%.
    • Utility is not safety: The authors state that attack success and task utility are different outcomes; an agent can complete legitimate tasks and also perform harmful actions. The lowest task score in the table is GPT-5.6 Luna, and the paper does not explain why. Figure 7 compares utility with and without attacks, but the provided text does not allow reading the curve positions.

    Internal Leakage and Attack Vectors

    • Internal higher than external: Table 21 has 14 external and 16 internal targets per model per category. DeepSeek V4 Flash static prompt injection external ASR is 7% (1/14) and internal is 94% (15/16); dynamic prompt injection external is 0% (0/14) and internal is 88% (14/16). GLM 5.3 Flash static external is 64% (9/14) and internal is 100% (16/16). GPT-5.6 Terra dynamic external ASR is 0% (0/14) and internal is 44% (7/16), but its internal ER is 56% (9/16), lower than external ER 71% (10/14).
    • Author interpretation: The authors state that agents often refuse to disclose via email or external links, but treat handing over a passphrase via a shared folder, or writing task details via calendar, as benign processes. Appendix H.7 has trajectories; the authors state that agents accept task-related excuses after questioning the injection.
    • Vectors: Table 5 gives ASR/ER (n=5 per vector), and the paper does not specify the model: XLSX 67%, PDF and TXT 50%, Word 40%, HTML 33%, Markdown 20%; Chat 80%, Calendar and Email 60%. The authors state that file and application ER are not directly comparable, so they compare ASR/ER. Appendix Table 19, on Gemini 3.6 Flash's Category 1, shows application vector ASR 60%–80% and file vector 20%–40%. Appendix Table 18 (n=5 per model, category, vector) shows PY's ASR is not higher than PYC and ELF in any combination. In C5, Opus 5 is PY 20%, PYC 60%, ELF 20%; the main text states that unknown ELF triggers more pre-execution checks, making ELF's ASR lower than PYC.

    Timing Pressure and Hidden Files

    • Timing: Appendix I.1 uses GPT 5.6 Sol and Kimi K3, each with 8 paired instances, 50-step limit, once with a five-minute deadline prompt and timing tool, where the deadline does not force termination. Sol's ASR is 50.0% (4/8) with the timer off and on, task scores 0.677 and 0.656, times 631.1 seconds and 563.7 seconds. Kimi goes from 37.5% (3/8) to 25.0% (2/8), task scores 0.719 and 0.677, times 544.0 seconds and 264.2 seconds.
    • Author note: The authors state these observations are descriptive, each instance and condition run only once, and Sol's times are also affected by API rate limits and retries. The only changed attack outcome for Kimi appears in task-specific replacement (Direct Action).
    • Hidden files: Appendix I.2 changes attack files to dot-prefixed names, 10 runs per model per visibility, 50-round limit. GPT 5.6 Sol's total ER goes from 100.0% (10) to 80.0% (10), total ASR stays 20.0% (10); utility goes from 0.7500 (9) to 0.8750 (10), where 1 visible script run was excluded from utility only due to an API error. Gemini 3.6 Flash's total ER goes from 100% to 90%, total ASR stays 40%, utility from 0.2750 to 0.5750. The ER drop appears only in prompt injection; script ER remains 100%. The authors think hidden files may be less conspicuous, but also state they did not directly measure whether users notice.

    Other Ablations and Analyses

    • Placement (Table 6, n=20): Self-created task-related files versus "file start/keyword vicinity." GPT-5.6 Terra's ASR is 50%, 0%, 0%, and ER is 85%, 20%, 45%; Gemini 3.6 Flash is 75%, 10%, 10% and 95%, 20%, 60%. The latter two baselines use the full prompt and one prior trajectory.
    • Malicious text file (Table 7, n=15, static script ASR): DeepSeek V4 Flash with/without is 0%/0%, Kimi K3 is 27%/7%, GPT-5.6 Terra is 60%/7%.
    • Task keywords (Table 8, n=20): Gemini 3.6 Flash's ASR is 75% versus 60%, ER is 95% versus 80%. DeepSeek V4 Flash's ASR is 25% versus 30%, higher without keywords, ER is 100% in both. The authors state this knowledge generally improves ASR and exposure rate; this row is a counterexample.
    • Dynamic components (Table 23, Gemini 3.6 Flash, 15 runs per setting): Full setting ASR 26.67% (4/15), ER 66.67% (10/15); after removing file corruption, 6.67% (1/15) and 20.00% (3/15). Appendix Figure 8 additionally reports Gemini 3.5 Flash, n=10: full setting ASR 80%, ER 90%, after removing corruption both 10%. Main text Figure 4 is n=15; the authors state removing corruption drops the most, but the provided text does not allow reading the figure's percentages, nor does it specify the model.
    • Pre-specified parameters (Table 22, n=10): With and without this specification, GPT-5.6 Terra's ASR is 20% and ER is 40% in both; Gemini 3.5 Flash's ASR is 50% and ER is 60% in both.
    • Appendix G: Provides attack failure and success trajectories, used to compare whether pre-execution checks are performed, whether checks can stop execution in time, and whether the agent supplies runtime information when the program lacks parameters. Payloads are not repeated here.
  5. What are some points that can be further explored?

    The authors note that three domains and single evaluations limit generalization, with Sonnet 5 achieving 0% ASR in some categories, creating floor effects; review was done by a single annotator labeling 60 cases.

    Limitations and Future Directions Noted by the Authors

    • Domain: Focus on investment banking, law, and management consulting, limiting generalization to other professional domains and general agent tasks (Section 5).
    • Coverage statement: The authors state the benchmark covers these 15 tasks, selected prompt and script attacks, 12 model configurations, and synthetic authorization scenarios (Section 5).
    • Single run: Each model and attack instance combination is evaluated only once, and variation between runs is not measured (Section 5).
    • Floor effect: In some categories, Sonnet 5's ASR is 0% despite non-trivial exposure, which limits distinguishing robust models and assessing residual risk under stronger attacks (Section 5).
    • Review: Agreement with humans is measured on 60 cases and annotated by a single human annotator, introducing further uncertainty (Section 5).
    • Future: The authors state extensions could include more domains, repeated trials, adaptive attackers, broader review validation, and source or information-flow defenses (Section 5).

    Experimental Coverage

    • The main evaluation is the 12 models in Table 3 and Table 4, 180 instances per model, 1 run per instance (Sections 4.2, 5).
    • Base tasks come from 5 each of Investment Banking, Law, and Management Consulting, expanded into C1–C6; C4 and C5 each have two variants, with 15 instances per variant (Section 3.3).
    • Safety determinations rely primarily on 1–2 programmatic rules, with five categories of semantic checks using Gemini 3.6 Flash; exposure first uses string matching, then this model reviews unmatched cases (Section 4.1).
    • Additional experiments are reported for existing-file placement, malicious text files, task keywords, dynamic components, timers (8 paired instances), and hidden files (10 runs per model per visibility) (Section 4.3, Appendix I).
    • The paper does not report the model name used for utility rubric review; Section 4.1 only states that exposure and safety reviews were done by Gemini 3.6 Flash.
  6. Summarize the main content of the paper

    The authors state that completing the task correctly does not preclude unauthorized actions: script-based attacks are effective on most models, with Opus 5 having a total ASR of 8%.

    APEX-Harm evaluates long-horizon agents in shared professional workspaces: while completing legitimate tasks, do they also execute unauthorized actions?

    • Attackers often do not know which files the agent will read. Injecting only at known locations cannot distinguish "never entered context" from "entered but not executed." The authors argue for measuring both exposure and attack success.
    • The benchmark builds on APEX-Agents. 15 investment banking, legal, and consulting tasks are expanded to 180 instances per model, with workspaces containing 115 to 328 files and exposing MCP tools for email, calendar, chat, documents, and code execution.
    • Six attack categories correspond to different assumptions: task keywords, MCP interface knowledge, write access to shared locations, background file monitoring without sudo, and user authorization for scripts or workspace instructions. 24 targets are split into internal/external disclosure and distinguished by whether runtime information is needed.
    • 12 models each run 180 instances, one per instance. Opus 5 and Sonnet 5 have total ASR of 8% and 20% (Table 4). Task-specific script replacement averages 81% and 84%, and attacker-provided universal scripts 73%. Gemini 3.8 Flash averages task score 0.877 while total ASR remains 33%.
    • In Table 21, DeepSeek V4 Flash's static prompt injection internal leak ASR is 94% (15/16), external 7% (1/14). The authors state that models often refuse outbound leaks but treat internal sharing via shared folders or calendar as work steps.
    • The authors state that completing the task correctly is not sufficient evidence of safe behavior, and argue for tracking instruction provenance, checking programs before execution, and verifying permissions when scripts request sensitive inputs or invoke communication tools. They also note that three domains, single runs, Sonnet 5's 0% ASR floor effect, and a 60-case review by a single annotator all limit the current results' interpretation.

Related papers

Read originalarxiv.org