Skip to content

HirthickDiyanV/eBPFTelemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

🛡️ eBPF Write Syscalls Telemetry

Platform Language Tech License

A zero-overhead, kernel-level behavioral analysis tool designed to detect ransomware encryption patterns in real-time.


📖 Abstract

Traditional antivirus solutions often rely on static file signatures, which are easily bypassed by new malware variants. This project takes a different approach: Behavioral Profiling.

Using eBPF (Extended Berkeley Packet Filter), this tool hooks directly into the Linux kernel's vfs_write syscall. It analyzes the velocity and volume of filesystem writes to identify malicious actors. By performing in-kernel aggregation using BPF Hash Maps, we filter out ~95% of benign system noise (logs, flag updates) to focus purely on high-throughput anomalies characteristic of ransomware encryption.


🛠️ Key Features

  • ⚡ Zero-Copy Profiling: Uses BPF_HASH maps to count syscalls in kernel space, avoiding expensive context switches.
  • 🔍 Noise Filtering: Automatically ignores tiny system writes (logs, GUI updates), isolating "heavy" I/O operations.
  • 📊 Live TUI Dashboard: A terminal-based UI that visualizes write intensity in real-time.
  • 🛡️ Evasion Resistant: Since it hooks the kernel syscall interface, it catches activity even if the malware tries to hide its process name or use unbuffered I/O.

🚀 Installation

Prerequisites

You need a Linux kernel with eBPF support (4.4+) and the BCC tools installed.

Ubuntu / Debian

sudo apt-get update
sudo apt-get install bpfcc-tools linux-headers-$(uname -r) python3-bpfcc
pip3 install rich

🕹️ Usage

Step 1: Start the Detector

sudo python3 main.py

Step 2: Simulate an Attack

sudo python3 test.py

About

Designed a zero-overhead security monitoring tool using eBPF to hook Linux kernel syscalls (vfs_write) and profile I/O patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages