Skip to content

ClawSentry: A Progressive Multi-Layer Security Monitoring Gateway for Autonomous LLM AgentsClawSentry: A Progressive Multi-Tier Security Monitor for Safeguarding Autonomous LLM Agents

Paper Tracker· arXiv:2608.21101· Kai Wang, Zeming Wei, BiaoJie Zeng, Chang Jin, An Wang, Xiaokun Luan, Zhixiao Lin, Jingjing Qu, Xia Hu, Xingcheng Xu·Indexed by this site · 2026-10-03· Originally publishedDefenses

Quick read

Defenses

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

ClawSentry reduces ASR from 33.5–49.7% to 9.09–15.03% on SkillsSafety across five Work Agents, with a combined clean-skill TSR of 98.7%.

Threat modelAttackers publish malicious third-party skill packages (supply chain) or embed hidden instructions in task context (contextual injection). Protect host filesystem, credentials and keys, network egress, and command execution. ClawSentry actively mediates loci A–C and cross-attempt migration; locus D is observed non-retroactively. Direct jailbreaks, tool-free base-model misalignment, compromised host OS, model API manipulation, and weight poisoning are out of scope.

Questions
Agents can execute code, read local files, and call tools. Malicious third-party skills or context injection can enter at four points: admission, call intent, execution effect, and post-hoc consequences. Rejected targets also retry with a changed surface. Existing defenses mostly cover only a single boundary or evaluate each call independently.
Methods
ClawSentry attaches the same policy to four frameworks via the Agent Harness Protocol. FSPR performs a deterministic evidence baseline plus read-only package-level review before first use; at runtime, L1–L3 escalate progressively by effect envelope, session-level anti-bypass records rejected effects, and the post-hoc layer asynchronously returns evidence without retracting completed actions.
Experiments and results
The authors report: on SkillInject, Codex/GPT-5.4's contextual ASR drops from 39.55% to 2.61%, and contextual TSR from 83.78% to 83.05%. Across five Work Agents, SkillsSafety ASR drops from 33.5–49.7% to 9.09–15.03%, with total clean skill TSR at 98.7%. Most of the TSR drop on poisoned tasks occurs before defense intervention.
Limitations and future work
The authors state that package-level and runtime gating remain deployment-time controls, with the root cause at distribution; no interactive human review was done, Defer is always treated as Block, and the reported protected TSR is a lower bound for attended operation. Direct jailbreaks, tool-free misalignment, compromised OS, API manipulation, and weight poisoning are out of scope. The main experiment reviewer is gemini-3.5-flash; the paper does not report latency, tokens, or price.
Experimental setupCodex/GPT-5.4、Codex/GPT-5.5 et al. · SkillInject、SkillsSafety et al. · ASR、TSR et al.
Evaluated models
Codex/GPT-5.4Codex/GPT-5.5Claude Code/GLM-5.1Claude Code/MiniMax-2.7Kimi CLI/Kimi-K2.5Claude Code/MiniMax-M3
Benchmarks
SkillInjectSkillsSafetyclean-utility suite101-package mixed corpus
Metrics
ASRTSRtoxic recallclean false-block rateGateway review volume
AI summaryThe researchers propose ClawSentry, an open-source, framework-agnostic Agent runtime security supervision gateway, to intercept agent behavior hijacked by malicious third-party skills. The method divides agent risk into four stages: skill admission, invocation intent, execution effect, and post-hoc consequence. Before execution, First-use Skill Package Review (FSPR) reviews skill packages under a deterministic evidence lower bound, escalating unresolved cases to bounded read-only agent review. At runtime, a three-layer progressive decision engine uses deterministic L1, rule-anchored L2 semantic review, and read-only L3 forensic agent, spending context review only on residual ambiguity, and uses a session-level anti-bypass mechanism to identify tool switching and rewritten retries. The post-hoc path sends high-severity evidence non-retroactively to subsequent review. Through the Agent Harness Protocol (AHP) abstraction, the same policy can be applied to Codex, Claude Code, Kimi CLI, and Gemini CLI without modifying the agent internals.

The researchers propose ClawSentry, an open-source, framework-agnostic Agent runtime security supervision gateway, to intercept agent behavior hijacked by malicious third-party skills. The method divides agent risk into four stages: skill admission, invocation intent, execution effect, and post-hoc consequence. Before execution, First-use Skill Package Review (FSPR) reviews skill packages under a deterministic evidence lower bound, escalating unresolved cases to bounded read-only agent review. At runtime, a three-layer progressive decision engine uses deterministic L1, rule-anchored L2 semantic review, and read-only L3 forensic agent, spending context review only on residual ambiguity, and uses a session-level anti-bypass mechanism to identify tool switching and rewritten retries. The post-hoc path sends high-severity evidence non-retroactively to subsequent review. Through the Agent Harness Protocol (AHP) abstraction, the same policy can be applied to Codex, Claude Code, Kimi CLI, and Gemini CLI without modifying the agent internals.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Agent risk enters at four points along the lifecycle and can be retried with changed surfaces; single-point defenses cannot cover it.

    After an agent is hijacked by a malicious skill or hidden instructions, risk enters along multiple boundaries of the control loop and reappears with a changed surface after rejection; existing defenses usually guard only one lifecycle boundary or a single call.

    • Scenario and importance: The authors state that LLM agents have moved from conversation to executing code, reading local files, and orchestrating external tools; once an agent gains local filesystem, network, and command-execution permissions, an agent hijacked by a malicious third-party skill can cause data exfiltration, privilege escalation, or cascading compromise, with threats beyond the base model itself.
    • Inadequacy of existing methods: The authors state that most existing defenses act on a single locus or evaluate each call independently. Beyond covering one boundary, a single-boundary defense, even when it sees retries with rewritten or tool-changed surfaces, cannot know that the current call repeats an already-rejected target. Therefore, both coverage across observable lifecycle boundaries and state across attempts are needed.
    • Core observation: The authors believe agentic risk is progressive and can enter at four loci—skill admission, call-time intent, execution-time effect, and post-hoc consequences; rejected dangerous targets also reappear across surface forms, tools, or turns.
    • Threat model:
      • Attacker: Publishes malicious third-party skill packages for agents to install and call (supply chain), or embeds hidden instructions in the task context the agent processes (context injection). Evaluations distinguish obvious injection (explicit malicious intent) and contextual injection (malicious instructions hidden in legitimate tasks).
      • Assets: Host filesystem, credentials and keys, network egress, command execution.
      • Defense scope: ClawSentry actively mediates loci A–C and cross-attempt migration; locus D is observed non-retroactively because effects have already occurred, and mainstream harnesses have no hook to retract tool-returned results.
      • Out of scope: Threats that never cross an observable skill or runtime mediation boundary—direct user-to-model jailbreaks, base-model misalignment without tool-mediated effects, compromised host OS, model API manipulation, weight poisoning.
    • Proposed system: The authors propose the open-source, framework-agnostic security oversight gateway ClawSentry, which, via the Agent Harness Protocol (AHP), applies the same policy to Codex, Claude Code, Kimi CLI, and Gemini CLI without modifying agent internals. Before first use, First-use Skill Package Review (FSPR) performs package-level evidence auditing; at runtime, L1–L3 progressive decisions are made with session-level anti-bypass; the post-hoc path feeds high-severity evidence non-retroactively into subsequent review.
  2. What related research exists?

    Related work is grouped by agents, injection risk, and single-point defenses; Table 1 compares coverage axes.

    Related work is divided into three groups: agent systems, security risks, and agent defenses; the authors use Table 1 to align representative defenses by site coverage.

    Autonomous LLM Agents

    • ReAct (Yao et al., 2023), AutoGPT (Significant Gravitas, 2023), OpenHands (Wang et al., 2025b): Agents plan and act through iterative reasoning, often communicating via MCP (Anthropic, 2024). The authors state that granting file system, API, and terminal access expands the attack surface.
    • Protocol fragmentation (Kong et al., 2025; Yan et al., 2026): Existing surveys document heterogeneous communication mechanisms and fragmented protocols in LLM-based agent systems. The authors accordingly define AHP on a unified CanonicalEvent.

    Security Risks

    • Indirect prompt injection (Greshake et al., 2023; Zhan et al., 2024): Malicious instructions hidden in documents or web pages hijack execution, potentially leading to unauthorized shell, privilege escalation, or data exfiltration (Lupinacci et al., 2026). The authors state these exploits are semantic rather than signature-based, and traditional detection is largely ineffective (Fang et al., 2024).
    • Capability-equivalent retries (Yan et al., 2025) and post-hoc consequences (Naik et al., 2026): After being blocked, agents can rewrite parameters, split goals across turns, or switch tools; tool return content itself can also carry indirect instructions. Obfuscated payloads at invocation time are in Liu et al., 2025.
    • Offensive-side capabilities: The authors cite Anthropic (2025a, 2025b, 2026a, 2026b), Wang et al. (2026)'s CyberGym, Microsoft Security (2026), and OpenAI (2026a) to show that the ability to read code and judge intent is shared between offense and defense and has appeared in public threat reports. The authors place ClawSentry at the runtime mediation layer, reviewing the agent's next action.

    Agent Defenses

    • Conversation-level filtering: Llama Guard (Inan et al., 2023), Zeng et al. (2024), Ghosh et al. (2024), NeMo Guardrails (Rebedea et al., 2023) use auxiliary models or rules to filter malicious content in human–machine dialogue. Spotlighting (Hines et al., 2024), Rebuff (Protect AI, 2023), and Yi et al. (2025) target direct and indirect prompt injection. The authors state that once agents have autonomous execution, prompt-level filtering is insufficient.
    • System-level architectures: Execution isolation IsolateGPT (Wu et al., 2025), dynamic rule monitoring DRIFT (Li et al., 2025), secure design patterns (Beurer-Kellner et al., 2025), and limiting tool permissions inspired by RBAC (Sandhu et al., 1996). Sandbox evaluation environments include ToolEmu (Ruan et al., 2024) and AgentDojo (Debenedetti et al., 2024). AgentSpec (Wang et al., 2025a) and the OWASP GenAI Security Project (2025) are used by the authors to point out gaps left by single-stage defenses.
    • Coverage comparison in Table 1: LlamaGuard, Spotlighting, and Rebuff have no skill admission, no anti-bypass, and no end-to-end agent benchmarks; IsolateGPT covers only C and is not framework-agnostic; DRIFT and AgentSpec cover B/C and have agent benchmarks, but lack A, lack anti-bypass, and are not framework-agnostic. The authors state that among the surveyed systems, ClawSentry is the only one reporting support across A, progressive B/C, cross-attempt anti-bypass, framework-agnosticism, and end-to-end benchmarks, and note this is not an exhaustive comparison of the entire field.

    Baselines and Benchmarks

    • Baseline methods: Unprotected raw Work Agent (raw), and in controlled comparisons AgentSpec (Wang et al., 2025a), Progent (Shi et al., 2025), SkillGuard (Zeng et al., 2026), A.S.E (Chen et al., 2026). FSPR responses also compare hard block, warning, and runtime feedback.
    • Benchmarks/datasets: SkillInject (Schmotz et al., 2026), SkillsSafety (Jin et al., 2026, benign carriers from SkillsBench, Li et al., 2026).

    The authors position this paper as a selective review gateway that simultaneously satisfies cross-boundary coverage and cross-attempt state, and is independent of the underlying framework: placing a capable reviewer in a read-only external supervision position rather than making it the executor.

  3. How does the paper address this problem?

    AHP unifies events, FSPR guards admission, and L1–L3 adjudicate progressively by effect while recording rejected effects.

    ClawSentry aligns oversight with the agent lifecycle: deterministic hard evidence is monotonically preserved, analyzers only provide evidence, and the gateway retains final policy authority. All mechanisms consume AHP's canonical events and carry the gateway-held package, workspace, and trust context.

    Problem Setting and AHP

    • Four loci plus one cross-cutting property: A is skill admission/supply chain; B is intent at call time; C is effect at execution time; D is post-hoc consequences. The cross-cutting property is capability-equivalent follow-up/bypass migration: after rejection, capability and target are preserved while parameters are rewritten, split across turns, or tools are changed.
    • CanonicalEvent: Adapters normalize each framework's pre-action hooks, tool executions, and post-action results into events with SHA-256 event_id, session_id, tool_name, and a generic payload; framework-specific state is placed in isolated framework_meta. Adding a new framework only requires a lightweight adapter.
    • Dual channels: Pre-hoc events at loci A–C are sent synchronously and blocking over a local Unix Domain Socket until the gateway returns Allow, Block, or Defer. Locus D is sent asynchronously via HTTP Webhook, without blocking or retracting effects that have already occurred.

    FSPR: Package Review Before First Use

    • Deterministic baseline: Scanners build a bounded inventory of declarations, files, entry points, references, and observed capabilities; rules turn concrete inconsistencies and suspicious structures into an evidence baseline. High-severity findings cannot be erased by subsequent model responses, and short-circuit when admission risk is already established. Evidence axes include identity integrity, capability-inventory alignment, data boundaries and execution surface, instruction channel integrity, state-change scope, re-entry and persistent activation, and review evidence quality.
    • Bounded read-only agent review: Pending packages enter an agentic-readonly reviewer that can list, read, and search within the skill root; the toolset provides no write, execute, install, or network actions. The gateway merges its evidence records with the deterministic baseline: rules have authority over known invariants, while agent review covers relationships that single-file patterns cannot express.
    • Caching and adjudication: Cache identity comes from package content and review policy version; package or policy changes trigger re-adjudication. In evaluation configuration, policy-allowed suspicious and inconsistent adjudications block admission. FSPR judges whole-package evidence before use, separate from runtime L3.

    Effect-Unified L1–L3

    • Effect envelope and six-dimensional snapshot: Each event maps to an effect envelope containing capability, target, scope, artifact role, and evidence source. The six dimensions are tool danger D1, target sensitivity D2, command-pattern danger D3, session accumulation D4, agent trust D5, and injection evidence D6. Table 3 explains that these dimensions are not the same set as the benchmarks' RD1–RD6.
    • Routing score: The composite score is Bt = w123max(D1,D2,D3)+w4 D4+w5 D5, St = Bt(1+λ D6/3). The maximum avoids treating multiple surface descriptions of the same effect as independent evidence; the injection multiplier strengthens the steering signal when the underlying action already has capability. This score is the routing and audit basis, not the adjudication itself. Weights and thresholds are in Appendix A; the main text gives no specific values.
    • Three-level funnel: L1 is a deterministic policy engine with no provider calls, uses a sliding window to expire stale session risk, and closes clear cases with effect-aware short-circuiting; equivalents of disabled capabilities, unresolved wrappers, and generated future execution paths go the conservative route. L2 combines versioned attack-pattern rules with a single-turn LLM; the built-in library has 25 patterns from the top five categories ASI01–ASI05 of OWASP Top 10 for Agentic Applications; operators can replace YAML without changing the decision contract. L2 can raise L1 risk; lowering it requires a separate validation clearance binding the current event and effect, and hard findings always remain valid. L3 is invoked when explicitly routed for deeper review, or when L2 is undecided and policy matching triggers; the multi-turn analyzer views the bounded workspace, trajectory, and session risk through read-only tools, and the YAML review skill's tool allowlist intersects with the global read-only whitelist. When semantic analysis degrades, established L1 decisions remain valid; actions requiring contextual review must not be released without a valid effect-bound clearance.

    Session Trust, Anti-Bypass, and Post-Hoc Feedback

    • Operator-granted session scope: An optional session scope profile records the permissions the task actually needs; authorization only takes effect through operator-level channels, and attacker-influenced text cannot expand permissions on its own. Scope evaluation is monotonic: it can only tighten decisions to Defer or Block, and cannot rewrite FSPR, subsequent guards, or existing adjudications at any level.
    • Capability-equivalent follow-up guard: Before normal level selection, a compact record of rejected effects within the session is queried. Exact duplicates and normalized destructive effects are handled deterministically; uncertain cross-tool equivalences are escalated to L3. Residual candidates are judged by a sanitized LLM recognizer that only determines whether the current action is a follow-up to a previously high-risk Block or Defer; a positive match only activates the gateway-configured L3 route, and the recognizer cannot choose execution outcomes.
    • Post-hoc consequences: Asynchronously analyze indirect instructions, key exposure, exfiltration, and obfuscation in tool outputs. Completed events remain Allow. Qualified findings are broadcast as evidence, and operators can stop the task before the agent continues exploiting; if analysis completes first, high-severity results can also raise the review intensity of subsequent actions. Appendix A explains the rules, weights, thresholds, and review skill inventory; the main text does not elaborate item by item.
  4. What experiments did the paper conduct?

    Across five Work Agents, ASR drops and clean TSR is maintained; poisoned TSR loss mostly occurs before defense.

    Experimental Setup

    • Work Agent: End-to-end uses Codex/GPT-5.4, Codex/GPT-5.5, Claude Code/GLM-5.1, Claude Code/MiniMax-2.7, Kimi CLI/Kimi-K2.5. Controlled studies use Claude Code/MiniMax-M3, which is not the same release as the main experiment's MiniMax-2.7; numbers are compared only within their own blocks.
    • Reviewer: Unless otherwise noted, the main experiment's safety reviewer is gemini-3.5-flash, which also serves as Gateway L2/L3 and FSPR. Replacement experiments additionally use multiple providers; backends named in the main text include minimax-m2.7 and kimi-k2.5.
    • Benchmark scale: SkillInject has 180 obvious and 139 contextual items. SkillsSafety has 155 cases across six risk domains RD1–RD6, with benign carriers from SkillsBench. The clean utility suite is 58 clean tasks with clean skills. The mixed corpus has 101 packages: 48 poisoned SkillsSafety, 48 clean SkillsBench, and 5 clean SkillInject regression packages. Each controlled study uses a fixed-seed random 60-case SkillsSafety subset.
    • Metrics and judgment: Lower ASR is better; TSR is benign user task completion, higher is better, counting only full verifier passes. SkillsSafety uses a deterministic verifier to judge unsafe behavior and scores benign completion with that case's verifier test. SkillInject's attack success and task completion are both scored by its own LLM judge. The paper does not name that judge's model. Unattended benchmarks deterministically treat Defer as Block.
    • Trust statement: Protected SkillsSafety sessions are issued operator-granted artifact-path declarations per case by the harness via the §6.3 task-run channel, covering only task-data reads and task-output writes.
    • Repetition: Runs with infrastructure failures are rerun when possible, otherwise excluded from all denominators. The paper does not report independent repetitions.

    Main Results

    SkillInject (Table 4, %). CS is ClawSentry.

    Swipe horizontally to read the table

    Work AgentObv. ASR rawObv. ASR CSCtx. ASR rawCtx. ASR CSCtx. TSR rawCtx. TSR CS
    Codex/GPT-5.418.754.4739.552.6183.7883.05
    Codex/GPT-5.529.384.0939.868.4087.0184.75
    CC/GLM-5.131.104.4953.9114.2981.9476.27
    CC/MiniMax-2.735.266.0237.6010.8583.3369.49
    Kimi CLI/K2.534.665.6327.746.8279.2264.41

    SkillsSafety aggregate (Table 5, %). Raw is the benchmark's published baseline; both TSR columns are measured with poisoned packages present.

    Swipe horizontally to read the table

    Work AgentASR rawASR +CSTSR rawTSR +CS
    Codex/GPT-5.444.512.5038.725.66
    Codex/GPT-5.541.815.0342.630.07
    CC/GLM-5.133.512.4037.423.14
    CC/MiniMax-2.734.29.0920.615.58
    Kimi CLI/K2.549.710.2031.016.33
    • Authors' interpretation of SkillInject: After protection, both explicit and covert attacks are suppressed in every configuration; obvious ASR drops to 4.09–6.02% (authors state 4.2–7.2×), contextual ASR drops to 2.61–14.29% (authors state 3.5–15.2×). Legitimate contextual tasks are preserved on Codex: protected TSR differs from raw by no more than 0.73 and 2.26 percentage points. Claude Code and Kimi show larger contextual TSR drops; in Table 4, MiniMax-2.7 goes from 83.33% to 69.49%, and K2.5 from 79.22% to 64.41%.
    • Authors' interpretation of SkillsSafety: ASR drops for every Work Agent, from 33.5–49.7% to 9.09–15.03%, which the authors state is 2.7–4.9× with an absolute improvement of 21.1–39.5 percentage points. Breadth comes from the same review configuration transferring across Work Agents. Protected TSR drops by 5.0–14.7 percentage points.
    • Figure 6(b): The four Codex/Claude Code configurations have raw clean-task TSR of 100%, protected 98.2–100%, combined 98.7%. Figure 2 shows unprotected per-domain ASR; for example, Kimi CLI/K2.5 has RD1 76.0, RD2 72.0, RD3 26.9, aggregate 49.7; the authors state RD1 and RD2 are high in every family, while RD3 is notably lower.

    TSR Decomposition for Poisoned Cases

    • What was measured: 60 cases of Codex/GPT-5.4 covering RD1–RD6. A is no skill, B is a same-type clean SkillsBench skill, C is a poisoned package with ClawSentry off, D is the same package with hard blocking. A–C do not include ClawSentry.
    • Results: In Figure 7, fixed-denominator TSR is A 43.3% (26/60), B 50.0% (30/60), C 31.7% (19/60), D 25.0% (15/60). Clean skill is 6.7 percentage points higher than no skill; poisoning before defense intervention is 18.3 percentage points lower than clean skill and 11.7 percentage points lower than no skill; from C to D there is another 6.7 percentage point drop.
    • Authors' interpretation: Of the 25.0 percentage point distance from the clean reference to the protected point, roughly three-quarters occurs before the gateway makes any decision and is already reflected in Table 5's raw column. The remaining 6.7 percentage points are attributed to over-blocking, the direct cost of unattended Defer-as-Block; D is a lower bound for the attended operating point. The authors believe benign tasks and attack paths live in the same artifact, and a rejection action truncates the current trajectory.

    FSPR and Controlled Comparisons

    • Package discrimination (§7.5, Figure 9): Two backends different from the main reviewer are used on 101 packages. minimax-m2.7 identifies all 48 poisoned packages and accepts 49 of 53 clean packages; kimi-k2.5 identifies 43 of 48 and accepts 50 of 53. The authors state both have clean over-blocking below 8%, and give a residual clean false-block rate of 5.7–7.5%, which is not a direct measurement under the main review configuration.
    • FSPR response (corresponding block of Table 6): Under fixed Work Agent, 60 cases, and reviewer, hard block reduces ASR by 16.09 percentage points relative to warning, with TSR differing by 2.41 percentage points, and outperforms runtime feedback on both axes. The authors state the gap is structural: soft responses still let the package into execution.
    • Reviewer replacement (§7.6, Table 2): Replacing five providers on the same gateway execution chain gives ASR of 11.11–17.24%. The authors state protection mainly resides in the gateway-owned execution chain rather than any single review model.

    Other Ablations and Analyses

    • Selective review volume (§7.7, Appendix F): Across five reviewer replacements and 300 provider–case executions, L1 traffic reaching L2 is 13.8%, and only L3 is 1.37%; decomposed, L2/L1 is 12.5% and L3/L2 is 11.0%, with per-reviewer L2/L1 between 11.0–14.2% and L3/L1 between 1.0–1.7%. FSPR performs 2.30 first-time package reviews per provider–case, not counted in Gateway ratios. Anti-bypass triggers 483 times, counted separately by session state. The paper does not report per-request latency, tokens, or price.
    • Baseline comparisons: The controlled block also compares AgentSpec, Progent, SkillGuard, and A.S.E; the checkable numbers given in the main text are hard block's 16.09 ASR percentage points and 2.41 TSR percentage points relative to warning. The other baselines' per-cell numbers have unreliable column alignment in the provided text and are not transcribed here.
    • Unattended convention (Appendix G): All reported ASR and TSR use Defer→Block; unobserved human decisions are not counted.
    • Figure 8: Plots full task pass counts for A–D by domain, 10 cases per domain; pass counts differ by domain, e.g., one domain has 9 for no skill and 8 for clean.
    • Negative/exceptions: After protection, SkillsSafety TSR still drops 5.0–14.7 percentage points; on SkillInject, non-Codex contextual TSR drops more than Codex. Kimi-K2.5's FSPR misses 5 of 48 poisoned packages. The authors attribute most TSR loss in poisoned sessions to the poisoning itself rather than the gateway.
  5. What are some points that can be further explored?

    The authors believe the root cause is at distribution time, with gating as a deployment control; the reported TSR is an unattended lower bound.

    Limitations and Future Directions Noted by the Authors

    • Deployment-time control is not root cause (§7.4, §8): The authors state that package-level and runtime gating remain deployment-time controls; security and utility must be preserved together before the task starts, at admission, and ultimately at distribution. Once a poisoned package is admitted, the achievable reference is C=31.7% rather than the clean skill's 50.0%, and further points can only be recovered by giving the attack the freedom it exploits.
    • Unattended Defer mapping (Appendix G, §7.4): The benchmark has no operator, so every pre-hoc Defer is executed as Block. The authors state this conservatively rejects legitimate work that an interactive reviewer would approve; the reported protected TSR is a lower bound for the attended operating point, and the measured over-blocking includes the cost of this convention.
    • Architectural rather than parametric (§7.4): The authors state that benign tasks and attack paths live in the same artifact, so a decision about one is necessarily a decision about the other; the decision happens in a session where the package has already bootstrapped, and rejecting an action truncates the current trajectory rather than restoring the trajectory of "never having provided the package."
    • FSPR false blocks are not a direct measurement of the main configuration (§7.5): The 5.7–7.5% comes from two other backends; the authors state it estimates the scale of admission-period over-blocking, not a direct measurement under the main review configuration of §7.3 and §7.4.
    • Out-of-scope threats (§3.3): Direct user-to-model jailbreaks, base-model misalignment without tool-mediated effects, compromised host OS, model API manipulation, and weight poisoning are outside this work's scope.
    • Cost measured only up to request volume (Appendix F): The funnel counts review request volume under architectural control; per-request latency, token consumption, and price remain properties of the operator-chosen review backend. The authors plan to release code, configuration, and review rules as open source.

    Experimental Coverage

    • End-to-end Work Agents are five: Codex/GPT-5.4, Codex/GPT-5.5, Claude Code/GLM-5.1, Claude Code/MiniMax-2.7, Kimi CLI/Kimi-K2.5; AHP also connects to Gemini CLI, but the end-to-end table does not separately list Gemini CLI's ASR.
    • Main experiment safety reviewer is gemini-3.5-flash. FSPR discrimination additionally uses minimax-m2.7 and kimi-k2.5. Reviewer replacement compares five providers on the same gateway, ASR 11.11–17.24% (§7.6).
    • Evaluation materials are SkillInject (180 obvious, 139 contextual), full SkillsSafety (155 cases, RD1–RD6), 58 clean tasks, a 101-package mixed corpus, and each controlled study's fixed 60-case subset.
    • Judgment follows each benchmark's own harness: SkillsSafety uses a deterministic verifier, SkillInject uses its own LLM judge; unattended Defer is treated as Block throughout. Appendix B gives auditable counts; the paper does not report independent repetitions.
    • Baselines and mechanism measurements include unprotected raw, FSPR's hard block / warning / runtime feedback, AgentSpec, Progent, SkillGuard, A.S.E, and L1–L3 request volumes. The controlled study's Work Agent is Claude Code/MiniMax-M3, not merged with the main table.
  6. Summarize the main content of the paper

    ClawSentry uses package admission, three-level runtime gating, and anti-bypass to reduce skill attacks while preserving clean tasks.

    ClawSentry is a security supervision gateway attached outside the agent runtime, used to cover multiple lifecycle boundaries of skill execution simultaneously and record rejected effects in the session.

    • Problem: Risk can enter at admission, invocation intent, execution effect, and post-hoc consequence; rejected goals can be rewritten, split across turns, or retried with different tools. The authors argue that single-point filtering, sandboxing, or output review each guard only one place, and observing one at a time does not equal recognizing the same rejected effect.
    • Method: AHP normalizes events from Codex, Claude Code, Kimi CLI, and Gemini CLI into canonical events. FSPR uses a deterministic evidence baseline before first execution, with unresolved packages undergoing bounded read-only cross-file review. At runtime, actions are condensed into effect envelopes, processed progressively through L1 rules, L2 rule-anchored semantic review, and read-only L3; subsequent guards compare against rejected effects before selecting a layer. The post-hoc layer only reports asynchronously and does not retract completed actions. Reviewers provide only evidence; the gateway retains Allow, Defer, Block.
    • Results: On SkillInject, Codex/GPT-5.4's contextual ASR drops from 39.55% to 2.61%, and contextual TSR from 83.78% to 83.05% (Table 4). Across five Work Agents, SkillsSafety ASR drops from 33.5–49.7% to 9.09–15.03%, with MiniMax-2.7 at 9.09% and GPT-5.5 at 15.03% (Table 5). The total clean skill TSR across four Codex/Claude Code configurations is 98.7% (Figure 6b). In 60 cases on GPT-5.4, poisoning itself drops TSR from 50.0% on clean skills to 31.7%, and hard blocking further drops it to 25.0% (Figure 7).
    • Authors' conclusions: The authors argue the gateway creates an asymmetry between poisoned and clean skills, and the roughly 1.3 percentage point overhead on clean work cannot explain the 5.0–14.7 percentage point TSR drops in poisoned sessions. The remaining execution cost is written as the price of unattended hard boundaries; operators can trade off between the measured operating points. The authors argue the more fundamental closure lies in admission before task start and ultimately in distribution. The evaluation configuration uses gemini-3.5-flash, and the authors state the reported profile does not depend on frontier-level review models.

Related papers

Show 3 more papers
Read originalarxiv.org