Skip to main content

Control M14

Runtime Security Controls & Sandboxing

Implement comprehensive runtime security controls including advanced sandboxing, execution monitoring, and dynamic security policy enforcement to prevent unexpected code execution and contain security breaches in real-time.

  • 4 threats mitigated
  • 7 AISVS requirements
  • 2 AISVS chapters
  • 61 tasks

All controlsLifecycle view

Threats mitigated

  • T2 Tool Misuse

    Manipulation of tools, APIs, or environment access to perform unintended actions or access unauthorized resources, including exploitation of access to external systems.

  • T3 Privilege Compromise

    Breaking information system boundaries through context collapse, causing unauthorized data access/leakage, or exploiting tool privileges to gain unauthorized access to systems.

  • T4 Resource Overload

    Overwhelming external services through excessive API calls or resource consumption, potentially causing denial of service or excessive costs.

  • T11 Unexpected RCE and Code Attacks

    Tools or environments enabling unexpected code execution, presenting direct risks to code execution environments.

OWASP AISVS coverage

The AISVS 1.01 chapters and verification requirements this control helps satisfy.

C4 Infrastructure, Configuration & Deployment Security

  • C4.1.1 Level 1

    Verify that AI models execute in isolated sandboxes.

  • C4.1.2 Level 1

    Verify that model artifact loading enforces an explicit allow-list of serialization formats that do not permit arbitrary code execution during deserialization.

  • C4.1.3 Level 3

    Verify that workload attestation is performed before model loading to provide proof that the execution environment has not been tampered with.

  • C4.3.3 Level 3

    Verify that inference runtimes enforce process, memory, and file access isolation.

C9 Orchestration & Agentic Security

  • C9.3.1 Level 1

    Verify that each tool/plugin executes in a least-privilege sandbox or is otherwise isolated from model operations.

  • C9.3.8 Level 3

    Verify that policy violations trigger automatic containment of affected tools, such as stopping their execution, isolating them, or revoking their permissions.

  • C9.6.1 Level 1

    Verify that a manual kill-switch mechanism exists to immediately halt AI model inference and outputs.

Design phase

Architecture, threat modelling and policy decisions made before code is written. 16 tasks.

Runtime Security Architecture

  • Design multi-layered runtime protection with OS, container, and application-level controls
  • Plan dynamic security policy enforcement with real-time threat assessment
  • Design execution monitoring and anomaly detection for all agent activities
  • Plan runtime attestation and integrity verification mechanisms
  • Design secure execution environments with hardware-level isolation
  • Plan runtime security control orchestration and coordination
  • Design performance-optimized security controls with minimal overhead
  • Plan runtime security incident response and automatic containment

Advanced Sandboxing Design

  • Design hypervisor-based isolation using microVMs and lightweight virtualization
  • Plan process-level isolation with namespace and cgroup restrictions
  • Design memory protection with address space layout randomization (ASLR)
  • Plan system call filtering and monitoring with seccomp-bpf
  • Design file system isolation with chroot jails and bind mounts
  • Plan network isolation with virtual networking and traffic filtering
  • Design resource quotas and limits with real-time enforcement
  • Plan sandbox escape detection and prevention mechanisms

Build phase

Implementation, testing and hardening while the agent is developed. 31 tasks.

Advanced Isolation Implementation

  • Deploy hypervisor-based sandboxing:
    • Firecracker microVMs for lightweight VM-level isolation
    • Kata Containers for VM-isolated container workloads
    • gVisor for user-space kernel implementation
    • AWS Nitro Enclaves for confidential computing workloads
  • Implement process and system-level isolation:
    • Linux namespaces (PID, network, mount, user, IPC, UTS)
    • Control groups (cgroups) v2 for resource limitation and accounting
    • Mandatory Access Control (MAC) with SELinux or AppArmor
    • Capability-based security with Linux capabilities

Runtime Monitoring Implementation

  • Build comprehensive execution monitoring:
    • System call monitoring with Falco and custom rules
    • File system access monitoring with inotify and fanotify
    • Network traffic monitoring with eBPF and packet capture
    • Process creation and execution tracking with audit frameworks
    • Memory access pattern monitoring with hardware performance counters
  • Deploy runtime anomaly detection:
    • Machine learning models for behavior deviation detection
    • Statistical process control for performance metrics
    • Rule-based detection for known attack patterns
    • Ensemble methods combining multiple detection approaches

Dynamic Security Policy Enforcement

  • Implement real-time policy engines:
    • Open Policy Agent (OPA) integration for dynamic authorization
    • Custom policy engines with low-latency decision making
    • Context-aware policy evaluation with environmental factors
    • Policy conflict resolution and precedence management
  • Build automated response mechanisms:
    • Automatic process termination for policy violations
    • Resource throttling for suspicious behavior
    • Network isolation for compromised processes
    • Alert generation and escalation workflows

Operations phase

Monitoring, response and continuous improvement once the agent is live. 14 tasks.

Runtime Security Operations

  • Monitor runtime security control effectiveness and performance impact
  • Execute regular security policy updates and tuning based on threat intelligence
  • Maintain runtime security baseline and deviation detection procedures
  • Deploy runtime security incident response and forensic collection
  • Execute runtime security control testing and validation procedures
  • Maintain runtime security metrics and performance optimization
  • Deploy runtime security training and awareness programs

Sandbox Management Operations

  • Monitor sandbox performance and resource utilization
  • Execute sandbox image updates and security patching procedures
  • Maintain sandbox configuration management and version control
  • Deploy sandbox escape detection and response procedures
  • Execute sandbox capacity planning and scaling operations
  • Maintain sandbox compliance and audit documentation
  • Deploy sandbox troubleshooting and support procedures

Tools and frameworks

Virtualization & Isolation

  • MicroVMs: Firecracker, Cloud Hypervisor, QEMU with KVM
  • Container Isolation: gVisor, Kata Containers, Nabla Containers
  • Process Isolation: Bubblewrap, nsjail, minijail, systemd-nspawn
  • Confidential Computing: Intel SGX, AMD SEV, ARM TrustZone

Runtime Monitoring

  • Security Monitoring: Falco, Sysdig, Aqua Security, Twistlock
  • System Monitoring: osquery, Auditd, Wazuh, OSSEC
  • Network Monitoring: Suricata, Zeek, Moloch, ntopng
  • Performance Monitoring: Perf, eBPF tools, Intel VTune

Policy & Control

  • Policy Engines: Open Policy Agent (OPA), Casbin, AWS Cedar
  • Access Control: PolicyKit, sudo alternatives, custom RBAC
  • Resource Control: systemd, cgroups, Docker resource limits
  • Compliance: OpenSCAP, Lynis, Nessus, custom compliance tools

References

Source: Agentic Security Hub controls (editorial, after OWASP Agentic AI T&M v1.1; mapped to AISVS 1.01) 2026.11 · retrieved 2026-11