What are in-toto and Falco? Attest the supply chain before deploy, watch the runtime after
Learn what in-toto and Falco do, how they work (layouts, links, attestations, and SLSA on one side; syscalls, eBPF, and rules on the other), and why each one completes the other in Kubernetes workload security.
Kubernetes$ falco --validate /etc/falco/rules.d/drift.yaml▍A signed image proves who published it. It doesn’t prove that every pipeline step happened the way it should, or that the container keeps running only what came in the image. Those are two different questions, asked at two different moments: before deploy (“was this artifact produced the right way?”) and after deploy (“what is happening inside it right now?”). in-toto answers the first; Falco, the second.
This article explains both and how they fit together. The hands-on part about signing, SBOMs, and SLSA levels is in Cosign, SBOM, and SLSA, admission-time verification is in container image supply chain on Kubernetes, and installing Falco with Helm is covered in monitoring, logging, and runtime security. Here the focus is the concepts and the link between them.
What in-toto and Falco are
in-toto is a framework and an open metadata standard for protecting the integrity of the software supply chain, from commit to installation. It records which steps were performed, by whom, and in what order, with signatures that can be verified later. It came out of academic research (NYU), joined the CNCF in 2019, and is graduated as of November 2026 (check the project page). There are reference implementations in Python and Go, under the Apache 2.0 license.
Falco is a runtime threat detection engine. It watches kernel events (syscalls) on hosts and containers, enriches them with container and Kubernetes metadata, and matches them against rules. Created by Sysdig, it joined the CNCF in 2018 and is also graduated as of November 2026 (check the project page). The latest version on the releases page during this research was 0.45.2.
What problem they solve
| Question | When | Tool | Evidence |
|---|---|---|---|
| Did the artifact come from the right commit, through the right pipeline? | Build and release | in-toto | Signed links and attestations |
| Did someone skip a step, such as tests or a scan? | Verification before deploy | in-toto | Layout with steps and artifact rules |
| Is the container running something that wasn’t in the image? | Runtime | Falco | A syscall event that matched a rule |
| Was there a shell, a secret read, or an odd connection? | Runtime | Falco | Alert with pod, namespace, image, and command |
Without the first, you don’t know whether what entered the cluster is trustworthy. Without the second, you don’t know whether it still is.
How they work
in-toto: layout, links, and attestations
The classic in-toto model has four pieces:
- Layout: a document signed by the project owner. It defines the supply chain steps (clone, test, package), the functionaries allowed to perform each one (by public key), the material and product rules, and an expiration date.
- Links: signed metadata each functionary produces when performing a step, with the hashes of the input files (materials) and output files (products).
- Artifact rules:
MATCH,ALLOW,DISALLOW,CREATE,MODIFY,DELETE, andREQUIREtie the product of one step to the material of the next. The docs recommend ending withDISALLOW *. - Inspections: commands the verifier runs at the end, such as unpacking the package and checking its contents.
The in-toto Attestation Framework generalized this idea. An attestation is a Statement (_type: https://in-toto.io/Statement/v1) with a subject (the artifact, identified by digest), a predicateType, and a predicate. SLSA provenance is exactly one predicate type (https://slsa.dev/provenance/v1) inside that format. The Statement usually travels inside a signed DSSE envelope. In other words: if you already produce SLSA provenance, you already use the in-toto format.
Falco: events, drivers, and rules
| Component | Role |
|---|---|
Driver (modern_ebpf, classic eBPF, or kernel module) |
Captures syscalls in the node’s kernel |
| libs and enrichment | Tie the event to a process, container, pod, and namespace |
| Plugins | Add other event sources, such as the Kubernetes audit log |
Rules (rule, macro, list) |
Define what is suspicious, with condition, output, and priority |
| Outputs | stdout, file, gRPC/HTTP and, with Falcosidekick, dozens of destinations |
A rule has five required keys: rule, desc, condition, output, and priority. Optional keys include exceptions, enabled, tags, and source. Falco detects and alerts; it doesn’t block the syscall.
Hands-on example
in-toto: record a step and verify
With the Python implementation, each functionary runs their step through in-toto-run, which writes the signed link. At the end, the client verifies everything against the layout. Commands follow the official documentation and the project demo (not run in this lab):
# "package" step: hashed materials and products, link signed with the functionary's key
in-toto-run --step-name package --use-dsse \
--materials app/ --products app.tar.gz \
--signing-key carl -- tar -zcvf app.tar.gz app
# final verification: layout signature and expiration, links, rules, and inspections
in-toto-verify --layout root.layout --verification-keys alice.pub
A provenance attestation in the in-toto format looks like this (illustrative, shortened values):
{
"_type": "https://in-toto.io/Statement/v1",
"subject": [
{
"name": "registry.example.com/your-org/api",
"digest": { "sha256": "9f2c...e41a" }
}
],
"predicateType": "https://slsa.dev/provenance/v1",
"predicate": {
"buildDefinition": {
"buildType": "https://example.com/your-org/build/v1",
"externalParameters": { "repository": "https://github.com/your-org/api", "ref": "refs/heads/main" },
"resolvedDependencies": [
{ "uri": "git+https://github.com/your-org/api", "digest": { "gitCommit": "4b1d...07c2" } }
]
},
"runDetails": {
"builder": { "id": "https://example.com/your-org/ci-runner" },
"metadata": { "invocationId": "build-1842" }
}
}
}
In the cluster, the admission policy (Kyverno or the Sigstore policy-controller) is what demands this attestation, as shown in the image supply chain article.
Falco: detect drift from the attested artifact
The bridge between the two worlds is drift: if, after deploy, a package manager runs or a binary that wasn’t in the image layers is executed, what runs in production is no longer the artifact you attested. The rule below covers that for protected namespaces:
- list: package_managers
items: [apt, apt-get, dpkg, apk, yum, dnf, rpm, pip, pip3, npm]
- macro: protected_namespace
condition: (k8s.ns.name in (production, payments))
- rule: Runtime drift in protected namespace
desc: >
A package manager ran, or an executable that didn't come from the image
layers was started, in a container in a protected namespace. What is
running is no longer the artifact attested in the pipeline.
condition: >
spawned_process and container and protected_namespace
and (proc.name in (package_managers) or proc.is_exe_upper_layer=true)
exceptions:
- name: debug_images
fields: container.image.repository
comps: in
values: [registry.example.com/your-org/debug-tools]
output: >
Runtime drift (proc=%proc.name cmd=%proc.cmdline
exe_outside_image=%proc.is_exe_upper_layer pod=%k8s.pod.name
ns=%k8s.ns.name image=%container.image.repository
digest=%container.image.digest)
priority: CRITICAL
tags: [container, drift, supply_chain, mitre_persistence]
spawned_process and container are macros from the default falco_rules.yaml set, which already ships a similar rule, Drop and execute new binary in container; yours adds the namespace scope and the package managers. The proc.is_exe_upper_layer field is true when the executable lives in the overlayfs writable layer, meaning it was created after the container started. The digest in the output lets you cross-reference the alert with that image’s attestation. I validated the YAML with a parser; Falco’s own validator (falco --validate) wasn’t run here, so run it before using the rule.
How one completes the other
- The pipeline produces in-toto links and attestations (including SLSA provenance) for the image.
- Admission only accepts images by digest and with valid attestations.
- Falco watches whether containers keep running only what came in that image.
- A drift alert carries the digest, and you go back to the attestation to learn which commit and build that image came from.
When to use them (and when not to)
- Use in-toto when you need to prove the build’s origin and steps for audits or customers, or when you already produce SLSA provenance and want to verify more than the signature.
- Use Falco when you need runtime detection on nodes you control, with versioned rules and alerts sent to your SIEM.
- Don’t expect Falco to block: it alerts. For in-kernel enforcement, evaluate tools such as Tetragon.
- Don’t adopt full in-toto layouts without an owner: keys, expiration, and rules need maintenance. Start with the attestations your CI already produces.
- In serverless environments without access to the node kernel, Falco with a syscall driver doesn’t apply; look at the plugin options and at your provider.
Alternatives
| Need | in-toto / Falco | Alternatives |
|---|---|---|
| Build attestations | in-toto (Statement + SLSA) | Native CI attestations, Tekton Chains, Witness (which produces in-toto attestations) |
| Artifact signing | Complements in-toto | Cosign/Sigstore, Notation |
| Runtime detection | Falco | Tetragon, KubeArmor, Tracee |
| Runtime blocking | Outside Falco’s scope | Tetragon (TracingPolicy), KubeArmor |
Summary
- in-toto and Falco are CNCF graduated projects as of November 2026
- in-toto records who performed each supply chain step, with signed layouts, links, and attestations
- SLSA provenance is a predicate inside the in-toto Statement
- Falco matches enriched syscalls against rules and raises alerts, without blocking
- Custom rules use
list,macro,rule, andexceptions, validated withfalco --validate - Detecting runtime drift closes the loop opened by the pipeline attestation
An attestation without monitoring is good until the first
apt-get installin production; monitoring without attestation doesn’t know what should be running.