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.0.tar.gz (18.2 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.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rekd-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 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.0.tar.gz
Algorithm Hash digest
SHA256 c8916d205f9fb41649bbfdea9391788a168fc86227524ede8489d1650435b879
MD5 9519582ff94330bcdb1f47e13a5f8d48
BLAKE2b-256 88c2349e1ff29ef746cbb1544c2c1eae720d5d476e59feb0c36e3df51c7af0c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rekd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 203209e77f65b15f436f403cd9a3ed4ca7c6c7b02fe8412302cb4582078b8798
MD5 5a3829003e279d8fa9bd18c1a0ee9c7d
BLAKE2b-256 5d7cfbcb6249f06418eaa7b88a361e2013cd4453bf2bec50bbc57b68a6d2dd57

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