Breaking News: PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Watch James Berthoty and Chris Lindsey discuss on how to adapt your security tools and take action.
Watch on Demand

What Is Runtime Security? From Containers to AI Agents

What Is Runtime Security From Containers to AI Agents

TL;DR

  • Runtime security observes and controls live production workloads at the process, file system, network, and system call level to detect threats that static pre-deployment checks miss.
  • Pre-deployment tools evaluate static code and artifacts, leaving blind spots around runtime configuration drift, active memory execution, and dynamic dependency behavior.
  • eBPF kernel sensors capture system calls node-wide without requiring application modifications, sidecar proxies, or custom code rewrites.
  • Behavioral detection maps active execution anomalies against established baselines and threat models like the MITRE ATT&CK Containers matrix.
  • Autonomous AI agents introduce new runtime risks, including prompt injection, excessive agency, unvalidated tool executions, and identity abuse.
  • In-line blocking provides immediate threat mitigation but carries the operational risk of false-positive production outages.
  • A runtime alert is resolved only when traced through build metadata (like OCI annotations or SLSA provenance) back to the source repository, commit, and code owner.

What Is Runtime Security?

Runtime security is the practice of monitoring and controlling workloads in production, at the level of processes, file access, network connections and system calls, to detect and stop activity that pre-deployment analysis cannot assess. Operating strictly after code, build, and deployment validation stages in the software lifecycle, runtime security acts as an active operational safeguard when applications are exposed to live traffic.

It is vital to separate runtime security from Cloud Security Posture Management (CSPM) and general posture controls. While posture management continuously evaluates control-plane configurations (checking whether cloud storage buckets are public or if Kubernetes API servers are exposed), runtime security monitors active workload execution behavior inside running containers, nodes, and host environments.

AI runtime protection applies this same operational discipline to generative AI models and autonomous agents. Rather than focusing solely on static model weights or training dataset lineage, AI runtime security monitors real-time agent execution paths: inspecting dynamic prompt inputs, validating model-invoked tool parameters, blocking unauthorized shell executions, and restricting outgoing API calls to prevent data exfiltration.

Why Do Pre-Deployment Checks Miss Runtime Risk?

Pre-deployment security scans are designed to inspect static artifacts before code reaches production. Tools like Static Application Security Testing (SAST), Software Composition Analysis (SCA), and container scanning tools analyze source repositories, configuration manifests, and built container layers for known vulnerabilities, hardcoded secrets, and misconfigurations. While these checks are essential for catching security flaws early in the development lifecycle, they are inherently limited: they evaluate software at rest, in a state of static isolation.

Crucial risk vectors emerge only after an application binary or container image is initialized and executed in a live environment:

  • Configuration Drift: Runtime environments frequently deviate from their intended infrastructure-as-code manifests due to manual hotfixes, automated scaling events, dynamic environment variables, or rogue administrative changes.
  • In-Memory and Loaded Component Risks: SCA tools generate extensive lists of vulnerable packages present on a disk image, but pre-deployment scans cannot determine which libraries are in fact loaded into active process memory during execution.
  • Active Dependency Exploitation: Malicious or compromised supply-chain dependencies can remain dormant during static analysis and trigger unauthorized process executions, outbound network socket connections, or file system modifications only upon initialization.
  • Autonomous AI Agent Execution: Modern workloads increasingly deploy autonomous AI agents that make dynamic operational decisions, call external APIs, and execute shell commands or code snippets at runtime: actions that no static pre-deployment review can foresee or analyze.

This operational blind spot expands as cloud-native deployment patterns become the de facto standard. According to the 2025 CNCF Annual Cloud Native Survey, 82% of container users now run Kubernetes in production, and 66% of organizations hosting generative AI models use Kubernetes for some or all of their inference workloads. As production environments become more dynamic and interconnected, relying solely on pre-deployment gates leaves critical execution paths unmonitored.

How Does Runtime Security Work?

Most runtime security tools rely on a three-tier operational pipeline: a sensor that captures live system activity, a detection engine that analyzes incoming events to identify threat behavior, and a response mechanism that executes administrative or enforcement policies.

Runtime Security Monitoring With eBPF

Modern runtime monitoring uses eBPF to capture low-level system activity directly inside the Linux kernel. eBPF runs sandboxed, bytecode-verified programs in kernel space without requiring changes to kernel source code or the loading of risky kernel modules. This positioning allows a single eBPF sensor to observe all system calls, process launches, file system access, and network socket connections across every container running on a host node.

In Kubernetes environments, this architecture simplifies deployment: the sensor runs as a DaemonSet (deploying one lightweight pod per worker node) without requiring sidecar proxies, application container modifications, or code rewrites.

Behavioral Detection

Once events are captured, the detection engine evaluates them using two primary methodologies:

  1. Signature-Based Detection: Matches observed actions against explicit, known-bad rules, such as an interactive shell (/bin/sh) spawning inside a production web server container.
  2. Behavioral Baselining: Learns a workload’s normal operational pattern over time and flags anomalies, such as an application suddenly opening outbound network connections to unvetted external IP addresses.

Detections are mapped to the MITRE ATT&CK Containers matrix, which catalogs specific container threat techniques. These include Escape to Host (bypassing container isolation to access the underlying node) and Deploy Container (unauthorized creation of malicious containers via exposed orchestration or Docker APIs).

Response and Enforcement

When a detection rule fires, the platform triggers a configured response:

  1. Alerting: Generates a high-fidelity incident notification enriched with workload context (pod name, namespace, container image digest, process tree, and user identity) and routes it to security teams or security information and event management (SIEM) platforms.
  2. Active Enforcement: Intercepts the activity in real time: killing the offending process (SIGKILL), blocking the restricted system call, or network-isolating the compromised pod.

This introduces a fundamental operational trade-off: In-line blocking provides immediate threat containment but risks causing false-positive production outages if a legitimate process is blocked. Conversely, alerting-only mode avoids breaking production applications but leaves a time window for an attacker to execute their objectives before a human operator intervenes.

Runtime Security for Containers and Kubernetes

NIST SP 800-190 outlines five core runtime risk categories for containerized environments. Addressing these risks requires matching dynamic runtime signals to native Kubernetes platform controls:

NIST SP 800-190 Risk CategoryRuntime Signal Revealing the RiskNative Kubernetes Control
Vulnerabilities Within Runtime SoftwareeBPF detection of active memory execution targeting vulnerable container runtime daemons or host kernel packagesMinimal, patched node OS images, with pod disruption budgets so nodes can be drained safely for patching
Unbounded Network AccessUnexpected outbound socket connections (connect syscalls) or lateral pod-to-pod traffic to unmapped internal IPsKubernetes NetworkPolicy objects restricting ingress/egress by label
Insecure Runtime ConfigurationsProcess execution (execve) running with UID 0 (root) or unexpected capability requests (e.g., CAP_SYS_ADMIN)securityContext parameters, Pod Security Standards (Baseline/Restricted)
Application VulnerabilitiesSpawning of unexpected child processes (e.g., /bin/sh inside a web server) or unauthorized file modifications in /etc.Read-only root filesystems (readOnlyRootFilesystem: true) and Seccomp or AppArmor profiles
Rogue ContainersPod creation events lacking registered image digests, missing CI/CD provenance signatures, or deployed outside approved namespacesValidating Admission Webhooks (e.g., OPA Gatekeeper, Kyverno) enforcing signed image policies

In addition to these categories, runtime platforms perform drift detection. This process continuously compares the running container’s active filesystem, binaries, and process trees against the immutable image digest from which it was originally deployed. Any added binaries, modified system libraries, or unexpected background processes are flagged immediately as unauthorized runtime drift.

How Does Runtime Security Apply to AI Agents?

An autonomous AI agent’s security risk is realized at runtime. As agents execute, they invoke tools, connect to external Model Context Protocol (MCP) servers, operate under non-human identities, and query enterprise data stores, making real-time decisions that no static pre-deployment review can foresee.

AI runtime protection actively monitors these execution loops, focusing on five critical operational vectors:

  1. Tool Invocations: Inspecting the parameters and commands passed to internal APIs, database drivers, and local command shells before execution.
  2. Identity and Permission Use: Verifying that non-human identities and delegated session tokens are not escalated or reused across unauthorized tasks.
  3. Data Access: Monitoring reads and queries against vector databases, file systems, and enterprise storage for anomalous data retrieval patterns.
  4. Network Egress: Restricting outbound socket connections and webhooks initiated by the agent to approved endpoint registries.
  5. Out-of-Scope Actions: Detecting goal drift or execution chains where the agent attempts actions outside its intended task boundaries.

OX Security’s analysis of 15,465 published MCP servers shows why egress matters: 15.6% of their hostnames resolved to infrastructure outside the US, and six were unregistered domains anyone could buy for as little as $4 a year.

The necessity of runtime controls for AI workloads is highlighted by recent industry data. In a survey of 445 IT and security professionals conducted in late 2025 by the Cloud Security Alliance (CSA), and funded by Zenity, 53% of organizations reported that AI agents have exceeded their intended permissions, while 47% experienced a security incident involving an AI agent in the past year. Furthermore, only 16% of respondents reported high confidence in their ability to detect agent-specific threats.

These operational risks align directly with the OWASP Top 10 for Agentic Applications, including key threat categories such as:

  • Tool Misuse & Exploitation (ASI02): Agents invoking legitimate system tools with unsafe parameters or in unauthorized sequences due to context manipulation.
  • Identity & Privilege Abuse (ASI03): The exploitation or improper inheritance of an agent’s delegated non-human credentials to access restricted enterprise assets.
  • Rogue Agents (ASI10): Unsanctioned or compromised agents operating without administrative oversight, drifting from initial instructions, or executing unauthorized workflows.

How Do Runtime Findings Get Traced Back to Code?

Before a runtime security alert can be resolved, it must traverse a complete chain of attribution across the software delivery pipeline. Standardized supply chain metadata specifications carry each link in this attribution chain:

  • OCI Image Annotations: Open Container Initiative standards allow build platforms to embed optional key-value metadata directly into the image manifest, explicitly recording org.opencontainers.image.source (the repository URL) and org.opencontainers.image.revision (the exact git commit hash).
  • SLSA Provenance: The Supply-chain Levels for Software Artifacts framework specifies verifiable build attestations, signed from Build Level 2 upward. SLSA provenance records answer where, when, and how an image was produced, linking the output digest back to the exact build platform execution and source inputs.

Tracing runtime events back to source code reveals the fundamental difference between patching a live environment and fixing the root cause. Patching a running container directly (such as via an interactive shell) creates immediate configuration drift; the very next automated deployment, scaling event, or pod restart will overwrite the manual hotfix with a fresh container instance instantiated from the unpatched base image.

A permanent fix must be applied directly at the source repository. When a developer updates the code, pushes a commit, and triggers the CI/CD pipeline, the updated artifact moves through automated checks, builds a new immutable image digest, and cleanly updates the production environment.

Where Runtime Detection Breaks Down in Practice

Even when organizations deploy advanced runtime monitoring tools, common implementation oversights can leave security teams generating alerts that nobody can remediate:

  • Generating Contextless Alerts: Firing raw system-call or process execution alerts that lack workload context, container image digests, repository links, or assigned code owners, leading to alert fatigue.
  • Treating Runtime Security as a Pre-Deployment Replacement: Relying exclusively on runtime monitoring while skipping SAST, SCA, and container image scanning in CI/CD pipelines, allowing easily preventable vulnerabilities to enter production.
  • Leaving Host and Kernel Sensor Blind Spots: Operating worker nodes, serverless environments, or legacy host platforms where eBPF kernel access is restricted or unsupported, leaving unmonitored execution gaps across the fleet.
  • Building Baselines on Short-Lived Workloads: Attempting to draw behavioral anomaly baselines from ephemeral pods or batch jobs that terminate before the detection engine can establish a normal operational profile.
  • Excluding AI Agents and Non-Human Identities: Monitoring underlying container infrastructure while omitting autonomous AI agent tools, large language model (LLM) interactions, and delegated service accounts from the inventory.
  • Hot-Patching Running Containers: Applying temporary file or package changes directly inside active container instances instead of updating the source repository, ensuring the vulnerability returns upon the next pod deployment.

Tracing Runtime Findings to Code With OX Cloud and the OX Platform

OX Cloud functions as the cloud and runtime pillar of OX’s AI-Native Application Protection Platform (AINAPP), the first Prompt-to-Runtime Security Platform. It extends traditional cloud protection into environments where AI agents and cloud workloads operate dynamically. Designed to secure active runtime execution, OX Cloud pairs cloud-native application protection platform (CNAPP) coverage (spanning CSPM, Kubernetes Security Posture Management (KSPM), Data Security Posture Management (DSPM), and graph-based attack path mapping) with specialized AI runtime capabilities.

OX Cloud manages runtime risk across containerized workloads and autonomous AI layers through specific integrated capabilities:

  • Agentic Attack Surface Management: Discovers AI agents, underlying models, MCP servers, and non-human identities operating across cloud environments, mapping what infrastructure and data stores they can access.
  • AI Detection and Response (AIDR): Detects and governs AI-driven usage, configuration, and threats across cloud and runtime environments in real time.
  • Runtime Events and Vulnerabilities: Investigates runtime incidents with full context and identifies vulnerabilities actively exposed in running workloads.
  • OX Runtime Sensor: Deployed in Kubernetes as a lightweight DaemonSet with no code changes or sidecars required, the OX Runtime Sensor uses eBPF kernel tracing to identify the third-party libraries that are actually loaded in active process memory. This enables security teams to prioritize vulnerabilities that are running in execution paths over dormant packages sitting unreferenced on disk.

At the core of the platform is a single, shared context lake. By connecting data across OX VibeSec (prompt governance), OX Code (pipeline security), OX Cloud (runtime defense), and OX Agentic Pentester, the shared context lake allows a security finding to be traced from the initial developer prompt or code commit that introduced it, through the CI/CD build pipeline, directly to the live runtime environment it threatens.

Runtime Security That Ends in a Code Fix

Runtime security provides essential operational visibility into active workloads, containers, and autonomous AI agents as they execute in production environments. By deploying kernel-level eBPF sensors, applying behavioral detection models, and enforcing real-time boundaries, security teams can intercept dynamic threat vectors, process anomalies, and agentic scope violations that static pre-deployment scans inevitably miss.

However, detecting an active runtime event is only the beginning of the security lifecycle. A runtime finding is truly resolved only when it is traced through the build pipeline back to the exact container image, source code commit, and engineering owner responsible for producing it. Connecting real-time production visibility with automated pipeline attribution gives every alert an owner and a fix path, allowing teams to deliver permanent root-cause fixes at the source. To see how end-to-end context lake mapping transforms transient cloud alerts into actionable code fixes, book a demo.

FAQs

AI runtime protection is the practice of monitoring and enforcing security guardrails over generative AI models, LLM inference runtimes, and autonomous AI agents while they execute in production. Unlike static model evaluations, AI runtime protection inspects real-time operational execution loops: monitoring prompt inputs for injection attempts, validating parameters passed to API tools or local command shells, restricting non-human identity permissions, and blocking unauthorized outgoing network sockets to prevent data exfiltration.

Runtime security is a specific functional discipline within cloud security focused on real-time workload observation and behavioral enforcement at the kernel, container, and application layers. A CNAPP is a broader, multi-capability security architecture that integrates runtime security alongside posture management and pre-deployment scanning, including CSPM, Cloud Workload Protection Platforms (CWPP), KSPM, and Cloud Infrastructure Entitlement Management (CIEM). In short, runtime security provides the active behavioral protection layer within a comprehensive CNAPP estate.

Runtime findings need code context because patching a running production workload directly (such as via an interactive shell or hotfix) only creates temporary configuration drift that will be overwritten during the next automated deployment or pod restart. To permanently resolve a runtime threat, security teams must trace the live event (via container image digests, OCI annotations, or build provenance) back to the exact source code repository, git commit, and engineering owner responsible. Providing code context allows developers to fix the root cause in source code, so the fix ships with every subsequent build.

Tags:

Group 1261153926

See OX on your own code.

Explore with demo data, or connect a repo when you’re ready.

Start free
Frame 2085668530
Group 1261154229