Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nanorobocop/execsnoop-k8s

WIP
https://github.com/nanorobocop/execsnoop-k8s

ebpf kubernetes

Last synced: about 1 month ago
JSON representation

WIP

Awesome Lists containing this project

README

        

# Execsnoop-K8s

Log all binary executions in Kubernetes.

Based on BPF program from [iovisor/gobpf](https://github.com/iovisor/gobpf/blob/2289761f1e2092a7416cd5fd55a218802d997cb6/examples/bcc/execsnoop/execsnoop.go).

Development WIP.

## Build

1. Install `https://github.com/iovisor/bcc`
([INSTALL.md](https://github.com/iovisor/bcc/blob/master/INSTALL.md))

2. Build on host machine:

```bash
go build execsnoop.go
```

3. Dockerize

```bash
docker build -t execsnoop .
```

## Run in Docker

```bash
sudo docker run --rm -it -v /lib:/lib -v /usr/src:/usr/src -v /var/run/docker.sock:/var/run/docker.sock --privileged execsnoop
```

## Run in Kubernetes

TBD