Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaizhe committed Mar 15, 2019
1 parent 8465ff3 commit e80d286
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@
- macro: liveupdate_writing_conf
condition: (proc.cmdline startswith "java LiveUpdate" and fd.name in (/etc/liveupdate.conf, /etc/Product.Catalog.JavaLiveUpdate))

- macro: rancher_agent
condition: (proc.name = agent and container.image.repository = rancher/agent)

- macro: sosreport_writing_files
condition: >
(proc.name=urlgrabber-ext- and proc.aname[3]=sosreport and
Expand Down Expand Up @@ -818,8 +821,11 @@
and fd.name startswith "/etc/dd-agent")

- macro: rancher_writing_conf
condition: (proc.name in (lib-controller,rancher-dns,healthcheck,rancher-metadat)
and fd.name startswith "/etc/haproxy")
condition: (container.image.repository in (rancher_images)
and proc.name in (lib-controller,rancher-dns,healthcheck,rancher-metadat)
and (fd.name startswith "/etc/haproxy" or
fd.name startswith "/etc/rancher-dns")
)

- macro: curl_writing_pki_db
condition: (proc.name=curl and fd.directory=/etc/pki/nssdb)
Expand Down Expand Up @@ -1224,6 +1230,7 @@
and not python_running_sdchecks
and not java_running_sdjagent
and not kubelet_running_loopback
and not rancher_agent
output: >
Namespace change (setns) by unexpected program (user=%user.name command=%proc.cmdline
parent=%proc.pname %container.info)
Expand Down Expand Up @@ -1416,6 +1423,12 @@
container.image.repository startswith istio/proxy_ or
container.image.repository startswith quay.io/sysdig)

- list: rancher_images
items: [
rancher/network-manager, rancher/dns, rancher/agent,
rancher/lb-service-haproxy, rancher/metadata, rancher/healthcheck
]

# Add conditions to this macro (probably in a separate file,
# overwriting this macro) to specify additional containers that are
# trusted and therefore allowed to run privileged.
Expand Down

0 comments on commit e80d286

Please sign in to comment.