mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-01 09:02:18 +00:00
Removed default K3s admin user from list, clarified comments
Signed-off-by: Vicente Herrera <vicenteherrera@vicenteherrera.com>
This commit is contained in:
parent
e7b3d7a7e0
commit
3ce11f093f
@ -420,19 +420,23 @@
|
|||||||
tags: [k8s]
|
tags: [k8s]
|
||||||
|
|
||||||
|
|
||||||
|
# This list includes some of the default user names for an administrator in several K8s installations
|
||||||
- list: full_admin_k8s_users
|
- list: full_admin_k8s_users
|
||||||
items: ["admin", "kubernetes-admin", "kubernetes-admin@kubernetes", "default", "kubernetes-admin@cluster.local", "minikube-user"]
|
items: ["admin", "kubernetes-admin", "kubernetes-admin@kubernetes", "kubernetes-admin@cluster.local", "minikube-user"]
|
||||||
|
|
||||||
- macro: allowed_full_admin_users
|
# This rules detect an operation triggered by an user name that is
|
||||||
condition: (k8s_audit_always_true)
|
# included in the list of those that are default administrators upon
|
||||||
|
# cluster creation. This may signify a permission setting too broader.
|
||||||
|
# As we can't check for role of the user on a general ka.* event, this
|
||||||
|
# may or may not be an administrator. Customize the full_admin_k8s_users
|
||||||
|
# list to your needs, and activate at your discrection.
|
||||||
|
|
||||||
# # How to test:
|
# # How to test:
|
||||||
# # Execute any kubectl command connected using default cluster user, as:
|
# # Execute any kubectl command connected using default cluster user, as:
|
||||||
# kubectl create namespace rule-test
|
# kubectl create namespace rule-test
|
||||||
|
|
||||||
- rule: Full K8s Administrative Access
|
- rule: Full K8s Administrative Access
|
||||||
desc: Detect any k8s operation by an administrator with full access.
|
desc: Detect any k8s operation by a user name that may be an administrator with full access.
|
||||||
condition: >
|
condition: >
|
||||||
kevt
|
kevt
|
||||||
and non_system_user
|
and non_system_user
|
||||||
|
Loading…
Reference in New Issue
Block a user