AI systems are increasingly organized as pipelines, where each stage may run as confidential computation but the steps in between still depend heavily on implicit trust. As part of the broader AISI mission to improve AI safety, security, and resilience in real-world deployment, C3Infer focuses on providing stronger control and attestation over how data and execution move across those boundaries. This organization hosts the code for C3Infer, an AISI project.
The main outcome of the project is Mica (cite), a confidential computing architecture for running realistic AI inference pipelines with explicit, enforceable, and attestable security policies across all stages.
We implement Mica on Qemu support for Arm CCA by extending KVM, RMM, and QEMU VMM, enabling compartmentalized pipelines spanning multiple isolated Realms.
A lightweight DSL, enforced inside the RMM, specifies:
- shared memory ranges and ACLs for Realm to Realm communication, including confidential shared memory between Realms
- allowed non-memory transitions with the hypervisor, such as interrupts and RSIs
This approach removes implicit trust between pipeline components by constraining all data and control flows to explicitly authorized and attestable paths.
The following host dependencies were tested on Ubuntu 22.04.
# Host dependencies
sudo apt update
sudo apt install -y \
repo git make gcc g++ \
python3 python3-venv python3-pyelftools python3-tomli python3-cryptography \
acpica-tools \
libssl-dev libglib2.0-dev libpixman-1-dev uuid-dev \
zlib1g-dev libfdt-dev \
device-tree-compiler \
flex bison \
cmake ninja-build \
ca-certificates curl rsync pkg-config unzip \
tmux screen gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu socatInstall Docker Engine and the Compose v2 plugin from
Docker's official apt repository.
The Makefile calls docker compose; Ubuntu 22.04's docker.io package alone
does not provide it. If Docker is already installed from Ubuntu's repository,
follow Docker's linked instructions to remove conflicting packages first.
Before repo init, set your Git identity if it is not already configured.
Replace the example values with your own name and email; otherwise a fresh host
can fail with Committer identity unknown.
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
# Fresh workspace
mkdir -p c3infer
cd c3infer
repo init -u https://github.com/c3infer/c3infer.git -b master -m default_local_repos.xml
repo sync -j32 --no-clone-bundle
# Run a second sync to resolve occasional copyfile/linkfile inconsistencies
repo syncThe debos disk image build requires working KVM and access to /dev/kvm.
On bare metal, enable hardware virtualization in the BIOS/UEFI and ensure the
host's KVM kernel module is loaded. On a cloud VM, choose an instance that
supports nested virtualization and enable it. When building inside a container,
pass the host's /dev/kvm device through to the build container and ensure the
build process has read/write access to it.
For the sudo build command below, check device access with:
sudo test -c /dev/kvm && sudo test -r /dev/kvm && sudo test -w /dev/kvmIf this check fails, configure KVM before building. Without usable KVM, debos
may print fakemachine not supported, running on the host! and later fail at
the Install systemd stage with Failed to stat /dev/disk. Installing
qemu-user-static and binfmt-support can get past the arm64 chroot stage,
but does not resolve this systemd failure or replace the KVM requirement.
# Build disk + full stack
cd build
sudo DEBOS_MODE=container ./build_debos_disk_with_remote_gguf.sh
make DEBUG=0 -j32 full-stackFrom workspace build/:
# Copy debos-fs/out/rootfs.img -> out-br/images/rootfs{1,2,3}.img and start PTYs
./start_cca.sh
# In another terminal/pane
make run-only-multiregionSee the usecase runbook in docs/04_usecases.md.
Build the board and run the microbenchmark.
| Repo Path | Repo Name | Purpose |
|---|---|---|
c3infer |
c3infer |
(this repository) Manifest, glue scripts, and build integration. |
buildroot-external-cca/overlay |
buildroot_overlay |
Realm/rootfs overlay content (f_realm) used in the RamFS image. |
debos-fs |
debos-fs |
Debos rootfs image build and disk overlay pipeline. |
opencca-build |
opencca-build |
Dockerized environment used to run debos disk builds. |
qemu |
qemu |
CCA-enabled QEMU fork used by the stack. |
linux |
host-linux |
Host kernel tree used by the stack. |
linux-guest |
guest-linux |
Guest/realm kernel tree used by the stack. |
rmm |
rmm |
Realm Management Monitor implementation. |
If startup fails with:
Property 'ivshmem-plain.protected' not found
the wrong QEMU ref/binary is being used.
Check active Buildroot QEMU from workspace root (c3infer):
./out-br/host/bin/qemu-system-aarch64 -device ivshmem-plain,helpIf protected is missing, clean only qemu-cca caches and rebuild:
rm -rf buildroot/dl/qemu-cca out-br/build/qemu-cca-* out-br/per-package/qemu-cca
cd build
make -j32 buildrootVerify package source/ref in:
buildroot-external-cca/package/qemu-cca/qemu.mk(QEMU_CCA_SITE,QEMU_CCA_VERSION)
If you use Mica/C3Infer in research, please cite:
@misc{mica,
title={Sharing is caring: Attestable and Trusted Workflows out of Distrustful Components},
author={Amir Al Sadi and Sina Abdollahi and Adrien Ghosn and Hamed Haddadi and Marios Kogias},
year={2026},
eprint={2603.03403},
archivePrefix={arXiv},
primaryClass={cs.CR},
url={https://arxiv.org/abs/2603.03403},
}Questions, bug reports, and collaboration ideas are all welcome. Feel free to reach out at [email protected].