aquasecurity / tracee

Linux Runtime Security and Forensics using eBPF
https://aquasecurity.github.io/tracee/latest
Apache License 2.0
3.63k stars 419 forks source link

Tracing file creation by kernel modules #1613

Closed itamarmaouda101 closed 1 year ago

itamarmaouda101 commented 2 years ago

Hi

Sometimes, kernel rootkits try to commutate with the user-space.

To accomplish that they create files with special file operations that handle their requests.

To create those files from the kernel they can use one of these functions:

We should add an event on those functions to alert if some kernel try to communicate with the user space.

Here's an example that uses this function to complete a container escape in a privileged container: https://xcellerator.github.io/posts/docker_escape/

rafaeldtinoco commented 2 years ago

Sorry, I realized there are missing PRs for this case. Please link PRs to the issues so we can track them altogether. Thanks!