What is Falco and how do its rules work?
IntermediateConceptKubernetes Security
Answer
Falco is a CNCF runtime security tool that watches syscalls (and Kubernetes audit events via plugins) and alerts when behaviour matches a rule: shell in a container, write below /etc, read of /etc/shadow, unexpected outbound connection.
- rule: Shell spawned in container
desc: Interactive shell started inside a container
condition: spawned_process and container and proc.name in (bash, sh, zsh)
output: "Shell in container (user=%user.name container=%container.name image=%container.image.repository cmd=%proc.cmdline)"
priority: WARNING
tags: [container, mitre_execution]
Falco detects; it does not block. Alerts go through Falcosidekick to Slack, a SIEM, or a response function.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate