mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 07:37:32 +00:00
rule(System ClusterRole Modified/Deleted): + role
Add system:managed-certificate-controller as a system role that can be modified. Can be changed as a part of upgrades. Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
parent
08d38d8269
commit
7666bc3f3a
@ -311,7 +311,8 @@
|
|||||||
# normal operation.
|
# normal operation.
|
||||||
- rule: System ClusterRole Modified/Deleted
|
- rule: System ClusterRole Modified/Deleted
|
||||||
desc: Detect any attempt to modify/delete a ClusterRole/Role starting with system
|
desc: Detect any attempt to modify/delete a ClusterRole/Role starting with system
|
||||||
condition: kevt and (role or clusterrole) and (kmodify or kdelete) and (ka.target.name startswith "system:") and ka.target.name!="system:coredns"
|
condition: kevt and (role or clusterrole) and (kmodify or kdelete) and (ka.target.name startswith "system:") and
|
||||||
|
not ka.target.name in (system:coredns, system:managed-certificate-controller)
|
||||||
output: System ClusterRole/Role modified or deleted (user=%ka.user.name role=%ka.target.name ns=%ka.target.namespace action=%ka.verb)
|
output: System ClusterRole/Role modified or deleted (user=%ka.user.name role=%ka.target.name ns=%ka.target.namespace action=%ka.verb)
|
||||||
priority: WARNING
|
priority: WARNING
|
||||||
source: k8s_audit
|
source: k8s_audit
|
||||||
|
Loading…
Reference in New Issue
Block a user