---
id: blog/en/agent-vm-network-egress-protocol
type: blog
language: en
title: "Agent inside a VM: test its network egress paths"
description: A measurement protocol for DNS, HTTP, IPv6 and host services. Kernel separation does not establish connection filtering.
summary: A measurement protocol for DNS, HTTP, IPv6 and host services. Kernel separation does not establish connection filtering.
url: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/
markdown_url: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/index.md
author: rootzero
published: 2026-11-17T00:00:00.000Z
updated: null
tags:
  - IA
  - Sécurité
  - Agents
topics:
  - id: ai-methods
    name: AI and methodology
    url: https://rootzero.eu/en/research/topics/ai-methods/
translations:
  en: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/
  fr: https://rootzero.eu/research/agent-vm-sorties-reseau-protocole/
reading_minutes: 2
content_origin: methodology
research_reference: null
research_status: null
vulnerabilities: []
references:
  - label: Linux network namespace
    url: https://man7.org/linux/man-pages/man7/network_namespaces.7.html
sections:
  - title: Define the VM boundary
    level: 2
    url: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/#define-the-vm-boundary
  - title: Prepare receivers
    level: 2
    url: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/#prepare-receivers
  - title: Test relevant alternate paths
    level: 2
    url: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/#test-relevant-alternate-paths
  - title: Keep enforcement outside tested authority
    level: 2
    url: https://rootzero.eu/en/research/agent-vm-network-egress-protocol/#keep-enforcement-outside-tested-authority
---

# Agent inside a VM: test its network egress paths

> A measurement protocol for DNS, HTTP, IPv6 and host services. Kernel separation does not establish connection filtering.

A VM separates an agent’s execution environment from the host. It does not define which destinations the agent can reach. A VM with Internet routing, internal network access and cloud credentials can still transfer data over permitted channels.

This proposed protocol evaluates outbound paths with synthetic markers. It reports no VM measurements performed for this dossier. Its intended output is a matrix of observed paths, denials and measurement limits.

![Guest process → Virtual interface → Egress policy → Test destination. The control must hold outside the evaluated process.](https://rootzero.eu/_astro/a58-en.DVi48rtb_Z151vqy.webp)

_The control must hold outside the evaluated process._

## Define the VM boundary

Record hypervisor, guest OS, interfaces, network mode, IPv4 and IPv6 routes, resolver and proxies. Include shared folders, exposed sockets, clipboard and integration services: some host paths bypass IP filtering entirely.

In an authorized Linux VM, these read-only commands provide an initial inventory:

```bash
ip -brief address
ip route
ip -6 route
cat /etc/resolv.conf
```

They do not measure containment. A displayed route describes configuration; controlled tests must establish actual reachability.

A [Linux network namespace](https://man7.org/linux/man-pages/man7/network_namespaces.7.html) isolates resources including interfaces and routing tables while sharing the host kernel. VMs and network namespaces create different boundaries. Their results are not interchangeable.

## Prepare receivers

Place identified test receivers only in authorized zones: lab network, test host and controlled external destination. Use a different marker for each attempt and record time at both ends.

| Path | Intended decision | Required observation |
| --- | --- | --- |
| DNS through the approved resolver | Allow test names | Resolver trace |
| HTTPS through the required proxy | Allow the test receiver | Proxy trace and receipt |
| Direct HTTPS to that receiver | Deny | Outbound-control denial |
| IPv6 to that receiver | Follow defined scope | IPv6 route and result |
| Host service | Deny unless required | Host-side trace |
| Exposed share or socket | Follow integration contract | Observed access outside IP path |

An uninstrumented cell remains unmeasured. A timeout may reflect a fault or remote firewall; it does not establish that the intended control denied the request.

## Test relevant alternate paths

Examine DNS and HTTPS separately. Blocking external resolvers does not prevent resolution through an HTTPS service when that channel remains unrestricted.

For a proxy, verify the actual destination, redirects and behavior during proxy failure. Direct fallback would change outbound scope. Name-based permissions also need comparison with the addresses actually contacted.

Repeat after reboot, address renewal and network interruption. A policy working only before reconnection does not describe the environment’s persistent state.

## Keep enforcement outside tested authority

If the agent can alter its VM’s outbound rules, those rules do not independently constrain its authority. Administration must sit beyond a boundary it cannot reconfigure, with evidence retained outside the guest.

The same reasoning applies to credentials. An authorized cloud connection can offer a transfer channel through a permitted API. Restricting network destinations does not replace limiting that account’s actions and resources.

The final report should identify tested paths, destinations, identities and reconnection states, plus integrations left unassessed. Its defensible claim is observed denial on those specific paths while preserving access required for the intended work.
