Repository navigation
Security and Privacy
alwkala edited this page Oct 6, 2026
·
1 revision
NETWATCH is engineered with strict, sovereign local-first boundaries.
- Network Topology Sovereign: IP addresses, MAC mappings, hostnames, and Wi-Fi SSIDs never leave the host system.
-
Air-Gapped OUI Database: Embedded IEEE OUI database (
internal/oui/ieee-oui.txt) provides offline hardware vendor identification without cloud queries. -
Automated CI Enforcement: A dedicated CI test (
TestZeroEgressInvariant) parses Go ASTs and frontend bundles on every commit, failing immediately if anynet/httpclient dialer or external CDN stylesheet/script is introduced.
The Go engine exposes a local REST and SSE API bound strictly to 127.0.0.1:
- Ephemeral Port Binding: Binds to a randomly chosen local port at startup.
-
192-Bit Session Bearer Token: Generates a cryptographically random Bearer token on launch (
crypto/rand). Requests missing or having invalid tokens receive401 Unauthorized. -
Anti-DNS Rebinding: Rejects any request where the
Hostheader is not127.0.0.1:<port>orlocalhost:<port>. - Origin Validation: Strict Origin header allow-listing ensures local browser tabs cannot bridge to the engine.
-
LAN String Sanitization: Hostnames, mDNS records, and NetBIOS labels pass through
SanitizeLANStringto strip control characters, ANSI escape codes, and Unicode Bidi override runes. -
CSV Formula Injection Defense: Any exported data fields beginning with
=,+,-, or@are safely escaped to prevent spreadsheet execution vulnerabilities (CWE-1236).
NETWATCH — Local Network Intelligence & Asset Ledger • Engineered by Alwkala