CKS Monitoring, Logging and Runtime Security Practice Question
In a Falco rule, you have the condition: 'evt.type=execve and proc.name=bash and container.id!=host'. What does this rule detect?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A bash shell being spawned inside a container
The rule triggers when a bash shell is executed (execve) inside any container (container.id != host). It does not check for interactive use; it simply detects bash execution.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A non-root bash process on the host
Why it's wrong here
container.id!=host means the event is not from the host, so it only matches containers.
- ✓
A bash shell being spawned inside a container
Why this is correct
The rule matches execve events where the process name is bash and it is not running on the host (i.e., inside a container).
- ✗
An interactive shell session inside a container
Why it's wrong here
The rule does not check for interactive flags like -i; it only checks for execution of bash.
- ✗
A bash process reading /etc/shadow
Why it's wrong here
The rule does not include any file access conditions; it only checks for execve of bash.
Go deeper
Related to this question
About these practice questions
Courseiva writes every CKS question from scratch — 114 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CKS practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKS exam.