GithubHelp home page GithubHelp logo

mammger / eebpf-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crackercat/eebpf-kit

0.0 0.0 0.0 3.02 MB

Some stuff about evil ebpf Prog for container

CMake 0.06% Makefile 0.05% C 99.55% Shell 0.28% Dockerfile 0.01% Lua 0.02% Rust 0.04%

eebpf-kit's Introduction

Eebpf-kit

Some stuff about evil ebpf Prog for container.

Note that the following ebpf progs are not panacea for every different scenarios.

From my point of view, these sorts of bpf-kits are able to be used in Post-Container Penetration in Cloud-Native Environment. Image that the attackers gain full control of a special container which has the capability SYS_ADMIN or BPF in Cluster Environment. The next step is to extend the results of the attack using the Eebpf-kit. Whilst, unfortunately, there are several applications running in the container needs the correspoding capabilities. For instance: cilium , Falco ,

Thanks to https://github.com/libbpf/libbpf-bootstrap , which is a really awesome Project.

And I wrote all of my codes based on libbpf-bootstrap.

I deem that U are able to find my codes in /root/Eebpf-kit/libbpf-bootstrap/examples/c

  • Eebpf-kit/libbpf-bootstrap/examples/c/hello is a specific implementation for eBPF prog to inject CMD from container to host. And is able to achieve the following effects:

From SYS_BPF container to inject CMD which can be executed as ROOT user.

Inspired by Tencent TEG Blue Team

  • Eebpf-kit/libbpf-bootstrap/examples/c/sshd is a specific implementation for eBPF prog to attack and hijack SSHD, resulting in some malicious attacks.

We can inject an inexistent evil user to login now, notice the EVIL_PASSWD in esshd.bpf.c

And there are two different but correspoding modes. For EVIL_SHADOW and EVIL_PASSWD are both able to be reviewed.

  • Eebpf-kit/libbpf-bootstrap/examples/c/kprobe and Eebpf-kit/libbpf-bootstrap/examples/c/spray are two correspoding files, for the sake of implementing the information leakage.

The prerequisite is akin to the hello

eebpf-kit's People

Contributors

orangegzy 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.