All Series

My eBPF Journey

Dive into "My eBPF Journey," a series that narrates the exploration of eBPF programming, starting from the basics and gradually advancing to more complex applications.

7 Parts149 minJun 29, 2024
My eBPF Journey series cover

Articles in this series

7 chapters
1
Part 1Oct 14, 2023

The beginning of my eBPF Journey - Kprobe Adventures with BCC

Embark on a fascinating journey into the realm of eBPF programming through this blog post. We kickstart our exploration with Kprobe, a dynamic tracing tool in the Linux kernel, by delving into a simple 'Hello World' and other experiment using BCC.

Start readingNext: IPv4 Socket Surveillance - Tracing using kprobe, kretprobe and maps with BCC
2
Part 2Oct 22, 2023

IPv4 Socket Surveillance - Tracing using kprobe, kretprobe and maps with BCC

Through a simple app, this post illustrates real-time monitoring of network activities triggered by syscalls, utilizing kprobe, kretprobe, and maps. It highlights the synergy between eBPF and these probing tools, showcasing a practical approach to understanding network operations.

Read part 2Next: Beyond Observability: Modifying Syscall Behavior with eBPF - My Precious Secret Files
3
Part 3Oct 27, 2023

Beyond Observability: Modifying Syscall Behavior with eBPF - My Precious Secret Files

This article dives into a subtle application of eBPF, extending beyond its conventional use for observability to demonstrate its capability to modify system call behavior, showcased through a simple application designed to safeguard our precious files.

Read part 3Next: Beginner's Guide to XDP: A Journey Through Crafting XDP-Based Firewall with BCC
4
Part 4Nov 8, 2023

Beginner's Guide to XDP: A Journey Through Crafting XDP-Based Firewall with BCC

Step into the world of eBPF/XDP with this beginner's guide. Learn to build a simple SSH firewall, utilizing XDP's capabilities for secure, incoming network traffic management!

Read part 4Next: Harnessing eBPF and XDP for DDoS Mitigation: A Rust Adventure with rust-aya
5
Part 5Nov 21, 2023

Harnessing eBPF and XDP for DDoS Mitigation: A Rust Adventure with rust-aya

DDoS Mitigation with XDP and Rust: Dive into a Rust-based eBPF program for redirecting UDP flood attacks to a honeypot. This hands-on guide demonstrates the potent synergy of XDP and Rust in network security, offering a practical approach to packet manipulation and cybersecurity.

Read part 5Next: Uprobes Siblings - Capturing HTTPS Traffic: A Rust and eBPF Odyssey
6
Part 6Dec 7, 2023

Uprobes Siblings - Capturing HTTPS Traffic: A Rust and eBPF Odyssey

In this engaging blog post, we embark on a journey to create a basic HTTPS sniffer using Rust and eBPF, focusing on the widely used OpenSSL library. Using uprobes for monitoring OpenSSL functions and capturing unencrypted data from SSL/TLS operations.

Read part 6Next: Fooling Port Scanners: Simulating Open Ports with eBPF and Rust
7
Part 7Jun 29, 2024

Fooling Port Scanners: Simulating Open Ports with eBPF and Rust

Dive into the world of network security with this comprehensive guide on using eBPF and Rust to outsmart port scanners. This article explains the TCP three-way handshake, explores the popular Stealth SYN Scan technique, and demonstrates how to implement an eBPF program that simulates open ports.

Read part 7Final chapter
rocket

© 2023 KungFuDev made with love / cd 💜

Heavily inspired/copied from shuttle.rs