SkillSecurer: Detecting and Patching Prompt Injection Vulnerabilities in AI Agent SkillsSkillSecurer: Detecting and Patching Prompt-Injection Vulnerabilities in AI Agent Skills
SkillSecurer uses red and blue agents to generate, localize, and patch agent skill injections; Sonnet 5 achieves 100% IDR on Skill-Inject, and 17.6% of 954 wild skills are flagged.
An attacker can publish, modify, or corrupt any component of a skill package before the skill is installed or updated, with the goal of inducing an agent that has loaded the skill to perform security-relevant actions not authorized by the user. The detector only analyzes a static snapshot of the skill package and does not execute untrusted code.
- Third-party agent skills can influence agent decisions and actions through instructions, scripts, and configuration; existing benchmarks often lack precise injection locations, and scanners mostly provide only skill-level flags without patches.
- SKILLSECURER consists of REDINJECTOR, which generates and records context-compatible injections across nine threat categories; BLUEPATCHER, which analyzes the full skill package and provides evidence-based findings and minimal patches; and VERIFIER, which computes IDR by matching findings against recorded injections using lexical similarity and an independent LLM judge.
- The authors state that Sonnet 5 is the only scanner to achieve 100% IDR on 345 controlled instances. Of the 87 findings on Sb, 74 were confirmed by majority. In the wild, 17.6% of 954 skills were flagged, with an 84% confirmation rate in the sampled review; the authors state that they triggered real events on some skills and evaluated the patches.
- The authors note that verification is static, cannot guarantee preservation of legitimate functionality, and that real-world impact also depends on guardrails, permissions, and sandboxes; there is no unified ground truth in the wild. The evaluation backend is accessed via OpenRouter, Fable 5 was excluded due to safety guardrails, and Sonnet 5 was not used for injection generation.
- Evaluated models
- Claude Sonnet 5Gemini 3.6 FlashGPT-5.6 SolKimi K3DeepSeek V4 ProGemma 31BGPT-oss 120BDeepSeek V4 FlashClaude Fable 5Claude Opus 5
- Benchmarks
- Dsi (Skill-Inject, N=165)Dred (Red-Generated, N=180)Sb (SkillTrustBench safe_pool, N=130)skills.sh in-the-wild (N=954)
- Metrics
- IDRGDRF1人工确认比例扫描成本
The researchers propose SkillSecurer, a fully agentic framework for generating, detecting, localizing, and fixing security risks in AI Agent skills. Its red agent generates context-compatible injections across nine threat categories and records specific changes, while the blue agent analyzes the full skill package, provides evidence-based findings, and proposes patches; on controlled instances, a verifier compares findings and patches against recorded injections, enabling injection-level evaluation. With the best backend LLM, SkillSecurer is the only scanner to achieve 100% injection detection rate. The authors then analyze popular skills in a skill library, finding that more than 17% of the examined skills have potential vulnerabilities, and triggered real events when testing some of them. They conclude that context-aware LLM analysis can provide reliable injection localization and actionable fixes, beyond skill-level flagging.
Related events and news
1 events · 1 news mentions
News that mentions this paper
Adversa AI 汇总 10 月 AI Agent 安全资源
- Adversa AIcites the paper's id or linkAdversa AI 汇总 2026 年 10 月 AI 编码 Agent 安全资源 26 项
SkillSecurer: detecting and patching prompt-injection vulnerabilities in AI agent skills
Paper analysis
What problem does this paper attempt to solve?
Existing skill scanners struggle to localize known injections and do not provide patches, so the authors propose an end-to-end red-blue framework.
Third-party agent skills can be injected or carry safety-relevant behavior themselves, but existing detection often only does skill-level flagging, making it hard to verify whether the injection was located, and does not provide inspectable fixes.
- Scenario and importance: The authors state that agents like Codex and Claude can execute tasks directly in workspaces, terminals, or computers; skills package reusable instructions, scripts, configurations, and external resources into context and act on the user's behalf. Skills are distributed via skills.sh, ClawHub.ai, Codex skills catalog, etc., with top-ranked skills having millions of downloads. Malicious or vulnerable skills can manipulate decisions, execute unsafe code, access files or credentials beyond authorization, call external services, or exfiltrate and destroy data.
- Limitations of existing methods: The authors state that existing benchmarks are often manually curated, fixed templates, simple injections, or specific adversarial strategies, and most do not record the injected instructions, files, or code snippets, making it hard to verify whether detectors correctly locate vulnerabilities. Existing scanners mostly rely on static checks, specialized detectors, or LLM prompts per vulnerability type, with outputs often binary or coarse-grained risk classifications, and usually do not provide fixes.
- Core observation: The authors argue that a skill-level alert may point to unrelated existing content or unsupported evidence, while controlled injections are still missed; only recording precise modifications enables injection-level detection and localization evaluation.
- Proposed method: The authors propose SKILLSECURER, and state that to their knowledge it is the first fully-agentic framework for end-to-end generation, detection, localization, and patching of security vulnerabilities in agent skills. It includes REDINJECTOR, BLUEPATCHER, and VERIFIER (used only for controlled instances), and defines Injection Detection Rate (IDR).
- Threat model:
- Victim system: An unwitting user installs a skill from a partially trusted source (public repositories, marketplaces, system administrators, or other users). After the skill matches a request, the agent may load instructions into context, execute bundled code, or invoke tools on the user's behalf; permissions may include files, credentials, environment variables, network, external APIs, shell, and persistent state, subject to user approval and sandbox restrictions.
- Attacker knowledge and capabilities: The attacker can publish, modify, or corrupt any component of a skill package before installation or update, including instructions, metadata, bundled scripts, configuration, declared dependencies, and external resource references. This covers malicious authors, compromised maintainers or repository accounts, compromised registries and build processes, dependency confusion, and package tampering.
- Attacker goals: Induce the agent to perform safety-relevant actions not authorized by the user, such as data exfiltration or arbitrary code execution. The authors assume the skill has already been selected and loaded on a seemingly relevant request; they do not model attacks that force an unrelated task to select a malicious skill.
- Defender: The detector receives a static snapshot of the skill package, analyzes all components without executing untrusted code; it can identify external resource references but does not assume remote content remains unchanged after scanning. A finding indicates the presence of instructions, implementations, dependencies, or auxiliary artifacts that may cause the agent to exceed the skill's stated functionality, claimed capabilities, or user authorization; it is a safety-relevant risk, not proof that the behavior will be triggered or exploited in every deployment.
What related research exists?
Related work is divided into benchmarks, red-team and blue-team scanners; the authors distinguish themselves by injection-level localization and patching.
The paper divides recent agent skill security work into benchmarks, red teams, and blue teams, and compares in Table 1 the date, method, whether static, LLM role, whether patching, benchmark scale, and author-reported results. The authors emphasize that performance numbers across studies cannot be directly compared horizontally.
Benchmarks
- Skill-Inject [20]: 202 injection–task pairs manually constructed from 23 skills, testing whether the victim agent's backend LLM obeys malicious instructions while completing legitimate tasks. The authors report ASR of 7–17% on Claude Opus 4.5 and 57–83% on Google Gemini models.
- SkillTrustBench [26]: A package derived from real skills, with nine attack categories, three labels (normal, suspicious, malicious), totaling 5,520 test cases. The authors state that the release includes full skill files and case-level vulnerability metadata, but lacks precise malicious snippet annotations, preventing automatic verification of localization correctness.
- MalSkillBench [7]: SKILL.md files injected by an LLM from a static knowledge base, generating 3,944 malicious skills and 4,000 matched benign skills. The authors state that the public release omits per-sample ground truth and runtime evidence files, and report that static scanners achieve 21–35% recall for prompt injection and agent control attacks, while LLM detectors achieve recall up to 98%.
Red Teams
- SkillJect [10]: Hides behavior-specific payloads in auxiliary scripts and uses an LLM to rewrite SKILL.md so that executing the script looks like a legitimate prerequisite; the attacking agent iteratively refines based on the victim's execution trace and evaluation feedback. On 100 ClawHub.ai skills and 4 injection types, Claude Sonnet 4.6 achieves an ASR of 34–57%.
- POISE [8]: A context-aware generator inserts a plausible instruction into a legitimate workflow; success is counted only if the payload executes and the user task still passes the verifier. The authors report an ASR of 89% for Codex and GPT-5.2 on a 25-task subset of Skill-Inject with 3 attack types; the ASR drops to 16% on a 27-task subset of SkillsBench.
Blue-Team Scanners
- SkillSpector [15, 18], Cisco Skill Scanner [3], AI-Infra-Guard [25]: Static rules with an optional or semantic LLM stage, outputting findings by vulnerability type or taxonomy; the authors state they do not provide patching; SkillSpector and Cisco do not provide a common benchmark that can be independently reproduced, and AI-Infra-Guard aligns with SkillTrustBench's nine risk categories but only reports skill-level performance.
- Snyk Agent Scan [22], Sentry skill-scanner [21], Skill Vetter [23], SkillSieve [9], Locate-and-Judge [5], SkillScan [14], SkillFortify [2]: Respectively combine rules, static analysis, specialized detectors, checklists, or layered review. Numbers reported by the authors include: Snyk confirmed 76 of 3,984 wild skills by human review; SkillFortify achieves an F1 of 96.95% on 270 benign plus 270 vulnerable samples (written as 97% in Table 1), and the authors state that this benchmark does not examine natural language semantics and agent instruction interaction; SkillScan achieves an F1 of 84% on 200 skills (63 vulnerable); Locate-and-Judge achieves a Hit@1 F1 of 19% and a Hit@10 F1 of 72% on Skill-Inject; SkillSieve achieves an F1 of 92% on 390 skills (56 malicious samples reviewed by humans).
- Do Not Mention This to the User [13]: Static matching, GPT-5.2 prompt analysis, and sandbox behavior verification, collecting 98,380 skills, flagging 4,287 suspicious candidates, and confirming 157 malicious ones. Gen Agent Trust Hub [6] and Socket [11] are also used alongside skills.sh and Snyk, and the authors compare their findings with them in Section 8.
Baseline Methods and Benchmarks
- Baseline Methods: The controlled comparison uses Cisco Skill Scanner, NVIDIA SkillSpector, and Tencent AI-Infra-Guard; the backend selection experiment only swaps the LLM within BLUEPATCHER itself. Static modes of Skill Scanner and SkillSpector are also reported without an LLM.
- Benchmarks/Datasets: Dsi comes from Skill-Inject (165 injected instances); Dred is generated by REDINJECTOR on 20 base skills across 9 threat categories (180); Sb comes from SkillTrustBench's safe_pool (130); the wild corpus is 954 skills from the July 3, 2026 skills.sh snapshot.
The authors' positioning in Section 2.1 is that benchmark work mostly measures only whether an injected skill is flagged, whereas REDINJECTOR automatically generates context-compatible injections and records precise modifications, enabling injection-level detection and localization; existing scanners revolve around specialized detectors or vulnerability-specific prompts, whereas BLUEPATCHER lets the backend LLM reason over the full skill context, intended workflow, and security implications; the authors state that BLUEPATCHER is the first to propose precise patches for each finding, for users to review and accept.
How does the paper address this problem?
The red team records injections, the blue team localizes and minimally patches without knowing ground truth, and the verifier computes IDR against ground truth.
SKILLSECURER separates the blue-team detection used for deployment from the red-team generation and ground-truth verification used only for evaluation: BLUEPATCHER only looks at the static snapshot of the skill, while REDINJECTOR and VERIFIER do not enter the daily scan.
Problem Setting and Pipeline
- Input and Output: In Figure 1, the deployment component is BLUEPATCHER. Given a static snapshot of the Skill under Test (SUT), it analyzes the instructions, metadata, and local artifacts, and outputs a findings report D, and, when applicable, a patched skill P. The overall operation is written as B(SUT) = (D, P); if D is empty, then P = SUT.
- Information Isolation: BLUEPATCHER does not receive benign controls, injection instructions, or other ground truth. The detection operation is written as Bdetect(SUT) = D, and the patching operation as Bpatch(SUT, D) = P.
- Controlled Entry: REDINJECTOR transforms benign skills into injected instances according to selected threat categories and records the modifications; external instances such as Skill-Inject, if they carry equivalent ground truth, can also enter the same evaluation pipeline. VERIFIER is used only when known ground-truth modifications exist.
Detection and Patching
- Findings Structure: Each finding records the security category and severity, an explanation, the cited evidence snippets, and their locations within the skill. Cited snippets must be mappable back to the submitted SUT snapshot, otherwise they are not retained, to ensure that localization falls on the analyzed artifacts.
- Patching Constraints: A second pass is performed when at least one grounded finding exists, generating a patch for each finding. The patcher is instructed to make minimal changes, removing or neutralizing the reported behavior while preserving legitimate content. The authors state that complete functional preservation requires task-specific runtime testing.
- Implementation: Orchestrated with LangGraph, it can run the full controlled pipeline, run only BLUEPATCHER, or analyze external controlled instances. Models in the experiments are accessed via OpenRouter. The system also records the number of LLM calls, inputs, outputs, cached tokens, and costs for each component, and has a lightweight web interface for browsing findings, evidence, patches, and ground-truth results.
Controlled Injection Generation
- Generation Goal: Given a benign skill S and a threat type τ ∈ T, R(S, τ) = (S′, Δ). T is the nine threat categories listed in Table 9. S′ is then given to BLUEPATCHER like any external SUT; Δ is used only during ground-truth evaluation.
- Generation Requirements: REDINJECTOR is instructed to generate modifications compatible with the host skill's context and intended functionality, preserve unrelated content, and record the introduced modifications in Δ, rather than inserting fixed payloads unrelated to the host.
- Nine Threat Categories: The paper illustrates the differences among these patterns in Section 6.3 and Appendix E with representative excerpts: credential exposure, data exfiltration, and prompt hijacking often reuse host terminology or workflows; arbitrary script execution and privilege escalation are more often written as explicit commands; Guardfall and indirect injection are often written as compliance, monitoring, validation, or integrity checks; prompt hijacking also includes command-free modifications that remove confirmations, validations, warnings, or user choices. The names of the nine categories follow Table 9; those explicitly named in the main text include the ones above. Appendix E gives one excerpt per category.
Ground-Truth Evaluation and Metrics
- Verification Target: For an original skill S, an injected skill S′, and an instance with recorded injections, V(S, S′, Δ, D, P) = (L, R). It determines whether the known injection was identified and whether the patch removes or neutralizes that injection, rather than merely checking whether any finding was produced for S′. Findings unrelated to the injection or pre-existing findings remain in the report but do not count toward injection detection.
- Localization Rule: If D is empty, it is recorded as a miss and similarity is not computed. Otherwise, the maximum lexical similarity r = max sim(norm(δ), norm(qi)) is taken between the recorded injection text δ and each finding's cited snippet qi. norm lowercases, collapses whitespace, and removes Markdown formatting characters; sim is the ratio of Python difflib.SequenceMatcher, where 0 means no lexical overlap and 1 means an exact match. If r ≥ 0.8, localization is confirmed and no LLM localization adjudication is performed; this threshold is only used to triage obvious lexical matches, not as a semantic safety decision threshold. Remaining cases with findings are given to an independent LLM judge, whose input includes the recorded injection, the diff derived from S and S′, all findings with their cited evidence and explanations, and the patch P.
- Metrics: L maps to a true positive when at least one finding points to the recorded injection, otherwise to a false negative. R records whether the known injected behavior is still present in P, or has been removed or neutralized. GDR is the proportion of injected skills for which the scanner reports at least one finding, regardless of location; scan failures are counted as negative detections in Table 4. IDR is the proportion of known injections for which the scanner identifies the corresponding injected component. The authors state that IDR is stricter than previous skill-level classification. Findings are also labeled by source (injected, pre-existing, configuration, ambiguous) and by the OWASP Agentic Security Initiative taxonomy; configuration findings (such as a missing allowed-tools declaration) are reported separately and are not automatically treated as false positives. Appendix A gives the complete labeling rules.
- Verification Boundary: The process is static. It can assess whether a recorded injection was identified and whether the corresponding behavior was removed from the patch, but it cannot establish that all legitimate functionality is preserved.
Human Verification Protocol
- Applicability: Injections in Dred and Dsi are controlled by the constructors; on the likely-benign set Sb and the wild results, human verification of false positives is needed. All findings on Sb, and a sample of wild findings, are independently reviewed by three experts, with majority vote determining confirmed vulnerability or false positive.
- Purpose: The authors state this is to prevent BLUEPATCHER from inflating IDR and GDR by piling up random findings.
What experiments did the paper conduct?
Sonnet 5 achieves 100% IDR on both controlled sets; 17.6% of 954 wild skills are flagged.
Experimental Setup
- Backends under test: As of July 21, 2026, the available models were Claude Fable 5, Claude Sonnet 5, Gemini 3.6 Flash, GPT-5.6 Sol, DeepSeek V4 Pro, Kimi K3, and the open models Gemma 31B, GPT-oss 120B, and DeepSeek V4 Flash. Claude Opus 5 was not yet available at the time of the experiments; the authors later tested it and reported its performance was comparable to Sonnet at roughly 2.5x the cost, so it was excluded. Fable 5 refused the task due to cybersecurity guardrails, and all runs were aborted.
- Datasets: In Table 2, Sb is the likely-benign control from SkillTrustBench's safe_pool, sampled uniformly with 10 from each of 13 functional categories with a fixed random seed, N=130 (the safe_pool has 1,490 likely-benign skills after multi-stage filtering). Ŝb is the 20 randomly retained skills from Sb with no BLUEPATCHER findings, used as generation inputs. Dred is these 20 skills × 9 threat types, N=180, with record injection. Dsi is Skill-Inject, N=165 (73 obvious, 92 contextual), from 68 injection recipes applied to 33 skills. The wild set is the most popular skills in the July 3, 2026 skills.sh snapshot where the directory simultaneously lists Gen Agent Trust Hub, Socket, and Snyk results, Nw=954.
- Comparison scanners: Cisco Skill Scanner, NVIDIA SkillSpector, Tencent AI-Infra-Guard. The authors excluded tools from Table 1 whose implementations were unavailable, no longer maintained, or had shown limited performance in [7]. SkillSecurer's IDR is derived from VERIFIER; scanner reports without VERIFIER localization are based on evidence-based lower–upper estimate intervals.
- Metrics and review: GDR, IDR, number of findings, number of failures, cost, number of calls, and input/output tokens. Sb and wild samples were reviewed by three experts with majority voting. The injection generator and detection backend were separated: the generation side used DeepSeek V4 Pro, not Sonnet 5, to avoid the same LLM both generating and detecting.
- REDINJECTOR validation: All 180 instances satisfied five criteria: requested skill–threat pair coverage, case uniqueness, record injection appearing in the output skill, injection consistent with ground-truth metadata, and semantic alignment with the declared threat type.
- Replication count: The paper does not report the number of repeated runs per condition.
Main Results
Backend selection on Dsi only changes the LLM, with prompts and pipeline unchanged (Table 3). Scanner comparison covers both Dred and Dsi (Table 4). The table below lists only settings where the paper gives a single-point IDR; Skill Scanner, SkillSpector, and AI-Infra-Guard have interval IDRs, as noted later, and are not merged into single-point cells.
Swipe horizontally to read the table
Setting IDR GDR Source Sonnet 5, BLUEPATCHER, Dsi 100.0% 100.0% Table 3 Gemini 3.6 Flash, Dsi 99.4% 99.4% Table 3 GPT-5.6 Sol, Dsi 99.4% 100.0% Table 3 DeepSeek V4 Pro, Dsi 96.3% 98.2% Table 3 Kimi K3, Dsi 98.2% 98.8% Table 3 Gemma 31B, Dsi 92.7% 97.0% Table 3 GPT-oss 120B, Dsi 86.1% 98.8% Table 3 SKILLSECURER + Sonnet, Dred and Dsi 100.0% 100.0% Table 4 - Authors' interpretation of backends: The authors state that GDR was near-perfect for all backends except DeepSeek Flash, and commercial frontier models' IDR ranged from 96.3% for DeepSeek V4 Pro to 100% for Sonnet 5. Gemma 31B and GPT-oss 120B missed 12 and 23 injections, respectively; GPT-oss also had 214 findings beyond expected injections, and manual review showed most were unsupported or hallucinated. Only DeepSeek V4 Flash and Kimi K3 had scan failures (Table 3: Flash failed 26, Kimi failed 2). Figure 2 plots log cost on the x-axis and detection rate on the y-axis, marking GDR and IDR separately. Sonnet 5 cost $15.42 on this benchmark; DeepSeek V4 Pro cost $2.50, which the authors state is about one-sixth of Sonnet's cost, and they consider it a viable option under cost constraints. The eight models totaled $79.23.
- Authors' interpretation of scanner comparison: The authors state that under a shared protocol, dataset, and backend, SKILLSECURER is the only scanner achieving 100% IDR on the 345 controlled benchmarks (Dred 180 plus Dsi 165). In Table 4, without an LLM, Skill Scanner on Dred has IDR 2.2–2.2% and GDR 7.2%, and on Dsi IDR 0.6–0.6% and GDR 0.6%; SkillSpector on Dred has IDR 25.0–26.1% and GDR 40.6%, and on Dsi IDR 29.7–31.5% and GDR 80.0%. With Sonnet, Skill Scanner on Dred has IDR 93.9–93.9% and GDR 95.6%, and on Dsi IDR 78.8–79.4% and GDR 100.0%; SkillSpector on Dred has IDR and GDR both 99.4%, and on Dsi both 98.8%; AI-Infra-Guard on Dred has IDR 53.9–93.9% and GDR 96.7%, and on Dsi IDR 47.3–85.5% and GDR 95.8%. The authors state that vertically specialized detectors are less precise at injection-level localization than BLUEPATCHER, which reasons over full context.
- Cost and failures: In Table 4, under the Sonnet configuration, on Dred, SKILLSECURER cost $12.13 with 489 calls and 0 failures; SkillSpector cost $24.29 with 1,046 calls; AI-Infra-Guard cost $30.26 with 900 calls. On Dsi, SKILLSECURER cost $15.62 with 333 calls and 0 failures; Skill Scanner had 8 failures in the Dred no-LLM and Sonnet rows (8 each), and AI-Infra-Guard had 1 failure on Dsi.
False Positives on Likely-Benign Skills
- What was tested: BLUEPATCHER with Claude Sonnet 5 scanned the 130 skills in Sb, and three independent evaluators from a pool of four reviewed each finding by majority vote.
- Results: 45 skills (34.6%) were flagged, with 87 findings total. 74/87 (85.1%) received majority confirmation, of which 50 were unanimous and 24 were majority; 13/87 (14.9%) did not receive majority support, of which 2 were unanimously rejected and 11 were majority-rejected. The authors state that none of the vulnerabilities appeared to be suspicious deliberate malice. Appendix Table 7 gives the distribution by OWASP main category: Identity and Privilege Abuse had 32 of 34 reported findings manually confirmed; Unexpected Code Execution had 17 of 19 confirmed; Tool Misuse and Exploitation had 11 of 17 reported findings confirmed, with its 6 unsupported findings being the largest group of false positives within a category.
- Authors' interpretation: The authors interpret the manually supported findings as potential vulnerabilities rather than deliberate attacks, and state that although these skills are labeled likely benign, they still contain security-relevant behavior. The authors state that BLUEPATCHER's false positive rate is lower than SkillSpector's 42.4% and Skill Scanner's 84.0% reported in the SkillTrustBench paper. Regarding the unsupported Tool Misuse findings, the authors state that they often involve context-dependent action choices such as shared workflow state, user-directed deletions, or external API calls, which may appear risky in isolation but do not establish a security weakness in the skill's workflow.
Wild Skills and Exploitability
- What was tested: Characterized 954 skills.sh skills and compared against directory signals from Gen Agent Trust Hub, Socket, and Snyk; then actually triggered a subset of flagged skills and evaluated corresponding patches. Table 1 summarizes 17.6% flagged with an 84% confirmation rate.
- Results: The authors state that over 17% of the examined skills had potential vulnerabilities, and that testing some of these skills triggered real events. Disclosure is ongoing, and the identities and detailed exploitation steps of these skills are not given in the main text; exploitation materials are in Section 9 and Appendix F and are not included in the public artifacts. Experiments were conducted in isolated containers, simulated services, and independently verifiable marker files.
- Authors' interpretation: The authors believe the results show that context-aware LLM analysis can provide reliable injection localization and actionable patching beyond skill-level flagging. The authors also state that real-world impact depends on backend LLM guardrails, agent permissions, sandboxing, approval mechanisms, runtime inputs, and the availability of external services.
Other Ablations and Analyses
- Additional findings on Dsi (New in Table 3): Sonnet 5 had 58, Gemini 3.6 Flash had 28, GPT-5.6 Sol had 188, Kimi K3 had 129, DeepSeek Pro had 106, Gemma 31B had 62, GPT-oss 120B had 214, and DeepSeek Flash had 61.
- Generation side: Fable 5, Opus 5, GPT-5.6 Sol, and Gemini 3.6 Flash refused to generate injections due to safety guardrails; Kimi K3 could not reliably return valid injections; the remaining models completed the task. DeepSeek V4 Pro was selected as the REDINJECTOR backend.
- All 180 instances in Dred passed the five validation checks and were retained; 30 of the record injections contained non-ASCII text, which the authors state introduces linguistic diversity not present in Dsi.
- Configuration-related findings are not automatically counted as false positives; additional findings unrelated to controlled injections do not count toward IDR.
- The lexical similarity threshold r ≥ 0.8 only routes obvious matches, with the rest left to an independent LLM judge; the paper does not separately report the proportion of cases above and below this threshold.
- The authors later tested Claude Opus 5 and reported performance comparable to Sonnet at roughly 2.5x the cost, so it was not included in the main comparison.
What are some points that can be further explored?
The authors state that static verification cannot guarantee functional preservation and does not cover post-installation exploitation or sandbox escape.
Limitations and Future Directions Noted by the Authors
- Boundary of Static Verification: Section 4.4 states that verification is static, can assess whether a recorded injection was identified and whether the corresponding behavior was removed from the patch, but cannot establish that all legitimate functionality is preserved; the authors state that such a guarantee requires task-specific runtime testing that depends on external resources and the environment. Section 4.2 likewise states that complete functional preservation requires task-specific runtime testing.
- Findings Do Not Imply Certain Exploitation: Section 3 states that a finding indicates a security-related risk, not proof that the behavior will be triggered or successfully exploited in every deployment; real-world impact depends on backend LLM guardrails, permissions, sandboxes, approval mechanisms, runtime inputs, and the availability of external services.
- Attacks Not Modeled: Section 3 states that post-installation exploitation, compromise of the agent framework or sandbox, runtime sandbox escape, and modification of remotely hosted content after scanning are not modeled; it assumes the skill has been selected and loaded, thereby scoping the problem to trusting the skill itself, rather than forcing malicious skills to be selected for unrelated tasks.
- Remote Content: Section 3 states that the scanner can identify references to external resources but does not assume that remote content remains unchanged after scanning.
- Intent Is Not a Criterion: Section 3 states that the analysis evaluates observable security-related behavior rather than inferring author intent; intent, when known, is only an auxiliary attribute, and findings do not require it.
- Sensitive Material Not Publicly Released: Open Science states that the actual exploitation material in Section 9 and Appendix F is not included in the public artifacts because it contains operationally sensitive information; the ethics considerations state that the identities of these skills and detailed exploitation steps are not given in the main text during the disclosure window. The authors plan to provide the implementation, benchmark inputs, and reproduction evidence through a public repository.
Experimental Coverage
- Controlled Detection: The backend comparison swaps the LLM on Dsi (N=165) (Table 3); the scanner comparison is on Dred (N=180) and Dsi, using Skill Scanner and SkillSpector with no LLM and with a Sonnet backend, and AI-Infra-Guard with a Sonnet backend (Table 4). SKILLSECURER's IDR on these two sets is computed by VERIFIER.
- Human Review: All 87 findings from the 130 skills in Sb were reviewed by majority vote of three evaluators (Section 6.2). The wild set is 954 skills.sh skills that also have Gen Agent Trust Hub, Socket, and Snyk catalog results; Table 1 gives 17.6% flagged and an 84% confirmation rate. The paper states that wild third-party scanners provide complementary signals, not common ground-truth labels.
- Generation and Exclusion: Dred was generated by DeepSeek V4 Pro on 20 skills that had no findings after an initial Sonnet screening, one per each of the nine threat categories; all 180 passed five validation checks. Fable 5 was excluded from detection due to guardrails; Fable 5, Opus 5, GPT-5.6 Sol, and Gemini 3.6 Flash refused to generate injections. The paper does not report the number of repetitions per condition.
- Patch Evaluation: VERIFIER gives both a localization result L and a patch-removal result R for controlled instances; the authors state that they evaluated whether the corresponding patches were effective for a subset of wild skills. The paper does not list patch removal rates in a separate table in the main text.
- Comparison Scope: The authors state that tools in Table 1 whose implementations are unavailable, no longer maintained, or already showed limited performance in MalSkillBench were excluded. Localization similarity uses difflib's ratio, with r ≥ 0.8 directly confirmed and the rest given to an independent LLM judge; the judge model name is not specified in Section 4.4 of the paper.
Summarize the main content of the paper
SKILLSECURER evaluates skill security with injection-level localization and minimal patching, and Sonnet 5 achieves 100% IDR on the controlled set.
SKILLSECURER is a red-blue framework for AI agent skills: it generates verifiable injections, locates risks without knowing ground truth, and provides checkable patches.
- Problem: skills bring third-party instructions, scripts, and configurations into agents that can modify files, run commands, and call tools. The authors argue that existing benchmarks often do not record precise injection snippets, and scanners mostly stop at skill-level alerts without providing patches, so an alert may not correspond to a controlled modification.
- Approach: REDINJECTOR generates modifications compatible with the host context across nine threat categories and writes them into Δ. BLUEPATCHER reads only a static snapshot of the SUT; references must map back to that snapshot, then removes or neutralizes the reported behavior with minimal changes. VERIFIER uses normalized lexical similarity (r ≥ 0.8 directly confirms) and an independent LLM judge to compare findings against recorded injections, yielding an IDR stricter than GDR; whether the patch removes the behavior is recorded separately. Detection does not look at ground truth.
- Controlled results: On Skill-Inject's Dsi (165), Claude Sonnet 5 achieves IDR and GDR both 100.0%, at a cost of 15.42 USD; DeepSeek V4 Pro achieves 96.3% / 98.2%, at a cost of 2.50 USD (Table 3). The same Sonnet configuration on Dred (180) also achieves IDR and GDR of 100%. The authors state it is the only evaluated scanner to reach 100% IDR across 345 total controlled instances. Without an LLM, Skill Scanner has an IDR of 0.6% on Dsi. With Sonnet, SkillSpector has an IDR of 98.8% on Dsi, and AI-Infra-Guard's IDR ranges from 47.3–85.5% (Table 4).
- Benign pool and wild: On 130 likely-benign skills, Sonnet 5 flagged 45 (34.6%) with 87 findings, and three-person majority confirmed 74 (85.1%). The authors treat these as potential vulnerabilities rather than deliberate attacks. Among 954 skills in the July 3, 2026 skills.sh snapshot, 17.6% were flagged, with a spot-check confirmation rate of 84% (Table 1). The authors state they triggered real events on some of these skills and evaluated patches; skill identities and operational details are not disclosed during the disclosure period.
- Authors' conclusion: The authors argue that LLM reasoning over the full skill context can provide reliable injection localization and actionable patches beyond skill-level flags. They also state that static verification cannot guarantee that all legitimate functionality is preserved, and that findings are not proof that the behavior will be exploited in every deployment.