Agent Skill Safety: Threat Models, Attacks, Defenses, and EvaluationAgent Skill Security: Threat Models, Attacks, Defenses, and Evaluation
The authors use SkillSec-Eval to evaluate the lifecycle security of 327 skills; Hybrid admission MAR is 7.9% (Table 2).
- Reusable skills package tool calls, execution policies, and semantic metadata for sharing, so security assumptions no longer reside only in prompts or single executions. Existing research mostly analyzes injection, tool misuse, or software supply chains in isolation, lacking a unified evaluation across the full lifecycle of skills.
- SkillSec-Eval writes skills as metadata, workflows, permissions, tools, and versions, and decomposes the repository boundary into admission, retrieval, planning, execution, and evolution. Each boundary performs structural or semantic validation, retrieval filtering, metadata cleaning, runtime taint and policy, and update re-validation, respectively.
- Hybrid admission MAR 7.9% (Table 2). Sybil retrieval ASR on 440 queries drops from 93.20% to 26.59% (Table 3). Runtime Execution ASR drops from 100.0 to 23.0 (Table 5). Evolution defense MDR 92.5% (Table 6).
- The authors note that longitudinal dependency evolution and trust decay are out of scope, the evaluation repository is not a production deployment, and model jailbreaks, user-input prompt injection, and adversarial fine-tuning are not studied (§7). The experiments do not report attack sample sizes, number of repetitions, or the semantic validator model name; RQ5 has no separate results table.
- Evaluated models
- Gemini 3.1 proGemini 1.5 Flash
- Benchmarks
- SkillMCPSkillSec-Eval
- Metrics
- MARFPRASRnDCG@5Avg. Malicious in Top-5Planner ASRExecution ASRPolicy Violation Detection RateTaint Propagation AccuracyUARMDRFNR
The paper proposes SkillSec-Eval, a safety evaluation framework for the lifecycle of reusable Agent skills, classifying threats into five stages: repository admission, semantic retrieval, planner selection, runtime execution, and skill evolution. The authors build a repository with 327 real skills and evaluate with 440 queries: hybrid admission defense reduces the malicious admission rate from 52.9% with rule-based methods to 7.9%, with a false positive rate of 20.0%; the retrieval verification layer reduces the attack success rate of keyword stuffing and semantic disguise to below 10%, but trigger poisoning and Sybil attacks still have 17.50% and 26.59%. On the planner, the false recommendation baseline attack has the highest success rate (45.64%), and prompt injection the lowest (4.69%); runtime monitoring intercepts 87.0% of unauthorized tool calls, but taint tracking accuracy is only 66.67%, with an execution attack success rate of 23.0%. In the evolution stage, the defense has a malicious detection rate of 92.5%, a false negative rate of 7.5%, and a false positive rate of 37.0%.
Why it was selectedThe paper breaks down the safety of reusable Agent skills into five stages—repository admission, retrieval, planning, execution, and evolution—and provides measured data on attacks and defenses for each stage.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Adversa AIcites the paper's id or linkAdversa AI 汇总 2026 年 8 月 AI 编码 Agent 安全资源
Agent skill security: threat models, attacks, defenses, and evaluation
Paper analysis
What problem does this paper attempt to solve?
Security risks of reusable skills span from admission to evolution; existing work mostly covers only injection or execution.
The security of reusable agent skills in ingestion, retrieval, selection, execution, and update lacks a unified evaluation method across the lifecycle.
- Scenario: The authors state that skills encapsulate tool calls, execution policies, and semantic metadata, and are shared and reused across file systems, cloud infrastructure, and enterprise APIs; their metadata, permissions, workflows, and implementations can change independently of the underlying model, and the attack surface covers both natural language reasoning and conventional software execution (§1).
- Existing gaps: The authors state that prompt injection, jailbreaks, tool misuse, software supply chain, and planning vulnerabilities are mostly studied separately, with no unified method to identify trust boundaries, classify lifecycle threats, or compare attacks and defenses under the same experimental setup (§1, §2.4).
- Observation: Malicious skills can infiltrate repositories, manipulate semantic retrieval, deceive planners with misleading metadata, exploit execution in multi-step compositions, or gradually become malicious through subsequent updates; these risks resemble software supply chain attacks, with an additional semantic attack surface unique to LLM reasoning (§1).
- Proposal: A lifecycle threat taxonomy and the evaluation framework SkillSec-Eval. The framework decomposes the ecosystem into repository admission, semantic retrieval, planner selection, runtime execution, and skill evolution, and conducts empirical evaluation with 327 real skills (abstract, §1).
- Threat model (§3.3):
- Goal: Manipulate the agent to perform unintended behaviors, via the skill ecosystem, not the underlying language model.
- Capabilities: Publish malicious skills, modify existing artifacts, manipulate semantic metadata, distribute poisoned updates, or exploit semantic retrieval mechanisms.
- Assumptions: The underlying LLM, embedding models, execution runtime, and operating system functions are correct and not under attacker control.
- Scope: Isolate vulnerabilities introduced by lifecycle management of reusable skills. The paper does not describe the adversary as white-box or black-box.
What related research exists?
Related work covers agent safety, supply chains, and skill ecosystems, and the authors say there is a lack of unified lifecycle evaluation.
Related work is grouped by the paper's four sections. The authors position this work as comparing cross-lifecycle attacks and defenses across different trust boundaries under the same setup (§2.4).
LLM Agent Security
- Prompt injection and jailbreaks: Liu et al. (2024), Chen et al. (2025) study model-centric prompt injection and jailbreaks.
- Tools and planning: He et al. (2025), Li et al. (2026), Badhe (2025) study tool misuse, cross-tool data harvesting, planning deception, and multi-turn conversation deception.
- AgentDojo: Debenedetti et al. (2024) evaluate deployed agents under indirect prompt injection on untrusted tool outputs. The authors state that such work mainly looks at monolithic pipelines on a single agent or static tool sets, not modeling reusable skill ecosystems; AgentDojo evaluates deployed agents under adversarial interaction, while SkillSec-Eval evaluates the skill ecosystem itself (§2.1).
Software Supply Chain
- Package ecosystem mechanisms: Ohm et al. (2020), Ladisa et al. (2023) discuss provenance validation, signing, dependency analysis, and integrity checks in ecosystems like PyPI and npm. The paper also mentions SBOM, SLSA, and Sigstore.
- Difference from the skill layer: The authors state that these mechanisms can verify the structural integrity of skill packages but cannot judge how semantic descriptions, metadata affect vector retrieval, how planners interpret intent, or how dynamic updates introduce planning compromises, citing Qu et al. (2026), Liu et al. (2026a) (§2.2).
Skill and Tool Ecosystems
- Market audits: Anthropic PBC (2024)'s Agent Skills drives third-party skill ecosystems. The authors relay Liu et al. (2026c): up to a quarter of published skills contain security-critical flaws; Liu et al. (2026b) report behaviorally confirmed malicious indicators.
- Skill-Inject: Schmotz et al. (2026) evaluate injections hidden in auxiliary skill files or metadata.
- Guidelines and isolation: OWASP MCP (OWASP GenAI Security Project, 2025) provides guidelines for using third-party servers; AgentBound (Bühler et al., 2026) addresses permission management and runtime isolation. The authors state that these are either subjective management guidelines or cover only single-runtime defenses, with no unified evaluation method across admission, vector retrieval, planner selection, execution, and long-term evolution (§2.3).
Experimental Baselines and Data
- Baselines: The experiments do not reproduce the above external systems. Admission baselines are Rules Only and Semantic Only (Table 2); retrieval baseline is all-MiniLM-L6-v2 with FAISS FlatL2, directly taking Top-5 (§6.2); planner baseline is zero-shot without metadata cleaning (§6.3); execution baseline is no monitoring (Table 5); evolution baseline is ingesting updates without review (§6.5).
- Data: Benign workflows are taken from SkillMCP, after removing duplicates and incomplete entries, resulting in 327 skills and 15 clusters (§5.1). Related work mentions AgentDojo, but the experiments do not use that environment.
The authors state that existing research treats prompt injection, traditional supply chain, semantic retrieval manipulation, and planner vulnerabilities separately, making it difficult to compare how attacks propagate across stages or to compare defenses across different trust boundaries under the same setup (§2.4).
How does the paper address this problem?
SkillSec-Eval breaks the repository boundary into five stages, evaluating attacks and validation separately at each trust boundary.
SkillSec-Eval does not treat the agent as a monolithic pipeline but decomposes it by trust boundaries: attacks are evaluated at their origin stage, and validation can be analyzed independently of downstream components (§4).
Skill Abstraction and Lifecycle
A skill is defined as S = (M, W, P, T, V): M is semantic metadata, W is an executable workflow, P is permissions, T is the underlying tool or service, and V is provenance and version (§3.1). Skills differ from atomic tools; they compose one or more tools into a high-level workflow, along with descriptions, execution policies, permissions, and auxiliary metadata.
- Six stages: Authoring, Storage, Retriever, Selection/Planner, Execution Runtime, Evolution. Each stage is a trust boundary, and the output of the previous stage is assumed correct (§3.2, §3.5).
- Framework starting point: Authoring occurs outside the managed runtime, before submission to the repository, so the implementation starts at the repository boundary, corresponding to five components: Repository Admission, Semantic Retrieval, LLM Planner, Runtime Execution, Skill Evolution (§4).
- Four checklists: structural metadata (publisher, signature, version, dependencies), semantic metadata (name, description, tags or examples), permission manifest, and behavior definition (prompt instructions, code, API, workflow graph, or tool call sequence) (§4.1).
Threat Classification
Attacks are assigned to stages based on the trust assumption violated (Figure 1, Table 1). Table 1 also lists representative defense directions, such as signature and provenance validation, trust-aware retrieval, metadata validation, runtime monitoring and taint tracking, and update re-validation.
- Authoring: hidden instructions, deceptive metadata, permission inflation, malicious workflows. This stage is outside the framework and has no separate experiments.
- Storage: structural types are Missing Signature, Tampered Payload, Version Rollback; semantic types are Permission Inflation, Metadata Deception, Hidden Prompt Injection.
- Retrieval: Keyword Stuffing, Semantic Camouflage, Sybil Publication, Trigger Poisoning. §3.4 describes both naive and LLM-assisted implementations.
- Selection: Planner Deception, Fake Recommendations, Misleading Descriptions, Permission Deception, Prompt Injection. The planner primarily looks at descriptive metadata.
- Execution: Unsafe Composition, Unauthorized Tool Invocation, Information-Flow Violation, Data Exfiltration.
- Evolution: Permission Escalation, Instruction Injection, Tool Substitution, Dependency Compromise, Publisher or Provenance Compromise.
Five-Stage Validation
- Admission: First, deterministic structural checks (schema, signature, payload integrity, provenance, dependencies, version lineage), then an unnamed LLM validator checks whether the workflow, natural language description, and requested permissions are consistent. Failure at any stage leads to rejection (§4.2). Experimental configurations are Rules Only, Semantic Only, Hybrid (§6.1).
- Retrieval: Accepted skills are embedded with dense embeddings into FAISS. §4.3 describes taking Top-k by cosine similarity, with malicious skills competing against multiple semantically similar benign skills. Before sending to the planner, semantic diversity filtering, metadata consistency checks, and permission consistency checks are applied. Experimental parameters are in §5.3, §6.2: all-MiniLM-L6-v2, 384 dimensions, FAISS FlatL2, first take Top-50, then filter to Top-5; executable instructions with similarity exceeding 85% to retained candidates are discarded. The paper does not explain how cosine similarity corresponds to FlatL2.
- Planner: Selects a workflow based only on the user request, semantic metadata, and declared permissions; executable workflows do not enter the planner context (§4.4, §6.3). The metadata validation layer does not modify the workflow but removes injection patterns in descriptions, normalizes fake recommendations or reputation claims, and checks capability and permission alignment.
- Execution: LifecycleGuard mediates each tool call in a sandbox, using dynamic taint tracking plus policy enforcement; before a call, it checks permissions and the current context, blocking unauthorized operations, privilege escalation, or transmission of sensitive data to untrusted sinks (§4.5, §5.3).
- Evolution: Updates re-enter admission, re-validating provenance, integrity, version lineage, dependency changes, semantic consistency, and permission changes before replacing the old skill (§4.6). §6.5 also compares the vector distance between original and updated instructions and restricts package imports. The paper does not give a threshold for this distance.
Construction and Determination
Attacks at each boundary are generated independently to reduce confusion from downstream components (§5). Retrieval attacks are automatically rewritten from benign skills; planner attacks modify only planner-visible metadata, keeping the workflow the same. §5.2's evolution scenarios include malicious updates, dependency compromise, version rollback, trust decay, and abandoned maintainers; §6.5 actually lists five categories: permission escalation, instruction injection, tool substitution, dependency compromise, and publisher forgery. The two lists are not identical.
Success is not measured by a single end-to-end metric (§5.4). Admission uses MAR, FPR, and lists average admission latency as a metric. Retrieval ASR is the proportion of queries where at least one malicious skill appears in the Top-5; there are also nDCG@5 and the average number of malicious skills in the Top-5. The planner metric is the proportion of queries where a malicious skill is selected. Runtime uses Execution ASR reaching the final privileged sink, policy violation detection rate, taint propagation accuracy, and the number of blocked tool calls. Evolution uses UAR, MDR, FPR, FNR (§6.5). Appendix B gives the full prompts for the admission validator and planner; the validator outputs SAFE or MALICIOUS, and the planner returns a skill id based only on the given metadata, or null if inappropriate. Decoding temperature is 0.
What experiments did the paper conduct?
Five-stage evaluation: Hybrid admission MAR 7.9%, Sybil defense ASR 26.59%, runtime ASR 23.0.
Experimental Setup
- Models: §5.3 planning experiments use Gemini 3.1 pro; §6.3 baseline planner is Gemini 1.5 Flash, zero-shot. The paper does not state whether the two are the same setting, and Table 4 does not specify the model. The retrieval encoder is all-MiniLM-L6-v2. The LLMs used for admission semantic validator and metadata cleaning are unnamed.
- Repository and Queries: SkillMCP public skills, after removing duplicates and incomplete entries, 327 benign skills, 15 capability clusters, each with 20–25, deliberately made semantically overlapping (§5.1). In Appendix A Table 7, the maximum is 25 for CRM & Business Workflow Automation, and the minimum is 20 for four categories each. Retrieval uses 440 queries covering all 15 capability domains (§5.3). Sample sizes for planner, runtime, and each attack class, as well as repetition counts, are not reported.
- Baselines: Admission uses Rules Only (signature, payload hash, version, permissions, and regex on executable instructions) and Semantic Only (skips structural rules, directly hands to LLM); retrieval baseline takes Top-5 directly; planner baseline looks at Top-5 directly; runtime baseline does not monitor; evolution baseline ingests updates without review (§6.1–§6.5).
- Metrics: Definitions in §5.4, §6.5. Table 3 notes all metrics are lower-is-better; among them, nDCG@5 measures the ranking quality of malicious skills.
- Research Questions: RQ1–RQ4 correspond to admission, retrieval, planner metadata, runtime monitoring. RQ5 asks whether least-privilege execution can prevent over-privileged skills from abusing permissions (§5). The fifth experiment in §6 is skill evolution; the paper does not provide a separate results table for RQ5.
- Configuration Differences: §5.3 admission three configurations are no defense, rule pipeline, Hybrid; §6.1 and Table 2 compare Rules Only, Semantic Only, Hybrid. No-defense MAR is not reported.
Main Results
| Stage | Condition | Metric | Baseline | After Defense | | Admission | Hybrid, vs Rules Only | MAR | 52.9% | 7.9% | | Retrieval | Sybil Attack (15 Clones) | ASR | 93.20% | 26.59% | | Retrieval | Semantic Camouflage | ASR | 61.14% | 9.82% | | Retrieval | Trigger Poisoning | ASR | 31.82% | 17.50% | | Planner | Fake Recommendation | Selection Attack Rate | 45.64 | 8.72 | | Runtime | Proposed Defense | Execution ASR | 100.0 | 23.0 |
Based on Tables 2–5. Retrieval ASR table headers include %. Table 4 and Table 5 headers do not include %, but the text uses these numbers as percentages. The admission baseline is not a no-defense configuration.
- The authors state that without secondary filtering, Sybil causes malicious clones to enter the planner context. The authors state that post-defense ASR for keyword stuffing and semantic camouflage is below 10% (Keyword Stuffing post-defense value is 7.83%, Table 3). The authors believe Trigger Poisoning and Sybil still partially succeed because they exploit vector space density, and post-hoc filtering alone cannot block zero-day attacks (§6.2).
- The authors state that Fake Recommendation is the highest category in the planner baseline, and Prompt Injection is the lowest (4.69, Table 4), and believe instruction-tuned models already have considerable resistance to direct prompt override. Misleading Description is 0.00 after capability validation. The authors believe the problem mainly comes from persuasive natural language metadata, not underlying model flaws, and state that the fake recommendation category drops by more than 80% (§6.3).
- The authors state that without monitoring, all evaluated attacks reach privileged sinks. After policy enforcement before tool calls, Policy Blocked is 87.0 and Taint Accuracy is 66.67 (Table 5). The authors attribute residual Execution ASR to the LLM losing string taint markers when internally rewriting or summarizing sensitive data, making the context window an unmonitored implicit flow (§6.4).
Repository Admission
- Evaluates six attack types and three defenses (§6.1, Table 2). Rules Only MAR 52.9%, FPR 0.0%; Semantic Only MAR 42.9%, FPR 20.0%; Hybrid MAR 7.9%, FPR 20.0%. Table 2 does not break down by attack type.
- The authors state that rules can block malformed payloads and invalid signatures, but are ineffective against attacks that preserve legal syntax and only manipulate semantic intent (e.g., Metadata Deception); Hybrid considers executable instructions and declared permissions together.
- The authors state that the remaining 7.9% MAR and 20.0% FPR are the cost of using LLM for semantic defense, and believe it can still be bypassed by sophisticated zero-day evasion. Admission latency has no numerical value.
Skill Evolution
- The five categories are privilege escalation, instruction injection, tool replacement, dependency compromise, and publisher forgery (§6.5). The defense treats each update as a new admission event and compares the vector distance between original and updated instructions. The threshold is not given.
- Table 6 reports only this defense: UAR 63.0%, MDR 92.5%, FPR 37.0%, FNR 7.5%. The text states that without continuous validation, 100% of malicious updates inherit existing trust; this 100% is not in Table 6.
- The authors state that some instruction injections remain below the vector distance threshold, corresponding to 7.5% FNR; benign refactorings trigger behavioral boundaries, corresponding to 37.0% FPR and 63.0% UAR. The authors state that no single defense is sufficient alone, because attacks like Semantic Taint Evasion can bypass individual semantic or runtime filters.
Other Ablations and Analyses
- Table 3 nDCG@5 (Base to Def): Keyword Stuffing 0.187 to 0.091; Semantic Camouflage 0.205 to 0.117; Trigger Poisoning 0.299 to 0.133; Sybil 0.742 to 0.223.
- Table 3 Avg. Malicious, same order: 0.38 to 0.12, 0.42 to 0.14, 0.50 to 0.17, 2.84 to 0.27.
- Table 4 other selection attack rates: Misleading Description 27.27 to 0.00; Permission Deception 11.36 to 5.68; Planner Deception 9.88 to 2.47; Prompt Injection 4.69 to 3.65.
- Table 5 baseline Policy Blocked and Taint Accuracy are NA. §5.4 lists admission latency and blocked tool call count as metrics, but the text does not provide values for these two.
- §3.4 states retrieval attacks are divided into naive and LLM-assisted; Table 3 does not break them down, and the assisting LLM is unnamed.
- §5.2 mentions trust decay and abandoned maintainers; §6.5 evaluation list changes to publisher forgery, without separate numbers for the first two categories.
What are some points that can be further explored?
The authors note that long-term dependency evolution, production environments, and attacks on the underlying model itself are not covered.
Limitations and future directions noted by the authors
- Longitudinal attacks: Relying on evolution and trust decay requires long-term repository history, which the authors say is beyond the scope of this paper (§7).
- Deployment environment: The repository consists of real skills, but it is a controlled evaluation environment, not a production deployment. The authors say repositories in real ecosystems may be larger and have heterogeneous skill formats and framework-specific execution semantics (§7).
- Unit of analysis: Only reusable skills are used as the unit; attacks on the underlying LLM itself are not studied, including model jailbreaks, prompt injection from user input, and adversarial fine-tuning. The authors say these are complementary to lifecycle attacks and warrant further research (§7).
- Future hopes: The authors hope SkillSec-Eval will serve as a foundation for future work, including secure agent ecosystems, lifecycle evaluation methods, and trustworthy deployment of reusable skills (§8).
Experimental coverage
- 327 benign skills from SkillMCP, 15 capability clusters, 20–25 per cluster; counts by category are in Appendix A Table 7. The retrieval evaluation uses 440 queries covering these 15 domains (§5.1, §5.3).
- The five experiments in §6 are repository admission, semantic retrieval, planner selection, runtime execution, and skill evolution. Authoring is in the taxonomy, and the framework starts at the repository boundary, with no separate authoring-stage experiment (§4).
- Defense configurations include Rules Only, Semantic Only, Hybrid, Retrieval Validation Layer (instruction similarity threshold 85%), Metadata Validation Layer, LifecycleGuard, and re-validation at the evolution stage (§6.1–§6.5).
- Retrieval uses all-MiniLM-L6-v2, 384-dimensional vectors, and FAISS FlatL2, first taking Top-50 and then filtering to Top-5 (§5.3). The planning model is written as Gemini 3.1 pro in §5.3 and as Gemini 1.5 Flash, zero-shot, in §6.3. The decoding temperature in Appendix B is 0.
- The paper does not report the number of samples per attack class, the number of repetitions, admission latency, the names of the LLMs used for the semantic validator and metadata sanitization, or agreement with human judgment. RQ5 in §5 asks about least-privilege execution, and §6 has no corresponding results table. §3.4 writes that retrieval attacks are divided into naive and LLM-assisted, and Table 3 does not break them out.
Summarize the main content of the paper
SkillSec-Eval evaluates reusable skills across five trust boundaries; the authors state that single-point defenses are insufficient to cover the full lifecycle.
SkillSec-Eval evaluates reusable agent skills by trust boundary, rather than looking only at prompt injection or a single execution.
Once skills are shared, metadata, permissions, workflows, and versions can change independently of the underlying model. The question the authors want to answer is whether malicious skills can cross unvalidated trust boundaries at the admission, retrieval, planning, execution, or update stage.
The framework writes skills as metadata, workflows, permissions, tools, and versions, and implements five-stage validation starting from repository submission: structural rules plus LLM semantic consistency, post-retrieval diversity and permission filtering, sanitization of planner-visible metadata, LifecycleGuard's dynamic taint and policy, and re-admission on update. Attacks are generated separately by boundary, and metrics are also defined by boundary. Benign skills come from SkillMCP, with 327 after filtering, in 15 clusters; retrieval uses 440 queries.
- Admission: Hybrid has a MAR of 7.9% and FPR of 20.0%; Rules Only has 52.9% and 0.0% (Table 2). The no-defense MAR is not reported.
- Retrieval: Sybil Attack (15 Clones) ASR goes from 93.20% to 26.59%; Semantic Camouflage goes from 61.14% to 9.82% (Table 3).
- Planner: Fake Recommendation goes from 45.64 to 8.72, Misleading Description to 0.00, and Prompt Injection from 4.69 to 3.65 (Table 4). §5.3 writes the planning model as Gemini 3.1 pro, and §6.3 writes Gemini 1.5 Flash.
- Runtime: Baseline Execution ASR is 100.0, and 23.0 after defense; Taint Accuracy is 66.67 (Table 5).
- Evolution: Defense MDR is 92.5%, FNR 7.5%, FPR 37.0%, UAR 63.0% (Table 6).
The authors say vulnerabilities appear before execution, and a defense at a single boundary cannot cover the remaining stages. The authors hope the framework will be used for subsequent lifecycle evaluation and trustworthy deployment.