High-Throughput Log & Detection Engine
Systems & Low-Level
SPECTRE-PRISM
eBPF Event Ingestion & Sigma Detection in Rust
High-throughput event processing and detection engine built in Rust and eBPF for the Smart India Hackathon (SIH 2026, NTRO problem statement). Ingests kernel tracepoints via zero-copy ring buffers, evaluates Sigma detection rules using a Pratt parser, and maintains an immutable audit log using BLAKE3 Merkle trees.
Hardware-Verified Benchmarks
13,247 EPS/core
Ingestion Throughput
Zero-copy SIMD ring buffer stream per CPU core without packet drops
2.55M evals/s
Sigma Evaluation
Pratt AST evaluation (0.39 µs per rule evaluation in userspace)
840 µs
p99 Ingestion Latency
Kernel-to-userspace delivery over BPF ring buffer
5.2 MB
Steady-State RSS
Daemon memory profile (5.5 MB fully static musl binary)
< 30 µs
GC Eviction Lock
Min-heap process graph eviction latency under memory pressure
16/16 Passed
Test Suite
Full test pass rate across kernel tracepoints in <0.6s
Technical Specification Sheet
ARCArchitectural Overview
Engineering Architecture
Engineered as a high-performance host intrusion telemetry daemon for high-risk Linux installations. Implements a 5-plane separation of concerns (Ingestion, Parsing, Normalization, Provenance, Presentation) to eliminate cross-subsystem locks. The eBPF kernel component streams raw sys_enter_execve and sys_enter_clone tracepoints across a 4 MB BPF_MAP_TYPE_RINGBUF to userspace, where a custom Pratt parser processes Sigma rules in single-digit microseconds without regex catastrophic backtracking. In-flight processes are tracked in a generational directed graph (petgraph StableDiGraph) that prevents PID recycling race conditions, while audit integrity is sealed via an RFC 6962 BLAKE3 transparency tree with Ed25519 quorum signing.
Key Technical Innovations:
- ›Cleared college institutional screening for Smart India Hackathon (SIH 2026, NTRO problem statement SIH26156).
- ›Eliminated PID reuse collisions by indexing nodes on (PID, start_time_ns) composite keys.
- ›Achieved 13,247 EPS per CPU core while maintaining steady-state RSS under 5.2 MB.
VFDGround-Truth Verification
Empirical Test Record
Hardware-verified on local test bench under QEMU and bare-metal Ubuntu 24.04 kernel 6.8+.
SRCSource & Artifacts
PLN5-Plane System Architecture
INGESTION
eBPF tracepoints on sys_enter_execve with null-delimited argv walker. 4 MB BPF_MAP_TYPE_RINGBUF delivers sustained high-throughput event capture without stack overflow.
PARSING
Pratt Top-Down Operator Precedence parser converts Sigma detection rules into optimized ASTs, evaluating expressions efficiently in userspace.
NORMALIZATION
Generational process graph using petgraph StableDiGraph. ProcessKey combining PID and start_time_ns eliminates PID recycling collisions.
PROVENANCE
RFC 6962 transparency log structure using BLAKE3 hashing. Logarithmic audit paths with Ed25519 multi-signature consensus.
PRESENTATION
Terminal interface built with Ratatui featuring process trees and an event inspector. Two-phase containment via pidfd_send_signal.