boxr is an early-stage Linux container runtime. It composes namespaces, mounts, cgroup v2 controls, a small PID-1 supervisor, optional chroot rootfs, private network/user namespaces, capability controls, a fixed seccomp baseline and versioned custom seccomp policies. These mechanisms reduce ambient visibility and resource use, but boxr is not a hardened security boundary.
Do not use boxr to run untrusted code, hostile multi-tenant workloads, or workloads that require Docker/containerd-level isolation guarantees. The runtime supports an optional OverlayFS writable rootfs layer and uses a symlink-resistant advisory lock for each configured upper/work directory. Its local OCI-layout image store handles a single Boxr-specific rootfs layer and can pull/push that format through OCI Distribution registries with digest verification. It does not apply arbitrary multi-layer Docker/OCI images or whiteout semantics. Registry credentials supplied through BOXR_REGISTRY_USERNAME and BOXR_REGISTRY_PASSWORD or inline Docker/Podman auth files are sent only to the registry or a trusted token host; use protected environment injection on shared systems. Auth files must be regular non-symlink files no larger than 1 MiB. Boxr never executes external credential-helper programs. The baseline seccomp profile is a fixed denylist for selected kernel administration, tracing and cross-process operations. Version-1 custom policies can add per-syscall allow/errno/kill actions and low-32-bit argument predicates, but Boxr's mandatory denylist always runs first and cannot be overridden. Policies reject unknown/duplicate JSON fields, unsupported syscall names, duplicate syscall rules and architecture mismatches. Only Boxr's enumerated syscall names on Linux amd64/arm64 are supported; raw BPF is never accepted. These controls do not filter devices and must not be treated as a security boundary. The runtime does not currently provide device filtering, arbitrary OCI layer application, AppArmor/SELinux profile management. An optional Landlock filesystem policy is available for read-only rootfs workloads; it grants read/execute access to the rootfs and write access only to explicitly writable bind mounts and tmpfs paths. The untrusted profile enables this policy automatically. Landlock support is kernel-dependent and startup fails if the requested policy cannot be installed. This is defense in depth, not a complete sandbox guarantee, or a daemonized isolation supervisor. --network none creates a network namespace with loopback only; it does not create a connected network.
The local container state store uses a private directory and 0600 records. Environment variable values are not written to state. Command arguments, labels and selected runtime configuration are saved for inspection; do not place secrets in command-line arguments or labels.
When --cap-drop is requested, Boxr clears the ambient capability set, applies the bounding-set and process-set changes, then reads /proc/self/status and verifies the requested capabilities are absent from CapEff, CapPrm, CapInh, CapBnd, and CapAmb. If a non-root container user required temporary CAP_SETUID, Boxr removes the requested capabilities again immediately after the UID transition. A failed postcondition aborts startup instead of running with a capability that was requested to be dropped. boxr doctor reports counts for the five capability masks and warns when the invoking process has ambient capabilities.
Explicit AppArmor and SELinux execution labels are passed to the kernel through the current process's LSM exec attributes immediately before workload fork/exec. The workload transition is authorized by the host LSM policy; Boxr does not bypass policy checks. A requested transition that the kernel cannot validate is a startup failure. These options require the target AppArmor profile or SELinux context to be provisioned by the host administrator; Boxr does not currently generate or load LSM policy files, allocate SELinux MCS categories, or provide a complete sandbox boundary. Use boxr run --dry-run to validate option syntax only; it cannot prove that a host profile is loaded or that the kernel will authorize the transition. Docker Engine API HostConfig.SecurityOpt and Compose security_opt accept only apparmor=PROFILE and no-new-privileges=true|false. Unsupported seccomp=, label=, apparmor=unconfined and unknown values are rejected; Docker SELinux shorthand is not translated because Boxr does not allocate isolated SELinux MCS labels.
Rootfs extraction rejects path traversal, unsafe symlinks, duplicate entries, special files and oversized archives. boxr rootfs audit PATH and boxr image audit NAME:TAG provide a metadata preflight for setuid/setgid objects, world-writable paths, special files and relative symlink escapes; the audit does not follow symlink targets and is not a malware scanner. Review rootfs content before running it with elevated privileges.
An optional host admission policy can deny a container start/restart or an additional exec process before the workload is launched. The policy file is loaded as a regular, non-symlink file that is not group/other writable; duplicate JSON keys and unknown fields are rejected. Use defaultAction: deny and explicit conditional allow rules for a restrictive posture. A matching deny takes precedence over every allow. The same evaluator is used by the native start path and Docker Engine API exec runner; detached restart attempts reload the host policy.
The host policy path is accepted by --admission-policy or BOXR_ADMISSION_POLICY. Boxr removes the host-only environment variable and configured policy path from the namespace helper and workload environment; only an explicit workload environment override is propagated. The decision is a control-plane guardrail, not a kernel sandbox: isolation is still enforced by namespaces, capabilities, seccomp, Landlock, AppArmor/SELinux and cgroups. Policy v1 does not yet provide signed bundles, remote policy distribution, OPA/CEL, command/entrypoint constraints, or an immutable decision audit log. See docs/admission.md.
The Linux CLI accepts repeatable --secret NAME=ABSOLUTE_PATH for rootfs-backed workloads. Source files must be regular non-symlink files with no group/other permission bits, at most 1 MiB each and 4 MiB combined. Boxr snapshots them into sealed memfds and passes only inherited descriptors to the namespace helper; secret values are not included in helper argv or helper environment. The helper copies each secret into a private tmpfs at /run/secrets, assigns ownership to the configured workload UID/GID (root by default), uses mode 0400, and remounts the tmpfs read-only before workload exec. Runtime Options JSON and configured workload environment overrides are sent to the helper over a separate size-bounded anonymous pipe (fd 4), rather than embedded in helper argv. The helper process environment does not receive those overrides; the PID-1 helper applies them only to the workload process. Sealed secret memfds are inherited on fd 5 and above.
Only secret names are included in versioned run options and dry-run metadata. Host source paths and bytes are not persisted. Native CLI and constrained Compose file-backed secrets are supported. Compose source paths are runtime-only and re-supplied for each service start; plans and persisted service data expose names/counts only. The Engine API also supports the Boxr-specific HostConfig.Secrets extension ([{Name, Source}]): it snapshots source files into sealed memfds at create, persists names only, and holds descriptors in daemon memory for start/restart. If the daemon restarts before a secret-enabled container starts, the API returns HTTP 409 and requires recreation with the source declarations; it never falls back to a persisted host path or starts without the secret. This is not standard Docker Swarm secret support. Compose configs, external secret stores and custom target ownership remain unsupported. Secret bytes still pass through process memory, kernel shmem/tmpfs and potentially swap or crash dumps; this is not a hardware-backed vault or guaranteed secure erasure. See docs/secrets.md and docs/engine-api.md for operator instructions and limits.
Please do not open a public issue containing exploit details. Use GitHub's private vulnerability reporting for this repository, or contact maintainers through the private security contact listed in the repository's GitHub Security tab.
Include the affected version/commit, Linux distribution and kernel version, required privileges, reproduction steps and potential impact. Do not include real secrets or personal data.
Maintainers will acknowledge reports as soon as practical, assess severity and affected versions, and coordinate a fix and disclosure timeline with the reporter. These are goals, not a guaranteed service-level agreement.
Boxr reads Docker/Podman auth files as data. It does not execute Docker credential-helper binaries or shell commands referenced by those files. Auth files must be regular non-symlink files no larger than 1 MiB. Avoid sharing auth files, and revoke credentials if an auth file is exposed.