Firecracker gives you a small, hardened virtual machine monitor. It does not give you a hardened host. Its production host setup guide is explicit about the work it leaves to the operator, and if you are running code you did not write, such as code from an AI agent, a user upload or a pull request from a stranger, every item on it matters.
This post turns that guide, read in November 2026, into a checklist with the reasoning for each item. The jailer and seccomp layers themselves are covered in Firecracker’s jailer and seccomp, explained; this one is about everything around them.
Firecracker’s own configuration
Keep the default seccomp filters. Firecracker installs its most restrictive filters by default. The guide recommends against --seccomp-filter (custom filters) and --no-seccomp in production. If you think you need either, you probably have a host integration problem to fix instead.
Disable or bound the serial console. Firecracker emulates an 8250 serial port that the guest can write to, and it goes to the Firecracker process’s stdout. A guest that writes endlessly can fill memory or disk on the host. The guide recommends not enabling it in production, disabling it in the guest kernel with the boot argument 8250.nr_uarts=0, and notes that the guest can reactivate the device even then. So whatever happens to stdout must be bounded anyway: a rate limiter on serial data, a ring buffer, journald, logrotate, /dev/null or a named pipe.
Bound the logs. Firecracker’s logs go to the log_path you configure, and guest activity can influence how much is written. The same advice applies: fixed-size or rotated storage.
Resource limits on the Firecracker process
The jailer can put each Firecracker process in cgroups and set resource limits. The guide lists the knobs:
- CPU:
cpu.sharesfor relative weight,cpu.cfs_period_usandcpu.cfs_quota_usfor a hard bandwidth cap per period. - Memory:
memory.limit_in_bytesfor a hard cap on the process, with swap and soft limits available. - Disk: the block I/O controller’s throttles on operations and bytes, plus the jailer’s
--resource-limitforfsize(largest file the process may create) andno-file(open file descriptors, 4096 by default).
The guest’s own vCPU and memory configuration bound what the guest sees. These cgroup limits bound what the Firecracker process can take from the host, which includes its device emulation, so set both.
Move the kvm-pit thread. On x86, guests that inject timer interrupts use a kvm-pit kernel thread that by default lives in the root cgroup, outside the VM’s limits. Firecracker cannot move it after it drops privileges. The guide recommends an external agent that moves kvm-pit/<pid> into the VM’s cgroup, or lowering KVM’s min_timer_period_us, which is system-wide and also affects APIC timers, so test it.
Network
Filter guest egress on the host. This is the item people miss. Firecracker’s design document says it does no network traffic filtering: packets go from the guest’s virtual interface straight to the TAP device. Every rule about where a guest may connect must be a host firewall rule or a proxy.
Block the host’s metadata service. On a cloud host, 169.254.169.254 is where the host’s own credentials come from. The guide gives the rule to drop guest traffic to it:
sudo nft add rule firecracker filter iifname "tap*" ip daddr 169.254.169.254 counter drop
or with iptables-nft:
sudo iptables-nft -I FORWARD -i tap+ -d 169.254.169.254 -j DROP
The table and chain names come from Firecracker’s network setup guide; match them to yours.
Limit flooding. A guest can open many connections or push many packets. The guide points to Firecracker’s per-interface rate limiters, or host tools such as tc queueing disciplines and iptables with connlimit and --pid-owner.
Storage
Guard against noisy-neighbour I/O. Writes go through the host page cache and are flushed when the host decides, so one guest writing heavily can slow I/O for others. The guide’s tools are the jailer’s resource limits and rate limiters on block devices.
Disable swap, or make it secure. Under memory pressure a host with swap may write guest memory to disk. The guide recommends no swap to avoid guest memory contents persisting on storage, and gives a one-line check against /proc/swaps.
Hardware and side channels
The guide is blunt here: Firecracker cannot mitigate the host’s hardware vulnerabilities. Its recommendations, for a multi-tenant host running arbitrary code with one tenant per Firecracker process:
- One workload of one tenant per Firecracker process. The isolation boundary is between processes. Do not put two tenants’ code in one VM.
- Load updated microcode early in boot and keep firmware current.
- Disable SMT where tenant separation matters, since many speculation attacks rely on it.
- Disable Kernel Samepage Merging, which can reveal which memory pages another process uses through deduplication.
- Use memory with Rowhammer mitigations, such as DDR4 with Target Row Refresh and ECC.
- Follow the kernel’s hardware vulnerability documentation and vendor guidance, which change as new issues are found.
The guide also includes a checker script for these settings, with a note to read about it before running it.
The checklist
- Default seccomp filters, no
--no-seccomp - Serial console disabled and its output bounded anyway
- Logs to bounded storage
- cgroup CPU, memory and block I/O limits per Firecracker process; jailer resource limits
kvm-pitthread moved into the VM’s cgroup, or timer period tuned and tested- Host firewall for all guest egress, including a drop rule for
169.254.169.254 - Network and block rate limiters, or host traffic control
- Swap off
- One tenant per Firecracker process
- Microcode and firmware current, SMT off, KSM off, ECC memory with Rowhammer mitigations
- Kernel hardware vulnerability docs reviewed on a schedule
Where Sandscale fits
That list is a standing job: kernels change, mitigations change, and the network rules have to be right for every new kind of workload. It is the work behind Sandscale’s sandboxes, each of which is its own Firecracker microVM. On Sandscale you choose the network mode (none by default, or your organization’s allowlist where your plan includes it), the size within your plan’s limits, and the time limit; the hosts are ours to run. If you need sandboxes in your own AWS account, that is the Enterprise plan’s your own cloud option.