Skip to content

Pheo Proposes OATS: Governing Agent Skill Actions at Runtime with a Deterministic ParserScan the Skill, Govern the Action: Composing Registry Verdicts with Runtime Consequence Control

arXiv· arXiv:2609.12001· Rohit Taneja, Travis Weber·Indexed by this site · 2026-10-05· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (generated by Gemini); refer to the original

The study found that ClawHub has 705 all-clean skills containing violating instructions; in real testing, 34.7% of command consequence classes were not documented; OATS intercepted all violation attempts.

Threat modelThe paper assumes the agent reconstructs benign documents into concrete commands, and does not assume the attacker deliberately writes commands that evade syntax. The victim system is the local environment running the agent; the trust boundary assumes hook registration in the agent configuration, the oatsctl binary, and ledger storage are not compromised, but the defense lacks OS-level anti-tampering protection against the agent itself, which has local shell privileges, and only provides post-hoc audit integrity through hash chains and HMAC-SHA256 signatures.

Questions
Pre-publication scanning of the agent skill registry only determines whether a skill is malicious; it cannot determine whether a specific operation is permitted on a particular machine and under a particular policy. Moreover, static documentation cannot fully constrain the agent's actual executed commands.
Methods
The authors propose OATS, an action-level runtime control gate based on a deterministic parser and a trust ledger, which determines the consequence category and permissions of commands before tool invocation, and derives autonomous promotion thresholds based on operator risk tolerance.
Experiments and results
ClawHub has 705 all-clean skills that instruct prohibited operations; 34.7% of consequence classes in Claude Sonnet 5 executed commands are not documented; in real testing, 23 violation attempts were all intercepted or held by OATS.
Limitations and future work
The parser's macro-average resolution rate for multi-step concatenation or encoding-rewritten commands is 52%; the system provides no OS-level anti-tampering protection; and it cannot detect non-action-type harms that are not converted into concrete operations, or excessive permissions.
Experimental setupOpenClaw/clawhub-security-signals、Semantics-preserving rewriting benchmark · Resolution rate、Precision et al.
Benchmarks
OpenClaw/clawhub-security-signalsSemantics-preserving rewriting benchmark
Metrics
Resolution ratePrecisionReach rateBlock rateHold rateLatencyInterruption load
AI summaryRohit Taneja et al. at Pheo Inc propose OATS (Open Agent Trust System), which performs runtime governance when an agent decides on an action but has not yet executed it, answering whether an action is permitted under the current machine and operator policy, rather than whether a skill is malicious. The authors measure across 66,192 public ClawHub skill versions and find that 705 skills judged clean by all three scanners and registry review still instruct actions prohibited by CIS Control 2.7 and NIST SP 800-53 CM-11, involving 135 publishers, with a single publisher accounting for 506 of them; manual audit of 100 samples gives 92% precision (95% CI [84.8%, 96.5%]). OATS's parser does not read skill documentation or call models, with a median end-to-end latency of 67.6 ms, and its output feeds a trust ledger counted by (resource, category), with escalation thresholds derived from operator self-reported risk tolerance rather than a fixed ten clean approvals.

Rohit Taneja et al. at Pheo Inc propose OATS (Open Agent Trust System), which performs runtime governance when an agent decides on an action but has not yet executed it, answering whether an action is permitted under the current machine and operator policy, rather than whether a skill is malicious. The authors measure across 66,192 public ClawHub skill versions and find that 705 skills judged clean by all three scanners and registry review still instruct actions prohibited by CIS Control 2.7 and NIST SP 800-53 CM-11, involving 135 publishers, with a single publisher accounting for 506 of them; manual audit of 100 samples gives 92% precision (95% CI [84.8%, 96.5%]). OATS's parser does not read skill documentation or call models, with a median end-to-end latency of 67.6 ms, and its output feeds a trust ledger counted by (resource, category), with escalation thresholds derived from operator self-reported risk tolerance rather than a fixed ten clean approvals.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Adversa AI 汇总 10 月 AI Agent 安全资源

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Malicious detection at publication time cannot replace runtime action permission control, and static analysis of documentation cannot constrain the actual executed operations generated by the agent's dynamic reconstruction.

    The paper attempts to solve the problem that agent skills' static maliciousness detection at release time and runtime actual operation permission control are disconnected, leading to uncontrolled policy violations.

    • Scenario and importance: Agent skills usually undergo multiple scans before release in a registry, but after installation the agent directly executes operations on a real machine with actual credentials, lacking a control point that immediately verifies whether a specific operation is permitted under the current organizational policy.
    • Limitations of existing methods: Registry scanners (such as VirusTotal, static analysis, SkillSpector, and ClawScan judges) only answer "is this artifact malicious," not "is this operation permitted on this machine at this time"; moreover, operators facing frequent pop-ups are prone to approval fatigue, and simply setting a fixed number of approvals lacks theoretical basis.
    • Core observation: Permission and maliciousness are orthogonal attributes of the same artifact; a benign installer can also contain violating instructions; at the same time, agents reconstruct rather than simply copy document instructions, so static review of documents cannot fully constrain runtime behavioral consequences.
    • Paper's approach: The authors propose an action-level runtime control system OATS, which implements consequence control before tool calls occur based on a deterministic parser and a trust ledger, and derives autonomous promotion thresholds based on operator risk tolerance.
    • Threat model:
      • Attacker goals and knowledge: It assumes the agent reconstructs benign document instructions into concrete commands, and does not assume the attacker deliberately writes obfuscated commands that evade specific syntax.
      • Attacker capabilities: The agent has local shell command execution capability and can add arguments, redirect output, concatenate pipelines, or change installation order.
      • Trust boundary and victim system: The victim system is the controlled environment running the agent; the trust boundary assumes hook registration, the oatsctl binary, and ledger storage are not compromised, but the defense lacks OS-level defenses against low-level tampering such as the agent modifying local hook configuration.
  2. What related research exists?

    Related work covers registry scanning and supply chain attacks, runtime LLM guardrails, system reference monitors, and trajectory assurance; the paper is positioned at action-level lightweight interception.

    Related research is mainly distributed across skill registry security, runtime guardrails, and system reference monitors and trajectory guarantees.

    Skill registry security and supply chain attacks

    • Koc et al. (2026)—evaluated VirusTotal, internal static analysis, and SkillSpector on 67,453 skills, reporting scanner overlap rates below 10.4%; the paper treats this as a research premise rather than a comparison target.
    • Saha et al. (2026)—proposed discovery and selection manipulation attacks against the ClawHub ranking mechanism, and demonstrated governance evasion rates of 36.5%–100% against static and LLM scanners through plain-text writing; the authors note that this work focuses on pre-installation visible content, while this paper focuses on the agent's actual operations after installation.

    Runtime guardrails for LLM applications

    • Inan et al. (2023) (Llama Guard)—uses a model to classify safety of dialogue inputs and outputs.
    • Rebedea et al. (2023) (NeMo Guardrails)—controls dialogue flow through programmable guardrails.
    • The authors note that these two place model or script policies between the user and the model, while OATS sits between model actions and system changes, without bearing the high latency of model calls.

    System reference monitors and trajectory security

    • Anderson (1972) and Saltzer and Schroeder (1975)—established the reference monitor that every access must pass through, is tamper-proof, and is small enough to be easily verified, along with the principle of least privilege; the authors state that OATS is an implementation and measurement of these principles rather than proposing new ones.
    • Lotfi et al. (2026)—proposed that agent actions are individually legal but may jointly violate state invariants, advocating trajectory guarantees; the authors note that OATS is one of the missing enforcement points, but OATS enforces single-step actions rather than trajectory-level checks.
    • Kamath et al. (2025)—proposed a formal mechanism for temporal constraints on LLM agent action sequences.

    Comparison baselines and benchmark datasets

    • The benchmark dataset used in the paper's evaluation is OpenClaw's open-source clawhub-security-signals (containing 66,192 skill versions and four scan judgments); for the bypass evaluation, the paper used a self-built semantic-preserving rewriting benchmark (64 cases, covering 9 techniques).

    Positioning of this paper

    • The authors position OATS as a lower-level, lower-overhead immediate action control point than traditional LLM guardrails, emphasizing that release-time maliciousness detection and runtime action permission control are orthogonal and complementary.
  3. How does the paper address this problem?

    Design a deterministic parser that maps command consequence categories, combined with a lane-divided trust ledger and risk-tolerance-derived promotion thresholds, to judge operations without model involvement before tool calls.

    The authors propose the OATS (Open Agent Trust System) framework, which intervenes at the control point after the agent has finished deciding but before executing the tool call, implementing action-level control through a purely deterministic parser and a lane-divided trust ledger.

    Deterministic parser design

    • Formal definition: The parser maps the command string space to a set C of 33 consequence categories, defined as \rho(c) = \max_\preceq \{ k \in C : \pi_k(c) \} (if a predicate matches, take the most severe category; otherwise default to shell_exec), where \preceq is the severity ordering.
    • Statelessness and full coverage: The parser reads no documents, ledgers, time, or models; 200 commands tested repeatedly in two independent ledgers produced completely consistent classifications; unmatched commands default to the underlying shell_exec, avoiding release when there is no match.
    • Argument position awareness: Predicates judge based on the specific position of arguments relative to the command verb, rather than simple keyword matching, avoiding misclassifying URLs in document descriptions as installation arguments.
    • Blocking the text channel: The parser does not input skill document text at all; the authors state this design blocks the attack channel of bypassing scans purely through document text rewriting.

    Lane-divided trust ledger

    • State transition mechanism: The ledger uses (resource, consequence class) pairs as lane keys (not skill-based keys). State transitions go from unclassified to held; if a human approves, the consecutive safety count increases by 1; if rejected, it resets to zero; when the threshold is reached and the category allows promotion, it enters the graduated state.
    • High-risk classes prohibit promotion: 13 of the 33 categories have severity rankings of 75 or above (such as remote execution, credential access, destructive commands, deployment, etc.), and promotion is hardcoded as prohibited in the authorization path, remaining blocked or held regardless of how many times they appear in history.

    Risk tolerance and autonomous promotion derivation

    • Threshold formula: Based on zero-failure binomial distribution inversion, the consecutive approval count threshold corresponding to a tolerated error rate ϵk at confidence 1−δ is Nk = ⌈ (ln δ)/(ln(1 − ϵk)) ⌉.
    • Theoretical cost and current status: At δ = 0.05, the common empirical value of 10 approvals cannot rule out an error rate as high as 25.9%; considering resets due to rejections, the expected number of human approvals to reach the threshold is far higher than the threshold itself (e.g., 202 for document writes, 965 for business logic). The authors note that the current release implementation defaults to a uniform constant of 10, and deriving thresholds by category remains a paper proposal.

    Runtime architecture and overhead control

    • Model-free decision path: The local LLM only asynchronously generates human-readable explanations after the decision returns and does not participate in the judgment; median end-to-end latency on a single M-series core is 67.6 ms (p95 is 81.1 ms), with the vast majority being process-spawning overhead, and pure classification time within 1 ms.
    • Audit integrity: Each check generates approximately 12 KB of receipts, including SHA-256 digests and HMAC-SHA256 operator signatures, ensuring historical records are verifiable.
  4. What experiments did the paper conduct?

    Across a library of 66,000 skills and live agents, 705 clean skills were found to contain violating instructions, 34.7% of agent command consequences diverged from documentation, and OATS intercepted all violating actions.

    Experimental setup

    • Tested models: The static scanning judge consisted of GPT-5.5 (99.47%), gpt-5-mini (0.42%), and codex-security-worker (0.10%); the live agent experiments used Claude Sonnet 5.
    • Datasets and benchmarks: OpenClaw/clawhub-security-signals (full set of 66,192 skill versions); semantically preserving rewrite benchmark (64 cases, covering 9 techniques).
    • Baselines and comparison targets: ClawHub built-in scanning pipeline (VirusTotal, static analysis, SkillSpector, and ClawScan judge).
    • Metric definitions: Resolution rate, Precision, Reach rate, Block rate, Hold rate, end-to-end latency, interruption load.
    • Review and adjudication method: Deterministic parser ρ (version pheo-oats 0.5.3); manual spot-check double annotation (instruction compliance and malicious intent labeling).
    • Sample size and execution environment: Static analysis of all 66,192 skills in the full library; live experiments used 40 and 54 skills respectively (deduplicated publisher sampling), with agents running in an isolated Debian container for up to 4 rounds.

    Main results

    Among all 66,192 skills, 29,257 were rated clean by all scanners and judges. The distribution of instructions indicating prohibited operations is as follows (per Table 2):

    Indicated action categoryNumber of skillsProportion of 705 violating skills
    Remote code fetch and execution65893.3%
    Credential access233.3%
    Destructive commands202.8%
    Merge to protected branch71.0%
    Trigger workflow10.1%
    Total independent skills (from 135 independent publishers)705100%

    (Note: 4 skills contained two categories of violating instructions simultaneously, so the rows sum to 709 category occurrences; iam_change, deploy, and delete_or_transfer_repo were 0, per Table 2)

    • Publisher concentration: The authors note that the 705 skills came from 135 publishers, of which a single publisher, oomol, accounted for 506 (71.8%) due to repeating the same installation instruction in its connector skill directory. Excluding that publisher, 199 skills from 134 publishers still contained violating instructions.
    • Manual audit intent: Manual review of a sample of 100 skills showed Precision of 92.0% (95% CI [84.8%, 96.5%]), and none of the 92 correctly detected skills had malicious intent labels; all were routine toolchain installation or package management commands.
    • Not a data-cleaning artifact: Regarding concerns about pseudo-adjacency caused by newline folding, inspection showed that 87.1% of remote execution instructions contained explicit pipe symbols (curl/wget piped to shell), 11.4% were single-token installation commands, and 98.8% of detections were syntactic structures that survive cleaning intact.

    Evaluation of deviation between scanned documentation and actual execution

    • Test content: On 39 clean skills with concrete capability scopes, compared the static categories of documentation code blocks with the actual commands executed by Claude Sonnet 5 (144 commands, Table 3).
    • Experimental results: Only 2 executed commands (1.4%) matched the documentation literally; 92 (63.9%) were reconstructions whose consequence categories appeared in the documentation; 50 (34.7%, 95% CI [27.0%, 43.1%]) had consequence categories that never appeared in any documentation code block; in earlier testing this missing rate was 36.6% (Fisher test p=0.78).
    • Author interpretation: The authors state that the agent does not copy the documentation verbatim but reconstructs (adding parameters, chained checks, redirections, etc.), so static documentation review cannot fully constrain dynamic runtime behavior. However, they observed that all 50 unexpected commands fell into the generic shell_exec category, and no reconstruction produced a category more dangerous than the documentation's danger level.

    Live-run interception and interruption load

    • Test content: Tested Claude Sonnet 5's actual behavior in a sandbox and OATS interception effectiveness on 54 clean skills containing never-promote violating instructions (§6, Table 4).
    • Experimental results: Among the 53 skills that produced commands, the agent actually initiated violating actions in 23 skills (43.4%, 95% CI [29.8%, 57.7%]), and OATS achieved 100% interception or hold on these 23 attempts (22 direct interceptions, 3 holds, including 2 credential accesses and 1 destructive command). A total of 170 decisions were produced (3.2 per skill, of which 2.8 holds and 0.4 interceptions).
    • Author interpretation: The authors note that policy configuration can reduce interruption friction; if routine shell and read operations are allowed, interruptions per skill can drop from 3.2 to 0.5 (eliminating 85% of interruptions); spot-checking 50 hold decisions showed 98% accuracy (95% CI [89.4%, 99.9%]).

    Semantically preserving rewrite adversarial benchmark evaluation

    • Test content: Constructed 64 test cases (including 5 control cases) covering 9 semantically preserving rewrite techniques to test parser robustness under command obfuscation (Table 1).
    • Experimental results: Wrapper (20 cases) and chained (15 cases) resolution rates were 100%; interpreter (4 cases) was 75%; variable (5 cases) was 60%; base64 encoding (3 cases) was 33%; indirect read (4 cases) was 25%; quoting (5 cases) was 20%; staged (3 cases) was 0%; the macro-average resolution rate across 8 rewrite techniques was 52%, and the micro-average was 75%.
    • Author interpretation: The authors note that the parser can effectively identify dangerous arguments nested inside bash -c or after preceding commands, but a single-command parser cannot recognize dangerous relationships split across cross-command pipelines or multi-step processes (e.g., first curl to download, then chmod to execute), which requires stateful temporal syntax analysis to defend against.

    Other ablations and analyses

    • Excluding the secret_change category had a negligible effect on the violating skill count: the count changed from 705 to 706 (§3, §4).
    • The correlation between registry signals and OATS detection was weak: OATS flagged 1,412 (2.13%), the registry flagged 35,361 (53.4%), the intersection was 680, and the correlation coefficient was ϕ = −0.016 (§7.1).
    • Two candidate predicates that were not deployed were abandoned due to excessive false positives: hardcoded outbound domains had a false positive rate of 4.4%, and inline credentials in command lines had a false positive rate of 1.5% (§7.1).
    • Violation base rates comparing the full library and the clean subset: remote execution 1.73% full vs 2.25% clean; credential access 0.23% vs 0.08%; destructive commands 0.17% vs 0.07% (§7.1).
    • Historical audit storage growth in a single repository reduced throughput: throughput for the first 15,000 checks dropped from about 67/s to below 20/s; rolling rotation maintained 40–55/s (§2.3).
  5. What are some points that can be further explored?

    The authors point out limitations such as the blind spot for non-action-type harms, single-command syntax evasion, and reliance on self-audit, and the experiments mainly focus on a single model, a single day, and a single registry snapshot.

    Limitations and future directions noted by the authors

    • Cannot cover harms that do not translate into concrete actions (§7, §11): OATS can only intervene when concrete commands are produced. It is completely blind to holistic harms such as hardcoded fixed receiving addresses, persuasive evasion behaviors that combine small legitimate calls, and overly broad permission configurations. The authors note that action control cannot replace semantic scanning.
    • Cannot defend against cross-command splitting and advanced obfuscation (§2.2, §6): A single-command parser cannot recognize staged download-and-execute patterns (e.g., first curl to save, then chmod to execute), quote obfuscation, or indirect calls. The authors plan to harden this in the future by introducing cross-call state and a shell syntax parser.
    • Lacks underlying OS-level tamper protection (§2.2, §10): The local hook process, oatsctl binary, and configuration are not isolated from agents with local shell privileges. A malicious agent can directly modify the hook configuration to disable monitoring. Currently, only post-hoc audit integrity based on a hash chain is provided.
    • Manual self-audit is subjective and lacks a recall benchmark (§9): The 92% precision was completed by a single author, and inter-rater agreement was not measured. Moreover, because the extractor only reads code blocks and ignores the main text and non-shell tags, the recall of the violating-instruction detector could not be measured.
    • Assumption gap in the derivation of autonomous promotion in deployment (§8): The derivation assumes trials are independent and representative of an un-reviewed runtime environment, but in practice, records approved by human operators cannot be equated with error rates under no review. The current implementation also still uses a hardcoded constant of 10 rather than dynamic category thresholds.

    Experimental coverage

    • Scope of tested models: The static scanning judge only involved GPT-5.5, gpt-5-mini, and codex-security-worker; the live-run experiments used only the single model Claude Sonnet 5, tested on a single day.
    • Skill sample and environment scope: Static testing was limited to a single frozen snapshot of the ClawHub public dataset (66,192 skills); live experiments tested only 53 skills with specific violating instructions in a single Debian container without a pre-installed environment.
    • Adversarial test coverage: The adversarial benchmark only tested 64 semantically preserving rewrite cases constructed by the authors; it did not test interactive adversarial attacks by adaptive attackers with knowledge of the grammar.
    • Unreported information: The paper does not report survey data on real enterprise operators' actual risk tolerance, does not provide an independent benchmark for isolated micro-benchmarking of parser latency, and does not publish the interception rate of real malicious skills on OATS (the authors state they intentionally did not score on this dimension).
  6. Summarize the main content of the paper

    The paper argues that malicious scanning at publication time cannot replace runtime action permission control, proposes a lightweight deterministic control gate OATS, and demonstrates the necessity of a two-layer defense combination.
    • Positioning and core problem: This study addresses the problem in the AI agent skill ecosystem that "malicious detection at publication time" cannot solve "runtime permission authorization on specific machines," argues for the necessity of action-level runtime control, and designs a lightweight defense system.
    • Method architecture: The authors designed the OATS runtime control gate, whose core includes a deterministic parser with 67.6 ms end-to-end latency (mapping shell commands to 33 consequence classes, with fallback interception for unmatched items, and no models in the decision path), a lane-based trust ledger over (resource, consequence class) pairs (13 high-risk classes never promote), and an operator risk tolerance promotion threshold model based on binomial inversion with zero errors.
    • Key finding one: Orthogonality of benignness and permission: Among the 66,192 skills on ClawHub, 29,257 rated clean by all scanners and judges contained 705 skills (from 135 independent publishers) with unauthorized or remote execution instructions prohibited by norms such as CIS Control 2.7; manual audit showed 92.0% precision and no malicious intent labels.
    • Key finding two: Disconnect between static review and dynamic execution: In live runs of Claude Sonnet 5 on 39 clean skills, only 1.4% of executed commands matched the documentation literally, and 34.7% of command consequence categories never appeared in documentation code blocks; among 53 clean skills containing violating instructions, the agent actually initiated violating operations in 23 skills, and OATS achieved 100% interception or hold on these 23 actions.
    • Key finding three: Boundaries of single-command defense: On the semantically preserving rewrite adversarial benchmark, the parser achieved 100% recognition for wrapper and chained calls, but the overall macro-average resolution rate was only 52% under cross-command splitting, quote obfuscation, and other techniques, showing the limitations of stateless single-command matching.
    • Author conclusions and implications: The authors argue that pre-publication artifact scanning and runtime action control are orthogonal complementary layers, answering respectively "is the artifact malicious" and "is the operation permitted," and neither layer alone can solve agent security; registry scan results should be used as input to the runtime ledger rather than as competing substitutes.
Read originalarxiv.org