Runtime Vulnerability Detection (Preview)

Runtime Vulnerability Detection finds known vulnerabilities (CVEs) in the libraries, dependencies and components that your instrumented applications load while they run. It ranks each finding by how exposed it is in your environment, using the APM and service map context Middleware already collects.

Preview#

This capability is in development. General availability (GA) is planned for end of January 2027. This page describes the planned GA behavior. Details may change before release, and this page will be updated as they do.

Why runtime detection#

Scanning container images or source repositories tells you what could run. It reports every dependency in a manifest or image layer, including test dependencies, unused transitive packages and libraries that are never loaded. It also goes stale: a new advisory published after the scan isn't seen until the next scan.

Runtime Vulnerability Detection works from what does run:

  • The inventory comes from the running process, as reported by the Middleware language agents, not from a build artifact.
  • Only components that are actually loaded by the application are reported.
  • Findings are re-evaluated continuously against new advisories. You don't need to redeploy or rescan.
  • Every finding is tied to the service, host, container and environment where the component was seen running.

Image and repository scanning are not required, and are not used as a source for findings.

How it works#

1 Runtime inventory#

The Middleware language agent records each library the application loads, with its name, version, package URL (purl), file path and, where available, a file hash:

  • Java: JARs loaded by the application's class loaders, including libraries nested in WAR and EAR archives deployed on application servers.
  • Node.js: packages resolved through the module loader (require and import).
  • Python: distributions that provide modules imported by the process.
  • .NET: assemblies loaded into the application domain, mapped to their NuGet packages.
  • PHP: Composer packages loaded through the autoloader.
  • Go: modules compiled into the binary, read from the build information embedded by the Go toolchain.
  • Ruby: gems activated by Bundler or RubyGems in the running process.
  • Rust, C++, Elixir / Erlang and Swift: components reported through the OpenTelemetry SDK. For Elixir and Erlang these are the applications loaded in the BEAM. For compiled languages they are the libraries linked into the binary.

The agent sends the inventory when the application starts, sends an update whenever a new library is loaded, and repeats it periodically so that the inventory reflects what is running now. The inventory is attached to the same resource attributes as your traces: service.name, deployment.environment, host.name, container and Kubernetes attributes, and cloud attributes.

Only package metadata is sent. No source code, request data or file contents leave the host.

2 Continuous matching#

Middleware matches each component against public vulnerability sources, including the OSV database, the GitHub Advisory Database and the NVD. Findings are enriched with exploit signals from the CISA Known Exploited Vulnerabilities catalog and EPSS.

When a new advisory is published, Middleware evaluates it against the inventory that is already running. A new CVE in a library that is running today raises a finding without a new deployment or scan.

3 Impact and exposure analysis#

Each finding is assessed in the context where the component runs:

  • Execution context: the service, host, container, pod, environment and runtime version where the vulnerable component is loaded.
  • Usage: whether the component is loaded, and whether its code is on the path of requests that APM traces.
  • Exposure: whether the service is reachable from outside, based on the service map. For example, a service that receives traffic from a load balancer, an API gateway or a browser application is more exposed than an internal batch job.
  • Blast radius: the upstream services and endpoints that depend on the affected service.
  • Environment: production findings are ranked above staging and development findings.

4 Prioritization and alerting#

Middleware combines severity, exploit signals and exposure into a single risk score. Findings are listed in order of that score, not in order of raw CVSS. You can alert on new or changed findings through the existing Middleware alert channels, such as Slack, Microsoft Teams, PagerDuty, email and webhooks. You can scope alerts by risk score, severity, service, team and environment.

What each finding contains#

FieldDescription
VulnerabilityCVE ID and any aliases (for example, GHSA IDs), with a summary and links to the advisories
SeverityCVSS v3.1 or v4.0 base score and vector, and the severity level (Critical, High, Medium or Low)
Exploit signalsListed in CISA KEV, EPSS score and percentile, and whether a public exploit is known
ComponentPackage name, version, package URL (purl), file path and whether it is a direct or transitive dependency, where this can be determined
Execution contextService, environment, host, container or pod, runtime and runtime version, and application server where relevant
UsageLoaded, or loaded and on the path of traced requests
ExposureInternet-facing or internal, from the service map, with the upstream services and endpoints that reach the affected service
Risk scorePriority computed from severity, exploit signals, usage, exposure and environment
RemediationThe fixed versions, when the advisory lists them
LifecycleFirst seen, last seen, and status: Open, Resolved (the component is no longer loaded) or Accepted risk, with a reason

A finding is resolved automatically when the vulnerable version is no longer loaded by any running instance of the service. For example, this happens after you deploy an upgraded dependency.

Service map correlation#

Findings are shown on the service map. Each service shows the number of open findings and its highest risk level, so you can see which vulnerable services sit on paths that receive external traffic. Opening a finding shows the affected service with its callers and dependencies. From there you can go to the traces, hosts and containers where the component runs.

Supported languages and environments at GA#

Runtime Vulnerability Detection uses the same language agents as Middleware APM. Runtime versions match the APM Support Matrix.

Languages and runtimes#

LanguageRuntime versionsNotes
Java (including Kotlin and Scala)Java 8+Standalone applications and application servers such as Apache Tomcat, Jetty, JBoss / WildFly, Oracle WebLogic Server and IBM WebSphere. Libraries packaged in WAR and EAR archives are reported individually.
PythonPython 3.9+Applications installed with pip, Poetry, uv or Conda.
Node.js (including NestJS and Next.js)Node.js 18.17.1+CommonJS and ES modules.
.NET.NET 6.0+; .NET Framework 4.6.2+Including .NET Framework applications on IIS.
GoGo 1.17+Modules from the build information embedded in the binary.
PHPPHP 8.0+Applications that use Composer.
RubyRuby 3.0+Applications that use Bundler or RubyGems.
Rust, C++, Elixir / Erlang, SwiftAs supported by the OpenTelemetry SDK for the languageInstrumented with the OpenTelemetry SDK.

Applications on runtime versions older than those listed can't load the language agent, so their libraries are not inventoried. These applications can still be traced with OBI (eBPF), but OBI does not report loaded libraries.

Environments#

EnvironmentHow the inventory is collected
Linux and Windows hosts (VMs and bare metal)Language agent installed with the application, or injected by Linux systemd auto-instrumentation and IIS auto-instrumentation
Containers and KubernetesLanguage agent in the image, or injected by Kubernetes auto-instrumentation without image changes
Amazon ECSLanguage agent injected by ECS auto-instrumentation
AWS LambdaMiddleware Lambda instrumentation for the supported Lambda runtimes. The inventory is sent once per execution environment, not per invocation.

Applications that are already instrumented with Middleware APM get Runtime Vulnerability Detection by upgrading to a GA agent version. No separate scanner or sidecar is needed.

Timeline#

MilestoneTarget
PreviewIn development
General availability, with the languages and environments listed aboveEnd of January 2027

To request early access or a written statement of the GA scope and date, contact your Middleware account team or support@middleware.io.

Frequently asked questions#

No. It answers a different question. Build-time scanners report everything that could ship. Runtime Vulnerability Detection reports what is loaded in running applications and how exposed those applications are. Many teams use both. Runtime findings are the ones to fix first.

The agent records library metadata when classes, modules or assemblies are loaded, which already happens during normal startup. The inventory is sent in small batches when it changes and on a periodic refresh. Matching against vulnerability databases runs in Middleware, not on your hosts.

Package names, versions, package URLs, file paths and file hashes, with the same resource attributes as your traces. No source code, file contents, request payloads or environment variable values are sent.

No. Runtime Vulnerability Detection detects and prioritizes vulnerable components. It does not block requests or change application behavior.

Middleware re-evaluates running inventories when vulnerability sources are updated. A newly published CVE that affects a running library appears as a finding without any action on your side.

Need assistance or want to learn more about Middleware? Get in touch with us via our Contact Us or join our Slack channel.

What did you think of this content?