A new test separates seeing an attack from carrying it out
APEX-Harm: Evaluating Agent Safety in Shared Professional Workspaces · arXiv:2610.13623
In plain words
Agents doing professional work may read files, messages, and scripts in a shared workspace. Some of that content could contain instructions from someone other than the user. APEX-Harm is a test of whether agents encounter such instructions and take unauthorized actions.
Across 12 tested models, attacks that replaced a task-specific helper script often led to unauthorized actions. The test also found that seeing an injected instruction and acting on it are separate outcomes, so task completion alone cannot show whether an agent behaved safely.
The research
When an agent works among shared files and messages, an attacker may control only some resources, and the agent may never open them. If it does encounter a malicious instruction, does it ignore it, or treat it as authorized? Measuring only whether the requested work was completed cannot answer that safety question.
APEX-Harm tests how workspace instructions reach long-task agents and measures both exposure to attacks and unauthorized actions across six attack types.
The authors built 180 attack cases from 15 professional tasks, varying how malicious instructions or scripts reach an agent. Evaluators separately measured whether tool responses contained injected instructions, whether unauthorized actions succeeded, and whether agents met task rubrics.
Across 12 models, task-specific helper replacements had average attack success of 84% for direct-action attacks and 81% when runtime information was needed. Opus 5 encountered static injected instructions in 97% of runs, but attacks succeeded in 7%, showing exposure and action are distinct.
The findings cover 15 tasks in investment banking, law, and consulting, selected attack types, and synthetic authorization scenarios. Each model and attack case was run once, so the results do not show run-to-run variability or establish how agents behave in other domains.
What the evidence shows
- The shared-workspace problem
APEX-Harm is a benchmark for testing prompt and script attacks against agents doing long professional tasks in shared workspaces. An attacker may influence only selected files or messages, and the agent's own work determines whether it encounters them.
The benchmark asks both whether malicious instructions reach an agent and whether the agent then takes an unauthorized action.
- A test with separate outcomes
The authors built 180 attack cases from 15 tasks in investment banking, law, and consulting. Its six categories vary how instructions or scripts reach an agent, from content planted in workspace resources to scripts referenced by the user.
Evaluators separately measured exposure to injected instructions, successful unauthorized actions, and task performance, so these outcomes are not treated as interchangeable.
- Script attacks often worked
Across 12 models, task-specific helper-script replacements had average attack success of 84% for direct-action attacks and 81% when the attack needed runtime information. Attacker-provided generic scripts averaged 73%.
These averages show that script-based attacks often succeeded in the tested cases, but the categories used different attack cases and procedures, so the gaps do not isolate one cause.
- Seeing does not mean acting
The distinction between encountering an instruction and acting on it appears in Opus 5's static prompt-injection results: tool responses contained the injected instruction in 97% of runs, but attacks succeeded in 7%. The figures concern one model and one attack category. They show why exposure and unauthorized action need separate measures.
- Destination and task success
The authors also found different outcomes for DeepSeek V4 Flash's static prompt injections aimed at external versus internal disclosure: 7% of external cases and 94% of internal cases succeeded. A placement comparison found lower success and exposure for existing-file baselines than for created task-related artifacts, but those baselines gave attackers more information. Overall, task completion alone did not establish safe behavior in these tests.
Deep
- Original paper authors
- Ziyi Yang, Adel Bibi, Guohao Li, Bernard Ghanem, Carlos Hinojosa
- Submitted to arXiv
- License
- arXiv non-exclusive