Snapshot of projects/netsentry-iot/requirements/REQ.md — 28 Nov 2026
NetSentry-IoT — Requirements Specification (RDM)
Project instance ofprocess/templates/requirements-specification.md— CMMI-DEV v2.0, Level 3 (Defined). This document formalizes the foreseenREQ-N1..N6into a tiered, measurable baseline. Revision 1.0 applies a deliberate de-escalation: a right-sized MVP (Phase 1) plus a Phase 2 hardening backlog.
0. Document control
- Status: Approved — MVP (Phase 1) baseline frozen; Phase 2 backlog tracked, not blocking.
- Revision: 1.0
- Traceability: bidirectional matrix in
requirements/RTM.md. - Change control: any change to a frozen acceptance criterion is a DAR decision.
Convergence freeze rule (anti-hysteresis)
Once this MVP baseline is frozen, no review may add a new Mandatory requirement. Any new finding is recorded as Desirable / Phase 2 — except a blocking security flaw or a factual correctness error, which may update a Mandatory criterion via a DAR decision.
Tiers
- Mandatory (M) — required for the MVP (Phase 1); forms the frozen baseline.
- Desirable (D) — Phase 2 hardening; documented, traceable, non-blocking for the MVP.
1. Purpose and scope
NetSentry-IoT is a local, autonomous network probe that inspects IoT traffic, detects malicious behavior (identity spoofing, denial-of-service) and isolates offenders at the edge, in < 5 ms, without depending on a Cloud-hosted signature database. It provides the evidence and reports required for NIS2 and GDPR compliance of distributed industrial sensor fleets.
MVP (Phase 1) baseline:
- Packet capture on a single Ethernet interface (BPF-filterable).
- Protocol inspection of the two most common IoT layers: MQTT and HTTP.
- Behavioral detection of identity spoofing and denial-of-service.
- Isolation (drop / alarm) on the fast path, < 5 ms end-to-end.
- Local detection only (no Cloud signature dependency).
- NIS2/GDPR-aligned logging (traceability, data minimization).
- A replayable attack simulator to validate the probe.
2. Requirements
Conventions: ID = unique identifier. Tier ∈ {Mandatory (M), Desirable (D)}. Type ∈ {Functional, Performance, Security, Compliance, Robustness, Verification}.
Functional requirements
REQ-NET-FUNC-001 — Packet capture (interface + BPF filter) — Functional · M Capture live traffic on a configurable interface with a BPF filter to bound the workload.
- Acceptance: captures ≥ 99 % of frames at 100 Mb/s line rate with a BPF filter applied; drops are counted and reported; no packet loss on the 100 MbE reference load.
REQ-NET-FUNC-002 — MQTT protocol inspection — Functional · M Decode MQTT CONNECT/PUBLISH/SUBSCRIBE (topic, QoS, retain, client-id, payload length).
- Acceptance: bit-exact field extraction on the replayed MQTT corpus (unit tests); malformed
MQTT is quarantined as
CorruptedPayloadError, never crashes the probe.
REQ-NET-FUNC-003 — HTTP protocol inspection — Functional · M Decode HTTP method, URI, Host, status and Content-Length.
- Acceptance: bit-exact field extraction on the replayed HTTP corpus; malformed HTTP is quarantined, never crashes the probe.
REQ-NET-FUNC-004 — Local behavioral detection (spoofing + DoS) — Functional · M Detect identity spoofing (e.g. unexpected client-id / source-identity change) and denial-of-service (flood / connection-rate anomalies) from local baselines and thresholds.
- Acceptance: on the attack-simulator scenarios, detection recall ≥ 95 % and precision ≥ 90 % (measured, not claimed).
REQ-NET-FUNC-005 — Fast-path isolation action — Functional · M On detection, apply an isolation action (drop / alarm) without a Cloud round-trip.
- Acceptance: the action is applied by a local mechanism (firewall rule / switch of an output); the decision-to-action path is fully local.
REQ-NET-FUNC-006 — Zigbee frame inspection — Functional · D (Phase 2) Decode Zigbee network/APS frames (requires a radio capture front-end).
- Acceptance (Phase 2): field extraction on replayed Zigbee captures.
Performance requirements
REQ-NET-PERF-001 — Detection + isolation < 5 ms — Performance · M Malicious packet detection and isolation completes in < 5 ms at the edge.
- Acceptance: p95 and p99 latency of
capture → decide → act< 5 ms on the reference load, measured and archived inperformance/.
REQ-NET-PERF-002 — Bounded probe footprint — Performance · M The probe must not starve the host it protects.
- Acceptance: steady-state CPU < 10 % of one core and RSS < 256 MiB on the reference load.
Security & compliance requirements
REQ-NET-SEC-001 — No Cloud signature dependency — Security · M Detection uses local rules/baselines only.
- Acceptance: the probe functions fully with the WAN link severed (tested); no runtime lookup to an external signature service.
REQ-NET-COM-002 — NIS2-aligned incident logging — Compliance · M Every detection produces a traceable, timestamped incident record.
- Acceptance: each incident has (timestamp, source identity, rule id, action, evidence reference); records are append-only and replayable for audit.
REQ-NET-COM-003 — GDPR data minimization — Compliance · M Payloads are not stored by default; only metadata needed for detection/audit is retained.
- Acceptance: default retention stores no packet payloads; retained metadata is documented and bounded (count, retention window).
REQ-NET-SEC-004 — Encrypted-traffic limitation documented — Security · D (Phase 2) Detection on encrypted (TLS) payloads is limited to metadata; this is a documented limitation.
- Acceptance (Phase 2): the limitation is stated in the operator documentation and the probe degrades gracefully (metadata-only analysis).
Robustness requirements
REQ-NET-ROB-001 — False-positive control — Robustness · M Thresholds are tunable and calibrated against a clean baseline to bound false positives.
- Acceptance: on the clean replayed baseline, false-positive rate is measurable and configurable; threshold changes are versioned and traceable.
REQ-NET-ROB-002 — Graceful degradation on malformed traffic — Robustness · M Malformed/truncated packets are quarantined, not fatal.
- Acceptance: fuzzed captures (1 000 malformed packets) produce zero crashes; quarantine count is reported.
Verification requirements
REQ-NET-VV-001 — Replayable attack simulator — Verification · M Generate and replay deterministic attack scenarios to evaluate the probe.
- Acceptance: scenarios (spoofing, DoS, clean baseline) are reproducible from committed captures or generators; results are deterministic across runs.
REQ-NET-VV-002 — Latency & detection metrics archived — Verification · M Detection latency, recall, precision and false-positive rate are measured and archived.
- Acceptance: metrics land in
performance/and are tied to the RTM.
2.1 Phase 2 hardening backlog (Desirable, non-blocking)
| Deferred item | Source req. | Phase 2 target |
|---|---|---|
| Zigbee frame inspection | FUNC-006 | field extraction on radio captures |
| Encrypted-traffic handling | SEC-004 | documented metadata-only limitation |
| Behavioral machine-learning / local learning | FUNC-004 | lower false positives on adaptive baselines |
| Distributed fleet coordination | — | probe-to-probe rule sharing |
3. Industrial constraints
- Latency: < 5 ms fast path — no blocking I/O on the decision path.
- Footprint: bounded CPU/RAM (edge device, shared with the gateway).
- Standards: NIS2 (incident traceability), GDPR (minimization), IEC 62443 alignment.
- Environment: Ethernet-attached industrial LAN; deployment via the EdgeStream-GW device.
4. Out of scope
- Replacing a full NGFW/IDS — NetSentry-IoT is a targeted IoT probe, not a general firewall.
- TLS decryption (MITM) — see SEC-004.
- Cloud-side correlation / SIEM — local detection only (SIEM export is a Phase-2 integration).
- Hardware packet acceleration (FPGA fast path) — software MVP first.
5. Mapping from the foreseen list (REQ-N1..N6)
| Foreseen | New requirement(s) |
|---|---|
| REQ-N1 (MQTT/HTTP/Zigbee) | REQ-NET-FUNC-002, FUNC-003, FUNC-006 |
| REQ-N2 (spoofing + DoS) | REQ-NET-FUNC-004 |
| REQ-N3 (< 5 ms) | REQ-NET-PERF-001 |
| REQ-N4 (no Cloud signature) | REQ-NET-SEC-001 |
| REQ-N5 (NIS2/GDPR logging) | REQ-NET-COM-002, COM-003 |
| REQ-N6 (attack simulator) | REQ-NET-VV-001 |
Source: raw markdown — published as-is from the source repository.