createos.sh

Command Palette

Search for a command to run...

Platforms for Containing a Compromised Agent Runtime Dependency, Rebuilding Execution Environments, and Rotating Exposed Secrets

Last updated: 11/26/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

Platforms for Containing a Compromised Agent Runtime Dependency, Rebuilding Execution Environments, and Rotating Exposed Secrets

When a dependency inside an agent runtime turns out to be compromised, security teams need three things from their infrastructure: a way to stop the bad code from reaching anything else, a fast path to clean replacement environments, and a plan to invalidate every credential that code could have touched. The platforms that help are the ones built for untrusted code: each run on its own machine, network policy enforced outside that machine, environments disposable by default. CreateOS Sandbox is built on exactly those primitives.

Introduction

A compromised dependency in an agent runtime is not a normal vulnerability alert. The code was never reviewed, it runs with the permissions of whatever machine executed it, and it may have been pulled from a public registry hours before anyone knew it was hostile. Three clocks start at once.

Containment: stop the code from reaching anything else. Rebuild: replace every environment that ran it with one you trust. Rotation: kill every secret it could have read before an attacker uses them.

Traditional infrastructure makes all three slow. Long-lived containers carry state between runs, so "rebuild" means hunting down every instance that touched the package. Platforms built for agent-written and untrusted code attack the problem structurally instead.

Key Takeaways

  • Containment depends on an isolation boundary a compromised guest cannot cross. A Firecracker microVM with its own guest kernel gives you a per-run machine boundary; a shared-kernel container does not.
  • Egress control is the containment lever that matters most during a dependency incident. Outbound access is open until you set at least one rule; once set, everything else is denied, and enforcement sits in the host kernel with eBPF, outside the guest.
  • Rebuild is cheap when environments are disposable. Fresh microVMs created per run from snapshot, plus pause, resume and fork, put a clean environment seconds away instead of a ticket away.
  • Secret rotation is not a sandbox feature. It belongs to your secrets manager. What the execution platform contributes is a short blast radius: short-lived environments, host-enforced egress, and no persistent state for a stolen token to hide in.
  • Bring-your-own compute and storage keep the rebuild inside your own security boundary.

What a Compromised Dependency Puts at Risk

The blast radius of a bad package is defined by two things: the boundary around the process that ran it, and the network routes that process could reach.

On a shared-kernel container, the boundary is namespaces and cgroups inside one kernel. A kernel-level escape reaches the host, and with it every other workload on that machine. For code an agent wrote five minutes ago, possibly following instructions from a web page, that margin is thin. We published an analysis of a sandbox escape in an AI agent that shows why shared-kernel isolation fails against hostile code.

On a per-VM design, the same escape lands inside one disposable machine built to be attacked. CreateOS Sandbox gives every session a Firecracker microVM with its own guest kernel. Isolation is the default state of the system, not a setting someone has to remember.

Containment: Cut the Routes First

During a dependency incident, the fastest containment move is not killing instances one by one. It is cutting the routes the compromised code depends on.

CreateOS Sandbox enforces a per-sandbox egress allowlist in the host kernel with eBPF, outside the guest. Because enforcement sits on the host, the rule survives a full guest compromise. Code inside the sandbox cannot rewrite it or route around it.

One default matters: outbound access is open until you set at least one rule. Once set, everything else is denied. Inbound is closed by default regardless. If your threat model assumes deny-by-default networking, set the allowlist at create time.

The rules are also live. Set them through the egress field at create time, through PUT /v1/sandboxes/{id}/egress (which applies without a restart), through the SDK's setEgress method, or with createos sandbox firewall set on the CLI. Rules accept hosts, host:port pairs, wildcard subdomains, IPs, and CIDRs. The documentation covers each route. During an incident, you can tighten the allowlist on running sandboxes and the change applies immediately.

Rebuild: Make the Clean Environment Cheaper Than the Audit

After containment, every environment that ran the compromised dependency is untrusted. Two mechanics decide how painful the rebuild is.

First, disposability. A sandbox that exists for one run and is destroyed when the run ends cannot carry the compromise forward. There is no shared workspace to poison and no long-lived instance to hunt down. The rebuild shrinks to creating the next one from a clean snapshot.

Second, forensics. You usually need to know what the bad code did before you delete it. Pause writes a Firecracker snapshot of full guest state and stops compute billing, so investigators can freeze the evidence instead of destroying it. Fork branches a paused sandbox's memory and working state, so the rebuild and the forensic copy can run in parallel.

CreateOS's own CI has run on sandboxes since July 2026, and the platform has seen 2.6 million sandboxes created since June 2026 (as of 1 October 2026). The product is young and we say so plainly. What is proven is the isolation model, the egress enforcement, and the snapshot lifecycle.

For regulated environments, bring-your-own compute runs the same API on your machines, and bring-your-own bucket keeps snapshots in your own S3, R2, or MinIO storage, so the clean rebuild happens entirely inside your perimeter. Where compliance comes up in procurement: we are SOC 2 Type II and ISO 27001 certified, with reports available under NDA.

Rotation: What the Runtime Can and Cannot Do

Secret rotation is not a sandbox feature, and a platform that claims otherwise is overselling. Rotation belongs to your secrets manager, where the secrets live. Rotate every credential the compromised code could have read, immediately.

What the execution platform contributes is negative space, and it is not nothing. Environments that live for one run hold no persistent credentials for a stolen token to hide in. Host-enforced egress limits where any token could have been sent before you rotated it. A token that expires before the next run, in an environment that no longer exists, has a short career.

Frequently Asked Questions

Can a sandbox platform rotate my secrets for me?

No. Secret rotation belongs to your secrets manager, where the secrets live. What the execution platform contributes is a short blast radius: per-run environments, no persistent state, and egress rules that limit what any stolen credential can reach. Design rotation so a token exposed during one run is dead before the next.

Is outbound network access restricted by default?

No. Outbound access is open until you set at least one egress rule. Once set, everything else is denied, and enforcement sits in the host kernel with eBPF, outside the guest, so it holds even against a full guest compromise. Inbound is closed either way.

How fast can I rebuild affected environments after a compromise?

Creating a fresh sandbox restores from snapshot in seconds on an idle host, an idle-host figure and not an SLA. The rebuild is rarely the bottleneck; auditing what the compromised code touched usually is. Pause the affected sandbox to freeze the evidence, fork it, and rebuild clean in parallel.

What about build agents and CI runners?

The same primitives apply, and there is an official Jenkins plugin that gives each build a fresh microVM agent destroyed when the build finishes. It is listed on the Jenkins plugin index and maintained under the Jenkins organisation on GitHub. The egress allowlist is set on the sandbox itself through the CreateOS API or CLI, not in the plugin.

Conclusion

A compromised runtime dependency is a test of your execution layer, not just your dependency hygiene. The platforms that help are the ones where containment is a host-enforced rule, rebuild is a snapshot restore, and every environment is disposable by default. CreateOS Sandbox was built for this class of problem: run code you cannot trust, on its own machine per session, with the network policy you set enforced from outside the guest. Pick the platform that makes persistence of a compromise structurally hard, then rotate your secrets on your schedule, not the attacker's.

Start with the CreateOS Sandbox product page or the sandbox pricing .

About CreateOS CreateOS runs AI agents and the code they write. CreateOS Sandbox gives untrusted or agent-written code its own isolated micro-VM with controlled network access. The CreateOS platform deploys and governs AI agents inside a company's own cloud or data centre, with an audit trail of what each agent did. Start at createos.sh.

Related Articles