Skip to content

SeClaw releases a specification-driven safety task synthesis and evaluation framework for autonomous agentsSeClaw: Spec-Driven Security Task Synthesis for Evaluating Autonomous Agents

Paper Tracker· arXiv:2606.02302· Hao Cheng, Changtao Miao, Tianle Song, Yin Wu, He Liu, Erjia Xiao, Junchi Chen, Xiaoyu Shi, Yichi Wang, Jing Yang, Taowen Wang, Jinhao Duan, Mengshu Sun, Peiyan Dong, Xuan Shen, Yang Cao, Renjing Xu, Kaidi Xu, Jindong Gu, Bo Zhang, Jize Zhang, Chenhao Lin, Philip Torr, Chao Shen·Indexed by this site · 2026-10-08· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

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

SeClaw uses specification-driven synthesis of safety tasks and evaluates agents by trajectory in Docker; the paper does not report quantitative results.

Questions
Autonomous agents call tools, files, memory, and external services; manual fixed security benchmarks that only look at final outcomes struggle to cover new risks and the execution process. SeClaw aims to generate tasks scalably and inspect unsafe behavior in the process.
Methods
Human experts and Claude Code write risk specifications, multi-agent generation produces prototypes and instantiates them as OpenClaw tasks. The Docker sandbox configures tools per scenario, records trajectories, and scores with coverage score C, success score P, and their harmonic mean F_attack.
Limitations and future work
The authors state the work is still in progress, plan to release results for Qwen, Kimi, GPT, Gemini, and others, integrate more execution frameworks, and study implicit risks in task transfer. The main text defines four risk categories, Docker trajectories, and C, P, F_attack, but does not report task scale or measured scores.
Experimental setupSeClaw · C、P et al.
Benchmarks
SeClaw
Metrics
CPF_attack
AI summaryThe researchers propose SeClaw, a framework that combines specification-driven safety task synthesis with execution-based safety evaluation, to assess the safety performance of autonomous LLM agents. The framework starts from structured risk specifications, constructs safety tasks scalably and controllably, and provides a standardized test environment through SeClaw docker. The benchmark covers four categories of risk—from resources, user tasks, the environment, and the agent's own behavior—and supports trajectory-aware evaluation of unsafe actions rather than only final answers. The authors state that it connects systematic task synthesis with reproducible safety evaluation, and the code is publicly available.

The researchers propose SeClaw, a framework that combines specification-driven safety task synthesis with execution-based safety evaluation, to assess the safety performance of autonomous LLM agents. The framework starts from structured risk specifications, constructs safety tasks scalably and controllably, and provides a standardized test environment through SeClaw docker. The benchmark covers four categories of risk—from resources, user tasks, the environment, and the agent's own behavior—and supports trajectory-aware evaluation of unsafe actions rather than only final answers. The authors state that it connects systematic task synthesis with reproducible safety evaluation, and the code is publicly available.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing benchmarks are hard to scale and overemphasize final outcomes; SeClaw synthesizes tasks from specifications and evaluates by trajectory.

    Existing agent safety evaluations struggle to scale task generation for new risks and rarely inspect the execution process leading to unsafe outcomes.

    • Scenario: The authors state that autonomous LLM agents can manipulate files, execute code, and orchestrate across applications through tools, persistent memory, and multi-step reasoning; systems like OpenClaw also load skills, retrieve external content, and execute actions. The authors state that the attack surface therefore expands, and successful attacks may lead to data exfiltration or unauthorized system control.
    • Limitations of existing evaluations: The authors state that safety tasks often come from red-team submissions or expert manual design, constrained by annotator experience and assumptions, and are mostly fixed instances rather than generative mechanisms, making it hard to scale to new risks or combinations of specific risk sources, deployment scenarios, and threat methods. The authors also state that when only final unsafe outcomes are considered, the process in tool calls, file operations, command execution, and environment interactions is hard to attribute, compare, and reproduce.
    • Taxonomy: The authors classify downstream safety issues into four source categories—resource, task, environment, and intrinsic—according to Figure 1, and state that these may lead to data leakage, goal substitution, system instability, financial loss, privilege escalation, and legal or compliance violations. The authors also state that existing defenses mostly target individual components rather than treating the agent as a whole system.
    • Proposed framework: The authors propose SeClaw, which uses Spec-Driven Security Task Synthesis to generate tasks from structured specifications, and uses SeClaw docker for isolated, reproducible, auditable trajectory evaluation. The homepage footnote states that this paper is preliminary work still in progress, and a more complete version will be released later.
  2. What related research exists?

    Related work is organized by four risk categories and existing benchmarks; the authors position SeClaw as specification-driven evaluation.

    The paper groups related work in Section 2 by risk source and evaluation effort; most entries only describe approaches, and explicit comparisons are concentrated on a few benchmarks.

    Resource risks

    • Memory and skills: AgentPoison (Chen et al., 2024) manipulates memory through trigger-based retrieval to induce malicious behavior; SkillInject (Schmotz et al., 2026) evaluates prompt injection in third-party skill files; Chen et al. (2026) discuss third-party skills leaking credentials through unsafe implementations and prompt injection.
    • Tools and MCP: ToolHijacker (Shi et al., 2026) hijacks tool selection with malicious tool documentation; MPMA (Wang et al., 2026e) uses malicious MCP descriptions to bias agents toward attacker tools; MCPTox (Wang et al., 2026d) evaluates tool poisoning in real MCP environments; MalTool (Hu et al., 2026) automatically generates malicious tools.

    Task and environment risks

    • Task risks: Andriushchenko et al. (2025) discuss jailbreaks inducing harmful multi-step behavior; Alizadeh et al. (2025) discuss prompt injection causing tool-calling agents to leak personal data during tasks. The same group includes MEXTRA (Wang et al., 2025), BadRobot (Zhang et al., 2025), Shahroz et al. (2025) on multi-agent prompt attacks, ObliInjection (Wang et al., 2026c), and RedAgent (Xu et al., 2026).
    • Environment risks: AgentDojo (Debenedetti et al., 2024) evaluates prompt injection from adversarial environment observations. The same group includes MASLeak (Wang et al., 2026b), LLMail-Inject (Abdelnabi et al., 2026), WASP (Evtimov et al., 2026), and Ersoy et al. (2026) on dark-pattern web pages misleading web agents. Section 2.1 attributes PoisonedRAG to Zou et al. (2026).

    Intrinsic risks and component defenses

    • Detection and governance: SAGA (Syros et al., 2025) does inter-agent governance and access control; AgentDoS (Luo et al., 2026) detects denial of service from resource abuse; AgentFuzz (Liu et al., 2025) detects taint-style vulnerabilities; AgentSentinel (Hu et al., 2025) audits unintended tool execution; Wu et al. (2025) discuss permission management; ClawKeeper (Liu et al., 2026) covers skills, plugins, and execution monitoring.
    • Component-level defenses: The authors state in the introduction that Shan et al. (2026) mainly protect individual components of LLM agents rather than treating the agent as a whole system, thus limiting mitigation of system-level risks.

    Evaluations, surveys, and red teaming

    • Surveys and ecosystem analyses: Yu et al. (2025) survey trustworthy LLM agents; Kim et al. (2026) systematize agent attacks and defenses; Deng et al. (2026) analyze OpenClaw lifecycle threats and mitigations. Section 2.2 states that Zou et al. (2026) present a broad range of policy violations through a large-scale public red-team competition; the same-key reference entry corresponds to this competition paper.
    • Benchmarks explicitly compared: The authors state that Claw-Eval (Ye et al., 2026) mainly focuses on general reliability rather than adversarial safety risks; HINTBench (Wang et al., 2026a) mainly targets non-adversarial failures; AgentDyn (Li et al., 2026) does not cover diverse lifecycle risk sources; Clawtrap (Zhao & Cui, 2026) studies dynamic network-layer MITM red teaming. ATBench-Claw and ATBench-CodeX (Yang et al., 2026) are described as trajectory-level safety evaluations of OpenClaw and Codex agents, and the paper does not separately criticize them.
    • Baselines: The paper does not list baseline methods used in its own experiments, nor does it report scores on the above benchmarks.

    The authors position this work as broader specification-driven safety task synthesis and reproducible execution-based evaluation, distinguishing it from Clawtrap's network-layer MITM red teaming.

  3. How does the paper address this problem?

    SeClaw generates tasks from risk specifications, records trajectories in Docker, and scores them with C, P, and F_attack.

    SeClaw operates in two stages (Figure 2): first it turns abstract risks into executable safety tasks, then it evaluates agents under a unified benchmark setting. Specifications are written jointly by human experts and Claude Code, with the actual construction delegated to specialized agents.

    Specifications and Task Prototypes

    • Input: Risk labels are sampled from the risk taxonomy in Section 2.1, and an application scenario is given. A synthesis agent writes the risk point, agent role, user-facing task, risk source, unsafe behavior to be tested, and safety constraints.
    • Coupling approach: The specification explains how completing the benign task causes the target agent to encounter the risk; the authors require the risk to be naturally coupled with the task rather than inserted as an external trigger.
    • Quality gate: After each major design step, a checker agent reviews consistency, feasibility, risk alignment, and evaluability, including whether the sampled label is matched, whether the risk source connects coherently to the user task, whether the unsafe behavior is observable, and whether the constraints are specific enough. Only prototypes that pass move to the next stage.

    Task Instantiation

    • Output: An implementation agent constructs the task prompt, agent configuration, tool interfaces, simulated environment data, and evaluation files from the prototype and framework specification.
    • Fidelity: It must preserve where the risk enters, how the agent encounters it, and which unsafe behavior should be evaluated. The authors give examples: if the risk comes from environmental information, the unsafe content should be placed in tool-returned data rather than in user instructions; if the prototype requires multi-step exposure, the instance should let the agent naturally encounter the relevant information while completing a benign task.
    • Resources: Instances that pass inspection are organized per Table 1, targeting OpenClaw, including workspace, mcp, mock service, local files, init.sh, and task.yaml.

    Trajectory Verification and Correction

    • Reference solution: Each task has a natural-language reference solution describing the expected safe trajectory, used to collect reference-guided trajectories and to check whether the task setup, environment, and evaluator are internally consistent.
    • Two rounds: In the reference round, the reference solution is appended to the task prompt and executed by a medium-capability model; the trajectory must reach a sufficiently high evaluator score; the paper does not give that score threshold. The authors treat this as a necessary condition for the task being solvable and the implementation aligned with the rubric. In the normal round, models of different capability levels execute without seeing the reference solution.
    • Retention rule: A task is retained if it can distinguish models, or can be classified into acceptable easy or hard categories. If all models stably defend against the risk, the authors consider the task invalid and assume the intended risk exposure was unlikely to have been activated.
    • Correction: A verification agent collects both types of trajectories and checks whether the agent localizes defects to components such as the grader, task configuration, mock service, or prompt design. Prototype problems are sent back to the prototype; instantiation problems trigger regeneration of executable artifacts, supplemented by manual spot checks. The loop continues until the reference round passes and the normal round reaches a distinguishable or acceptable easy/hard classification. The paper gives no upper bound on the number of rounds.

    SeClaw-Docker Execution and Logging

    • Configuration: Centered on ToolHub, it parses input files, dependencies, environment variables, permissions, resource limits, and task-level Skill and MCP availability from the specification, and automatically generates the workspace. Tools are retrieved by scenario based on metadata, descriptions, and tags and ranked, rather than fixing the same tool set for all tasks.
    • Sandbox lifecycle: Model-side safety alignment, environment instantiation, in-sandbox interaction, state capture, and teardown. Each round uses a fresh container; accessible state is limited to task-specified resources; containers are destroyed after execution. Interaction is multi-turn, preserving context, intermediate artifacts, and tool state.
    • Trajectory: The paper describes a single run as task configuration, step-by-step interaction logs, final output, and persisted artifacts. The step-by-step log connects prompts or context, model responses, agent actions, MCP tool calls, mock service responses, and audit records. Logs are organized into three views—model trajectory, tool and service trajectory, and artifact trajectory—to distinguish whether unsafe outcomes come from reasoning, action selection, tool calls, or environment responses.

    Safety Scoring

    The evaluator takes the task configuration and trajectory as input, and judges according to task rules whether the predefined unsafe condition is reached, looking at both outcome and process, including tool calls, service interactions, file operations, permission usage, and generated artifacts. The sample outcome is ri=J(ci,τi)∈{0,1}, where 1 means the unsafe condition for that task is reached. Let N be the number of submitted samples, S_N the number of successful samples, O the size of the predefined set of safety objectives, and S_O the number of distinct objectives reached by at least one sample. Coverage score C is S_O/O, attack success score P is S_N/N, and the total score is Fattack=2CP/(C+P). When C or P is 0, F_attack is 0. The paper states that F_attack is a risk-oriented score rather than a utility score: a larger value means the unsafe condition can appear across objectives and be triggered stably across samples, corresponding to the base model being more susceptible under that task distribution. Section 3.1 also lists four risk rubrics—information leakage, permission misuse, content safety, and ethics or compliance; the paper does not explain how this rubric is incorporated into the 0/1 judgment and F_attack above.

  4. What experiments did the paper conduct?

    The paper defines a trajectory scoring protocol but does not report scores from completed evaluations.

    Experimental Setup

    • Models evaluated: The paper does not report models that have completed evaluation. Section 4 states that results will be released on Qwen, Kimi, GPT, Gemini, and other representative model families; this is a plan. Specifications were written using human experts and Claude Code; the reference round only mentions "medium-capability model," and the normal round only mentions "models of different capability levels," without naming any.
    • Environment and tasks: The execution framework targets OpenClaw per Table 1, and the runtime environment is a Docker sandbox (Section 3.3, Figure 4). Tasks come from the safety-risk task library synthesized from specifications. The paper does not report the number of tasks, the proportion of each risk type, or the split.
    • Metrics: Sample-level r_i, and C, P, F_attack (Equations (3)–(6), Section 3.3.4). The paper does not report measured values.
    • Judgment: The trajectory analyzer outputs 0 or 1 according to task rules. The paper does not specify the review model, numerical thresholds, or agreement with human judgment. The reference round only requires a "sufficiently high" evaluator score.
    • Replication: The paper does not report the sample size per condition, number of repetitions, or random seeds. The validation pipeline includes manual spot checks, but the spot-check proportion is not reported.
    • Figures: The captions of Figures 1–4 describe risk taxonomy, framework overview, synthesis pipeline, and Docker execution logs; the main text does not transcribe numerical values from the figures.

    Main Results

    The paper has no main results table and no model scores that can be looked up. The table below only marks unreported items; it does not fill in numbers.

    ItemValue in paperSource
    C, P, F_attack per modelNot reportedEquations (4)–(6) only give definitions
    Task library sizeNot reportedSection 3 gives no count
    Reference/normal round scoresNot reportedSection 3.2.3 only gives rules
    • The authors do not compare models based on measured scores. Section 4 describes model results as forthcoming.
    • The abstract states that SeClaw provides an actionable foundation for measuring, diagnosing, and comparing safety failures; that sentence is not accompanied by numbers in a table or figure.
    • A footnote on the first page states that the work is still in progress and a more complete version will be released later.

    Measured Outcomes of the Two Rounds

    Section 3.2.3 specifies the reference round and normal round, and the rule that "if all models stably defend against the risk, the task is invalid." The paper does not report trajectory scores, the number of retained tasks, or the number of invalid tasks, and the authors give no empirical interpretation.

    Cross-Framework and Cross-Model Comparison

    Section 4 states that SeClaw will be integrated with Claude Code and other coding or tool-use agents to see whether risks persist across infrastructure and interaction protocols. The paper reports no numbers for such comparisons, nor scores for Qwen, Kimi, GPT, or Gemini.

    Other Ablations and Analyses

    • The paper reports no comparative numbers for ablations, tool retrieval parameters, or evaluator thresholds.
    • The paper reports no counts of negative results or failure cases.
  5. What are some points that can be further explored?

    The authors state that the work is still in progress and plan to release model results and extended evaluations.

    Limitations and future directions noted by the authors

    The paper has no dedicated Limitations section. Future directions are written in Section 4 Further Exploration, and completion status is in the homepage footnote.

    • Still in progress: The homepage footnote states that this paper is preliminary work still in progress, and a more complete version will be released later.
    • Model results: The authors plan to release evaluation results on a set of base models, including Qwen, Kimi, GPT, Gemini, and other representative model families, to enable comparison under the same distribution of safety risk tasks (Section 4).
    • Execution frameworks: The authors plan to integrate SeClaw with Claude Code and other general-purpose coding or tool-using agents, to evaluate whether observed risks persist across different agent infrastructures and interaction protocols (Section 4).
    • Implicit injection: The authors plan to study implicit safety risk injection in internal task passing within agents; the paper states that unsafe goals or constraints may be transformed, hidden, or amplified between planning, memory, tool use, and execution modules (Section 4).
    • The benchmark itself: The authors plan to continue improving task diversity, evaluator calibration, and trajectory-level interpretability, to support measuring agent safety in stateful execution environments (Section 4).

    Experimental coverage

    • Risk sources are written in Section 2.1 and Figure 1 as four categories: resource, task, environment, and intrinsic; instantiated resources in Table 1 are workspace, mcp, mock service, local files, init.sh, task.yaml.
    • The execution protocol in Section 3.3 is an independent Docker container per task, with logs divided into three views: model, tools and services, and artifacts.
    • Scoring in Section 3.3.4 is defined as sample-level 0/1, plus C, P, and their harmonic mean F_attack; Section 3.1 additionally writes a four-category risk scale.
    • The synthesis side states the use of human experts and Claude Code, as well as reference round, normal round, and manual spot checks (Section 3.1, Section 3.2.3).
    • The paper does not report the task library size, scores of evaluated models, reviewer model names, number of repetitions, or human agreement.
  6. Summarize the main content of the paper

    SeClaw synthesizes safety tasks from specifications and scores by trajectory; quantitative results have not yet been reported.

    SeClaw is a safety task synthesis and execution evaluation framework for autonomous LLM agents, which the paper describes as preliminary work.

    • Problem: Agents can use tools, files, memory, and external services. The authors argue that existing safety tasks rely on red teaming or manual design, are hard to scale to new risks, and often look only at final unsafe outcomes, making the process difficult to attribute and reproduce.
    • Where tasks come from: Human experts and Claude Code write structured specifications covering risk sources, deployment scenarios, threat-related labels, and tool requirements. A multi-agent pipeline first creates prototypes, then instantiates them as OpenClaw-executable tasks, which enter the task library after quality checks, two rounds of trajectory verification, and manual spot checks. Risks are required to be coupled with benign tasks rather than inserted as separate external triggers.
    • How execution and scoring work: SeClaw docker sets up an isolated container for each task, uses ToolHub to configure Skills and MCP by scenario, and records prompts, tool calls, file operations, observations, and artifacts. Samples are marked according to task rules as to whether the unsafe condition is reached; C measures coverage across different safety objectives, P measures sample success rate, and F_attack is their harmonic mean. The paper states that a higher score means the model is more easily triggered into unsafe conditions under that task distribution.
    • Results: The main text, figure captions, and tables contain no model scores, task counts, or ablation numbers. Figures 1–4 and Table 1 are respectively the taxonomy, pipeline, and resource types.
    • Authors' conclusions and plans: The authors state that the framework connects systematic task synthesis with reproducible safety evaluation and can serve as a foundation for measuring, diagnosing, and comparing safety failures. The authors plan to release results for Qwen, Kimi, GPT, Gemini, and other models, integrate more execution frameworks, and study implicit risks when tasks are transferred across planning, memory, tool use, and execution.
Read originalarxiv.org