Aayush Bankar
S–01

High-Throughput Log & Detection Engine

Systems & Low-Level

SIH 2026 National Screening

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.

Architectural Plate // SPECTRE-PRISMHardware Telemetry & Dataflow
SPECTRE-PRISM Visual Architectural Plate
01

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

02

Technical Specification Sheet

Language & RuntimeRust 1.80+ (musl static binary) / eBPF (CO-RE, libbpf-rs)
Kernel InterfaceBPF_MAP_TYPE_RINGBUF (4 MB zero-copy ring buffer)
Tracepoints Auditedsys_enter_execve, sys_enter_clone, sys_enter_connect, sys_enter_socket
Rule Parsing EnginePratt Top-Down Operator Precedence Parser (Sigma YAML AST)
Process Graph ArchitectureGenerational petgraph StableDiGraph with PID + start_time_ns keying
Audit Ledger StructureRFC 6962 Verifiable Merkle Tree using BLAKE3 hashes
Consensus & SignaturesEd25519 m-of-n multi-signature audit quorum
Active ContainmentTwo-phase signal isolation: SIGSTOP freeze -> SIGKILL termination
Daemon Memory Budget5.2 MB steady-state RSS under 13,000+ EPS live load

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+.

RusteBPFlibbpf-rsBLAKE3Ed25519RatatuiLinux Kernel

PLN5-Plane System Architecture

P1

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.

P2

PARSING

Pratt Top-Down Operator Precedence parser converts Sigma detection rules into optimized ASTs, evaluating expressions efficiently in userspace.

P3

NORMALIZATION

Generational process graph using petgraph StableDiGraph. ProcessKey combining PID and start_time_ns eliminates PID recycling collisions.

P4

PROVENANCE

RFC 6962 transparency log structure using BLAKE3 hashing. Logarithmic audit paths with Ed25519 multi-signature consensus.

P5

PRESENTATION

Terminal interface built with Ratatui featuring process trees and an event inspector. Two-phase containment via pidfd_send_signal.