# NetSentry-IoT — Technical Report

**28 November 2026** · Helveticore OÜ (Tallinn, Estonia)

*NetSentry-IoT: a local, autonomous network probe that inspects IoT traffic, detects malicious
behavior (identity spoofing, denial-of-service) and isolates offenders at the edge — engineered
under a CMMI Level 3 "Defined" process, for NIS2 / GDPR compliance of industrial sensor fleets.*

| | |
| --- | --- |
| **Project** | NetSentry-IoT — Active network cybersecurity probe |
| **Methodology** | CMMI-DEV Level 3 — V-Model · TDD · CBSE |
| **Report scope** | CMMI L3 spec Rev 1.0 + full MVP implementation |
| **Status** | MVP complete and verified; Phase 2 hardening pending |

---

## Abstract

NetSentry-IoT is the third project of the Helveticore strategic triptych. Its MVP implements
the full probe pipeline — `capture → decode → detect → isolate → log` — entirely locally, with
no Cloud signature dependency. Detection is **behavioral** (per-source rate for DoS, identity
stability for spoofing), not signature-based. Verification: **28 tests green**.

## Architecture (all implemented, TDD)

| Component | Role |
| --- | --- |
| `packet-engine` | capture (Scapy live + deterministic replay) + isolation (nftables live + mock) |
| `protocol-inspection` | MQTT + HTTP decoders (fail-fast) → normalized `Observation` |
| `anomaly-detection` | `DosDetector` (sliding window) + `SpoofingDetector` (identity) → `Alert` |
| `reporting` | append-only JSONL `Incident` journal (NIS2/GDPR, metadata-only) |
| `probe` | `Probe.run(capture)` wires decode → detect → isolate → log |
| `attack-simulator` | deterministic traffic + attack generators (replayable scenarios) |

## Compliance (NIS2 / GDPR)

- Incident journal is **append-only JSONL**, one valid JSON object per line.
- **Data minimization**: records metadata only (`kind`, `src`, `rule_id`, timestamps) — never
  a packet payload (enforced by the strict `Incident` model with `extra="forbid"`).
- Traceability via `rule_id = NS-<kind>-<src>` linking the isolation action to the log entry.

## Verification

- **28 tests green** across decode (9), detection (6), replay (3), incident log (4),
  isolation (2), and probe end-to-end (4).
- Deterministic replay + mock path is what the offline suite exercises; the live
  Scapy/nftables backends are documented Phase-2 items (they need a real interface/firewall).

## Known limits (documented, Phase 2)

- Live `ScapyCapture` / `NftIsolation` not exercised offline.
- TCP reassembly of multi-segment messages (per-packet payloads only).
- Zigbee protocol inspection.
- < 5 ms end-to-end benchmark on real hardware.
