GithubHelp home page GithubHelp logo

falco's Introduction

Falco Helm Charts

3 main areas for Falco: Events (introduced by Kernel, SysCalls interceptions, ..) Powerful Rules Engine where the stream of events is asserted And Alerts are triggered when a rule is violated

image

Falco is all based on rules. Example rules could be:

  1. Installation of packages, libraries inside any container
  2. Creation, deletion, rename and modification of files and folders inside the container after it starts running
  3. Execution of binaries like bash, ssh, docker binary, debian binaries, vpn client, mail binaries
  4. Unusual outbound traffic
  5. Any ssh connection to/from container
  6. Change of container files from host machine
  7. Detect an attempt to start a pod with a container image outside of a list of allowed images.
  8. Detect an attempt to start a pod with a privileged container
  9. Attempt to attach/exec to a pod
  10. Creation of new namespace etc.
  11. Write Below root

image

1.Deployment

   helm install falco falco/  -n falco --set falcosidekick.enabled=true --set falcosidekick.webui.enabled=true

2.Verification

a. Falco has a webserver that captures K8S events

  kubectl exec -it "$container" -- curl -s localhost:8765/healthz; echo

b. Check with source of events is configured

$ kubectl logs -n falco -l "app.kubernetes.io/name=falco" -c falco-driver-loader --tail=-1 | grep "* Running falco-driver-loader with"

Output for kernel module

  • Running falco-driver-loader with: driver=module, compile=yes, download=yes
  • Running falco-driver-loader with: driver=module, compile=yes, download=yes

Output for eBPF

  • Running falco-driver-loader with: driver=bpf, compile=yes, download=yes
  • Running falco-driver-loader with: driver=bpf, compile=yes, download=yes

3.Confirm the driver is properly installed

  $ kubectl logs -n falco -l "app.kubernetes.io/name=falco" -c falco-driver-loader --tail=-1 | grep -A 5 "* Success"

4.Trigger one of the Falco rules

  $ export POD_NAME=$(kubectl get pods --namespace falco -l "app.kubernetes.io/name=falco" -o jsonpath="{.items[0].metadata.name}")
  $ kubectl -n falco exec ${POD_NAME} -- find /root -name "id_rsa"

Check that Falco correctly intercepted the potentially dangerous command:

  $ kubectl logs -n falco -l "app.kubernetes.io/name=falco" | grep Warning

5. Event-generator

If you’d like to check if Falco is working properly, we have the event-generator tool that can perform an activity for both our syscall and k8s audit related rules.

helm install event-generator event-generator -f event-generator/values.yaml --namespace event-generator

6.Falco UI

We have falcosidekick ui service which is clusterIP. You can change it to Nodeport or LoadBalancer to access it from outside the cluster

kubectl -n falco port-forward service/falco-falcosidekick-ui 2802:2802

image

falco's People

Contributors

satyaki88 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.