October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk7 min

How to Securely Run Untrusted Workloads in Virtual Machines

A VM is one layer—not a guarantee. Isolate each workload, constrain the VMM, enforce network and resource limits on the host, and plan for residual risks.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run each untrusted workload in its own virtual machine, but do not treat the VM boundary as a guarantee that hostile code cannot affect the host. Constrain the hypervisor or virtual-machine monitor (VMM) process, enforce network and resource limits outside the guest, minimize exposed devices and shared data, and keep the host, guest, firmware and CPU microcode patched. The hypervisor, host kernel, device models and management plane remain part of the trusted attack surface.

Start with the threat model

“Untrusted” can mean a buggy program, deliberately malicious code, or a tenant actively looking for a flaw in the VMM or host kernel. The controls you need depend on which of those you must withstand. Before choosing a VM configuration, decide what the workload may try to access and which other tenants or systems it must not affect.

As an Amazon Associate I earn from qualifying purchases.

  • Identify assets: consider host memory and files, VM disks and snapshots, credentials, logs, metadata services, management interfaces, devices and network routes.
  • Define isolation boundaries: decide whether workloads may share a physical host, CPU package, simultaneous multithreading (SMT) sibling, storage device or virtual network.
  • Map trusted components: include orchestration, image-building and update pipelines, guest agents, VM lifecycle tooling and host administration—not just the hypervisor.
  • Set the impact you will contain: plan for attempts to escape the guest, consume shared resources, reach internal services or expose data through shared state or hardware side channels.

NIST’s SP 800-125A Rev. 1 describes baseline server-hypervisor functions including mediation of physical resources and runtime isolation among resident VMs. It treats virtual-network configuration in separate NIST guidance, so a VM’s isolation should not be mistaken for a complete network-security design.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep the VM boundary narrow

A VM separates guest execution from the host, but the VMM, host kernel, virtual device models and control plane still process or manage activity associated with the guest. Every exposed device, host-facing API and shared helper can add attack surface. Give a workload only what it needs, and keep management access outside its reach.

#1 Best Overall
Sale
HP High-End Virtualization Server 36-Core 256GB RAM 16TB DL360 G9 (Renewed)
  • HP Proliant DL360 G9 4-Bay LFF Server | 2x E5-2695v4 2.10GHz 18-Core CPU (36-Cores Total)
  • 256GB DDR4 RAM | 4x 4TB 7.2K SATA 3.5" HDD
  • Smart Array P440ar w/ 2GB FBWC | 4x1Gbe NIC
  • 2x 500W PSU | Windows Server 2019 Standard Evaluation
  • Use a minimal, patched host and, where practical, dedicate it to virtualization.
  • Expose only required virtual devices; avoid passing through physical devices unless the workload needs them and you understand the added risk.
  • Keep control sockets, host-facing APIs and metadata services off guest-accessible networks. Authenticate and narrowly authorize control-plane access.
  • Protect VM configuration, disk backing files, snapshots, logs and keys with least-privilege access controls and appropriate encryption.
  • Keep host administration separate from tenant or workload access, and restrict administrator permissions.

For Windows Server Hyper-V, Microsoft’s Hyper-V security guidance specifically recommends keeping hosts and guests updated, minimizing host software, separating networks, protecting VM files and storage, avoiding unknown VHDs, and exposing only needed devices. It also recommends Secure Boot for supported Generation 2 VMs. These are Hyper-V-specific instructions; use the equivalent controls supported by your platform.

Constrain the VMM process as well as the guest

Do not rely on guest isolation alone. Restrict the process that implements the VM so that a VMM compromise has fewer host privileges and fewer accessible resources. Keep separate workloads from sharing a process, guest state, writable disks, credentials or control channels unless you have designed and reviewed that shared boundary.

Firecracker

Firecracker is a Linux/KVM VMM for microVMs. Its design documentation describes KVM and the virtualization boundary as the first isolation layer, then recommends process-level defense in depth. For production instances, Firecracker recommends launching through its jailer, which prepares privileged resources and runs Firecracker unprivileged with access only to resources deliberately provided to it. The documented controls include seccomp, cgroups, namespaces and dropping privileges. Firecracker also strongly recommends one tenant per process.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Hewlett Packard Enterprise High-End Virtualization Server 64-Core 32GB RAM 32TB DL380 G11
  • HPE Proliant DL380 G11 12-Bay LFF Server | 2x Gold 6430 2.1GHz 32-Core CPU (64-Cores Total)
  • 32GB DDR5 RAM | 4x 8TB 7.2K SAS 3.5" HDD
  • MR408i-o Raid Controller | 12Gb/s SAS Expander | 4x1GbE NIC
  • 2x 800W PSU | Windows Server 2019 Standard Evaluation

Those mechanisms and instructions are Firecracker-specific. For another VMM, use its supported process-confinement and privilege-separation controls rather than assuming the same tooling applies.

Other hypervisors

Apply the same principle using the controls your platform supports: minimize the host, separate management access, limit the VM process or service’s permissions, and restrict access to host files and interfaces. NIST’s server-hypervisor guidance is a baseline reference, not a substitute for current vendor configuration and security guidance.

Enforce network policy outside the guest

Default to no network access if the workload does not need it. When connectivity is necessary, allow only required destinations and protocols, block paths to host and management networks, and apply logging or rate limits at the host or external network layer. Treat inbound control channels and metadata endpoints as sensitive too.

Rank #3
HP High-End Virtualization Storage Server 32-Core 256GB RAM 96TB 2x10GbE Apollo 4200 G10 (Renewed)
  • HP Apollo 4200 G10 24-Bay LFF Server | 2x Gold 6130 2.1GHz 16-Core CPU (32-Cores Total)
  • 256GB DDR4 RAM | 24x 4TB 7.2K SAS 3.5" HDD
  • Smart Array P816i-a SR | 2x10GbE NIC
  • 2x 800W PSU | Windows Server 2019 Standard Evaluation

Firecracker makes the responsibility explicit: “Firecracker does not perform any network traffic filtering. All egress traffic from a guest is therefore considered untrusted, and should be filtered at the host-level.” That statement comes from the Firecracker project documentation; it is not a claim that every VMM has identical networking behavior. In every case, verify where filtering actually occurs rather than assuming the guest or virtual switch enforces the policy you need.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set resource limits to contain abuse

A VM boundary does not prevent a workload from exhausting shared CPU, memory, storage or network capacity. Size the guest deliberately and set host-enforced limits for the resources the workload could monopolize.

  • Set CPU and memory allocations, and constrain CPU time and memory use at the host level.
  • Limit process count, disk use, I/O throughput and network bandwidth or operations where supported.
  • Account for bursts and worst-case behavior, not just average usage; monitor contention and exhaustion.

Firecracker supports I/O token-bucket rate limiters and can place a microVM in a cgroup with a CPU quota and CPU affinity, as described in its design documentation. Choose limits that match your workload and host capacity rather than copying a generic value.

Rank #4
HP High-End Virtualization Server 36-Core 768GB RAM 16TB DL360 G9 (Renewed)
  • HP Proliant DL360 G9 4-Bay LFF Server | 2x E5-2695v4 2.10GHz 18-Core CPU (36-Cores Total)
  • 768GB DDR4 RAM | 4x 4TB 7.2K SATA 3.5" HDD
  • Smart Array P440ar w/ 2GB FBWC | 4x1Gbe NIC
  • 2x 500W PSU | Windows Server 2019 Standard Evaluation

Harden the guest and make its lifecycle disposable

Use a minimal, patched guest OS and remove packages and services the workload does not need. Do not mount host paths or share the host kernel with untrusted code; pass through only required devices and files. Where feasible, use clean images, isolate writable state, and destroy or securely reset the VM after execution.

Build and update images through a trusted pipeline. Verify image provenance, and control updates to any guest agent because that agent may have privileged access or a path to host-managed services. Ensure snapshots, cached state and reused disks cannot disclose a previous tenant’s data.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Lifecycle choices should follow the threat model. The USENIX NSDI 2020 Firecracker paper describes a single-customer-function microVM as the primary security boundary and reports a Lambda deployment with a maximum 12-hour slot lifetime before recycling. That is historical AWS Lambda operational experience in the paper, not a universal recommended VM lifetime. Recycle or retain VMs according to the sensitivity of state, tenant boundaries and operational needs.

Best Value
HP High-End Virtualization Server 52-Core 768GB RAM 3.84TB DL380 G10 (Renewed)
  • HP Proliant DL380 G10 8-Bay SFF Server | 2x Platinum 8164 2.0GHz 26-Core CPU (52-Cores Total)
  • 768GB DDR4 RAM | 2x 1.92TB SATA III 2.5" SSD
  • Smart Array S100i SR | 2x10GbE NIC
  • 2x 500W PSU | Windows Server 2019 Standard Evaluation
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Collect telemetry and prepare for a suspected escape

Collect VMM, host, network and guest telemetry with workload identity and timestamps. Protect logs against tampering, and avoid recording secrets. Firecracker emits logs and metrics, while leaving collection to its operators, according to its design documentation.

Alert on unexpected VM exits, resource exhaustion, configuration changes, network-policy violations and host-level faults. Have a response plan for suspected escape or host compromise: isolate the host, preserve relevant evidence, revoke and rotate credentials, then rebuild from trusted images.

Account for hypervisor flaws and hardware side channels

VMs reduce risk; they do not make a host invulnerable. A flaw in the hypervisor, host kernel, driver or device model can undermine isolation. Hardware side channels can also expose information across otherwise separate workloads, depending on the processor, microcode, kernel configuration, workload placement and attacker’s capabilities.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Firecracker’s production host setup guidance says the VMM cannot mitigate host hardware vulnerabilities. It points operators to evolving Linux kernel and processor guidance, recommends early microcode updates and recommends disabling SMT for tenant separation. Disabling SMT has performance and operational trade-offs; evaluate it against your threat model and current vendor guidance rather than treating it as a universal setting.

A 2023 arXiv record, with paper metadata indicating 2024, for “Microarchitectural Security of AWS Firecracker VMM for Serverless Cloud Platforms” reports proof-of-concept Spectre and MDS attacks against Firecracker and argues that recommended defenses were insufficient for some cases. This is a specific research result, not evidence that every Firecracker deployment is exploitable or that every mitigation fails. Its relevance depends on the processor generation, microcode, kernel configuration, placement and the study’s threat model.

Use performance figures in context

Startup and density claims can help with capacity planning, but they do not establish security or predict performance for every configuration. Firecracker’s current design documentation states a steady mutation rate of 5 microVMs per host core per second for a microVM configured with a minimal Linux kernel, one vCPU and 128 MiB of RAM; it is not a general performance guarantee. The 2020 Firecracker paper describes a 125 ms boot time as fast but not fast enough for one Lambda scale-up path. Neither figure should be treated as a promise for a different workload or host.

Quick Recap

SaleBestseller No. 1
HP High-End Virtualization Server 36-Core 256GB RAM 16TB DL360 G9 (Renewed)
HP High-End Virtualization Server 36-Core 256GB RAM 16TB DL360 G9 (Renewed)
HP Proliant DL360 G9 4-Bay LFF Server | 2x E5-2695v4 2.10GHz 18-Core CPU (36-Cores Total); 256GB DDR4 RAM | 4x 4TB 7.2K SATA 3.5" HDD
$1,650.00
Bestseller No. 2
Hewlett Packard Enterprise High-End Virtualization Server 64-Core 32GB RAM 32TB DL380 G11
Hewlett Packard Enterprise High-End Virtualization Server 64-Core 32GB RAM 32TB DL380 G11
32GB DDR5 RAM | 4x 8TB 7.2K SAS 3.5" HDD; MR408i-o Raid Controller | 12Gb/s SAS Expander | 4x1GbE NIC
$17,500.00
Bestseller No. 3
HP High-End Virtualization Storage Server 32-Core 256GB RAM 96TB 2x10GbE Apollo 4200 G10 (Renewed)
HP High-End Virtualization Storage Server 32-Core 256GB RAM 96TB 2x10GbE Apollo 4200 G10 (Renewed)
HP Apollo 4200 G10 24-Bay LFF Server | 2x Gold 6130 2.1GHz 16-Core CPU (32-Cores Total); 256GB DDR4 RAM | 24x 4TB 7.2K SAS 3.5" HDD
$5,995.00
Bestseller No. 4
HP High-End Virtualization Server 36-Core 768GB RAM 16TB DL360 G9 (Renewed)
HP High-End Virtualization Server 36-Core 768GB RAM 16TB DL360 G9 (Renewed)
HP Proliant DL360 G9 4-Bay LFF Server | 2x E5-2695v4 2.10GHz 18-Core CPU (36-Cores Total); 768GB DDR4 RAM | 4x 4TB 7.2K SATA 3.5" HDD
$4,584.93
Bestseller No. 5
HP High-End Virtualization Server 52-Core 768GB RAM 3.84TB DL380 G10 (Renewed)
HP High-End Virtualization Server 52-Core 768GB RAM 3.84TB DL380 G10 (Renewed)
768GB DDR4 RAM | 2x 1.92TB SATA III 2.5" SSD; Smart Array S100i SR | 2x10GbE NIC; 2x 500W PSU | Windows Server 2019 Standard Evaluation
$7,528.77

Operational checklist

  1. Define the boundary: classify the workload and decide what data, devices, networks and co-tenants it must not reach.
  2. Minimize exposure: patch and trim the host, VMM, firmware and microcode; expose only needed devices and keep management interfaces separate.
  3. Isolate each workload: use its own VM and constrain the VMM process; do not share tenant state or host-side control resources casually.
  4. Apply host-enforced controls: filter network traffic and cap compute, storage, I/O and network use outside the guest.
  5. Control data and lifecycle: use trusted images, protect VM files and credentials, isolate writable state, and clean up snapshots and disks.
  6. Monitor and rehearse: collect protected telemetry, alert on abnormal behavior and practice host isolation and credential rotation.
  7. Review residual risks: assess side-channel exposure and relevant vendor mitigations for the actual CPU, workload placement and tenant model.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.