Agentic Remediation in AppSec: How Agents Fix and Verify
Agentic remediation lets AI agents plan, apply, and verify vulnerability fixes before a human merges. See how it beats scripts and what your program needs first.

Table of contents
- Key takeaways about agentic remediation
- What Is Agentic Remediation?
- Why Traditional Vulnerability Remediation Can't Keep Up
- How Agentic Remediation Changes the Remediation Process
- Agentic Security Remediation Use Cases
- How Agentic Remediation Fits Into Modern AppSec
- Agentic Remediation vs. Traditional Automation
- What to Consider Before Adopting Agentic Remediation
- Frequently Asked Questions
Agentic Remediation: The Future of Vulnerability Remediation in AppSec
Most AppSec teams run remediation as a queue that only ever gets longer. Scanners add findings around the clock, and people remove them one ticket at a time. Agentic remediation changes who works that queue, and how much of the work arrives already checked.
An agent plans a fix, applies it, re-scans the result, and opens a pull request only when the finding is closed. Early evidence says that loop works under controlled conditions. But it pays off only where findings are prioritized, owners are known, and verification is enforced before a person reviews the change.
Key takeaways about agentic remediation
- Judge any remediation agent by its verify step. A change that hasn't been re-scanned against the original finding is still a suggestion, whatever the product page calls it.
- Keep deterministic scripts for patch-version bumps and other context-free fixes, and reserve agents for changes that depend on how a repository actually uses the code.
- Start an agentic remediation pilot with one finding class in a handful of well-owned repositories, so review load and fix quality are measurable before the scope expands.
- DARPA's 2025 AI Cyber Challenge finalists submitted patches in an average of 45 minutes, a useful benchmark gathered under competition conditions rather than in a production estate.
What Is Agentic Remediation?
Agentic remediation is a vulnerability-fixing model in which an AI agent plans, applies, and verifies a security fix with limited human direction. The agent reads the finding and the code around it, chooses a change, re-scans the result, and opens a pull request only when the vulnerability is confirmed closed. A human approves the merge.
That definition narrows a broader category. AI-powered vulnerability remediation covers any use of AI to suggest or draft fixes, including a coding assistant proposing a patch inside an editor. Agentic security remediation adds the loop around the suggestion, so the agent owns the plan, the attempt, the check, and the retry when the check fails.
Four verbs separate an agent from a suggestion engine: plan, act, verify, and iterate. Verify carries the most weight. It decides whether a developer receives a change that's already been tested against the scanner or a draft that still needs someone to test it.
Why Traditional Vulnerability Remediation Can't Keep Up
Traditional vulnerability remediation workflows rest on a find-it, fix-it split. A scanner finds, a security engineer triages, a ticket lands with a developer, and the developer fixes it between feature work. The model assumes people can drain the backlog over time, so detection speed and fix speed never have to match.
That assumption breaks on volume. Scanners can run in parallel on every commit, while remediation moves at the speed of one person's attention. AI coding assistants widen the gap by shipping more code per developer, and the vulnerable line often sits in a transitive dependency nobody on the team wrote. Each finding stays open as exposure until someone gets to it.
How Agentic Remediation Changes the Remediation Process
Take one class of finding: 40 path-traversal findings spread across a dozen repositories. A human team works them as 40 tickets, and each one needs someone to learn the codebase, write a fix, and wait for review. An agent works the whole class in parallel, in five steps:
- Plan per repository: The agent reads how each repository builds file paths, which framework helpers exist, and where user input enters. A Java service and a Node.js service get different fixes for the same weakness.
- Apply the change: It writes the fix in the repository's own conventions, such as an existing path-normalization utility. Reviewers then read a change that looks like their team wrote it.
- Re-scan the result: The scanner runs again against the changed code. If the finding persists or a new one appears, the agent revises the plan and tries again.
- Open the pull request: Only verified fixes reach a developer, with the finding, the change, and the scan result attached. The other attempts stay out of the review queue.
- Wait for a human merge: The code owner reviews and approves each change. In this model, the agent doesn't merge its own work.
Independent competition results suggest this loop holds up under controlled conditions. In the final round of DARPA's AI Cyber Challenge, reported August 8, 2025, finalist systems found 54 unique synthetic vulnerabilities across 63 challenges and patched 43. The average cost was about $152 per competition task. They also found 18 real vulnerabilities and supplied 11 patches for them. A competition isn't a production estate, but it puts a measured number on autonomous find-and-patch.
Agentic Security Remediation Use Cases
The plan, act, and verify loop fits any fix a re-scan can confirm. These agentic security remediation use cases meet that test today:
- First-party SAST findings: Static application security testing (SAST) flags weaknesses in code your engineers wrote, such as injection and path traversal. The agent fixes them in the repository's own idiom, which keeps review fast.
- Vulnerable direct and transitive dependencies: Software composition analysis (SCA) flags known-vulnerable packages, including ones pulled in several levels down. The agent finds the smallest safe version bump, regenerates the lockfile, and re-scans before the pull request opens.
- Major-version upgrades: Sometimes the safe version crosses a major version boundary. The agent then studies how the repository calls the package and proposes code changes, which the pull request labels as AI-assessed.
- Backlog burn-down during a freeze: A code freeze pauses feature work and frees review capacity. An agent can stage verified fixes for one finding class across many repositories, so developers spend the freeze reviewing changes instead of writing them.
Each use case shares one trait: a scanner can tell the agent whether it succeeded. Where no such check exists, the agent's output is a draft for a person to finish.
How Agentic Remediation Fits Into Modern AppSec
An agent sits downstream of prioritization and upstream of the merge. It needs a ranked queue, which is why risk-based vulnerability prioritization comes first: reachability, exploitability, and business criticality decide which findings an agent should touch. Point an agent at an unranked queue, and it closes low-risk findings quickly while the dangerous ones wait.
With agentic remediation, AppSec teams write the rules the agent follows. Security defines the scope, the verification standard, and the approval policy, and developers keep ownership of their code through the merge. That division of labor sits at the center of the agentic AppSec operating model, where agents close the remediation gap, and people govern it.
The agent also changes what your metrics measure. Mean time to remediate stops tracking developer availability and starts tracking how long a verified fix waits for review. That points the next improvement at the review queue, which is where an agent-driven backlog usually stalls.
Agentic Remediation vs. Traditional Automation
Scripted automation and a remediation agent can receive the identical finding. They part ways on what happens next. Here's how they compare, task by task:
Scripts still earn their place. A deterministic rule that bumps a patch version is cheap, predictable, and easy to audit, and an agent adds cost and variance to a task that needs no reasoning. Ask of each task whether the right fix depends on context. If it doesn't, keep the script.
What to Consider Before Adopting Agentic Remediation
An agent amplifies the program it joins, good habits and gaps alike. Check these six prerequisites before you start a pilot:
- Prioritization in place: Findings arrive ranked by reachability, exploitability, and business impact. Without that ranking, the agent spends its effort on findings that never mattered.
- Ownership mapped: Every repository has a known code owner who reviews agent pull requests. Unowned repositories turn verified fixes into stale branches.
- A verification standard: You define what "fixed" means, usually a clean re-scan plus passing tests. Without that definition, the agent verifies against its own judgment.
- A human merge gate: A developer approves every agent change before it merges. This gate answers the fear that an agent writing fixes is an agent writing bugs, because no agent code ships unreviewed.
- An audit trail: Every step from finding to model call to pull request to merge gets logged. Incident reviewers and auditors will ask who changed what and why, and the log answers them.
- Scope limits: The agent works defined finding classes in defined repositories, with a cap on changes per run. Narrow scope keeps one bad plan from spreading across the estate.
Verification has a ceiling, and a trustworthy agent states it. A re-scan proves a vulnerable dependency is gone, but it can't prove a major-version upgrade left the application working. Ask every vendor to show you where its pull requests separate re-scan verified changes from AI-assessed ones.
Legit Security's remediation agents work SAST and SCA findings against business context, re-scan each fix before the pull request opens, and route it to the code owner for approval. For dependency upgrades across major versions, the pull request labels code adaptations as AI-assessed, and every agent action is logged from finding to merge. See how AI-powered remediation with Legit works against a real backlog, then book a demo today.
Frequently Asked Questions
Does agentic remediation merge code without a human?
It shouldn't. The agent opens a pull request, and a developer reviews and approves it before anything merges. Some teams auto-merge low-risk changes such as patch-version bumps through existing branch rules, but that's an organizational policy decision, made separately from what the agent itself is permitted to do.
Can agentic remediation fix vulnerabilities in third-party dependencies, or only in first-party code?
Both, but they're different jobs. A dependency fix changes a manifest and a lockfile, while a first-party fix changes logic. Vendored or forked open-source code is the awkward middle, because a version bump can't reach it. The agent has to patch the copy like first-party code, and that copy then drifts further from upstream.
How do you know an agent's fix didn't introduce a new vulnerability?
The agent compares scan results before and after the change, so a new finding blocks the pull request. That catches what your scanners can detect. Logic errors and behavior changes need tests and human review, which is why validating AI-generated code fixes remains a separate discipline from generating them.
What data does a remediation agent need access to?
At minimum, it needs the finding, read access to the repository, the build and dependency manifests, and permission to open branches and pull requests. Better fixes draw on ownership data, deployment context, and scanner history. Scope credentials per repository and keep protected branches off limits, so a misbehaving agent can't reach code outside its assignment.
Is agentic security remediation ready for regulated environments?
It can fit, provided the controls auditors already expect stay intact. Separation of duties is easier to evidence when a human approves every merge. Change management is easier to show when each pull request links to its finding and verification result. Confirm the full agent log exports to your evidence store, because an auditor may ask for it long after the change ships.
How does agentic remediation relate to AI coding assistants developers already use?
An assistant waits for a developer to ask and works inside that developer's editor session. A remediation agent starts from a security finding, works across repositories without a prompt, and checks its own output. The two meet in review, where an assistant can help a developer understand or adjust an agent's pull request before approving it.
References
Defense Advanced Research Projects Agency. (2025, August 8). AI Cyber Challenge marks pivotal inflection point for cyber defense. DARPA. https://www.darpa.mil/news/2025/aixcc-results
Yulevich, A. (2026, September 30). Agentic remediation just got bigger: Now fixing vulnerabilities in your dependencies, not just your code. Legit Security. https://www.legitsecurity.com/blog/agentic-remediation-just-got-bigger-now-fixing-vulnerabilities-in-your-dependencies-not-just-your-code
Legit Security needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, check out our Privacy Policy.
More Articles

AI Agent Supply Chain Security: Securing Agentic Development
AI agents install packages, MCP servers and skills with developer credentials. Learn how to inventory, pin and verify every component they pull in.



See it in your stack
Every prompt, every commit, every deploy, covered the moment you're ready.


