Manuscript Offprint

arXiv:2610.25705

How Effectively Do Security Skills Guide Coding Agents in Vulnerability Detection in Linux Kernel?

Haoran Xue, Nikta Akbarpour, Gias Uddin, Song Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

HAORAN XUE, York University, Canada

NIKTA AKBARPOUR, York University, Canada

GIAS UDDIN, York University, Canada

SONG WANG, York University, Canada

Large language model (LLM) coding agents, such as Claude Code, are increasingly used for security auditing, and task-specific skills have emerged as a practical way to provide them with reusable vulnerability-analysis procedures. However, it remains unclear how effectively existing security skills guide coding agents in identifying and localizing real vulnerabilities, how their effectiveness varies across vulnerability classes and workflows, and why skill-guided analysis fails. In this paper, we conduct the first large-scale empirical study of 37 security skills using Claude Code with four underlying LLMs on 100 real Linux kernel vulnerabilities spanning ten vulnerability classes, resulting in 14,800 skill-LLM-vulnerability runs. We evaluate each run on three complementary criteria: whether it identifies the correct vulnerable function, the responsible statement, and the vulnerability class. Across all runs, 24.4% locate the correct function, 18.3% identify both the function and responsible statement, and 15.7% identify the correct vulnerable class. Our failure analysis further reveals recurring limitations in existing security skills, including insufficient support for evidence acquisition, state-relation reasoning, code interpretation, candidate verification, investigation coverage, and reporting.

Building on these findings, we develop SKILL-SIF, an iterative self-improving framework that automatically evolves vulnerability detection skills by learning from previously missed vulnerabilities and their associated failure patterns. We apply SKILL-SIF to five top-performing skills, using the original benchmark as the refinement set to evolve each skill and an independent set of 100 previously unseen vulnerabilities to evaluate the evolved skills. Our results show that SKILL-SIF improves fully correct vulnerability detection by up to 8× (from 2% to 16%) on unseen vulnerabilities, with aggregate accuracy across Claude Code using four different underlying LLMs improving by 1.85× (from 6.05% to 11.20%). These results demonstrate that security skills can systematically learn from prior failures and transfer improved vulnerability-analysis strategies to unseen cases, providing practical insights for building more reliable skill-guided security agents.

CCS Concepts: • Software and its engineering → Software maintenance tools; Software verification and validation.

Additional Key Words and Phrases: Code Agent, Skills, Vulnerability Detection, Skill Refinement

ACM Reference Format:

Haoran Xue, Nikta Akbarpour, Gias Uddin, and Song Wang. 2026. How Effectively Do Security Skills Guide Coding Agents in Vulnerability Detection in Linux Kernel?. 1, 1 (October 2026), 20 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

Authors' Contact Information: Haoran Xue, York University, Department of Electrical Engineering and Computer Science, North York, Canada, hrx00@yorku.ca; Nikta Akbarpour, York University, Department of Electrical Engineering and Computer Science, North York, Canada, niktakbr@yorku.ca; Gias Uddin, York University, Department of Electrical Engineering and Computer Science, North York, Canada, guddin@yorku.ca; Song Wang, York University, Department of Electrical Engineering and Computer Science, North York, Canada, wangsong@yorku.ca.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM XXXX-XXXX/2026/10-ART

https://doi.org/10.1145/nnnnnnn.nnnnnnn

Haoran Xue, Nikta Akbarpour, Gias Uddin, and Song Wang

1 Introduction

Agent-based vulnerability detection is emerging as a promising approach to software security analysis [9, 24, 38]. Modern coding agents can autonomously explore repositories, inspect source code, invoke analysis tools, and reason about potential security weaknesses. Their ability to combine repository-scale exploration with code understanding and natural-language reasoning makes them particularly attractive for vulnerability detection [38, 50]. Yet, detecting real-world vulnerabilities remains difficult because many vulnerabilities depend on subtle semantic relationships involving data flow, object lifetime, synchronization, resource management, validation, and execution state [43].

Agent skills have recently emerged as a practical way to provide coding agents with security-specific knowledge and analysis procedures [42, 44]. A security skill can instruct an agent how to search for suspicious operations, trace relevant program states, validate vulnerability candidates, and collect supporting evidence, without modifying the underlying model. Public skill ecosystems already contain numerous security-oriented skills, while recent studies show that skills can substantially influence agent behavior and task performance [14, 28]. Security skills are therefore becoming an important layer for agent-based vulnerability detection.

Despite their growing use, we still lack a systematic understanding of whether existing security skills actually guide coding agents to the correct vulnerabilities. A seemingly reasonable workflow may still narrow the search space too aggressively, omit critical state relationships, or allow candidates to be accepted or discarded without sufficient evidence. More importantly, vulnerability detection requires more than reaching approximately relevant code: a correct finding should identify the vulnerability class and localize the responsible code. Evaluating security skills therefore requires determining whether they guide agents to the actual root cause, rather than merely produce plausible vulnerability reports.

In this paper, we conduct a large-scale empirical study of public security skills for agent-based vulnerability detection. We collect security-related skills from three public skill marketplaces, systematically analyze their procedures, and select 37 representative skills covering diverse vulnerability detection workflows. We evaluate these skills using Claude Code with four underlying LLMs (i.e., Claude Sonnet-5, Claude Haiku-4.5, DeepSeek-V4-Pro, and DeepSeek-V3.2) on 100 real Linux kernel vulnerabilities spanning ten CWE classes, resulting in 14,800 controlled executions. For each execution, we examine whether the agent identifies the correct vulnerable function, reaches the responsible statement, and identifies the correct vulnerability class.

Our results show that existing skills provide useful but limited guidance. Across all runs, 24.4% locate the correct function, 18.3% identify both the function and responsible statement, 15.7% identify the correct CWE, and 11.1% satisfy all three criteria. Performance varies substantially across vulnerability classes, skills, and underlying LLMs. Bounds-related vulnerabilities are detected more reliably than vulnerabilities requiring lifetime, synchronization, resource, or execution-state reasoning, while higher-performing skills commonly combine broad candidate discovery with a subsequent reasoning or verification stage. Our failure analysis further identifies recurring breakdowns in evidence acquisition, state-relation reasoning, verification, candidate retention, and reporting.

These findings raise a further question: can security skills improve by learning from their own failures? To investigate this possibility, we develop SKILL-SIF, an iterative self-improving framework that refines vulnerability detection skills using previously missed vulnerabilities and their diagnosed failure patterns. We apply SKILL-SIF to the five highest-performing skills and evaluate the refined skills on an independent set of 100 previously unseen vulnerabilities. The refined skills consistently improve vulnerability detection, with fully correct detection increasing by up to 8×8\times and aggregate accuracy across four LLMs used with Claude Code improving by 1.85×1.85\times (from 6.05% to 11.20%). These results demonstrate that execution feedback can be used to systematically improve security skills and that the resulting improvements can generalize to unseen vulnerabilities.

In summary, our study provides the following contributions:

• We conduct a large-scale empirical evaluation of 37 security skills using Claude Code with four underlying LLMs on 100 real Linux kernel vulnerabilities, producing 14,800 controlled executions.

• We characterize how effectively existing security skills guide vulnerability detection and localization, and analyze how their effectiveness varies across vulnerability classes, skills, and underlying LLMs.

• We analyze unsuccessful execution trajectories and develop a taxonomy that distinguishes agent-execution failures from skill-level limitations.

• We develop SKILL-SIF, an iterative framework that learns from failed executions to refine security skills. Evaluation on 100 previously unseen vulnerabilities shows improvements of up to 8×, with aggregate fully correct detection improving by 1.85× (6.05% to 11.20%).

The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 presents the study design, and Section 4 reports the empirical results. Section 5 introduces SKILL-SIF and evaluates in Section 6. Section 7 discusses implications, Section 8 discusses threats to validity, and Section 9 concludes.

References (34)