Skip to content

TrustProbe finds 104 skill trust chain vulnerabilities in 11 open-source agentsCan Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents

Paper Tracker· arXiv:2609.39065· Yan Wang, Zhihao Zhang, Ke Chen, Kai Chen, Yaqin Zhang, Duohe Ma, Jun Dai, Xiaoyan Sun·Indexed by this site · 2026-10-05· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

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

TrustProbe tested 11 open-source agents and found 104 skill taint vulnerabilities, of which 34.8% remain exploitable even under the strictest approval settings.

Threat modelAssumes non-malicious agent developers and uncompromised runtime environments. The attacker is a malicious skill author who controls published skill content; after installation, the payload persists until invoked, requiring no subsequent interaction from the author. The attacker exploits the agent's reliance on installed skill content to induce harmful operations under user-delegated permissions, constituting a confused deputy failure. No privilege escalation is required.

Questions
Agents widely rely on third-party installed skills to extend functionality. Users delegate permissions to agents, but frameworks incorporate insufficiently validated skill content into the execution context. Malicious skills can exploit the agent's delegated permissions to perform harmful operations on the file system, Shell, and network, forming confused deputy failures.
Methods
TrustProbe combines source-level static source-to-sink analysis with targeted gray-box fuzzing. It uses an LLM to generate semantic SKILL.md seeds with canary markers, performs mutation scheduling with semantic scoring and distance feedback, and confirms taint propagation and observable harm with a bug oracle.
Experiments and results
104 verified vulnerabilities were found across 11 agents; direct prompts reproduced only 31.7% of them, and 34.8% of exploitable vulnerabilities remained under the strictest approval. Among 633 real skills, 25.1% of tests triggered vulnerability paths, and 15 were converted into full attacks through minimal payload editing.
Limitations and future work
The evaluation only covers 11 open-source agents, all using the deepseek-v4-flash model; baseline comparison only involves 4 Python agents. The authors note that future work needs to study source tracking across tool execution, installation-time capability declarations, and fine-grained control of shared execution points.
Experimental setupOpenClaw、OpenCode et al. · SkillsMP、ClawHub et al. · Verified Vulns.、ASR et al.
Evaluated models
OpenClawOpenCodeHermes AgentPochiKimi Code CLIQwen CodeClinePi Coding AgentMistral VibeDB-GPTAgent Zero
Benchmarks
SkillsMPClawHubOfficial agent repositories633 real-world SKILL.md files
Metrics
Verified Vulns.ASRTime CostTime to Exposure (TTE)Reproduction rate (ρa)Residual ExploitabilityPrecisionRecallRelative yield
AI summaryand selection rationaleResearchers from the Institute of Information Engineering at the Chinese Academy of Sciences and Worcester Polytechnic Institute propose TrustProbe for mining unsafe trust chains in skill-based LLM agents, confirming 104 taint-style vulnerabilities across 11 open-source agents (8 of which have over 10,000 GitHub stars), covering 49 command injection, 27 file disclosure, 22 file tampering, 5 network requests, and 1 code injection. The method first performs source-to-sink analysis on agent source code, tracing from skill-controlled inputs to security-sensitive operations, then uses directed grey-box fuzzing to generate and mutate SKILL.md seeds with canaries, and finally uses an oracle to confirm attacker control and verify observable harm. When the same skill texts are delivered as direct prompt injections, only 31.7% of vulnerabilities remain exploitable; when enabling the strictest non-interactive approval configuration on 8 agents that provide an approval layer, 34.8% of 89 vulnerabilities remain exploitable, because execution paths bypass policies or policies do not cover the relevant operations.

Researchers from the Institute of Information Engineering at the Chinese Academy of Sciences and Worcester Polytechnic Institute propose TrustProbe for mining unsafe trust chains in skill-based LLM agents, confirming 104 taint-style vulnerabilities across 11 open-source agents (8 of which have over 10,000 GitHub stars), covering 49 command injection, 27 file disclosure, 22 file tampering, 5 network requests, and 1 code injection. The method first performs source-to-sink analysis on agent source code, tracing from skill-controlled inputs to security-sensitive operations, then uses directed grey-box fuzzing to generate and mutate SKILL.md seeds with canaries, and finally uses an oracle to confirm attacker control and verify observable harm. When the same skill texts are delivered as direct prompt injections, only 31.7% of vulnerabilities remain exploitable; when enabling the strictest non-interactive approval configuration on 8 agents that provide an approval layer, 34.8% of 89 vulnerabilities remain exploitable, because execution paths bypass policies or policies do not cover the relevant operations.

Why it was selectedThe paper provides 104 skill chain-of-trust vulnerabilities across 11 agents and real-skill trigger rates, which can be used to check one's own skill loading and approval mechanisms.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The paper studies chain-of-trust failures in skill-based agents, where untrusted third-party skill content triggers unintended sensitive operations under user-delegated permissions.

    The core issue lies in unsafe chains of trust in skill-based LLM agents, namely whether and how untrusted third-party skill content can break through security boundaries and abuse the permissions users delegate to agents to execute sensitive operations.

    • Application scenario and importance: LLM agents execute commands, access files and networks through tools, and extend task capabilities through installable SKILL.md files, forming a chain of trust in which users delegate permissions to agents and agents rely on third-party skill providers.
    • Shortcomings of existing mechanisms: The authors state that existing frameworks lack sufficient validation and source tracking for skill-provided content, and static scanning or candidate call paths cannot confirm whether actual harmful operations will occur at runtime.
    • Core observation and operational invariant: The authors propose a single operational invariant: content from skills may only reach operations that exercise agent permissions if it has been validated, has obtained explicit user consent, or source information is available at the execution point; flows that violate this requirement constitute trust failures.
    • Threat model:
      • Attacker goal: Malicious skill authors aim to induce agents, through implanted instructions or parameters, to execute sensitive operations chosen by the attacker under user-delegated permissions, constituting a confused deputy failure.
      • Attacker knowledge and capability: The attacker controls published third-party skill content (e.g., SKILL.md), requires no subsequent interaction, and can exploit the agent's own permissions without privilege escalation.
      • Distribution and triggering: Malicious skills are distributed through public marketplaces (e.g., ClawHub, SkillsMP) or communities, and after installation are discovered and loaded by the framework during subsequent user tasks.
      • Victim system: Agent frameworks natively supporting SKILL.md that are run by users and have file system, Shell, and network access permissions.
    • The paper's solution: The authors propose the TrustProbe framework, which systematically discovers and dynamically verifies cross-framework skill taint-type vulnerabilities through source-level static source-to-sink analysis combined with targeted gray-box fuzzing.
  2. What related research exists?

    The paper reviews three categories of research: agent attacks, static analysis, and dynamic fuzzing. The authors state that prior work lacked dynamic validation of cross-framework skill delivery and approval mechanisms.
    • Agent attacks and untrusted content:
      • Prompts and indirect injection: Toyer et al. (2024) and Schulhoff et al. (2023) studied redirecting model behavior through user prompts; Greshake et al. (2023), Zhan et al. (2024), and Yi et al. (2025) studied indirect prompt injection caused by external content.
      • Agent benchmarks and context integrity: Agent Security Bench (Zhang et al., 2025) evaluates attacks and defenses in the prompt, tool, and memory stages; Mireshghallah et al. (2024, 2026) examine improper leakage across information sources through context integrity benchmarks.
    • Static analysis and skill auditing:
      • Malicious packages and skill static inspection: Ohm et al. (2020) and Guo et al. (2026a) studied software supply chain attacks; Koc et al. (2026) compared scanner outputs on ClawHub; SkillProbe proposed by Guo et al. (2026b) combines admission checks with capability comparison.
      • Code call path analysis: LLMSmith proposed by Liu et al. (2024) combines static call path analysis with prompt exploitation to study code execution; the authors note that suspicious content or candidate paths alone cannot determine whether harmful operations will actually be executed.
    • Dynamic testing and fuzzing:
      • Dynamic taint and behavior verification: Newsome & Song (2005) and Schwartz et al. (2010) studied dynamic taint analysis; Liu et al. (2026) combined static inspection with behavioral verification to audit malicious skills; Skill-Inject proposed by Schmotz et al. (2026) measures harmful instruction following in skill files.
      • Agent gray-box fuzzing: AgentFuzz proposed by Liu et al. (2025) uses targeted gray-box fuzzing to detect taint vulnerabilities; the authors note that this paper supplements research on how skill delivery architectures and approval controls affect cross-framework harmful operations.
    • Baseline methods and usage benchmarks:
      • Comparison baselines: the static code analyzer LLMSmith and the targeted gray-box fuzzer AgentFuzz.
      • Test benchmarks and sources: real SKILL.md files collected from SkillsMP, ClawHub and their registries, and the official repositories of each agent.
    • Positioning difference from existing work: The authors state that existing work mostly focuses on single prompt injection or static rule matching, whereas this paper focuses on persistent chains of trust formed by installed skills, systematically revealing how framework-level delivery mechanisms and approval blind spots enable exploitability.
  3. How does the paper address this problem?

    TrustProbe generates seeds through source-level static call path analysis, evolves inputs through targeted gray-box fuzzing with semantic and distance feedback, and verifies vulnerabilities with a dual oracle.

    TrustProbe combines source-code static analysis with directed gray-box fuzzing to automatically mine and verify untrusted trust chains from untrusted skill content to sensitive operations.

    Problem formulation and formalization

    TrustProbe defines untrusted SKILL.md content as the source and system and framework APIs executing with agent privileges as the sink. To track data flow, the framework injects canary markers generated by hashing the target identifier and variant identifier into candidate fields: canary = H(idt ∥ idv) where H is the hash function, id_t and id_v are the target and variant identifiers respectively, and ∥ denotes string concatenation. The system accordingly defines the taint predicate Taint(c, s) ⟺ canary ∈ args(sinks), judging taint to hold only when the canary appears in the call arguments of the target sink.

    Static analysis and semantic seed generation

    • Source-to-sink analysis of source code: Function calls and actual arguments are extracted via Python AST traversal or the TypeScript Compiler API, matched against a predefined sink list, then a reverse breadth-first search along the call graph to the call entry extracts candidate propagation paths, grouped by sink function.
    • LLM-assisted seed generation: A semantic profile containing the agent, language, sink, source fields, and program identifiers is extracted, and the LLM is prompted to generate initial SKILL.md seeds that conform to the target framework's native loading requirements, aligning task semantics with the target component.

    Feedback-driven seed scheduling and mutation

    • Directed gray-box seed scheduling: Seeds for the same sink function are placed into independent budget pools and scored based on target-alignment scores and distance metrics: the scheduling function computes priority by combining the semantic score σ, distance score δ, and penalty term π. The semantic score is assigned by the LLM (0 to 10) based on the degree to which the execution trace exercises the target component; the distance score is computed from the shortest hop count between the node reached by the trace and the target sink, saturating at 10 when the sink is reached; the penalty term accumulates based on how many times the seed and path have been selected.
    • Rule-guided hierarchical mutation: If a test does not confirm a path, rules are matched top-down and the corresponding mutator is invoked. When the semantic score is below a threshold, the semantic mutator rewrites the intent; when the trace stalls at the parsing or registration stage, the metadata mutator rewrites the front matter; when parsing completes but the sink is not reached, the body mutator adjusts the body structure; when the sink is reached but the arguments contain no canary, the sink-argument mutator adjusts the canary injection fields.

    Dual validation oracle

    • Taint confirmation conditions: Three predicates must hold simultaneously: the target sensitive operation is invoked (reached), the sink arguments contain the canary (tainted), and the call-stack traceback matches the statically extracted path (framed).
    • Observable harm validation: After taint confirmation, an independent check verifies whether execution produced attacker-specified real consequences, including leakage of sensitive file contents in the conversation, test file writes, benign command execution echoes, or requests to controlled network endpoints; only then is it counted as an exploitable vulnerability.
  4. What experiments did the paper conduct?

    On 11 open-source agents, 104 verified vulnerabilities were measured (ASR reaching 100%), direct prompts reproduced only 31.7%, and 34.8% of exploitable vulnerabilities remained under the strictest approval.

    Experimental Setup

    • Models and agents tested: 11 open-source agents with native support for SKILL.md were tested, including OpenClaw, OpenCode, Hermes Agent, Pochi, Kimi Code CLI, Qwen Code, Cline, Pi Coding Agent, Mistral Vibe, DB-GPT, and Agent Zero; all tested agents and TrustProbe's generation, scoring, and mutation uniformly used the deepseek-v4-flash model.
    • Dataset and test paths: 1,566 source-to-sink paths were extracted from the code of 11 agents and clustered into 202 sink function pools; the real-world evaluation used 633 valid SKILL.md files collected from SkillsMP, ClawHub and their registries, and official repositories.
    • Evaluation baselines: the static analysis tool LLMSmith (for Python) and the directed grey-box fuzzing tool AgentFuzz (for Python).
    • Core metrics: Verified Vulns., Time Cost, Time to First Exposure (TTE), attack success rate (ASR, defined as the proportion of verified harms among taint-confirmed paths), reproduction rate (ρa), residual exploitability.
    • Run configuration and budget: the budget cap for each sink function pool was 8 rounds of mutation or 15 minutes; each test used a fresh session and an isolated workspace; except for DB-GPT, which natively retains Wasm isolation, all others were executed in non-interactive mode without a sandbox.

    Main Results

    The table below summarizes the results of TrustProbe's main vulnerability discovery experiments on 11 agents (according to Table 1):

    Swipe horizontally to read the table

    AgentGitHub Stars (K)Verified Vulns.Time Cost (h)TTE (min)
    OpenClaw388.9243.7910.32
    OpenCode204.5172.6442.78
    Hermes Agent241.71613.1712.70
    Pochi0.1131.1511.07
    Kimi Code CLI7.3124.0470.62
    Qwen Code27.785.3823.65
    Cline67.574.9792.27
    Pi Coding Agent102.030.9323.73
    Mistral Vibe4.920.8826.70
    DB-GPT19.912.672.00
    Agent Zero19.115.57255.25
    Total / Median1.08M10445.2023.73
    • Vulnerability type distribution: among the 104 vulnerabilities found, 49 were command injection, 27 file disclosure, 22 file modification, 5 network requests, and 1 code injection.
    • Reach rate and harm conversion: testing covered 1,150 of the 1,566 audited paths (73.4%) and 98 of the 202 sink functions (48.5%); all 104 taint-confirmed paths produced observable independent harmful consequences, with ASR reaching 100%.
    • Testing cost: TrustProbe's seed generation, scoring, and mutation consumed a total of 11.08 million tokens, equivalent to a cost of $2.19 (excluding target agent inference costs).

    Delivery Mechanism Comparison Experiment

    • Test setup: the YAML front matter was removed, and the exact same skill body was input directly as a user prompt, without installing any SKILL.md.
    • Comparison results: according to Table 2, direct prompt replay reproduced only 33 of the 104 vulnerabilities (overall reproduction rate 31.7%), and 68.3% of vulnerabilities could not be reproduced; among them, OpenClaw's reproduction rate was only 4.2% (1/24), Kimi Code CLI only 8.3% (1/12), and Agent Zero 100.0% (1/1).
    • Mechanism explanation: the authors point out that the difference stems from the frameworks' dedicated delivery channels: OpenClaw includes directory scanning and forced reading routing, Kimi Code CLI uses typed activation events and loading wrappers, and DB-GPT binds skills to the system prompt; ordinary user prompts cannot trigger these framework-specific contexts.

    Approval Mechanism Defense Evaluation

    • Test setup: on the 8 agents that support approval, automatic approval was removed and switched to the strictest available non-interactive approval configuration (according to Table 10 and Table 11).
    • Defense results: of the 89 covered vulnerabilities, 31 (34.8%) could still be successfully exploited; OpenClaw's residual exploitability reached 91.7% (22/24), Kimi Code CLI reached 50.0% (6/12), while OpenCode, Cline, and Mistral Vibe dropped to 0%.
    • Root causes of failure: surviving vulnerabilities fall into execution bypass (9 cases, such as Kimi Code CLI starting without loading deny rules, resulting in an empty rule set, and OpenClaw skipping checks for local paths) and policy scope blind spots (22 cases, such as OpenClaw approving only exec without restricting file reads and writes, resulting in all 13 disclosure and 6 write cases being allowed).

    Real-World Skill Exposure and Weaponization Verification

    • Path trigger rate: 2,963 tests were executed on 633 real SKILL.md files on compatible agents, and 743 (25.1%) triggered audited vulnerability paths (Section 5.4).
    • Weaponization verification: 15 triggering skills containing service addresses were selected, and all were successfully converted into complete attacks solely by replacing domains, endpoints, or guiding commands (10 with modifications of no more than 2 lines) (Table 12).
    • Actual harm manifestations: observed consequences include remote code execution, credential theft, OAuth phishing, malicious MCP server connections, and sensitive data exfiltration.

    Other Ablations and Analyses

    • Initial seed semantic ablation: GENERICSEED removes semantic guidance and uses templates instead, and vulnerability discovery relative to the full version drops to 44.2% (Table 4).
    • Scheduling and mutation semantic feedback ablation: NOSIGMA removes semantic scoring feedback, and vulnerability discovery in the mutation phase drops to 37.9% relative (Table 4).
    • Seed selection algorithm ablation: RANDOMSCHED uses uniform random sampling instead of feedback scheduling, and vulnerability discovery in the mutation phase drops to 31.0% relative (Table 4).
    • Initial and mutation output: in the full test, initial seeds exposed 75 vulnerabilities, and subsequent mutations additionally discovered 29 vulnerabilities (Section 5.6).
    • Baseline comparison (4 Python agents): LLMSmith detected 5 of 20 reference vulnerabilities, with a recall rate of 25.0% and a false positive rate of 98.5% (FP=328); AgentFuzz produced no verified vulnerabilities in 2,425 attempts over 57 hours (Table 3).
  5. What are some points that can be further explored?

    The authors point to directions such as source tracking, install-time capability declarations, and shared execution point control, with the evaluation limited by the selected models and system scope.

    Limitations and future directions noted by the authors

    • Source tracking during tool execution: The authors note in Section 6 that current frameworks lack skill source marking throughout the entire tool execution pipeline, and future work needs to study how to distinguish at runtime whether parameters originate from users or third-party skills.
    • Install-time capability declaration mechanism: The authors note in Section 6 that the current ecosystem lacks explicit capability declarations, and mechanisms need to be explored that require skills to explicitly declare required system permissions and tool scope at the installation stage.
    • Fine-grained control at shared execution points: The authors note in Section 6 that access control aware of parameters and call paths should be implemented at underlying shared execution points to prevent internal subprocesses from bypassing tool-layer approval gateways.
    • Limitations of the baseline comparison environment: The authors note in Section 5.5 that AgentFuzz and LLMSmith support only Python, and early versions natively do not support SKILL.md, so dynamic comparisons did not cover TypeScript agents.

    Experimental coverage

    • Scope of tested agents: 11 open-source TypeScript and Python agents were tested, including OpenClaw, OpenCode, Hermes Agent, Pochi, Kimi Code CLI, Qwen Code, Cline, Pi Coding Agent, Mistral Vibe, DB-GPT, and Agent Zero (Table 5).
    • Single backend model: In all experiments, agent execution and TrustProbe generation, scoring, and mutation all fixedly used the deepseek-v4-flash model; the paper did not test other base LLMs (Section 5.1).
    • Real skill corpus scope: 633 distinguishable SKILL.md files were collected from SkillsMP, ClawHub, and official repositories; weaponization validation selected 15 of them for local modification and controlled testing (Section 5.4 and Appendix J).
    • Sandbox isolation conditions: Except for DB-GPT, which natively enables Wasm code isolation, all other agent experiments ran in a sandbox-free environment (Appendix D).
    • Unreported information: The paper does not report evaluation data for broader commercial closed-source agents, nor the specific impact of switching different base models on vulnerability trigger rates.
  6. Summarize the main content of the paper

    The paper studies the untrusted trust chain problem of skill agents, proposes the TrustProbe tool, and validates 104 taint vulnerabilities on 11 open-source agents.
    • Paper positioning: This study systematically explores the untrusted trust chain problem in SKILL.md-based LLM agents, where untrusted third-party skill content can cross trust boundaries and abuse user-delegated permissions.
    • Core problem: Existing agent frameworks automatically inject installed skills into the execution context, but generally lack content filtering, source tracking, and effective execution-layer approval validation along the propagation path from skill input to sensitive system calls.
    • Method highlights: Proposes the TrustProbe framework, which builds seeds by statically extracting 1,566 source-to-sink paths, guides gray-box fuzzing with semantic scoring and call-graph distance feedback, and uses canary markers and a dual bug oracle to verify real harm.
    • Most important quantitative results: 104 taint vulnerabilities were discovered and confirmed on 11 mainstream open-source agents, with ASR reaching 100%; direct prompt replay reproduced only 31.7% of vulnerabilities; 34.8% (31/89) of vulnerabilities remained exploitable across 8 agents with the strictest non-interactive approval enabled; 25.1% of tests on 633 real skills triggered vulnerability paths, and 15 were converted into full attacks after fine-tuning.
    • Author conclusions and implications: The authors argue that third-party skill content must be treated as part of the agent's execution security boundary. Future frameworks need to introduce end-to-end source marking at the underlying level, install-time capability declarations, and fine-grained path- and parameter-level control at shared execution points.

Related papers

Show 3 more papers
Read originalarxiv.org