What TRUSTIVAN collects, and what it does not
Being precise here matters more than being impressive. A posture product that reports a clean result for a service it never looked at is worse than one that says nothing, so TRUSTIVAN reports coverage as data rather than implying it:GET /api/v1/cloud/providers returns, for each provider this deployment can
collect, the resource kinds its collector reads and those it does not, each
with the reason.
Cloud: Amazon Web Services
The permission policy
Connect account in the dashboard shows the read-only policy to attach to the role or user TRUSTIVAN reads through before you connect (with a trust-policy template for a role), and again with your external ID filled in after. It lists exactly the calls the collector makes, because a permission with no call behind it is one asked for nothing:
A role created from an earlier policy still collects; the checks that need the
missing reads are reported as not assessed, with the refused service named,
until you add them. See
Cloud posture and CIS benchmarks.
sts:GetCallerIdentity needs no grant.
How a bucket is judged public
A bucket is reported public only when a grant makes it so (its bucket policy is public, or its ACL grants to all users or to all authenticated AWS users) and no public access block neutralises that grant. The block that applies is the stricter of the bucket’s own and your account-level block, so a bucket covered by an account-wide block is not public whatever its policy says, and a bucket with a relaxed block but no public grant is not public either. That takes these read permissions:s3:GetAccountPublicAccessBlock,
s3:GetBucketPublicAccessBlock, s3:GetBucketPolicyStatus and
s3:GetBucketAcl, alongside s3:ListAllMyBuckets,
s3:GetEncryptionConfiguration, s3:GetBucketVersioning and
s3:GetBucketLogging for the other settings. Where one is refused, the
answer it would have given is left undetermined and the run is marked partial.
Object-level ACLs are not read.
What IAM collection does and does not see
IAM coverage is real but partial, and the boundaries are worth knowing before you read a clean identity result:- Groups are not collected. A group cannot authenticate; its permissions reach you through the users in it, which are collected.
- AWS-managed policy documents are not fetched. A principal holding
AdministratorAccessis recognised by its ARN, and inline policies are read in full. A principal whose privilege comes from some other AWS-managed policy is left undetermined rather than guessed, so it is not reported as an administrator, and equally not reported as safe. - Console-only usage is invisible. A user’s idle time is derived from access-key last-used, so a user with no static key has no idle signal.
- Per-user credential detail stops at 500 users. Beyond that, MFA and key age are not read, and the run is marked partial.
Cloud: Microsoft Azure
A subscription is read with an Entra ID service principal that holds the built-in Reader role on it. Every call is a read.
A storage account is reported public only when it permits anonymous blob
access, its network admits the internet (public network access enabled and a
default action of Allow), and one of its containers grants anonymous read.
The first two settle “not public” without listing containers.
The table covers the core of what is read. Virtual machines, Defender plans,
activity log alerts, flow logs and App Service sites are read too, for the checks
in Cloud posture and CIS benchmarks, which
has the complete list.
Not collected on Azure: AKS clusters, container registries, PostgreSQL and
MySQL servers, activity log diagnostic settings, Key Vault keys and secrets, and
Entra ID users, groups and service principals (those live behind Microsoft Graph,
which the collector does not call). Custom roles are not expanded, so a custom
role granting everything is not detected. Container Instances and Container Apps
are read only for code to cloud.
Cloud: Google Cloud
A project is read with a service-account key holding roles/viewer and roles/iam.securityReviewer on it (the second for bucket IAM policies and service-account keys). Google checks API enablement against the project that owns the service account: a disabled API there is reported as a partial collection namingSERVICE_DISABLED, never as “no resources”.
A bucket is reported public when its IAM policy (or, where uniform
bucket-level access is off, its bucket ACL) grants to
allUsers or
allAuthenticatedUsers. Enforced public access prevention settles it as not
public. Object-level ACLs are not read.
The table covers the core of what is read. Compute Engine instances, GKE
clusters, Cloud KMS keys, log sinks, log-based metrics and alert policies are read
too; Cloud posture and CIS benchmarks has
the complete list.
Not collected on Google Cloud: networks and subnets, Cloud DNS, API keys,
Artifact Registry, Secret Manager, Vertex AI models and agents, and essential
contacts. Cloud Run services are otherwise read only for
code to cloud.
Regions on Azure and Google Cloud
Their list APIs are subscription- and project-wide, so naming regions filters what is reported rather than bounding what is called: a resource in another location is left out, and location-less resources (role assignments, IAM, firewall rules) are always reported. A location that names no single region is also always reported. A Cloud Storage bucket can live in a multi-region (US,
EU, ASIA) or a dual-region (NAM4), which is not a value a region list can
name, so filtering it out would drop the bucket from a run still reported
complete. With no regions named, every location is read and the collection
reports the locations it found resources in.
Kubernetes
An agentless collector reads your cluster’s API server. Nothing is installed into your cluster.
The credential needs read access to those resources and nothing more; Secrets
only if you turn on reading TLS Secrets, with the separate optional role the
dialog shows. A
credential that can read workloads but not RBAC produces a partial inventory,
which TRUSTIVAN reports rather than presenting as complete. The dashboard’s
Connect cluster dialog shows the exact ServiceAccount, ClusterRole and
binding to apply, and the
kubectl commands that print the token and CA
bundle it then asks for.
Every collection is judged against the 58-check posture catalogue, mapped to the
CIS Kubernetes Benchmark and the NSA/CISA hardening guidance: see
Kubernetes posture.
What a workload can do in your cloud
A workload’s pods present the cloud identity bound to the service account they run as. TRUSTIVAN records it on the workload asset ascloud_identity (the IAM
role ARN, the GCP service-account e-mail, or the Azure client ID) and
cloud_identity_provider (aws, gcp or azure), read from the conventional
annotation on the service account:
A pod that names no service account runs as
default, which is Kubernetes’
own rule, so that is the account whose binding applies. Only a binding in the
workload’s own namespace counts. A same-named service account in another
namespace is a different identity.
The three annotations are named explicitly rather than pattern-matched: a
wrong guess here would claim a pod holds a cloud role it does not, which is a
finding about an exposure that does not exist.
Cluster posture checks
Every collection also checks what it read, and each failure is an ordinary finding on the cluster’s asset, so triage, SLAs, risk, policy verdicts, notifications and suppression work on it as on any other finding. A complete collection resolves a finding whose condition is gone; a partial one resolves nothing. As of 2026-10-29 the set (corpus version 1) has eleven checks:
A check fires only on a value that is explicitly unsafe. A container that
does not set
runAsNonRoot inherits it from the pod, the namespace’s Pod
Security Standard or the cluster’s default, so it is not faulted; one that sets
it to false is. Admission control judges a superset of
these, adding hostPath volumes and a missing memory limit. What has been run
against a real cluster is in What has been validated.
Runtime signals
TRUSTIVAN’s runtime signals come from Falco. TRUSTIVAN does not write its own eBPF sensor: it packages Falco, pinned and configured, in thetrustivan-runtime Helm chart with its curated rule library (see
Runtime sensor). A Falco you already run can
post to the same endpoint instead.
Events arrive at POST /api/v1/kubernetes/clusters/{id}/events. Each event is
correlated to the workload it happened in and to the image that workload runs,
or by its image digest to the scanned image when the pod is not inventoried.
Telling “quiet” from “not listening”
TRUSTIVAN cannot reach into your cluster to health-check the sensor (the chart’s probes restart a Falco or relay that stops answering, inside the cluster). What is checkable from TRUSTIVAN is whether events are still arriving at all, and that is whatlast_runtime_event_at on GET /kubernetes/clusters and
GET /kubernetes/clusters/{id} reports: the time of the most recent event
this cluster has sent, absent if it never has sent one. A cluster whose
collection sweeps read active but whose last_runtime_event_at stopped
moving months ago has a runtime integration that went quiet, not a workload
that did. That is worth alerting on the same way a degraded connection is.
Partial collection never means “clean”
This is the property to understand before you trust a report. When a collection cannot see all of an account or a cluster (a role that cannot read one service, a namespace the credential cannot list, a region that refuses), TRUSTIVAN records what it did see and marks the run partial. A partial run resolves nothing. That matters because of what the alternative would do. If a partial run were treated as complete, a permissions error would silently close every finding for everything it could not reach: a security product quietly telling you that problems it can no longer see have been fixed. So a partial collection leaves existing findings open, sets the connection’s status todegraded, and says why. An account or cluster sitting in degraded
is one whose reports are incomplete, and it is worth an alert.
The collection response also reports which regions were actually visited. A
clean result from one region is not a clean account.
The same rule decides what a cluster collection removes from the estate graph.
A complete collection removes the links it no longer observes (a workload
that has gone, an image a workload no longer runs, an image no longer deployed
to the cluster), so “is this image running?” reflects the last complete
collection rather than every image that has ever run. The assets themselves,
and links you did not get from the collector, are kept. A partial collection
removes nothing.
Credentials
Cloud and cluster credentials are stored exactly as registry credentials are: encrypted at rest with a versioned key, written once, and never readable back through any API. Connecting an account creates the credential and stores a reference to it; nothing about the connection holds a secret. Connecting a cloud account or a cluster stores a credential, so it needs a plan that includes that. Free does not; the dashboard says so when you open Connect account, and the API answers402 naming the plan and the plan that would allow
it.
For AWS there are two ways to connect, and which you are offered depends on the
deployment:
- Role assumption stores no secret at all. TRUSTIVAN assumes a role in your account using the deployment’s own AWS identity (an instance role, IRSA or environment credentials, set up by whoever operates TRUSTIVAN), and you supply only the role ARN. Where the deployment has such an identity this is the recommended option.
- A static access key for a read-only IAM user is the weaker option, because the key is long-lived and yours to rotate. It needs nothing from the deployment.
role_assumption on
GET /api/v1/cloud/providers. A deployment with none does not offer the role
option, and refuses a role connection, because it has nothing to assume the role
as: the connection could never collect.
The external ID is issued by TRUSTIVAN
Connecting by role returns anexternal_id, and every read of the account
repeats it. Put it in the role’s trust policy as a condition. The dashboard shows
this policy with both values filled in:
pending, because its external ID did not exist until
you connected. Update the trust policy, then run a collection. Collect now
starts one in the background, on a cluster as on an account: a run can take up to
five minutes, it shows as collecting, and it says how the run ended when it does. If
the service restarts during a run, it says so within about 90 seconds and can be run
again. The first one
checks the trust policy before it reads anything: it asks AWS to assume the role
without the external ID, and refuses the connection if AWS allows it,
because a role assumable without the condition can be assumed by anyone who
learns its ARN. That check shows in your CloudTrail as one refused
AssumeRole, and runs again only after a failed collection. Every collection
also confirms which account the credential reaches before it reads anything.
A role connected before TRUSTIVAN issued external IDs needs its trust policy
updated with the account’s external_id.
Azure and Google Cloud credentials
Azure:scheme basic, tenant_id the directory (tenant) ID,
identifier the application (client) ID, secret a client secret.
Google Cloud: scheme token and secret the whole service-account JSON
key file, with no identifier. Both are validated before the connection is
recorded: TRUSTIVAN obtains a token and reads the subscription or project, and
refuses a credential that reaches a different one. The key file’s token_uri
is ignored; tokens are always requested from Google’s own endpoint.
There is no keyless (federated) option for either yet. AWS role assumption is
safe because the external ID tells tenants apart; a federated credential
trusting TRUSTIVAN’s single deployment identity would have no equivalent, so
it is not offered.
Reaching your cluster’s API server
api_server is the API server’s https URL, such as
https://api.example.com:6443. Plain http and a URL carrying credentials are
refused.
TRUSTIVAN refuses to connect to a cluster whose API server resolves to a
loopback, private or link-local address, unless the operator of the deployment
has permitted it with KUBERNETES_ALLOW_PRIVATE_CLUSTERS=true.
This is not an inconvenience to work around. The address comes from the
api_server field you supply, and TRUSTIVAN then connects to it with your
bearer token: on connect, and again on every collection sweep. Without the
refusal, anyone who can connect a cluster could point the product at the
deployment’s own internal network or at 169.254.169.254, the cloud instance
metadata endpoint that serves credentials to whatever asks.
If your API server genuinely is on a private network, your TRUSTIVAN operator
sets that variable. It is a deployment setting rather than a per-connection
one, deliberately: the person connecting a cluster is the untrusted party in
this exchange.
The check runs against the resolved address, immediately before the
connection is made, and against every address the name resolves to. A hostname
that answers publicly when you connect the cluster and privately on the next
sweep is still refused.
Admission control
The admission endpoint lets TRUSTIVAN answer your cluster’s admission webhook. It is off by default on a newly connected cluster; you enable it deliberately. It judges two things, in this order. The caller. The TRUSTIVAN credential your webhook presents is checked by the same authorization broker every other endpoint asks: whether it holdsscans:create, and the broker’s other rules. A caller the broker refuses is
refused, whatever the workload looks like.
The workload. TRUSTIVAN then reads the pod the request would create (a Pod,
a Deployment’s template, a CronJob’s nested one) through the same decoder and
security-context merge a cluster collection uses, and judges it against the
same posture catalogue: its workload and
container checks (namespace and RBAC checks have no subject at admission). The
cluster’s trusted registries apply here too.
It also judges the images the pod would run. Each image reference is
resolved to its asset through the same parser the estate graph uses, so the
findings read are the findings of the image being deployed, and its open
findings decide.
This judgement can only ever narrow the answer. It never admits something the
broker refused.
What a failing workload gets: mode
PUT /api/v1/kubernetes/clusters/{id}/admission takes a mode:
warn is the default so that enabling admission on an existing cluster gains
you visibility rather than an outage.
Not everything blocks in deny mode. A check of medium severity or above
blocks (privileged, hostPath, host namespaces, running as root, latest, an
untrusted registry), as does an image with an open critical or high
finding. These are shown and never block:
- every low-severity check: a mutable image tag, missing limits or requests, a writable root filesystem, the default capabilities, no seccomp profile;
- an image TRUSTIVAN has never scanned, which would otherwise stop the first deploy of every new service.
drift_prevention: true on the same endpoint, a writable root
filesystem becomes a blocking problem: every container without
readOnlyRootFilesystem: true is refused in deny mode, so nothing can be
written into an image’s filesystem after it starts. See
Drift prevention.
A response lists at most five problems, blocking ones first and, among the
rest, the images first.
A workload with problems is written to the audit trail in every mode,
audit included. That is what audit is for: the record of what deny would
have refused.
An unrecognised mode is rejected rather than quietly defaulted.
The failure mode, and why the default is what it is
The same endpoint takes afailure_mode, and it is a different setting: it
decides what your cluster does when TRUSTIVAN cannot answer at all: an outage, a
network partition, a timeout. mode is what happens when TRUSTIVAN can answer
and the answer is no.
The default is closed because an admission control that admits whatever
arrives while it is down is no control during exactly the window an attacker
would choose. Clusters connected before this default changed keep the mode they
had.
Choose open when the cluster’s availability matters more than that window,
and set the chart’s failurePolicy: Ignore to match. A review for a cluster
TRUSTIVAN does not recognise is always admitted with a warning: there is no
setting of yours to apply.
An unrecognised failure_mode is rejected rather than quietly defaulted. If you
ask for fail-closed and mistype it, TRUSTIVAN tells you, instead of leaving you
believing you have a control you do not have.
What a refusal looks like
A refused admission returns a message that appears directly inkubectl apply
output. The developer reading it usually has no TRUSTIVAN account, so the message
has to stand alone: it names the check or the image and what was wrong, up to
five problems, then the count of the rest.
What has been validated, and what has not
TRUSTIVAN’s collectors are tested on every commit against hand-written fixtures in the shape of the providers’ API responses, with no live account or cluster required. That covers the parsing, the pagination (including a Kubernetes list followed across continue tokens and cut at its bound), request signing, the posture corpus and the estate graph. The Kubernetes collector has been run against a real cluster; the AWS collector has not been run against real AWS.scripts/dev/k3d-validate.sh
creates a throwaway k3d cluster (no cloud account needed),
applies the exact least-privilege RBAC the “Connect cluster” dialog hands a
customer, deploys deliberately misconfigured workloads and RBAC alongside a
namespace built to pass every check, and runs the real collector and the
58-check catalogue (backend/internal/e2e/kubernetes_e2e_test.go) against it.
The run on 2026-10-29 (k3d v5.7.5, k3s v1.30.6): collected 8 namespaces, 11
workloads, 50 service accounts and 69 role bindings, recorded the running
container’s exact image reference (the join that makes “is this image
running?” answerable), found all 31 planted misconfigurations, raised nothing on
the compliant namespace, and left no check not assessed (42 checks failed
somewhere, 16 passed, over 232 live subjects).
The admission webhook chart was installed
into the same cluster with TRUSTIVAN deliberately unreachable
(admission_webhook_e2e_test.go): the API server refused a pod with the default
failurePolicy: Fail, admitted it in the exempt namespaces, and admitted it with
Ignore. A review travelling through the relay to a live TRUSTIVAN and back has
not been run; the decision it would return is the service’s, which is tested
over a real database (backend/internal/services/kubernetes_service_test.go).
Nothing here has been run against EKS, GKE or AKS.
The AWS collector has not been run against real AWS, including role
assumption, the external-ID check and reading buckets in their own regions.
Neither have the Azure and Google Cloud collectors been run against a real
subscription or project; they are exercised the same way, against fixtures
shaped like Azure Resource Manager’s and Google’s JSON responses.
It speaks the documented API and its behaviour is exercised against
hand-written fixtures shaped like AWS’s JSON responses, but we would rather
say that plainly than let “validated” imply more than it does. Treat your
first connection as the thing that proves it in your environment, and check
the reported resource and workload counts against what you expect.