Skip to main content

K8s running images

Kubernetes running container images is the Kubernetes-running-images collection for this CID — ReadRunningContainerImages (PEP 8 read_running_images). The path is GET /container-security/combined/container-images/v1. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). ReadClusterCombinedV2 is not implemented. This is not Container images GetCombinedImages (/container-security/combined/image-assessment/images/v1): Container images. This is not Kubernetes most-used container images ReadContainerImagesByMostUsed (/container-security/aggregates/images/most-used/v1): K8s most-used images. This is not Kubernetes container image states ReadContainerImagesByState (/container-security/aggregates/containers/images-by-state/v1): K8s image states. This is not Kubernetes distinct container image counts ReadDistinctContainerImageCount (/container-security/aggregates/images/count-by-distinct/v1): K8s distinct images. 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 running container images 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 running container images (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 running container images. 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/combined/container-images/v1List Kubernetes running container images. Query: filter, limit, offset.

Empty filter returns every running container image in this CID. Allowed FQL properties: cid, cloud_account_id, cloud_name, cloud_region, cluster_id, cluster_name, image_digest, image_has_been_assessed, image_id, image_name, image_registry, image_repository, image_tag, last_seen, namespace, running_status, id. Do not allow hosts. running_container_count is not an FQL property. image_has_been_assessed matches the lowercase string true / false. 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 id.asc.

JSON is DESIGN snake_case flattened fields: id, image_id, image_name, image_registry, image_repository, image_tag, image_digest, image_has_been_assessed, last_seen, namespace, cluster_name, cluster_id, cloud_name, cloud_region, cloud_account_id, running_status, running_container_count, cid. image_has_been_assessed is a JSON boolean. running_container_count is a JSON number. This is not nested SOURCE cluster_info, hosts, or containers_running_status.

This is not Container images GetCombinedImages, Kubernetes most-used container images ReadContainerImagesByMostUsed, Kubernetes container image states ReadContainerImagesByState, Kubernetes distinct container image counts ReadDistinctContainerImageCount, or the HelloService template. Container images uses /container-security/combined/image-assessment/images/v1: Container images. Kubernetes most-used container images uses /container-security/aggregates/images/most-used/v1: K8s most-used images. Kubernetes container image states uses /container-security/aggregates/containers/images-by-state/v1: K8s image states. Kubernetes distinct container image counts uses /container-security/aggregates/images/count-by-distinct/v1: K8s distinct images. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet).

Seed running container images​

idimage_idimage_repositorycluster_name
rimg-lab-1img-lab-1lab/apilab-eks-1
rimg-lab-2img-lab-2lab/workerlab-aks-1

cid is cid-local-1. Empty GET returns both (id ASC: rimg-lab-1 then rimg-lab-2). filter=image_repository:'lab/api' returns rimg-lab-1. filter=image_repository:'lab/worker' returns rimg-lab-2.

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 rimg-lab-1 then rimg-lab-2:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/combined/container-images/v1'

filter=image_repository:'lab/api' returns rimg-lab-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/combined/container-images/v1?filter=image_repository:%27lab/api%27'

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/combined/container-images/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/combined/container-images/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/combined/container-images/v1'

Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). Container images is a separate collection: Container images. Kubernetes most-used images is a separate collection: K8s most-used images. Kubernetes image states is a separate collection: K8s image states. Kubernetes distinct images is a separate collection: K8s distinct images. 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/combined/container-images/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.