Automated CVE Analysis and Remediation Using Event-Driven RAG and AI Agents

nvidia · Tech · 2024 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Cybersecurity

NVIDIA needed to triage container CVEs at enterprise scale, distinguishing vulnerabilities that are merely detected from ones that are actually exploitable in a specific software image.

Constraints:

Architecture

Agent Morpheus is an event-driven CVE analysis workflow connected to NVIDIA's container registry and security tooling. A container upload triggers a traditional scanner; scan results and threat intelligence feed a LoRA-tuned planning model that creates an exploitability checklist. A LoRA-tuned AI agent executes checklist tasks against SBOMs, source code, documentation, internet search, and helper tools such as version comparison. A summarization model condenses findings, a base Llama3 model formats non-exploitability justifications as VEX, and analysts review, peer-review, publish, and feed corrections back into training data. NIM serves the base model plus LoRA adapters, while Morpheus runs the independent CVEs and checklist items asynchronously in parallel.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  container-registry[Container registry] --> traditional-cve-scanner[Traditional CVE scanner]
  traditional-cve-scanner --> agent-morpheus-workflow[Agent Morpheus workflow]
  vulnerability-intelligence-sources[Vulnerability intelligence sources] --> agent-morpheus-workflow
  agent-morpheus-workflow --> planning-llm[Planning LLM]
  planning-llm --> ai-agent[AI agent]
  ai-agent --> project-assets[Project assets]
  ai-agent --> version-comparison-tool[Version comparison tool]
  ai-agent --> summarization-llm[Summarization LLM]
  summarization-llm --> vex-formatting-llm[VEX formatting LLM]
  vex-formatting-llm --> vex-document-publishing[VEX document publishing]
  agent-morpheus-workflow --> security-analyst-dashboard[Security analyst dashboard]
  security-analyst-dashboard --> vex-document-publishing[VEX document publishing]
  morpheus-parallel-pipeline[Morpheus parallel pipeline] --> agent-morpheus-workflow
  nvidia-nim-inference-service[NVIDIA NIM inference service] --> planning-llm
  nvidia-nim-inference-service --> ai-agent
  nvidia-nim-inference-service --> summarization-llm
  nvidia-nim-inference-service --> vex-formatting-llm
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Container registry Publishes container upload events that initiate the vulnerability workflow. Traditional CVE scanner
Traditional CVE scanner Detects known CVE signatures in uploaded containers before AI exploitability analysis begins. Container registry, Agent Morpheus workflow
Agent Morpheus workflow Event-driven orchestration layer that combines RAG, agent execution, summarization, VEX formatting, and analyst handoff. Traditional CVE scanner, Vulnerability intelligence sources, Planning LLM, AI agent, Summarization LLM, VEX formatting LLM, Security analyst dashboard, Morpheus parallel pipeline
Vulnerability intelligence sources Provide current exploit and vulnerability context for detected CVEs. Agent Morpheus workflow, Planning LLM
Planning LLM LoRA-tuned Llama3 model that turns CVE context into unique investigation checklists. Agent Morpheus workflow, AI agent
AI agent LoRA-tuned agent model that executes checklist items against project assets and helper tools. Planning LLM, Project assets, Version comparison tool, Summarization LLM
Project assets Source code, SBOMs, documentation, and search-accessible context used to determine whether a CVE is exploitable. AI agent
Version comparison tool Deterministic helper tool for package-version ordering, a known weak point for LLMs. AI agent
Summarization LLM LoRA-tuned model that combines agent findings into analyst-readable summaries. AI agent, VEX formatting LLM, Security analyst dashboard
VEX formatting LLM Base Llama3 model that standardizes non-exploitability justifications into machine-readable VEX documents. Summarization LLM, VEX document publishing
NVIDIA NIM inference service Hosts the base Llama3 model and LoRA adapters behind OpenAI-compatible inference APIs. Planning LLM, AI agent, Summarization LLM, VEX formatting LLM
Morpheus parallel pipeline Runs independent CVE and checklist work asynchronously and exposes the workflow as a microservice. Agent Morpheus workflow, NVIDIA NIM inference service
Security analyst dashboard Presents the improved summary and justification to analysts for final recommendation. Agent Morpheus workflow, VEX document publishing
VEX document publishing Peer-reviewed distribution path for final VEX documents attached to containers. VEX formatting LLM, Security analyst dashboard

Data flow

A new container upload triggers a vulnerability scan, and the detected CVEs are passed into Agent Morpheus. The workflow retrieves current vulnerability and threat intelligence, then the planning LLM produces a checklist tailored to each CVE. The agent executes checklist items against project assets and tools, summarizes its findings, and classifies exploitability. The result is shown on a security analyst dashboard for human recommendation and peer review, then published as a VEX document; analyst edits become new fine-tuning data for the models.

4 supporting quotes
“The process is triggered from a container upload event that occurs whenever a new container is pushed to the registry by a user.”article, stated
“A vulnerability scan event triggers the workflow by passing on a list of CVEs detected in the container. These results are combined with up-to-date vulnerability and threat intelligence to provide the workflow with real-time information on the specific CVEs and their current exploits.”article, stated
“The checklist items are passed to an AI agent that retrieves the necessary information and performs the tasks autonomously.”article, stated
“Any changes in the summary or exemptions from the analyst are compiled into a new training dataset, which is used to continually retrain the models”article, stated

Why this architecture

NVIDIA chose an agentic RAG workflow because CVE exploitability is contextual: the same detected vulnerability may be harmless if runtime dependencies, vulnerable functions, or actual packages are absent. Specialized LoRA adapters separate planning, agent execution, and summarization rather than forcing one model to perform every role. Deterministic tools cover package-version and calculation weaknesses. NIM and Morpheus address production pressure: the system produces many LLM calls per CVE, so it needs burst-tolerant serving and parallel execution, while analyst review keeps final publication accountable.

4 supporting quotes
“It’s important to differentiate between a container being vulnerable (a CVE is present) and being exploitable (the vulnerability can actually be executed and abused).”article, stated
“The workflow uses four distinct Llama3 large language models (LLMs), three of which are LoRA fine-tuned for their specific task:”article, stated
“For our workflow, we found that the model struggled to compare package version numbers such as version 1.9.1 coming before 1.10.”article, stated
“NIM can also handle the bursty nature of LLM requests that are generated by the tool. On average, Agent Morpheus requires about 41 LLM queries per CVE!”article, stated

Models used: Llama3 · LoRA fine-tuned Llama3 · NVIDIA NIM

Scale

Alternatives considered (roads not taken)

Generate pull requests for every detected CVE

Rejected because: Blindly upgrading every detected package is unrealistic at enterprise scale and may be impossible when patched versions do not exist or dependency chains break.

“A logical next step could be to remediate the CVE by generating a pull request and bumping the package version to a patched or fixed version.”article, stated
“Due to software dependency complexities, upgrading to a non-vulnerable version of a package is not always possible even when the package does exist.”article, stated

Make the LLM compare package versions itself

Rejected because: The model struggled with version ordering, so NVIDIA externalized that operation into a deterministic tool.

“For our workflow, we found that the model struggled to compare package version numbers such as version 1.9.1 coming before 1.10.”article, stated

Run CVE and checklist work serially

Rejected because: Serial execution made a 20-CVE container take 2842.35 seconds; the independent nature of CVEs and checklist items made parallel execution a better fit.

“The checklist items for each CVE and the CVEs themselves are completely independent of each other and can be run in parallel.”article, stated

Patterns

tool-use-orchestration (agent-architecture)

The AI agent executes CVE checklist tasks using project assets plus deterministic helper tools for package versions and calculations.

“The AI agent has access to many assets related to the software project and container to effectively execute the checklist items and make decisions.”article, stated
“We built a version comparison tool that the agent uses to determine the relationship between package versions.”article, stated

rag-retrieval (knowledge-access)

Agent Morpheus retrieves CVE intelligence, threat intelligence, source code, SBOMs, documentation, and search results before making exploitability judgments.

“The workflow is connected to multiple vulnerability databases and threat intelligence sources, as well as assets and data related to the specific software project”article, stated

fine-tuning-adaptation (model-operations)

NVIDIA uses LoRA-tuned Llama3 variants for planning, agent execution, and summarization, and feeds analyst corrections back into future training data.

“The workflow uses four distinct Llama3 large language models (LLMs), three of which are LoRA fine-tuned for their specific task:”article, stated
“Any human-approved patching exemptions or changes to the Agent Morpheus summary from the analyst are fed back into the LLM fine-tuning datasets”article, stated

human-in-the-loop-gate (governance)

The AI workflow prepares exploitability findings, but human analysts make final recommendations and peer review before VEX publication.

“When it is finished with its analysis, Agent Morpheus presents a summary of findings to the human analyst who can then determine the best course of action.”article, stated
“The recommendation is sent for peer review. Any changes that must be made are returned to the analyst.”article, stated

batch-offline-processing (execution)

The Morpheus pipeline parallelizes independent CVEs and checklist items rather than treating each container analysis as one serial LLM chain.

“Using the Morpheus cybersecurity framework, we built a pipeline that orchestrates the large number of LLM requests and enables executing the LLM requests asynchronously and in parallel.”article, stated

Tradeoffs

Exploitability investigation before remediation

Chose AI-assisted exploitability analysis and VEX justification over patching or pull-requesting every detected CVE.

Rationale: Enterprise dependency graphs make universal upgrades unrealistic, and detected CVEs can be false positives or non-executable in a given container.

“A logical next step could be to remediate the CVE by generating a pull request and bumping the package version to a patched or fixed version.”article, stated
“Should the software remain unpublished until every last CVE is fixed? Clearly not, but publishers should be confident”article, stated

Specialized model roles

Chose four Llama3 roles with three LoRA-tuned task models over a single general model for planning, acting, summarizing, and VEX formatting.

Rationale: The workflow separates planning, agent execution, summarization, and formatting into distinct tasks that can be optimized independently.

“The workflow uses four distinct Llama3 large language models (LLMs), three of which are LoRA fine-tuned for their specific task:”article, stated

Parallel CVE execution

Chose Morpheus asynchronous parallelization over serial processing of CVEs and checklist items.

Rationale: CVE investigations and checklist items are independent, so parallel execution turns a nearly hour-long 20-CVE analysis into about five minutes.

“When run serially, it can take 2842.35 seconds to process a container with 20 CVEs. When run in parallel using Morpheus, that same container takes 304.72 seconds to process—a 9.3x speedup!”article, stated

Gotchas (what bit them)

Detected CVEs are not automatically exploitable CVEs.

Root cause: Package presence alone ignores runtime dependencies, false positives, unreachable vulnerable code, and missing execution environments.

Resolution: Agent Morpheus investigates exploitability with CVE-specific checklists and project-context retrieval before recommending patching or VEX exemption.

“It’s important to differentiate between a container being vulnerable (a CVE is present) and being exploitable (the vulnerability can actually be executed and abused).”article, stated
“The exact method to determine the exploitability of each CVE is a unique process based on the specific vulnerability.”article, stated

LLMs mis-handle package version comparisons.

Root cause: Language models are unreliable at deterministic ordering such as recognizing that 1.9.1 comes before 1.10.

Resolution: NVIDIA added a version comparison tool the agent can invoke instead of asking the model to reason about versions unaided.

“For our workflow, we found that the model struggled to compare package version numbers such as version 1.9.1 coming before 1.10.”article, stated
“We built a version comparison tool that the agent uses to determine the relationship between package versions.”article, stated

Agentic CVE analysis creates bursty inference demand.

Root cause: Each CVE generates many LLM calls, and a container can contain dozens of independent CVEs.

Resolution: NVIDIA serves LoRA adapters with NIM and uses Morpheus to parallelize CVEs and checklist items asynchronously.

“As container scans can generate dozens of CVEs per container, the number of outstanding LLM requests can easily reach into the thousands for a single container.”article, stated
“The checklist items for each CVE and the CVEs themselves are completely independent of each other and can be run in parallel.”article, stated

Evaluation

NVIDIA compared serial and Morpheus-parallel execution for a 20-CVE container and relies on analyst review plus peer review before publication.

Metrics: 2842.35 seconds serial processing for 20 CVEs · 304.72 seconds parallel processing for 20 CVEs · 9.3x speedup

“When run serially, it can take 2842.35 seconds to process a container with 20 CVEs. When run in parallel using Morpheus, that same container takes 304.72 seconds to process—a 9.3x speedup!”article, stated
“Analysts review the original container scan report, improved summary, and justification from Agent Morpheus and make a final recommendation for each CVE.”article, stated

Outcomes

The system is positioned for enterprise container publishing, where containers can produce dozens of CVEs and thousands of outstanding LLM requests.

3 supporting quotes
“With Agent Morpheus, organizations can reduce the time it takes to triage software for vulnerabilities from hours or days to seconds.”article, stated
“When run serially, it can take 2842.35 seconds to process a container with 20 CVEs. When run in parallel using Morpheus, that same container takes 304.72 seconds to process—a 9.3x speedup!”article, stated
“Agent Morpheus is fully integrated with our container registry and internal security tools to completely automate the entire process from container upload to the creation of the final VEX document.”article, stated