Skip to content

Commit

Permalink
Rule updates 2019.02.v1 (#551)
Browse files Browse the repository at this point in the history
* Let cassandra write to /root/.cassandra

* Add kubelet/kops to allowed_k8s_users
  • Loading branch information
mstemm authored Mar 9, 2019
1 parent 5740186 commit 28622e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,12 @@
- macro: kubectl_writing_state
condition: (proc.name=kubectl and fd.name startswith /root/.kube)

- macro: java_running_cassandra
condition: (proc.name=java and proc.cmdline contains "cassandra.jar")

- macro: cassandra_writing_state
condition: (java_running_cassandra and fd.directory=/root/.cassandra)

- rule: Write below binary dir
desc: an attempt to write to any file below a set of binary directories
condition: >
Expand Down Expand Up @@ -1047,6 +1053,7 @@
and not maven_writing_groovy
and not chef_writing_conf
and not kubectl_writing_state
and not cassandra_writing_state
and not known_root_conditions
output: "File below / or /root opened for writing (user=%user.name command=%proc.cmdline parent=%proc.pname file=%fd.name program=%proc.name)"
priority: ERROR
Expand Down
2 changes: 1 addition & 1 deletion rules/k8s_audit_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# If you wish to restrict activity to a specific set of users, override/append to this list.
- list: allowed_k8s_users
items: ["minikube", "minikube-user"]
items: ["minikube", "minikube-user", "kubelet", "kops"]

- rule: Disallowed K8s User
desc: Detect any k8s operation by users outside of an allowed set of users.
Expand Down

0 comments on commit 28622e6

Please sign in to comment.