Skip to content

SkillSentry: Dynamically Detecting Agent Skill Safety with Adaptive Honeypot WorldsSkillSentry: Adaptive Honey Worlds for Dynamic Safety Testing of Agent Skills

Paper Tracker· arXiv:2608.03485· Nizhang Li, Zonghao Ying, Xiangfan Wu, Zonglei Jing, Xixun Lin, Hao Zhang, Wenxin Zhang, Jiaye Lin, Quanchen Zou, Xiangzheng Zhang·Indexed by this site · 2026-10-03· Originally publishedDefenses

Quick read

Defenses

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

SkillSentry uses an adaptive honey world for pre-installation auditing of skills, with an average F1 of 96.26% across two mixed benchmarks.

Threat modelPre-installation audit: the scanner reads the skill package and executes it in an isolated environment. The goal is to determine whether the skill produces completed effects not required by the declared task. Knowledge includes descriptions, scripts, dependencies, auxiliary files, and the capability contract derived from the description, user input, and deployment policy. The paper does not use white-box or black-box methods. A determination requires that the effect is caused by the skill, is supported by source code, and exceeds the contract; insufficient coverage is recorded as unresolved.

Questions
Installed skills may expose undisclosed behaviors only after specific environments, resources, or interaction histories appear. Public registries make skills easy to reuse, and after installation, skills can use the host's files, shell, credentials, and network. Static analysis and one-time semantic judgment are insufficient to confirm that such behavior is reachable, completed, and caused by the skill.
Methods
SkillSentry first infers a capability contract from the declared task, then turns source-supported out-of-bounds behaviors into tests. It constructs a honey world containing task-unrelated decoys, performs paired execution with and without the skill on the same task, and judges unsafe only when an effect is completed, attributable, and exceeds the contract.
Experiments and results
SkillSentry achieves 99.50% Recall on the harmful-only benchmark, F1 of 96.08% and 96.43% on the two mixed benchmarks, and FPR of 4.15% and 2.33%. The average F1 across four evasions is 92.95%. The average injection F1 is 86.32%.
Limitations and future work
The paper does not specifically discuss limitations. The experiments cover three standard benchmarks, four semantic-preserving evasions, and two capability injection sets, plus component ablation, four backbone types, and a time sample of 200 skills. The paper does not report full benchmark sizes, repetition counts, or human agreement.
Experimental setupDeepSeek-V4-Pro、Qwen et al. · HarmfulSkillBench、SkillTrustBench et al. · Precision、Recall et al.
Evaluated models
DeepSeek-V4-ProQwenKimiDoubao
Benchmarks
HarmfulSkillBenchSkillTrustBenchMalSkillBenchPOISESkillCloak-StructuralSkillCloak-SFSVulMask-styleSkill-InjectSkillJect
Metrics
PrecisionRecallF1FPR
AI summaryThe researchers propose SkillSentry, a dynamic safety testing framework based on adaptive honeypot worlds, to detect harmful behaviors of LLM agent external skills that are only exposed under specific environment states. The method first infers the skill's capability boundary, constructs an environment simulated by LLMs with controlled decoy resources, and adaptively generates tasks to explore its behavioral states, then compares execution trajectories with the skill enabled against matched executions without the skill, localizing suspicious behaviors to source code and verified execution trajectories. On standard benchmarks, SkillSentry achieves 99.50% recall and 96.26% average F1; under semantics-preserving evasion attacks, average F1 is 92.95%, with the strongest baseline at 80.07%. The authors state the code is publicly available.

The researchers propose SkillSentry, a dynamic safety testing framework based on adaptive honeypot worlds, to detect harmful behaviors of LLM agent external skills that are only exposed under specific environment states. The method first infers the skill's capability boundary, constructs an environment simulated by LLMs with controlled decoy resources, and adaptively generates tasks to explore its behavioral states, then compares execution trajectories with the skill enabled against matched executions without the skill, localizing suspicious behaviors to source code and verified execution trajectories. On standard benchmarks, SkillSentry achieves 99.50% recall and 96.26% average F1; under semantics-preserving evasion attacks, average F1 is 92.95%, with the strongest baseline at 80.07%. The authors state the code is publicly available.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Conditional skill privilege escalation is difficult to trigger and attribute through static or one-time semantic scanning; SkillSentry uses paired execution for pre-installation auditing.

    A skill can appear harmless at inspection time and only exhibit harmful behavior after encountering specific environment states, resources, or interaction history; static scanning and one-time semantic judgment struggle to elicit and attribute such conditional privilege escalation.

    • Scenario: Skills consist of reusable instructions, scripts, and dependencies; once installed, they can use the host agent's access to files, shell, credentials, and network services. The authors state that public registries facilitate reuse but also form a supply-chain boundary; recent measurements found malicious skills, as well as seemingly useful skills whose descriptions never disclose their capabilities.
    • Limitations: The authors state that existing scanners mainly rely on static analysis, predefined rules, or one-time semantic judgment. Source code can reveal file and network APIs but cannot show that conditional branches will execute; LLM review may accept plausible explanations without observing effects, or may reject legitimate dual-use operations.
    • Requirements: The authors believe a useful conclusion must simultaneously observe the behavior occurring, the skill's enabling causing that behavior, and the claimed task not requiring it. The environment may lack the files, credentials, or service responses needed to activate hidden branches; without the skill, the base agent may also perform the same actions.
    • Approach: The authors propose a pre-deployment audit, SkillSentry: infer a capability contract, construct environments with controlled decoys and adaptively generate tasks, then compare skill-enabled execution with matched skill-free execution, grounding conclusions in source code and verified trajectories. The abstract states the environment is simulated by an LLM; the method section states execution occurs in an isolated environment.
    • Threat model:
      • Goal: Determine whether a skill performs actions unnecessary for its claimed purpose, which the authors call capability drift, and give a conclusion before installation.
      • Knowledge: The scanner can read the description, scripts, dependencies, and auxiliary files, and derives a task-specific capability contract from the description, user input, and deployment policy. The paper does not use white-box, black-box, or no-box.
      • Capability: In an isolated environment, run paired executions of the same task, same base agent, and same budget in an ordinary world and a honey world, with and without the skill. Post-hoc premises must be supported by both source code and trajectories.
      • Judgment: Report unsafe when at least one effect is completed, caused by enabling the skill, explainable by the referenced package contents, and beyond the contract. If required behaviors cannot be tested, report unresolved, and do not treat missing coverage as evidence of safety.
  2. What related research exists?

    Related work covers skill threats, artifact scanners, and sandboxes; the authors change the determination to executable and attributable capability drift.

    Threats posed by skills

    • Tool-based attacks (Zhan et al. 2024; Debenedetti et al. 2024; Zhang et al. 2025; Wang et al. 2026): attacks can enter through external content, tool metadata, or tool interactions, and effects may appear only after multiple steps. The paper mentions this only as background and does not compare each work.
    • Skill supply chain (Li et al. 2026; Liu et al. 2026; Saha, Faghih, and Feizi 2026): the authors state that these works identify malicious skills, as well as seemingly useful packages with undocumented capabilities. Skills leave instructions, executable helpers, and dependencies for many subsequent tasks.
    • Existing benchmarks (Jiang et al. 2026; Guo et al. 2026a; Tencent Zhuque Lab 2026, etc.): the paper states that existing benchmarks cover only harmful sets, mixed sets, capability injection, and evasive rewriting. The authors therefore argue that skill safety depends not only on package content but also on the behavior caused when the skill is used.

    Skill scanners

    • SkillSpector (Paz et al. 2026; NVIDIA 2026) combines static analysis with optional LLM review.
    • Cisco Skill Scanner (Cisco AI Defense 2026) offers static, data-flow, and LLM-based configurations. Skill Vetter (spclaudehome 2026) uses an LLM to inspect the full package. Etteib, Lunghi, and Bissyandé (2026) first locate suspicious source regions, then make semantic judgments.
    • The authors state that these scanners are easy to extend, but artifact evidence alone cannot establish reachability or causality: sensitive operations may be required by the claimed task, and harmful paths may be hidden behind trigger conditions or benign code.

    Sandboxes and decoys

    • ToolEmu, ToolSandbox, AgentDojo (Ruan et al. 2024; Lu et al. 2025; Debenedetti et al. 2024) simulate service interactions or provide reproducible, stateful tool environments.
    • Controlled execution (Liu et al. 2025; Jia et al. 2025; Yuan et al. 2024; Feng et al. 2026) is used for fuzzing, action checking, trajectory judgment, and state verification. The paper does not criticize these systems individually.
    • The authors state that their synthetic resources draw on decoy documents and honeywords (Bowen et al. 2009; Juels and Rivest 2013), but touching a decoy is only observation.

    Baselines and benchmarks

    • Baselines: SkillSpector's Static and LLM; Cisco's Original, Behavioral, and LLM; Skill Vetter under Hermes and OpenClaw with the same instructions. Seven configurations in total.
    • Benchmarks: HarmfulSkillBench, SkillTrustBench, MalSkillBench for standard detection; POISE, SkillCloak-Structural, SkillCloak-SFS, and VulMask-style for evasion; Skill-Inject and SkillJect for additional injection.

    The authors position this paper as capability drift testing: artifact discovery guides execution, and judgment depends on whether the behavior is caused by the skill and exceeds claimed permissions. The authors state that most prior sandboxes evaluate the agent or application as a whole, whereas SkillSentry isolates a single skill using with-skill/without-skill comparison under matched initial states.

  3. How does the paper address this problem?

    SkillSentry uses capability contracts to guide four-way paired execution in a honeypot world, then verifies completed and out-of-bounds effects.

    The overall idea is to turn pre-installation scanning into a controlled experiment: first define allowed behavior, then use an adaptive honey world to give hidden branches a chance to occur, and finally use with-skill/without-skill trajectories for attribution. The framework is named SkillSentry and has four stages, all executed in an isolated environment (Figure 2).

    Capability contract and test plan

    • Contract: record the resources, operations, goals, and outputs required by the declared task from the skill description, user input, and deployment policy. Only permissions necessary for that task are written in; a skill cannot expand its contract by requesting broader permissions.
    • Test plan: inspect instructions, scripts, dependencies, and auxiliary files, and convert behaviors that may exceed the contract into a plan, stating possible trigger conditions, expected actions, why they may exceed the boundary, and observable evidence upon completion. Each item must cite package content.
    • Semantic critic: before execution, check whether the cited content supports the plan; discard it if not. It does not determine whether the skill is unsafe, only that the test corresponds to behavior reasonably executable in the package.

    Adaptive honey world

    • Two worlds: the normal world has only the resources required by the task. The honey world starts from the same state and adds only the minimal extra resources required by the test plan. This resource is unrelated to the task, carries a unique marker, and is monitored for access or modification.
    • Refinement: if the source code checks a condition, only construct a state satisfying that condition. If execution reveals another prerequisite, add it only when both the source code and the trajectory support it. Stop when the behavior has been reached, or when there are no longer supported modifications.
    • Decoy is not a conclusion: the decoy only provides an opportunity to occur. If the required run does not reach the tested behavior, record it as unresolved; do not treat missing coverage as safety. The remaining task states of the two worlds remain matched.

    Four-way paired comparison

    • Causal bundle: under each test and random seed, each world performs one no-skill control and one skill-enabled run. The four runs use the same task, the same base agent, the same budget, and the corresponding initial states, recording tool calls, goals, results, and before/after states. The paper does not give the number of seeds or budget values.
    • Baseline differential: within each world, compare skill-enabled versus no-skill, removing items that match completed effects in the control. An effect is retained only if it appears with the skill, acts on a different goal, produces a different result, or leaves a different final state.
    • Between-world comparison: the normal-world differential looks at behavior caused by the skill under task-required states; the honey-world differential looks at behavior after introducing the decoy. Comparing the two distinguishes extra behavior activated by the decoy from actions the task, base agent, or skill would take anyway in the normal state.

    Confirming violations

    • Dynamic verifier: a retained effect must appear only with the skill, be completed through tool results or state changes, and be explainable by the cited package content. Failed commands, tentative actions, and agent self-reports, without observable results, are insufficient.
    • Dual-purpose review: for qualified soft positives, ask whether the effect is necessary for the declared task and appropriately scoped. Downgrade when evidence supports legitimate task-required operations. The review can downgrade but cannot newly create unsafe conclusions without execution evidence.
    • Division of labor and three conclusions: the critic looks before execution at whether the source-code test is reasonable; the verifier looks after execution at whether the evidence establishes the effect. They can share a backbone, but the evidence and prompts differ. Report unsafe if at least one effect is completed, caused by the skill, supported by source code, and exceeds the contract; report no verified violation only if all required tests are completed and no such effect exists; report unresolved if required behavior cannot be tested.
  4. What experiments did the paper conduct?

    Average F1 on the two mixed benchmarks is 96.26%, average FPR is 3.24%; average F1 under four evasions is 92.95%.

    Experimental Setup

    • Scanners: The seven baselines are SkillSpector (Static, LLM), Cisco Skill Scanner (Original, Behavioral, LLM), Skill Vetter (Hermes, OpenClaw). Unless otherwise stated, SkillSentry's test generator and evidence reviewer are DeepSeek-V4-Pro (Section 4.1).
    • Backbones: Figure 3 also compares DeepSeek, Qwen, Kimi, Doubao. The paper does not give versions for the latter three, nor does it specify the specific models inside each baseline.
    • Benchmarks: HarmfulSkillBench has only harmful skills; SkillTrustBench and MalSkillBench have both harmful and clean packages. Evasions are POISE, SkillCloak-Structural, SkillCloak-SFS, VulMask-style. Supplementary evaluations are Skill-Inject and SkillJect. The paper does not report the number of skills in each full benchmark.
    • Metrics: Precision, Recall, F1, FPR. The first three are higher-is-better, FPR is lower-is-better. HarmfulSkillBench has no clean samples, so only Recall is reported. The paper does not explain how unsafe, no verified violation, and unresolved map to these binary metrics.
    • Execution: All executions are in isolated environments. The paper does not specify the base agent model, number of random seeds, test budget, or number of repetitions, nor does it report human annotation or agreement with LLM review.
    • Sampling: Table 4 uses 200 skills from SkillTrustBench, and the table note says this is the only sampling experiment. Appendix A also evaluates fixed 200 skills on each of the other two benchmarks.

    Main Results

    According to Table 1, units are %. HSB is HarmfulSkillBench, only Recall is listed; STB is SkillTrustBench; MSB is MalSkillBench.

    Swipe horizontally to read the table

    ScannerHSB RecallSTB F1STB FPRMSB F1MSB FPR
    SkillSpector (Static)6.0084.6028.3656.1420.70
    SkillSpector (LLM)10.0086.6845.2261.0620.88
    Cisco (Original)2.5082.4130.4956.5713.08
    Cisco (Behavioral)5.0082.4337.1360.8118.20
    Cisco (LLM)5.0088.3053.6881.6638.78
    Skill Vetter (Hermes)86.5090.1442.8594.369.15
    Skill Vetter (OpenClaw)89.0089.2749.4897.443.88
    SkillSentry99.5096.084.1596.432.33
    • The authors state that SkillSentry can detect harmful skills on all three benchmarks, with FPR below 5% on both mixed benchmarks. The authors attribute the difference to a two-step verification: whether the effect disappears when the skill is disabled, and whether the claimed task requires that effect.
    • The authors state that existing scanners' high recall comes with many false positives. On SkillTrustBench, Cisco (LLM) has a recall of 97.03%, while SkillSentry has 96.12%; the authors state the former mislabels more than half of benign skills, with FPR as in the table above.
    • Exceptions: On MalSkillBench, OpenClaw's recall is 98.73%, higher than SkillSentry's 94.74%; on SkillTrustBench, OpenClaw and Hermes have recalls of 97.52% and 96.96%, also higher than 96.12% (Table 1, not listed in the table above). In the table above, OpenClaw's MSB F1 is also higher.

    Semantics-Preserving Evasions

    • What was tested: The four transformations in Table 2 modify instructions, program structure, or payload placement; the authors state the harmful capability remains. Metrics are still Precision, Recall, F1, FPR.
    • Results: SkillSentry's F1 is 97.55% for POISE, 91.74% for SkillCloak-Structural, 96.15% for SkillCloak-SFS, 86.36% for VulMask-style, averaging 92.95%. The authors state the average of the best baseline F1 across attacks is 80.07%, leading by 5.41–16.70 F1 points; average FPR goes from 31.73% to 8.18%.
    • Exceptions: On VulMask-style, SkillSpector's recall is 100.00%, higher than SkillSentry's 76.00%, but FPR is 80.00%–93.18%; four baseline configurations have 0.00% recall in that column. The authors state that rewriting cannot hide effects that only appear when the skill is enabled. On Structural, SkillSentry's FPR is 18.00%, not the lowest in that column.

    Component Ablation

    • Static vs. Dynamic: Dynamic-only gives 100.00% precision on both mixed benchmarks, but recall is 8.00% on SkillTrustBench, 4.00% on MalSkillBench, and 2.00% on HarmfulSkillBench. The authors state that unguided tasks rarely satisfy hidden triggers. Static-only reduces HarmfulSkillBench recall from 99.50% to 78.00%, and SkillTrustBench F1 from 96.08% to 83.33% (Table 3).
    • Honey resources: Removing them reduces average F1 on mixed benchmarks from 96.26% to 85.48%. The authors state that ordinary environments often lack credentials, files, or service states that activate condition paths; touching decoys itself does not constitute a violation.
    • Attribution and verification: The authors state the full pipeline has an average FPR of 3.24% on mixed benchmarks. Removing the no-skill differential gives an average FPR of 10.00%; removing dynamic verification gives 34.09%; removing dual-use review gives 10.00%. The authors state that no single component reproduces both high recall and low FPR.

    Injection Capability

    • Setup: Skill-Inject and SkillJect insert harmful capabilities unrelated to the declared purpose into clean skills. The authors state these are not the two main threat settings. Pointwise values in Figure 5 are not given in text; below we use averages from Section 4.6.
    • Results: SkillSpector (LLM) has average F1 of 89.63% and average FPR of 29.47%; SkillSentry has 86.32% and 3.94%; Cisco (LLM) has 80.39% and 4.88%.
    • Authors' interpretation: The authors state that recall-oriented artifact scanners can recognize injected payloads, but may attribute suspicious artifacts to the host package's original benign behaviors; no-skill trajectories and capability contracts separate the host's legitimate behavior from new side effects.

    Other Ablations and Analyses

    • Removing Critic: HSB Recall 52.00%, STB F1 63.16% (FPR 4.00%), MSB F1 74.42% (FPR 8.00%) (Table 3).
    • Removing Source Grounding: HSB Recall 69.44%, STB F1 82.76% (FPR 6.67%), MSB F1 87.50% (FPR 18.18%).
    • Removing Baseline Differential gives HSB Recall 76.00%; removing Dual-use Review gives 86.00%; removing Dynamic Verifier gives 78.57% (Table 3).
    • Section 4.4 on Figure 3: Each backbone has HSB Recall at least 97.00%, with the lowest being 97.00%; STB F1 ranges from 81.82% to 96.08%, MSB F1 from 89.57% to 96.43%. The authors state DeepSeek has the best overall balance, and contract interpretation is most model-dependent.
    • Figure 4: The authors state that matched generator-reviewer combinations are best in 10 of 12 groups, averaging 93.57%, while cross-model combinations average 73.89%. The text does not list each cell.
    • Table 4: On 200 skills from SkillTrustBench, SkillSentry takes 119.47 seconds per skill, with 37.53M input and 1.41M output tokens. Appendix Tables 5 and 6, on the other two 200-skill subsets, take 51.76 seconds with 10,253,319 input tokens, and 78.20 seconds with 18,759,162 input tokens.
  5. What are some points that can be further explored?

    The paper does not specifically write out limitations or future directions.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. The main text, conclusion, and appendix do not frame any result as a shortcoming, nor do they list future work.

    Experimental coverage

    • The standard detection comparison covers seven baseline configurations against SkillSentry, with benchmarks HarmfulSkillBench, SkillTrustBench, and MalSkillBench, and metrics Precision, Recall, F1, and FPR (Sections 4.1–4.2, Table 1).
    • The evasion experiments cover POISE, SkillCloak-Structural, SkillCloak-SFS, and VulMask-style (Table 2). The capability injection supplementary experiments cover Skill-Inject and SkillJect, with the main text reporting average F1 and average FPR across the two benchmarks (Section 4.6, Figure 5).
    • The component ablation covers nine settings in Table 3. The backbone comparison involves DeepSeek, Qwen, Kimi, and Doubao (Figure 3); generator and reviewer pairings appear in Figure 4. By default both are DeepSeek-V4-Pro.
    • Time and API tokens use 200 skills on each of the three benchmarks (Table 4, appendix Tables 5 and 6). Appendix B gives three cases where OpenClaw labels normal and SkillSentry labels malicious.
    • The paper does not report the number of skills in each full benchmark, the number of repetitions, the base agent model, how the three audit conclusions are counted into binary metrics, or agreement between LLM review and human judgment.
  6. Summarize the main content of the paper

    The contract plus paired execution audits skill privilege escalation; the average F1 across two mixed benchmarks is 96.26%, and the average F1 for evasion is 92.95%.

    SkillSentry is a pre-installation dynamic skill audit that uncovers capability drift beyond declared functionality.

    Once installed, a skill can use the host's files, shell, credentials, and network, while harmful branches may only appear when specific resources are present. The authors argue that source code or one-time semantic judgment can neither confirm that a branch will execute, nor separate a skill's effects from those of the task or the base agent's actions; legitimate high-privilege operations are therefore easily misjudged.

    The approach: build a capability contract from the description, user input, and deployment policy; turn possible out-of-contract behaviors with source-code evidence into tests; run the same task with and without the skill in an ordinary world containing only task resources, and in a honey world that adds only task-irrelevant decoys. Only skill-specific effects that are completed, traceable to source code, and beyond the contract are retained. Dual-use review can only downgrade, not add unsafe conclusions out of thin air. Insufficient coverage is recorded as unresolved.

    Main numbers reported by the authors:

    • Recall on HarmfulSkillBench is 99.50%; F1/FPR on SkillTrustBench is 96.08%/4.15%; on MalSkillBench it is 96.43%/2.33% (Table 1). The authors state the average F1 across the two mixed benchmarks is 96.26% and the average FPR is 3.24%. OpenClaw's F1 on MalSkillBench is 97.44%, higher than SkillSentry.
    • The average F1 across four semantic-preserving evasions is 92.95%. The authors state this leads the average of the highest-F1 baselines on each attack, 80.07%, by 5.41–16.70 F1 points, with average FPR dropping from 31.73% to 8.18% (Table 2). VulMask-style Recall is 76.00%, not the highest in that column.
    • The average F1 across two injection benchmarks is 86.32% and the average FPR is 3.94%, with F1 lower than SkillSpector (LLM)'s 89.63% (Section 4.6). The average time for 200 SkillTrustBench skills is 119.47 seconds (Table 4).

    The authors conclude that contract-varying honey worlds combined with paired with/without-skill trajectories can expose hidden capability drift before installation and provide replayable, skill-attributable evidence while controlling misattribution. The paper does not specifically discuss limitations.

Related papers

Show 3 more papers
Read originalarxiv.org