nerdexam
Linux_Foundation

CKS · Question #18

You must complete this task on the following cluster/nodes: Cluster | Master node | Worker node KSRS001 | ksrs00101-master | ksrs00101-worker1 You can switch the cluster/configuration context using…

This question tests your ability to use a runtime security tool (sysdig or falco) to monitor container process activity on a Kubernetes worker node and record detected incidents in a structured format. It covers the CKS domain of runtime behavioral analysis and threat detection.

Submitted by saadiq_pk· May 4, 2026Monitoring, Logging, and Runtime Security

Question

You must complete this task on the following cluster/nodes: Cluster | Master node | Worker node KSRS001 | ksrs00101-master | ksrs00101-worker1 You can switch the cluster/configuration context using the following command: [candidate@cli] $ kubectl config use-context KSRS00101 Two tools are pre-installed on the cluster's worker node: sysdig, falco. Using the tool of your choice (including any non pre-installed tool), analyze the container's behavior for at least 30 seconds, using filters that detect newly spawning and executing processes. Store an incident file at /opt/KSRS00101/alerts/details, containing the detected incidents, one per line, in the following format: timestamp,uid/username,processName The following example shows a properly formatted incident file: 01:40:19.601363716,root,init 01:40:20.60601363716,nobody,bash 01:40:21.137163716,1000,tar Keep the tool's original timestamp-format as-is. Make sure to store the incident file on the cluster's worker node. You may use your browser to open one additional tab to access Falco's documentation.

Explanation

This question tests your ability to use a runtime security tool (sysdig or falco) to monitor container process activity on a Kubernetes worker node and record detected incidents in a structured format. It covers the CKS domain of runtime behavioral analysis and threat detection.

Approach. The recommended approach is to SSH into the worker node (ksrs00101-worker1) and use sysdig with a process-spawn filter, or falco with a custom rule targeting execve syscalls, running for at least 30 seconds. With sysdig, the command would be: sysdig -M 30 -p '%evt.time,%user.uid,%proc.name' evt.type=execve > /opt/KSRS00101/alerts/details. This captures the timestamp in original sysdig format, the UID or username, and the process name for every new process execution - each on its own line. Alternatively, a custom Falco rule using evt.type=execve with output fields %evt.time,%user.uid,%proc.name achieves the same result. The output file must be placed on the worker node (not the master or CLI host), so you must either redirect output directly on the worker node via SSH, or copy the file there afterward.

Concept tested. Kubernetes runtime security monitoring - specifically using sysdig or Falco to perform syscall-level introspection on container workloads, filtering for process-spawn events (execve), and capturing structured incident data (timestamp, UID/username, process name) for forensic or audit purposes. This maps to the CKS exam domain: 'Runtime Security' and 'Behavioral Analytics / Threat Detection'.

Reference. https://falco.org/docs/rules/ - Falco Rules documentation; sysdig filter reference: https://github.com/draios/sysdig/wiki/sysdig-user-guide#filtering

Topics

#Runtime Security#Falco#Process Monitoring#Security Logging

Community Discussion

No community discussion yet for this question.

Full CKS Practice