Skip to main content

An eBPF-based ransomware scanner

Project description

R.E.K.D: Ransomware Entropy Kernel Detector

  • This project is an eBPF-based encrypted disk I/O scanner that monitors file write operations at the kernel level.
  • It hooks into the Linux vfs\_write system call to capture real-time write activity on regular files.
  • The system selectively samples large write buffers to avoid noise from small system writes like logs.
  • Captured data is analyzed in user space using Shannon entropy to detect potential encryption activity.
  • High-entropy data is treated as suspicious since encrypted ransomware outputs exhibit randomness.
  • The scanner maintains per-process statistics such as total written bytes and encrypted write ratio.
  • A configurable exclusion system allows trusted applications to be ignored during monitoring.
  • The tool supports both interactive monitoring mode and background daemon mode for continuous protection.
  • Suspicious processes are flagged based on encrypted write percentage and cumulative encrypted output.
  • Installation scripts automate deployment as a systemd service for persistent runtime monitoring.

📦 Installation & Dependencies

1. System Requirements

This tool requires the BPF Compiler Collection (BCC). Install it using your package manager:

Ubuntu / Debian:

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

2. Python Dependencies

This tool requires python dependencies for the dashboard UI(rich) and configuration parsing(pyyaml):

pip3 install rich pyyaml

Summary of Flags

Flag Description
--init-config Generates a default exclusions.yaml file and exits.
--config [path] Loads exclusions from a specific YAML file (default: ./exclusions.yaml).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rekd-0.1.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rekd-0.1.2-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file rekd-0.1.2.tar.gz.

File metadata

  • Download URL: rekd-0.1.2.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for rekd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e614a348a06cfee7dabf3a5752e76bbd000b30029e4ee2379dd2992beb866891
MD5 4cb2d92397eb56683a75a006491d725b
BLAKE2b-256 1835995f677f5400c132c4fa00a66e97a9fd0aee321196aa6e975af042b83d20

See more details on using hashes here.

File details

Details for the file rekd-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rekd-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for rekd-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91346570bc404d252df554a73342da608aaeea821c991f2617e53decc4376bf7
MD5 1afe51dcb2dd058be3a8defde5fc45e8
BLAKE2b-256 798d7a9dd7d1af0a5dc1b0f67e335eb7e47a418b99c0e7679d4247ec092c5a23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page