Skip to main content

K8s container enrichment

Kubernetes container enrichment is the Kubernetes-container-enrichment collection for this CID — ReadContainerEnrichment. The path is GET /container-security/aggregates/enrichment/containers/entities/v1. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). ReadClusterCombinedV2 is not implemented. This is not Kubernetes containers ReadContainerCombined (/container-security/combined/containers/v1): K8s containers. This is not Kubernetes cluster enrichment ReadClusterEnrichment (/container-security/aggregates/enrichment/clusters/entities/v1): K8s cluster enrichment. This is not the HelloService template sample (GET /api/hello).

This collection is not CrowdStrike production. It does not call Falcon cloud. It is not CrowdStrike Falcon Container Image cloud.

RPC field notes: ContainerImagesService. REST schemas: API reference. Filter syntax: FQL. Kubernetes container enrichment does use FQL (unlike Kubernetes clusters and combined cloud clusters).

These curls use Host: crowdstrike-api.localhost against Compose Traefik on :8088. If the hostname already resolves to Traefik, you can omit the Host header and call http://crowdstrike-api.localhost instead.

Auth​

Every call needs a console session or a Bearer token:

  • Cookie cs_console from CreateSession (POST /identity/entities/sessions/v1)
  • Authorization: Bearer with falcon-container-image:read

A session cookie bypasses OAuth scopes. Seed client cs-local-hosts (hosts:read only) cannot list container enrichment (403) — it is missing falcon-container-image:read. Unit tests use a client named cs-local-cimg with falcon-container-image:read; that client can list container enrichment. It is not in the production seed. Use the console cookie, or a client you created with that scope. Missing or revoked token → 401. This RPC does not use kubernetes-protection:read.

HTTP paths​

MethodPathUse
GET/container-security/aggregates/enrichment/containers/entities/v1List Kubernetes container enrichment. Query: filter, container_id, limit, offset.

Empty filter and omitted container_id return every enrichment row in this CID. Optional container_id keeps only those ids (repeat the query param for more than one), then applies FQL. Allowed FQL properties: cloud_account_id, cloud_name, cloud_region, cluster_id, cluster_name, last_seen, namespace, container_id, cid. Unknown property or invalid filter → 400. limit and offset must be ≥ 0 else 400. Omitted limit defaults to 100 (capped at 200). Empty sort is ignored. Default sort is container_id.asc.

JSON is DESIGN snake_case flattened fields (ten fields this slice): container_id, container_name, namespace, cluster_name, cluster_id, cloud_name, cloud_region, last_seen, cloud_account_id, cid.

This is not Kubernetes containers ReadContainerCombined, Kubernetes cluster enrichment ReadClusterEnrichment, or the HelloService template. Kubernetes containers uses /container-security/combined/containers/v1: K8s containers. Kubernetes cluster enrichment uses /container-security/aggregates/enrichment/clusters/entities/v1: K8s cluster enrichment. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet).

Seed container enrichment​

container_idcontainer_namenamespacecluster_namecluster_idcloud_namecloud_regionlast_seencloud_account_id
ctr-lab-1apidefaultlab-eks-1clu-lab-1eksus-east-12026-09-01T00:00:00Zacc-lab-1
ctr-lab-2workerkube-systemlab-aks-1clu-lab-2akseastus2026-09-01T00:00:00Zacc-lab-2

cid is cid-local-1. Empty GET returns both (container_id ASC: ctr-lab-1 then ctr-lab-2). filter=cluster_name:'lab-eks-1' returns ctr-lab-1. container_id=ctr-lab-1 returns ctr-lab-1.

curl -sS -c cookies.txt -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"FalconLocal!1","cloud":"us-1"}' \
http://127.0.0.1:8088/identity/entities/sessions/v1

Empty GET returns at least the two seed ids, including ctr-lab-1 and ctr-lab-2:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1'

filter=cluster_name:'lab-eks-1' returns ctr-lab-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1?filter=cluster_name:%27lab-eks-1%27'

container_id=ctr-lab-1 returns ctr-lab-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1?container_id=ctr-lab-1'

Unknown FQL property is 400:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1?filter=bogus:%27x%27'

No cookie and no Bearer is 401:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1'

cs-local-hosts (hosts:read only, missing falcon-container-image:read) is 403:

TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1'

Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). Kubernetes containers is a separate collection: K8s containers. Kubernetes cluster enrichment is a separate collection: K8s cluster enrichment. This is not the HelloService template (GET /api/hello).

List (Bearer)​

TOKEN='<access_token from a client with falcon-container-image:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/container-security/aggregates/enrichment/containers/entities/v1'

falcon-container-image:read → 200 (including unit-test client cs-local-cimg). A token without that scope (including hosts:read only, e.g. cs-local-hosts) → 403. Missing or revoked token → 401. This RPC does not use kubernetes-protection:read.

OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.