Skip to content

aman-sharma-dev/netsentryx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NetSentryx PRO πŸ›‘οΈ

Production-Grade Real-Time Network Observability & Threat Detection

NetSentryx PRO is a high-performance, event-driven network monitoring system built with Python. It provides real-time visibility into network traffic, anomaly detection, and structured alerting through a modern SaaS-style dashboard.

⚠️ Status: v0.1-alpha (Active Development)
This project is functional but still evolving. Expect breaking changes and ongoing architectural improvements.


πŸš€ Key Features

  • ⚑ Event-Driven Architecture Internal lightweight event bus for decoupled processing.

  • πŸ“‘ Real-Time Dashboard Live updates via WebSockets for alerts, flows, and logs.

  • 🌊 Flow-Based Network Analysis Aggregates packets into flows with behavioral metrics.

  • 🧠 Rule-Based Detection Engine Detects anomalies like:

    • traffic spikes
    • scanning behavior
    • flood attempts
  • πŸͺ΅ Structured Logging System SQLite-backed logs with UTC timestamps.

  • πŸŽ›οΈ SaaS-Style UI Dark-themed observability dashboard inspired by Datadog-style layouts.


πŸ—οΈ Architecture Overview


[ Packet Capture / Simulator ]
↓
(EVENT BUS)
↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Flow Processor              β”‚
β”‚ Alert Engine                β”‚
β”‚ Log Manager                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
↓
(EVENT STREAM)
↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Database (SQLite)           β”‚
β”‚ WebSocket Broadcast Layer   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
↓
[ FastAPI Dashboard UI ]


πŸ“ Project Structure


src/
β”œβ”€β”€ core/          # Time utils, config, logging
β”œβ”€β”€ events/        # Event bus system
β”œβ”€β”€ flows/         # Flow aggregation engine
β”œβ”€β”€ alerts/        # Detection + alert manager
β”œβ”€β”€ database/      # SQLAlchemy models + DB layer
β”œβ”€β”€ dashboard/     # FastAPI + Web UI + WebSockets
β”œβ”€β”€ utils/         # Simulation + helpers


πŸš€ Getting Started

🧰 Prerequisites

  • Python 3.10+
  • (Optional for live capture)
    • Windows: Npcap
    • Linux: libpcap-dev

πŸ“¦ Installation (Recommended: UV)

1. Create virtual environment

uv venv

2. Activate environment

Windows

.venv\Scripts\activate

Linux/Mac

source .venv/bin/activate

3. Install dependencies

uv pip install -r requirements.txt

▢️ Run the Project

πŸ§ͺ Simulation Mode (Recommended)

uv run python main.py --simulate

🌐 Live Mode

uv run python main.py

🌍 Dashboard Access

http://localhost:8000

Dashboard Alert Management


βš™οΈ Configuration

config/config.yaml

  • Network interface settings
  • Dashboard port
  • Storage paths

config/rules.yaml

  • Enable/disable detection rules

  • Adjust thresholds for:

    • traffic spikes
    • connection floods
    • anomalies

🧠 Current Limitations (Alpha Stage)

  • Occasional UI refresh inconsistencies
  • SQLite used (not scalable yet)
  • Limited authentication/security layer
  • Some internal type inconsistencies under refactor
  • Event pipeline still evolving

🧭 Roadmap

v0.2 (Next)

  • Full WebSocket-only data flow (remove polling APIs)
  • Improved alert deduplication system
  • Better flow correlation engine

v0.3

  • PostgreSQL support
  • Multi-node event processing
  • Rule plugin system

v1.0

  • Production-ready SOC observability platform
  • SaaS-style multi-tenant dashboard
  • Role-based access control

🀝 Contributing

We welcome contributions.

How to contribute:

git checkout -b feature/your-feature
uv run python main.py
  • Ensure no breaking changes in API responses
  • Keep outputs JSON-safe
  • Follow UTC time standard across system

🧩 Good First Issues

  • Improve alert deduplication logic
  • Add pagination to logs API
  • Enhance WebSocket reconnection handling
  • UI improvements (dashboard cards + charts)
  • Improve flow aggregation accuracy

πŸ›‘οΈ License

MIT License β€” feel free to use, modify, and contribute.


πŸš€ Vision

NetSentryx aims to become:

A lightweight, self-hosted SOC observability platform for developers, security engineers, and small teams.


πŸ“Œ Version

v0.1-alpha

About

NetSentryx PRO is a real-time, event-driven network monitoring and threat detection system with a SaaS-style live dashboard, flow analytics, and alert engine.

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages