Skip to content
Projects

SagarBiswas-MultiHAT/IoT-IDS-Research-Proposals

View on GitHub

About

Behavioral Fingerprinting-Augmented Embedded IDS on Raspberry Pi 4 + ESP32. Detects zero-day attacks by learning per-device traffic profiles using Isolation Forest; no signatures needed. Features distributed MQTT nodes, real-time Flask dashboard, iptables auto-blocking, and GPIO alerts.

Systems & Infrastructure

How these counts are measured

What you can do

  • Optimized libpcap Capture Hot Path: C-based capture thread grabbing frames directly from the Network Interface Card (NIC) in promiscuous mode.
  • Deterministic Rule-Based Detection: Fast-path detection for high-frequency port scans, ICMP floods, and repeated authentication brute-force attempts.
  • Lightweight Statistical Anomaly Checks: Sliding-window EWMA calculations detecting volume surges and payload entropy irregularities.
  • Direct Hardware Alerts: Immediate local notification through GPIO-connected buzzers and LEDs alongside administrative email and Telegram alerts.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

🌐 IoT-IDS-Research-Proposals

Architectural Frameworks, Mathematical Models, and Engineering Specifications for Next-Generation Embedded, Distributed, and Privacy-Preserving IoT Intrusion Detection Systems


Proposals License: CC BY-SA 4.0 Code License: MIT Citation: CFF DOI: Zenodo Research Tracks Hardware Targets Languages ML Paradigms Capture Pipeline Distributed Comms PRs Welcome
Sponsor SagarBiswas-MultiHAT on Polar.sh


Repository Vision • Research Taxonomy • Track 1: Mini-IDS (Baseline) • Track 2: BF-IDS (Distributed Hybrid) • Track 3: PPFL-IoT-IDS (Upcoming) • Hardware Ecosystem • Monorepo Structure • Roadmap • Documentation Index • Support MultiHAT Open-Source • Citation & License


[!IMPORTANT] Research Repository Status: This repository serves as the central research monorepo for advanced Internet of Things (IoT) Intrusion Detection System proposals, containing rigorous architectural blueprints, mathematical threat models, sequence diagrams, and engineering specifications.


🔬 Repository Vision

The explosive proliferation of Internet of Things (IoT) devices across consumer, healthcare, industrial, and smart-city infrastructures has introduced unprecedented cybersecurity vulnerabilities. Conventional Network Intrusion Detection Systems (NIDS) like Snort, Suricata, and Zeek were designed for high-performance servers, making them impractical for resource-constrained edge computing environments. Furthermore, traditional signature-based detection is fundamentally incapable of spotting zero-day exploits or inspecting encrypted (TLS 1.3/QUIC) communication streams.

This repository advances three progressive research paradigms to solve the edge security trilemma: Detection Accuracy vs Resource Constraints vs Data Privacy:

  1. Mini-IDS (Generation 1 - Baseline): Single-node embedded IDS optimizing low-latency C/libpcap capture and deterministic rule-based defenses on a Raspberry Pi 4.
  2. BF-IDS (Generation 2 - Distributed Hybrid): Integrates per-device unsupervised machine learning (Isolation Forest) with cheap distributed ESP32 edge sniffers to detect zero-day device compromises without decrypting payloads.
  3. PPFL-IoT-IDS (Generation 3 - Decentralized Federated): Upcoming research proposal exploring Privacy-Preserving Federated Learning to enable collaborative cross-network threat modeling without centralizing sensitive private traffic.
                               [ DETECTION ACCURACY ]
                            [ Track 2: BF-IDS (Gen 2) ]
                      (Multi-Engine ML & Distributed Sniffers)
                                         ^
                                       /   \
                                     /       \
                                   /           \
                                 /       *       \
                               /      THE IOT      \
                             /        SECURITY       \
                           /          TRILEMMA         \
                         /                               \
                       /                                   \
                     /                                       \
                   /                                           \
                 <----------------------------------------------->
       [ RESOURCE EFFICIENCY ]                           [ DATA PRIVACY ]
    [ Track 1: Mini-IDS (Gen 1) ]                  [ Track 3: PPFL-IoT-IDS (Gen 3) ]
  (Low-RAM, C Hot Path, Fast Rules)                 (Privacy-Preserving FL Concept)

📊 Research Tracks & Taxonomy

Evaluation Vector Track 1: Mini-IDS (Baseline) Track 2: BF-IDS (Distributed Hybrid) Track 3: PPFL-IoT-IDS (Upcoming)
Research Scope Embedded Real-Time Packet Filtering Distributed Behavioral Fingerprinting Privacy-Preserving Federated Learning
Development Order Generation 1 (Foundational Prototype) Generation 2 (Distributed & ML Evolution) Generation 3 (Decentralized Privacy Frontier)
Architectural Topology Standalone Single-Node Embedded Hub Master Hub (RPi 4) + Satellite Nodes (ESP32) Decentralized Edge Mesh
Detection Methodology Deterministic Rules + Statistical Thresholds Rules + EWMA/Z-Score + Isolation Forest Local Edge Learning + Global Aggregation
Zero-Day Attack Detection Low (Limited to Statistical Spikes) High (Per-Device Anomaly Scoring) -
Data Privacy Guarantees Metadata Flow Abstraction Metadata Flow Abstraction (No DPI) -
Encrypted Payload Analysis Packet Rate and Volume Thresholds Metadata Profiling (Timing/Size/Entropy) -
Target Hardware Platform Raspberry Pi 4 (Stand-Alone) Raspberry Pi 4 + ESP32 Satellite Mesh -
Mitigation Mechanisms Automated iptables Drop + GPIO Alarm Automated iptables Drop + GPIO Alarm -
Specification Document Mini-IDS Personal Proposal BF-IDS Technical Proposal Research Note (In Progress)
Current Status Complete Baseline Specification Complete Architecture & Specifications Formulation in Progress

⚡ Track 1: Mini-IDS (Embedded Baseline Prototype)

Mini-IDS represents the initial foundational prototype (Generation 1) that established the core packet capture, flow extraction, and automated mitigation mechanics for the entire research project.

Core Concept & Implementation

Mini-IDS focuses on maximizing throughput and minimizing resource consumption on a standalone Raspberry Pi 4 without external satellite dependencies.

Mini-IDS Architecture Diagram

Figure 1: Mini-IDS standalone embedded architecture with core processing modules and isolation boundaries.

Key Capabilities

  • Optimized libpcap Capture Hot Path: C-based capture thread grabbing frames directly from the Network Interface Card (NIC) in promiscuous mode.
  • Deterministic Rule-Based Detection: Fast-path detection for high-frequency port scans, ICMP floods, and repeated authentication brute-force attempts.
  • Lightweight Statistical Anomaly Checks: Sliding-window EWMA calculations detecting volume surges and payload entropy irregularities.
  • Direct Hardware Alerts: Immediate local notification through GPIO-connected buzzers and LEDs alongside administrative email and Telegram alerts.
Mini-IDS Sequence Diagram

Figure 2: Mini-IDS real-time packet processing and administrative control sequence.


🛡️ Track 2: BF-IDS (Behavioral Fingerprinting Embedded IDS)

Building directly upon the lessons learned from Mini-IDS, BF-IDS represents the second-generation multi-tiered embedded defense system designed for home, laboratory, and small-enterprise IoT networks.

Core Architecture

BF-IDS System Architecture

Figure 3: Full BF-IDS embedded system architecture illustrating the Raspberry Pi 4 central coordinator, ESP32 satellite sniffers, multi-engine detection layer, and automated mitigation plane.

Key Architectural Highlights

  • Deterministic Zero-Copy Ingestion: Packet capture implemented in C11 using libpcap combined with a lock-free circular ring buffer to safely stream frames to multiprocessing Python workers with zero lock contention.
  • Consensus-Gated Automated Mitigation: Requires dual-detector agreement (such as rule engine plus fingerprint engine) before invoking automated kernel iptables drop rules, protecting against false-positive lockouts.
  • Distributed ESP32 Satellite Sensing: Inexpensive ESP32 microcontrollers perform promiscuous Wi-Fi frame header sniffing and transmit JSON telemetry summaries over MQTT, expanding coverage across multiple network segments.
  • Real-Time Telemetry Dashboard: WebSocket-powered Flask control surface providing streaming bandwidth charts, per-device fingerprint health indicators, and administrative threshold tuning.

Behavioral Fingerprint Engine

Every IoT device possesses a characteristic communication pattern. BF-IDS models this behavior using an eight-dimensional continuous feature vector:

BF-IDS Fingerprint Engine

Figure 4: State machine and analytical lanes of the Behavioral Fingerprint Engine.

The 8-Dimensional Behavioral Feature Vector

  1. avg_packet_size: Mean frame size characterizing device baseline traffic.
  2. packet_size_std: Standard deviation of frame sizes (low for sensors, high for web clients).
  3. protocol_ratio: Relative distribution across TCP, UDP, and ICMP transports.
  4. dominant_destinations: Socket destination entropy identifying normal remote contacts.
  5. inter_arrival_time: Transmission interval timing and jitter patterns.
  6. bytes_per_hour: Volumetric throughput baselines across rolling windows.
  7. sleep_wake_pattern: Circadian active versus quiet intervals based on time of day.
  8. new_dest_rate: Velocity of connection attempts toward previously uncontacted IP addresses.

Operational Sequence Diagrams

BF-IDS Sequence Flow Part 1

Figure 5: Real-time packet ingestion, parallel evaluation, consensus gating, and enforcement flow.


BF-IDS Sequence Flow Part 2

Figure 6: Administrative alert handling, model retraining lifecycle, and ESP32 heartbeat telemetry flow.


🔮 Track 3: PPFL-IoT-IDS (Privacy-Preserving Federated Learning IDS)

Active Research Direction: Conceptual Formulation in Progress

Representing the third generation of our research roadmap, PPFL-IoT-IDS investigates decentralized, collaborative intrusion detection for privacy-sensitive Internet of Things environments.

Core Research Motivation

Isolated intrusion detection deployments face a fundamental trade-off: machine learning models need broad, diverse threat datasets to detect emerging global attacks, but sharing raw packet data across private organizations (smart homes, healthcare facilities, industrial systems) is strictly prohibited by data privacy regulations and proprietary security policies.

Research Vision

  • Decentralized Collaborative Intelligence: Exploring federated learning paradigms where edge devices train local intrusion detection models on their own traffic and only exchange abstracted parameter updates.
  • Privacy-First Model Exchange: Formulating privacy-preserving mechanisms to prevent model inversion or data leakage during collaborative model aggregation.
  • Heterogeneous Edge Scalability: Investigating communication-efficient synchronization tailored to resource-constrained IoT devices with intermittent connectivity.

[!NOTE] Detailed architectural schematics, mathematical formulations, threat models, and experimental evaluation plans for PPFL-IoT-IDS are currently being formulated. Track ongoing progress in the PPFL-IoT-IDS Research Document.


💻 Hardware Testbed & Specifications

The research proposals in this repository are designed for validation on realistic, cost-effective embedded hardware:

Component Target Hardware Specification Role in Research Testbed Est. Cost (USD)
Primary Edge Coordinator Raspberry Pi 4 Model B (4 GB RAM, ARM64) Capture hot path, local ML inference, and dashboard ~$110
Distributed Edge Sniffers ESP32-WROOM-32 DevKit V1 (Dual-Core) Promiscuous 802.11 sniffing and MQTT telemetry bridge ~$11
High-Endurance Storage SanDisk Extreme 32 GB MicroSD (A2, V30) WAL-mode SQLite database, logs, and model storage ~$9
Physical Alarm Peripherals 5V Active Buzzer + High-Intensity Red LEDs Hardware GPIO perimeter notification testbed ~$2
Power Infrastructure 5V 3A USB-C PSU + Micro-B Cable + Heatsinks Sustained thermal management and stable power supply ~$11
Total Estimated Cost Complete Multi-Node Embedded IDS Setup Full Physical Testbed Deployment ~$143

📁 Repository Layout

IoT-IDS-Research-Proposals/
├── README.md                                  # Central research portal and cross-proposal navigation
├── LICENSE                                    # Open-source MIT License (code, scripts, configs)
├── LICENSE-DOCS                               # Creative Commons CC BY-SA 4.0 (proposals, diagrams)
├── CITATION.cff                               # Academic citation metadata for GitHub and Zenodo
│
├── Mini-IDS_Project_Proposal/                 # Track 1: Embedded Baseline Prototype (Generation 1)
│   ├── Mini-IDS_Personal_Project_Proposal.md  # Original personal project proposal text
│   ├── Mini-IDS_Personal_Project_Proposal.pdf # Printable PDF document
│   ├── Mini-IDS_Personal_Project_Proposal.docx# Word version
│   └── assets/
│       ├── Architecture_Diagram.png           # Standalone baseline architecture
│       └── Sequence_Diagram.png               # Standalone baseline sequence flow
│
├── BF-IDS_Project_Proposal/                   # Track 2: Behavioral Fingerprinting Embedded IDS (Generation 2)
│   ├── BF-IDS_Project_Proposal.md             # Complete 600+ line technical proposal
│   └── assets/                                # High-resolution architectural schematics
│       ├── architecture_diagram_new.png
│       ├── fingerprint_engine_diagram_new.png
│       ├── sequence_diagram_part1_new.png
│       └── sequence_diagram_part2_new.png
│
├── PPFL-IoT-IDS_Research_Proposal/            # Track 3: Privacy-Preserving Federated Learning (Generation 3 - In Progress)
│   └── PPFL-IoT-IDS_Research_Proposal.md      # Research proposal draft (in progress)
│
└── .github/
    └── workflows/
        └── ci.yml                             # Automated documentation testing and link verification

🗺️ Unified Research & Implementation Roadmap

[ Phase 1: Baseline Prototype ]  ✅ Mini-IDS single-node architecture and baseline specifications completed
              │
[ Phase 2: Distributed Hybrid ]  ✅ BF-IDS multi-engine architecture, Isolation Forest design, and ESP32 specs completed
              │
[ Phase 3: Core Capture Hot Path]⏳ Low-latency C/libpcap hot path and lock-free ring buffer implementation on RPi 4
              │
[ Phase 4: Decentralized Privacy]🔄 PPFL-IoT-IDS conceptual formulation, threat modeling, and proposal draft
              │
[ Phase 5: Privacy Validation   ]📅 Model evaluation and collaborative communication efficiency benchmarking
              │
[ Phase 6: Multi-Node Benchmark ]📅 Physical multi-node deployment, latency profiling, and academic dataset evaluations

📖 Documentation Index

Research Document Format Description Quick Link
Mini-IDS Proposal Document Markdown Single-node baseline proposal (Generation 1) Read Proposal
Mini-IDS Printable PDF PDF Document Formatted printable submission Open PDF
BF-IDS Technical Proposal Markdown Complete multi-engine and distributed design (Generation 2) Read Proposal
BF-IDS Visual Assets PNG Schematics High-resolution architectural diagrams View Assets
PPFL-IoT-IDS Research Note Markdown Conceptual formulation (Generation 3) Read Draft

💙 Support MultiHAT Open-Source

If you find this project useful in your workflow, development, or security research, consider supporting SagarBiswas-MultiHAT in its ongoing maintenance and future updates (supports both One-Time and Monthly backing):

Support on Polar.sh Portfolio Agency


🤝 Contributing

We welcome discussions, reviews, and collaborative research contributions from embedded systems engineers, machine learning specialists, and cybersecurity researchers.

  1. Fork the Repository (git checkout -b feature/ResearchImprovement).
  2. Commit your contributions (git commit -m "docs: Refine research proposal").
  3. Push to your branch (git push origin feature/ResearchImprovement).
  4. Submit a Pull Request describing your research enhancements.

⚖️ Citation, License & Academic Integrity

This repository contains original cybersecurity and embedded systems research proposals authored by Sagar Biswas (@SagarBiswas-MultiHAT). All commits and publication dates are cryptographically timestamped in git to establish verifiable prior art.

Dual-Licensing Architecture

To simultaneously support open academic dissemination, protect against uncredited intellectual property theft, and ensure permissive reuse for companion software, this repository uses a dual-licensing model:

  • Research Proposals, Methodologies, System Models & Diagrams: Licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0). Any sharing, adaptation, translation, or inclusion in academic papers, theses, or commercial frameworks requires prominent attribution, a direct backlink to this repository, and redistribution of derivative works under the identical CC BY-SA 4.0 license.
  • Simulation Scripts, Configurations & Companion Code: Licensed under the MIT License. Any companion proof-of-concept scripts, packet parsers, or hardware test configurations are covered under permissive MIT terms with a standard liability disclaimer.

How to Cite This Work

If you reference, build upon, or implement any architecture, threat model, or methodology proposed in this repository for an academic thesis, peer-reviewed paper, grant application, or technical publication, formal citation is legally and ethically mandatory under CC BY-SA 4.0 Section 3(a):

1. Instant One-Click Citation (GitHub Native)

Click the "Cite this repository" button in the right-hand sidebar of this repository to export BibTeX or APA citation formats generated directly from our root CITATION.cff file.

2. BibTeX Format

@misc{biswas2026iotids,
  author       = {Biswas, Sagar},
  title        = {IoT-IDS-Research-Proposals: Architectural & Methodological Proposals for Next-Generation IoT Intrusion Detection Systems},
  year         = {2026},
  month        = {2},
  publisher    = {GitHub},
  journal      = {GitHub repository},
  howpublished = {\url{https://github.com/SagarBiswas-MultiHAT/IoT-IDS-Research-Proposals}},
  note         = {Licensed under CC BY-SA 4.0 (Proposals) and MIT (Code)}
}

3. APA / Academic Text Format

Biswas, S. (2026). IoT-IDS-Research-Proposals: Architectural & Methodological Proposals for Next-Generation IoT Intrusion Detection Systems. GitHub repository: https://github.com/SagarBiswas-MultiHAT/IoT-IDS-Research-Proposals

[!WARNING] Anti-Plagiarism & Academic Misconduct Notice: Cloning this repository, removing author attribution, or submitting these research proposals, threat models, mathematical formulations, or architectural diagrams as your own uncredited work to university committees, conferences (e.g., IEEE, ACM), journals, or commercial publications constitutes a direct violation of international copyright law (CC BY-SA 4.0 Section 3a) and academic integrity codes. Violations will result in immediate DMCA takedown filings, public notice of infringement, and formal complaints submitted to the relevant university ethics committees, department heads, and publisher review boards.

Permanent Archival & Zenodo DOI Integration

This repository is pre-configured for permanent academic indexing via Zenodo (backed by CERN and OpenAIRE):

  1. Log in to Zenodo using your GitHub account and enable the toggle for IoT-IDS-Research-Proposals.
  2. Create a tagged release (such as v1.0.0) on GitHub.
  3. Zenodo automatically captures an immutable archive snapshot of the repository and mints a permanent Digital Object Identifier (DOI).
  4. The minted DOI ensures permanent citation indexing in global scientific catalogs (Google Scholar, CrossRef, OpenAIRE) and provides an unbreakable cryptographic guarantee of research priority.

Lead Researcher: Sagar Biswas

Supervised by _______.

Department of Computer Science and Engineering


⭐ If you find these IoT security architectures and research proposals valuable, please star this repository!

Explore related projects

Loading…