SourceStalecollected in 1m

Guardd: Isolation Forest Linux Anomaly Detection

PostLinkedIn
🤖Read original on Reddit r/MachineLearning
#anomaly-detection#endpoint-security#unsupervised-mlguarddguarddisolation-forestebpf

💡Open-source ML + eBPF for Linux endpoint anomaly detection; fix false positives.

⚡ 30-Second TL;DR

What Changed

Uses Isolation Forest for unsupervised anomaly detection on Linux endpoints.

Why It Matters

This open-source project democratizes ML-based endpoint security for Linux, potentially reducing reliance on commercial EDR tools. Community feedback could enhance robustness against noisy normal behaviors.

What To Do Next

Clone https://github.com/benny-e/guardd.git and train on your Linux host's baseline events.

Who should care:Researchers & Academics

Key Points

  • Uses Isolation Forest for unsupervised anomaly detection on Linux endpoints.
  • Aggregates eBPF exec/network events into 60s windows with features like counts, unique entities, parent-child patterns.
  • Tracks new vs baseline behaviors; threshold from training score percentile.
  • Challenges include browser-induced false positives; plans time-based features and better normalization.

🧠 Deep Insight

AI-generated analysis for this event — not the original article.

🔑 Enhanced Key Takeaways

  • Guardd leverages the libbpf-go library to interface with eBPF programs, allowing for low-overhead kernel-level event capture without requiring custom kernel modules.
  • The system utilizes a sliding window approach for feature engineering, specifically targeting high-cardinality categorical data by hashing process names and network ports into fixed-size feature vectors.
  • The project architecture separates the data collection agent from the inference engine, enabling the potential for centralized anomaly scoring across multiple Linux nodes.
📊 Competitor Analysis▸ Show
FeatureGuarddFalcoOsquery + ML
Detection MethodUnsupervised (Isolation Forest)Rule-based (eBPF)Query-based (SQL)
PricingOpen Source (MIT)Open Source (Apache 2.0)Open Source (Apache 2.0)
BenchmarksLow latency, high false positive rateDeterministic, zero false positivesHigh latency, manual analysis

🛠️ Technical Deep Dive

  • Model Architecture: Implements an Isolation Forest algorithm using the scikit-learn framework for offline training, with serialized model weights loaded into the Go-based inference engine.
  • eBPF Integration: Uses kprobes and tracepoints to hook into sys_execve and network socket syscalls, streaming data via perf buffers to user-space.
  • Feature Engineering: Converts raw event streams into 60-second temporal buckets, calculating entropy-based features for process execution frequency and network connection diversity.
  • Normalization: Employs Z-score normalization on numerical features (e.g., packet counts) to mitigate the impact of outliers during the training phase.

🔮 Future ImplicationsAI analysis grounded in cited sources

Guardd will integrate with Prometheus for real-time alerting.
The project roadmap indicates a shift toward standardizing observability metrics to reduce the manual overhead of monitoring anomaly scores.
The project will adopt federated learning to improve model accuracy.
The developers have expressed interest in sharing anonymized model weights across deployments to reduce false positives caused by common browser-based noise.

Timeline

2025-11
Initial commit of Guardd repository on GitHub.
2026-02
Release of v0.1.0 featuring basic eBPF execve monitoring.
2026-04
Public discussion initiated on r/MachineLearning regarding Isolation Forest performance.
📰

Weekly AI Recap

Read this week's curated digest of top AI events →

👉Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/MachineLearning

This is a summary, not the original. Read the source, or get the weekly briefing.

The weekly digest

One email a week. Unsubscribe anytime.