Skip to main content
Vulnerability Managementai-agentsvulnerability-managementphp2shell

From Detection to Remediation: How AI Agents Work Together in Vulnerability Management

How agentic vulnerability management works on a real 0-day: one PHP2Shell finding, five agent stages, and the hand-offs from detection to a verified fix.

YC
Yotam Cohen

On October 21, 2026, the PHP project shipped a security release for two pre-authentication remote code execution (RCE) bugs now known as PHP2Shell. Several other critical disclosures landed the same day. For teams practicing agentic vulnerability management, it became the clearest live test so far: one advisory, thousands of repositories, almost no warning.

The CVE IDs leaked ahead of the planned date. Proof-of-concept code circulated early, exploitation attempts appeared before public disclosure, and the patch arrived 17 hours after the leak, according to the Black October 2026 incident write-up. The PHP security advisory put every installation serving web requests at risk, from PHP-FPM to Apache with mod_php, and was blunt that "only an update is a complete solution."

Every security team asked the same two questions that morning. Where are we exposed? What do we fix first? Agentic vulnerability management answers both by splitting the investigation across specialized security AI agents that share one context and hand work to each other, from the first signal to a verified fix. This article follows one PHP2Shell finding through that chain, agent by agent.

Key takeaways

  • During PHP2Shell, Rival's agents were triaging customer exposure hours before vulnerability scanners could detect the CVEs.
  • Exploitability decides the order of work. Agents ranked PHP2Shell exposure by reachability, putting unauthenticated internet-facing workloads first and images with no running instances last.
  • One root cause, such as a pinned base image, can sit under dozens of workloads, so fixing at the root closes many findings with a single reviewed pull request.
  • Closure in agentic vulnerability management requires evidence that the patch or mitigation actually landed, followed by an automatic ticket update carrying the full investigation context.

The Traditional Vulnerability Management Challenge

Findings are cheap. A scanner that flags a vulnerable PHP version has done the easy part, and during PHP2Shell even that part lagged: scanners could detect the CVEs only hours after agents had started triaging. Everything after the finding is investigation, and it runs on human time.

Here is what one analyst has to do by hand for a single PHP2Shell finding:

  • Inventory: find every repository, Dockerfile, base image and virtual machine image that ships PHP, including legacy code nobody remembers deploying.
  • Exposure: check which of those builds run today, under which server API, behind which load balancer, security group or Web Application Firewall (WAF).
  • Ownership: work out which team owns the service when CODEOWNERS, cloud tags and the service catalog disagree.
  • Fix and follow-through: write the change, open the pull request, chase the review, confirm the deploy and update the Jira ticket.

Each step lives in a different system, and each hand-off between security and development can cost days. Many AI vulnerability management tools reorder the queue with better scores but leave the investigation to the security team. That does not add the capacity needed to validate exposure, find the owner and complete the fix.

One Vulnerability, Multiple Specialized Agents

Take CVE-2026-109618, "RCE via OOM corruption," rated 9.2. Out-of-memory handling can interrupt PHP while internal request data is only partly initialized, and cleanup may then treat that data as valid. Picture one affected service: a PHP application in a GitHub repository, built into a container image and running on a cloud workload.

Moving that finding from detection to a verified fix requires five stages: detection, exploitability validation, root cause and ownership, remediation, and validation and closure. Each stage receives evidence from the previous one and produces what the next stage needs.

StageReceivesDecidesPasses on
DetectionThe PHP advisory, CVE IDs, connected repositories and cloud accountsWhich repositories and workloads may run a vulnerable PHP buildCandidate list of repositories, images and hosts
Exploitability validationCandidate list plus network, identity and WAF contextWhether each instance is reachable and exploitable, and its priority tierEvidence-backed verdicts ranked by reachability
Root cause and ownershipRanked verdicts plus build files, commit history and team structureWhere the vulnerable version is set and who owns the fixRoot cause, affected assets and named owner
RemediationRoot cause, affected assets, owner and customer approval policyWhether to patch, apply an interim mitigation or add a compensating control, and who must approve itPull request, configuration change or WAF rule, plus owner notification
Validation and closureCompleted changes and the original verdictWhether the fix reached every affected workloadTicket update, validation evidence and a memory record of the investigation

From Detection to Remediation, Step by Step

Each stage ends with a hand-off: input, decision, output.

Detection

The trigger wasn't a scanner alert. Rival's 0-day rapid response monitors vendor advisories and threat intelligence feeds; in this walkthrough, Threat Exposure Analysis plays that role and starts the run from the PHP2Shell advisory. Per the write-up, a triaging agent then searched the connected code. For one customer it found 60 repositories containing PHP, 29 of them potentially vulnerable. A further check found more than 30 additional hosts and workloads running PHP. Other customers turned up production systems and a legacy repository still deployed in production. Across customers, agents scanned more than 80,000 repositories in hours.

  • Agent: Threat Exposure Analysis, CVE Triage, App Inventory
  • Receives: the advisory, affected versions, connected GitHub orgs, registries and cloud accounts
  • Decides: which version pins, base images and hosts fall in the vulnerable range
  • Passes on: a candidate list, each entry tied to its repo, image and workload

Exploitability Validation

A vulnerable version isn't the same as an exploitable service. The PHP advisory rates the risk highest for mod_php, where an unauthenticated request can trigger the attack before any application code runs. Settings like memory_limit, post_max_size and session upload progress change which paths remain open. In this walkthrough, Attack Surface Review traces each candidate from code to its running workload and network path, then checks authentication, IP restrictions and WAF rules.

The agents ranked PHP2Shell exposure in five reachability tiers:

  1. Public, internet-exposed workloads with no authentication
  2. IP-restricted public services
  3. Internal services that are partly internet-reachable
  4. Services with no public IP
  5. Images and code without any running instances

Red Team Simulation can add an environment-specific, runnable proof of concept as evidence, without ever executing it against production assets.

  • Agent: Attack Surface Review, Red Team Simulation
  • Receives: the candidate list, plus cloud network, identity and WAF configuration
  • Decides: reachable or not, which tier, with what confidence
  • Passes on: ranked verdicts with evidence and reasoning attached

Root Cause and Ownership

"PHP is vulnerable" isn't a root cause. Agentic vulnerability management looks for the line where the vulnerable version gets decided: a FROM php:8.x-apache tag in a Dockerfile, a package pinned in a virtual machine image, a vendored runtime in a legacy repo. One shared base image can sit under a dozen services, so fixing it once closes all of them. The Map Code to Cloud workflow links each repository to the servers and resources it deploys to. The Find Vulnerability Owners workflow then weighs that root cause against team structure and memories from past investigations to identify who should fix it.

  • Rival workflows: Map Code to Cloud, Find Vulnerability Owners
  • Receives: ranked verdicts, build files, commit history, cloud tags
  • Decides: where the fix belongs and which team owns that line
  • Passes on: one remediation unit per root cause, with affected assets and owner

Remediation

Rival's Autonomous Remediation workflow runs a fixed sequence: gather findings, root cause, remediation plan, pull request creation, human follow-up and remediation tracking. For PHP2Shell, the plan separates immediate containment from the full patch. The full fix moves the runtime to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, here through a pull request on the base image. Where a patch can't ship today, the advisory's interim settings or a WAF rule reduce exposure, though only the update closes it. The write-up describes the agents acting directly once analysis is complete: messaging the relevant employees, opening pull requests, suggesting WAF rules and applying configurations.

Approval sits wherever the customer puts it. A team can let base image bumps merge automatically, or require an owner's review on every pull request.

  • Rival workflow: Autonomous Remediation
  • Receives: the root cause, owner and the customer's approval policy
  • Decides: patch, mitigate or both, and the order across tiers
  • Passes on: an open pull request or applied change, plus a notified owner

Validation and Closure

A merged pull request isn't a closed finding. During PHP2Shell, agents helped customers verify that early mitigations, and later patches, actually landed in code. In this walkthrough, validation also checks the rebuilt image and running workload against the original verdict. Only then does the agent update the Jira, ServiceNow or Linear ticket with the investigation context and remediation status. The full investigation is written to memory, so the next PHP advisory starts from what the agents already know.

  • Rival workflow: Autonomous Remediation, tracking step
  • Receives: the merged change and the original exploitability verdict
  • Decides: whether the fix is live everywhere the verdict said it mattered
  • Passes on: a closed ticket with evidence, and a memory record

What Makes Multi-Agent Orchestration Possible

None of those hand-offs works without an agent harness. An agent harness combines organizational context, memory, tools, integrations and orchestration so specialized agents can work reliably in a specific environment. Rival calls itself the agent harness for cybersecurity, and multi-agent orchestration is the part of it this walkthrough relies on most.

  • Shared context: every agent reads and writes the same investigation, so Attack Surface Review starts from the exact repo-to-workload links CVE Triage found.
  • Knowledge graph: a security knowledge graph holds infrastructure, vulnerabilities and security findings, mapping code to the cloud resources it runs on.
  • Persistent memory: ownership decisions and past investigations carry forward, so agents don't repeat mistakes.
  • Integrations and triggers: scanners such as Wiz; code hosts such as GitHub, GitLab and Bitbucket; AWS, Azure, GCP and Kubernetes; plus Jira, ServiceNow and Linear. Runs start on demand, on a schedule or on an event.
  • Security expertise and evidence: specialized subagents bring built-in security expertise a team may not have in-house, and every verdict ships with evidence, reasoning and a confidence level.
  • Controlled execution: agents run in a sandbox, hosted or self-hosted, with approval gates set by customer policy.

Together, these capabilities let specialized agents work from the same investigation and pass evidence between stages.

Beyond Individual Agent Capabilities

A script that chains eight independent agents would pass output from one prompt to the next, but it would not provide the shared context and coordination this workflow requires. AI agent orchestration needs three things a chain doesn't have:

  • Coordination: fanning out across 29 repositories and 30+ hosts in parallel, then merging the results into one ranked picture.
  • Decision-making: choosing patch or mitigation, which tier goes first, and when a verdict needs a human.
  • Acting inside the environment: holding scoped credentials, running in a sandbox, opening pull requests and updating tickets under the customer's approval rules.

Rival's research on its Conductor reasoning engine names the failure a naive chain hits. "[T]oday's agentic approaches excel at toy examples and trivial problems, but their reasoning falls apart at the scale of problems that human reasoning faces in enterprise scenarios." The post calls this reasoning collapse at enterprise scale. Conductor's answer is to split the work into plan generation and plan orchestration, with discrete steps that have defined inputs and outputs. That architecture shows how work at the scale of 80,000 repositories can be divided into inspectable steps instead of one giant prompt.

Effective security automation requires specialized security AI agents that share context, coordinate decisions and act under the customer's approval policy. When the next 0-day lands, evaluate agentic vulnerability management by whether it produces a ranked, owned and verified fix. Rival's remediation and 0-day use cases show these workflows in operation, with remediation reduced from three or four weeks to minutes.

Sources

Frequently asked questions

What is agentic vulnerability management?

Agentic vulnerability management uses AI agents to run the whole workflow after a finding: confirming exposure, validating exploitability, tracing root cause and ownership, opening the fix and verifying it landed. Instead of a longer list for analysts, the agents do the investigation and remediation themselves, with evidence for every decision and human approvals wherever the organization's policy requires them.

How is it different from AI vulnerability management tools that score findings?

Scoring tools rank findings by likely risk, and the work stays with your team. Agents perform the work: they check reachability in your own cloud, identify the owning team, write the pull request and confirm deployment. The ranking becomes a by-product of real investigation rather than a prediction about which finding might matter.

Do security AI agents replace existing vulnerability scanners?

They can run native scanning across code, dependencies, secrets, containers and cloud, and they also consume findings from scanners already in place, such as Wiz, Qualys or Rapid7. Teams can keep their scanners and use agents for the investigation and remediation that follow, or replace overlapping code and cloud scanners and fund the agents from that existing tooling budget.

Can agents change production without a human approving it?

Only if the customer's policy allows it. Teams decide where approvals sit and can widen autonomy as trust grows. Proof-of-concept exploits generated for validation are never executed against production assets. Every proposed change carries the evidence and reasoning behind it, so a reviewer can approve a pull request without reinvestigating.

How is multi-agent orchestration different from a SOAR playbook?

A playbook follows branches written in advance and stalls when reality doesn't match one. Multi-agent orchestration plans the investigation from the actual finding and environment, assigns work to specialized agents, and adjusts when one agent's result changes the picture, such as a workload turning out to be internet-facing or a fix belonging to a different team.

Where do the agents run, and what data do they touch?

Agents run in a sandbox, either on Rival's infrastructure or self-hosted inside the customer's environment, with a SaaS control plane. They access only the systems the customer connects, such as code repositories, cloud accounts, scanners and ticketing tools, using the permissions granted to those integrations.