Skip to main content

AI Coding Agent Security Audits: What Is SKILL-SIF, and What Can We Learn from Its Failures?

Created by AI\n

When AI Misses a Vulnerability, the Software Security Audit Begins Again

If an AI coding agent analyzes suspicious code but fails to find a vulnerability, does that mean the code is “problem-free”?

In security practice, it does not. Especially in complex codebases like the Linux kernel, we need to distinguish whether a vulnerability was missed because none existed or because the analysis process fell short. SKILL-SIF (Self-improving Security Skill Framework) starts right there. It treats AI failure not as a signal to end the analysis, but as learning data that can make the next Software Security audit more precise.

Most existing AI security analyses have followed a pattern like this:

Code input → AI analysis → Report potential vulnerabilities → Stop

But this approach leaves an important gap. It does not systematically capture which vulnerabilities the AI missed, why it missed them, or what steps should be added to avoid repeating the same mistake in future analyses. As a result, agents may make similar mistakes over and over.

SKILL-SIF turns this process into a failure-driven improvement loop.

Apply security analysis skill
        ↓
AI coding agent analyzes for vulnerabilities
        ↓
Compare results with ground truth to identify misses, false positives, and misclassifications
        ↓
Classify the causes of failure
        ↓
Strengthen analysis procedures and verification rules
        ↓
Reevaluate on new vulnerabilities

The key is not to retrain the model. Instead of fine-tuning, which changes the model’s weights, SKILL-SIF improves the security analysis process itself—the security skill the agent follows.

For example, if an AI misses a use-after-free vulnerability, the solution is not simply to add an instruction like “pay more attention to memory safety.” The skill can be updated with specific procedures such as:

  • Always trace callback paths that may execute after an object is freed.
  • Review the order of reference count decrements and lock releases together.
  • Examine error paths and cleanup paths separately from the normal path.
  • After identifying a potential vulnerability, take a counter-evidence step to try to prove that it is safe.
  • Pinpoint the exact statement where the problem occurs, rather than reporting suspicion at the function level.

This distinction matters. An answer like “there may be a memory issue in this file” has limited practical value in a security audit. For a finding to be verified and fixed, the agent needs to explain that a specific pointer dereference in a specific function accesses a freed object—and describe the asynchronous path that leads to that state.

The research results also demonstrate why this approach is needed. Across 14,800 experiments evaluating 100 real Linux kernel vulnerabilities using 37 public security skills and multiple LLM configurations, the complete detection rate—correctly identifying the vulnerable function, the exact vulnerable statement, and the vulnerability type—was just 11.1%. In other words, knowing security concepts is not enough for AI to accurately pinpoint the location and cause of a real defect in code.

By contrast, after improving higher-level skills based on failure patterns, researchers reevaluated the approach on 100 vulnerabilities that had not been used during the improvement process. The complete detection rate rose from 2% to 16%. There is still a long way to go, judging by the absolute numbers. But the fact that a system for recording failures and improving procedures can boost generalization performance by as much as eightfold sends an important message about Software Security automation.

Ultimately, SKILL-SIF offers a simple perspective:

The moment AI misses a vulnerability is not the failure of an audit. It is the most concrete starting point for making the next audit better.

This approach views AI not as an independent security authority, but as security analysis infrastructure that grows more precise by accumulating and learning from failures. And rather than waiting for “more powerful models,” this shift may offer a practical way to make today’s security audit processes more trustworthy.

Software Security: “There’s a Vulnerability” Isn’t Enough

“The file looks dangerous” may sound useful at first. But in a real Software Security audit, it’s only a starting point. To decide whether to fix an issue, create a reproduction test, and verify a patch, security teams need AI to give a much more specific answer.

  • Which function is vulnerable
  • Exactly which code statement is the problem
  • What type of vulnerability it is
  • What input or control flow triggers the issue
  • Whether the conditions for actual exploitation are met

For example, there’s a world of difference between an AI saying “there may be a memory safety issue” and identifying a specific pointer dereference in foo() as a use-after-free that references an already-freed object. The latter gives developers and security researchers evidence they can verify immediately; the former leaves them with a broad, manual investigation.

The SKILL-SIF researchers measured this gap against a rigorous standard. To count as correct, a result had to do more than mention a vulnerability: it had to identify the vulnerable function, the exact vulnerable statement, and the vulnerability class.

The results were sobering. Across 100 real Linux kernel vulnerabilities, 37 publicly available security skills, Claude Code, and four underlying LLMs, the researchers ran a total of 14,800 evaluations. The rate of fully accurate detection was just 11.1%.

| Level of finding | Practical significance | |---|---| | Identifies a file or module | A clue that helps narrow the search | | Identifies a function | A starting point for code review | | Identifies a code statement | Technical evidence that can be reproduced and fixed | | Correctly identifies the function, statement, and vulnerability type | A result approaching a trustworthy vulnerability report |

These figures don’t mean that LLM-based security tools are worthless. Rather, they show how easy it is to create the impression of having “found” something by lowering the bar for evaluation. But in Software Security, verifiable locations and causes matter more than vague warnings.

This is especially true in codebases like the Linux kernel, where function-call relationships, exception-handling paths, and concurrency conditions are complex. Finding a potential issue is not enough. If AI can’t pinpoint the exact statement, analysts have to retrace a much broader section of the code. And if it misclassifies the vulnerability, decisions about prioritization, patch strategy, and regression testing can all go off course.

That’s why SKILL-SIF isn’t about inflating the number of detections. It’s about recording what was missed and why, then using those lessons to improve the next analysis. In a security audit, what matters isn’t an AI that raises lots of alarms—it’s an AI that gets better and better at providing precise evidence people can verify and act on.

The Software Security Feedback Loop That Turns Failure into Skill

When an AI agent misses a vulnerability, the easiest response is to show it the answer and tell it, “Do better next time.” But this approach is hard to reproduce. If we don’t record why it missed the issue, where the analysis broke down, or which validation rule was missing, similar failures are likely to recur in the next audit.

This is exactly where SKILL-SIF comes in. Rather than treating an agent’s failure as a simple wrong answer, it breaks that failure down into evidence for improving reusable Software Security procedures.

Classify the Cause of Failure, Not Just Whether the Answer Was Right

Vulnerability analysis results are often evaluated as simply “found” or “not found.” But real-world security audits involve different kinds of failure.

For example, when analyzing a particular Linux kernel vulnerability, an agent might:

  • Find the vulnerable function but identify the wrong statement as the actual issue.
  • Detect a dangerous pointer use but classify it as a null dereference instead of a use-after-free.
  • Check the input function but fail to trace the error path or callback path.
  • Flag a potential race condition but fail to verify the required lock release and re-entry conditions.
  • Mention a vulnerability but fail to show a reachable execution path or its impact.

SKILL-SIF does not lump these outcomes together as a single “failure.” Instead, by comparing the results against reference data, it distinguishes which of the following was wrong: the function location, the exact vulnerable statement, or the vulnerability class.

| Failure type | What it means | How to improve the skill | |---|---|---| | Missed function | The scope of the analysis was wrong | Improve exploration of entry points, call graphs, and related subsystems | | Misidentified statement | The risk was detected, but the exact location was missed | Add checks for data flow, object lifetime, conditionals, and error paths | | Misclassified vulnerability | The code symptom was noticed, but its cause was misinterpreted | Strengthen vulnerability-specific criteria and rules for ruling out alternatives | | Missed path | A particular branch, callback, or concurrency condition was overlooked | Add control-flow and interleaving checks | | Insufficient evidence | A candidate was reported without support for reproduction or impact | Require a structured account of the input path, preconditions, and impact |

This breakdown matters. “Analyze more carefully” is vague, but “Revalidate object lifetime on every path where a callback runs after the reference count decreases” is a rule that can guide future analyses.

Failure Is Converted into Procedural Knowledge

SKILL-SIF does not retrain the model’s weights. Instead, it improves the security skill the agent follows: the analysis sequence, validation items, and output format.

The basic workflow is:

Run the initial security skill
        ↓
Generate vulnerability candidates and supporting analysis
        ↓
Compare against the reference and identify omissions or misjudgments
        ↓
Convert failure patterns into generalizable rules
        ↓
Revise the skill’s exploration order, validation steps, and rules for ruling out alternatives
        ↓
Reevaluate on unseen vulnerabilities

The key point is that failure cases are not simply appended to the prompt. Listing cases one after another can consume the context window and lead to overfitted instructions tailored to a specific benchmark. So failures should be turned, wherever possible, into generalized behavioral rules.

For instance, if the agent missed a callback path that referenced an object after it had been freed, an improved skill might include a rule like this:

After an object is freed or its reference count is decremented, check for registered callbacks, workqueues, timers, and deferred execution paths. On each path, verify that the object’s lifetime is protected—by a reference count, lock, cancellation, or ownership transfer—before it is referenced again.

This rule does not describe just one CVE. It can apply to a range of memory-safety issues involving asynchronous execution and object lifetime management.

An Improved Skill Strengthens Exploration, Validation, and Falsification

A good Software Security skill is more than a checklist. From the SKILL-SIF perspective, a skill should have at least three layers:

  1. Exploration rules
    Determine where to start looking. Targets include input boundaries, privilege boundaries, changes in memory ownership, lock acquisition and release, error paths, and asynchronous callbacks.

  2. Validation rules
    Check whether suspicious code actually meets the conditions for a vulnerability. For example, to establish a use-after-free, all three conditions must be verified: deallocation, subsequent reuse, and the absence of lifetime protection.

  3. Falsification rules
    Prompt the agent to question its own candidates. This includes checking whether a lock really protects every path, whether a reference count is maintained, and whether the input can actually reach the code in question.

Without this structure, an agent may quickly produce a large number of suspicious-looking code snippets, but struggle to deliver results that practitioners can review. By contrast, combining exploration with falsification may reduce the number of candidates, but it increases the evidentiary strength of each report.

Separately Verify Whether the Improvements Work on the “Next Analysis”

The biggest pitfall of failure-based improvement is creating a skill that only solves problems from the past. If the skill reflects a vulnerability’s function names, patch structure, or coding conventions too closely, benchmark performance may improve without helping on a new codebase.

That is why SKILL-SIF evaluates performance again on unseen vulnerabilities that were not used to improve the skill. In the study, after improving the top five skills, the complete detection rate rose from 2% to 16% across a separate set of 100 vulnerabilities. Complete detection is a strict criterion: the vulnerable function, exact statement, and vulnerability type must all be identified correctly.

Still, 16% is not enough to run automated security audits on its own. The significance of this result is not that “AI can replace security experts.” It shows that a loop for collecting failures, structuring their causes, and incorporating them into validation procedures can meaningfully improve the quality of AI agents’ security analyses.

Ultimately, SKILL-SIF’s technical distinction does not lie in feeding the system more answers. It lies in making failures analyzable data, then turning that data into security procedures that can be reused in the next audit.

Software Security Results: From 2% to 16%—What the Numbers Don’t Tell You

The full detection rate for previously unseen Linux kernel vulnerabilities rose from 2% to 16%. An improvement of up to 8× is certainly impressive. What makes the result especially meaningful is that it was achieved on 100 vulnerabilities the agents had not encountered during the skill-improvement process—not on vulnerabilities that were already known or used in training.

But from a Software Security perspective, a more important question remains:

More than the fact that the system found 16%, why did it miss the other 84%?

The bar for “full detection” is higher than you might think

In this study, a successful detection means more than simply saying, “Something looks wrong with this code.” The agent must correctly identify all three of the following:

  • The function containing the vulnerability
  • The exact statement or location where the issue occurs
  • The vulnerability class

For example, even if an agent finds a file with a potential use-after-free, it does not count as a full detection if it identifies the wrong vulnerable function or fails to pinpoint the exact dereference. This is a reasonable standard for a real-world security audit. To take action, developers and security teams need more than “this looks risky”—they need to know where the risk lies, under what conditions it arises, and why.

| Metric | Before improvement | After applying SKILL-SIF | Significance | |---|---:|---:|---| | Full detection rate for unseen vulnerabilities | 2% | 16% | Up to 8× improvement | | Aggregate accuracy across 4 LLMs | 6.05% | 11.20% | About 1.85× improvement | | Incomplete or missed detections | 98% | 84% | A substantial validation gap remains |

These numbers do not mean SKILL-SIF is ineffective. If anything, they show that improving the process alone can meaningfully increase generalization performance. But that should not be stretched into the conclusion that “AI has automated kernel security audits.”

An 8× improvement also means the starting point was low

The increase from 2% to 16% is substantial in relative terms. In absolute terms, however, it means the number of vulnerabilities correctly identified in full rose from about 2 out of 100 to 16 out of 100.

In security operations, relative improvement and absolute performance need to be considered separately.

  • As a research result: Incorporating failure feedback into a skill can genuinely improve the detection process.
  • As an operational tool: AI results alone still cannot establish that a system is free of vulnerabilities.
  • From a security accountability perspective: The 84% that went undetected could include high-risk privilege escalation, memory corruption, or race conditions.

False negatives are especially costly in environments like the Linux kernel, where privilege boundaries and memory safety are critical. A single missed vulnerability can undermine the trust boundaries of an entire system.

The technical questions raised by the remaining 84%

Missed detections cannot be explained by a single cause. An LLM coding agent may understand code context, but real vulnerability analysis often requires several kinds of reasoning at once:

  • Control-flow tracing across multiple functions and callbacks
  • Data-flow analysis tracking reference counts, locks, and object states
  • Error-path verification, including exception and failure-handling paths
  • Race-condition reasoning across possible execution orders of multiple threads
  • Vulnerable-path reconstruction by comparing code before and after a patch
  • Exploitability assessment that distinguishes dangerous code patterns from genuine attack potential

SKILL-SIF’s results therefore do not suggest that “you just need to write a longer prompt.” The key is to systematically record why an agent failed, then change the order of analysis, verification criteria, and falsification steps on the next run.

For instance, if an agent repeatedly misses error paths, the skill needs more than a vague instruction to “check error handling.” It needs a concrete procedure:

  1. Enumerate every return path after a resource is acquired.
  2. Record the release, reference-count, and lock state along each path.
  3. Compare state transitions on the normal path with those on error paths.
  4. Check for use-after-release, double release, and missed unlocks—and actively try to rule each one out.

This kind of procedural reinforcement is the practical value of failure-driven skill evolution.

How to read these numbers in Software Security

It is more useful to view SKILL-SIF’s 16% not as a final destination, but as an intermediate measurement of a system that can be improved. The system performed better than it did with existing security skills applied as-is, and that improvement was also demonstrated on unseen vulnerabilities. That matters.

But the safe approach to adoption is clear: use AI-detected findings to prioritize security reviews, but never assume that areas the AI did not flag are safe. That is why SAST, fuzzing, symbolic execution, regression testing, and human code review remain essential.

Ultimately, this 8× improvement does not show that AI has replaced security experts. It shows that a Software Security process that records failures and improves its verification procedures can be far more powerful than a one-off AI analysis.

Software Security: The Future of Automated Security Audits Is Not “AI Going It Alone”

Now that AI agents are getting better at finding vulnerabilities, should we hand them the keys to fix and deploy code, too?

The answer is still closer to no. Finding vulnerabilities is only the beginning of security work. We also need to verify whether a suspected vulnerability can actually be exploited, whether a proposed fix breaks existing functionality, and whether a patch introduces new privilege-escalation or bypass paths.

The practical value of SKILL-SIF lies not in full automation, but in recording where AI has failed and using those lessons to make the next audit more rigorous. In other words, the key is not “a smarter single agent,” but a layered verification system that learns from failure.

Detection and remediation should be separate

Having AI generate a patch as soon as it finds a vulnerability can make the process faster. But in security, verifiability matters more than speed.

Suppose an agent reports a possible use-after-free and modifies the reference-counting code. The change might prevent the problem—but it could also have side effects such as:

  • Delayed object deallocation, causing memory leaks
  • A changed lock acquisition order that triggers deadlocks
  • Resources left unreleased on exception paths
  • Disabled performance-optimized paths
  • New race conditions not covered by existing tests

That’s why it’s better to separate responsibilities in a safe Software Security operation:

  1. The detection agent submits suspected vulnerabilities and supporting evidence.
  2. The verification agent looks for paths that could disprove the findings and for possible false positives.
  3. SAST, fuzzing, and testing tools independently check the code and its runtime behavior.
  4. Security professionals and developers make the final call on impact and remediation.
  5. Only approved patches are validated in a restricted environment before deployment.

In this setup, AI isn’t an automated hacker that replaces security experts. It’s an analytical partner that accelerates repetitive investigation and evidence gathering.

What matters is not just getting it right, but recording failures

SKILL-SIF turns not only what an agent gets right, but also what it misses, into an asset. That makes a big difference.

A basic security prompt might say, “Check input validation” or “Trace memory lifetimes.” A failure-based approach, by contrast, adds more specific questions based on actual audit results:

  • Which error path did you fail to trace, causing you to miss the vulnerability?
  • You found the function—but why couldn’t you pinpoint the exact vulnerable statement?
  • Which interleavings did you fail to consider in the race condition?
  • Did you look only at the post-patch code and fail to reconstruct the vulnerable execution path?
  • Did you confuse a dangerous code pattern with actual exploitability?

These records of failure become a checklist for the next analysis. But guidance shouldn’t be accumulated indiscriminately. If a skill becomes too long, analysis costs rise, rules may conflict, and the skill can overfit to a particular benchmark.

That’s why skills should be managed like code:

Put them under version control, keep a change history, and validate them with regression tests and an unseen test set.

The goal of automation is verifiable speed, not unattended deployment

A realistic automated security audit pipeline looks something like this:

Repository and architecture analysis
        ↓
Identify trust boundaries and input paths
        ↓
AI agents search for potential vulnerabilities
        ↓
Generate an evidence-based report
        ↓
Independent agent challenges and reviews findings
        ↓
Combine SAST, fuzzing, and test results
        ↓
Security review and approval
        ↓
Apply patches within a limited scope and verify again

Each vulnerability report should be more than a simple warning. At a minimum, it should include:

  • The vulnerable function and exact code location
  • The vulnerability type and expected impact
  • The path from the input or attack surface to the relevant code
  • Reproduction conditions or a falsifiable hypothesis
  • Relevant logs, static analysis results, and test evidence
  • Potential side effects of remediation and items to verify

Structuring evidence this way makes it easier for people to review AI findings quickly, reduces false positives, and captures the data needed to improve skills over time.

SKILL-SIF points to a clear direction. The future of automated security audits is not one powerful AI making every decision and handling every deployment. A safer, more practical future lies in an operating model that brings together AI’s search capabilities, the reproducibility of existing security tools, and human judgment, with failure data at its core.

Comments

Popular posts from this blog

Complete Guide to Apple Pay and Tmoney: From Setup to International Payments

The Beginning of the Mobile Transportation Card Revolution: What Is Apple Pay T-money? Transport card payments—now completed with just a single tap? Let’s explore how Apple Pay T-money is revolutionizing the way we move in our daily lives. Apple Pay T-money is an innovative service that perfectly integrates the traditional T-money card’s functions into the iOS ecosystem. At the heart of this system lies the “Express Mode,” allowing users to pay public transportation fares simply by tapping their smartphone—no need to unlock the device. Key Features and Benefits: Easy Top-Up : Instantly recharge using cards or accounts linked with Apple Pay. Auto Recharge : Automatically tops up a preset amount when the balance runs low. Various Payment Options : Supports Paymoney payments via QR codes and can be used internationally in 42 countries through the UnionPay system. Apple Pay T-money goes beyond being just a transport card—it introduces a new paradigm in mobil...

Cursor, Windsurf, Claude Code Compared: The Ultimate 2024 Guide to AI Coding Tools

AI Developer Tools: Cursor vs Windsurf vs Claude Code – What’s the Real Difference? With countless AI coding tools out there, which one should you choose? Cursor, Windsurf, Claude Code—on the surface, they might seem similar, but underneath lie fundamental differences. Let’s uncover the key distinctions among these three powerful tools. AI Model Accessibility: Direct vs Indirect Cursor offers direct access to Claude 4, excelling in complex code analysis. In contrast, Windsurf connects to AI models via API keys, while Claude Code integrates seamlessly as a VS Code plugin. These differences significantly impact how each tool operates and performs. Context Management: Manual vs Automated Cursor adopts a manual approach where developers control context themselves. Windsurf provides an automated context tracking system, and Claude Code automatically navigates and comprehends the entire codebase. Depending on your project’s scale and complexi...

New Job 'Ren' Revealed! Complete Overview of MapleStory Summer Update 2025

Summer 2025: The Rabbit Arrives — What the New MapleStory Job Ren Truly Signifies For countless MapleStory players eagerly awaiting the summer update, one rabbit has stolen the spotlight. But why has the arrival of 'Ren' caused a ripple far beyond just adding a new job? MapleStory’s summer 2025 update, titled "Assemble," introduces Ren—a fresh, rabbit-inspired job that breathes new life into the game community. Ren’s debut means much more than simply adding a new character. First, Ren reveals MapleStory’s long-term growth strategy. Adding new jobs not only enriches gameplay diversity but also offers fresh experiences to veteran players while attracting newcomers. The choice of a friendly, rabbit-themed character seems like a clear move to appeal to a broad age range. Second, the events and system enhancements launching alongside Ren promise to deepen MapleStory’s in-game ecosystem. Early registration events, training support programs, and a new skill system are d...