Install the agent only on devices whose owner or authorized administrator has approved management. The agent must remain visible, have a clear service identity if a service is later added, and provide a legitimate authenticated recovery and uninstall path. It must not hide itself, collect page contents, credentials, cookies, or form data, or prevent an authorized owner from repairing the system.
The current code includes a loopback proxy. The Modern agent sets the current user WinINET system proxy while management is enabled and restores the previous settings on pause/exit. To render the block page for denied HTTPS it installs a local root CA (CN=NetWard Local CA, private key in %LOCALAPPDATA%\WebBlocker\https-ca.pfx) and terminates TLS only for blocked hosts. Allowed HTTPS is tunneled without decryption. Local processes can connect to the proxy; this is not a multi-user authenticated boundary.
The local database uses ordinary inherited Windows user-profile ACLs. It is not tamper-evident. HTTP events store the complete requested URL. Blocked HTTPS request headers are read in memory to serve the block page, but the encrypted path/query is not stored. Allowed HTTPS is not decrypted. The proxy does not record the client device IP address or interactive Windows username.
The initial WinForms policy manager has no login or privilege separation and uses the same local database as the proxy. It is a convenience UI for local authorized testing, not a secured administrator console. Any local account with database access can change policy; the UI cannot update policy already loaded in a running proxy. Its log view only displays proxy events and must not be interpreted as a complete record of device web activity.
Timed-access windows persist a category's first-use and expiry timestamps by local calendar date. They measure a fixed wall-clock window, not foreground-tab time. Enforcement applies to proxied traffic; blocked HTTPS is TLS-terminated locally to show timeout.html, while allowed HTTPS tunnels are untouched.
There is currently no administrator authentication, device pairing, authenticated management transport, privileged policy protection, remote audit log, Windows service, or anti-tamper mechanism.
- First-run administrator-account setup; no source-controlled default credentials.
- Password hashes using a contemporary password-hashing implementation and per-account salts; rate limits and generic, non-secret-bearing logs.
- Initial pairing code with cryptographic randomness, short expiry, attempt throttling, single-use rotation, and no plaintext logging.
- TLS with authenticated device identity and explicit certificate validation; pairing codes are not long-term keys.
- Versioned messages, unique request IDs, replay/idempotency handling, and authorization checks at the service boundary.
- Per-device policy isolation, transactional persistence, and audit records for policy, authorization, registration, and recovery changes.
- Local policy integrity checks and least-privilege file/service permissions; local administrators remain capable of recovery.
- Bounded retry/backoff, explicit health reporting, and a tested recovery mode.
These are design requirements, not implemented controls.
The Modern endpoint listens on 0.0.0.0:18770 while it runs. This is a network exposure change
compared with the loopback-only proxy, and it is limited to devices on the same network that can reach
that port.
- Transport is TLS 1.2 with mutual certificate authentication. Each device creates a self-signed RSA-2048 certificate on first run; there is no certificate authority.
- Trust is established only by pairing: the administrator pins the endpoint's certificate thumbprint and
the endpoint pins the administrator's. A changed certificate is rejected (
unauthorized). - The six-digit pairing code is valid for 10 minutes, is consumed by one successful pairing, and locks after five wrong attempts. It is an enrolment secret, not a long-term key.
- An active man-in-the-middle during the first pairing could relay the code and present its own certificate. The protocol makes that visible by returning both a thumbprint and a short fingerprint, and the administrator screen shows the endpoint fingerprint after pairing; comparing the two screens is the only defense and is not automated. Do not pair over an untrusted network.
- Certificate private keys are stored unencrypted in the user profile
(
%LOCALAPPDATA%\WebBlocker\lan\{agent,admin}\identity.pfx), in the same risk class ashttps-ca.pfx. Any process running as that user can read them. - There is no administrator password or role model: possession of the administrator device profile is the credential. Anyone who can run the administrator application on that profile can push policy to every paired endpoint and read the synchronized audit records.
- No firewall rule is created automatically (that would require elevation). The operator must allow the application through Windows Firewall for inbound TCP 18770, or pairing and all later sessions fail.
- The listener is not a multi-user boundary: local processes can connect to it, although they still need a paired client certificate to do anything.
Planned before this link is used outside an authorized test lab: administrator account authentication, protocol version negotiation, audited revocation, replay protection beyond request-id deduplication, and a compatibility matrix for mixed Legacy/Modern pairing.
The proxy is a user-mode path. The Modern agent explicitly configures the current user system proxy and a local CA; applications can still bypass it (direct sockets, other proxies, VPN, DoH, QUIC). Do not add WFP drivers, firewall rules, DNS/hosts changes, or machine-wide policies without a separately reviewed plan and explicit authorization.
HTTPS interception is deliberately limited to hosts the policy already blocks. The local CA private key can sign any certificate and must be treated as a high-value secret: it is stored unprotected in the current user profile, so any process running as that user can read it. Use only on authorized test devices; remove the CA and pfx when finished.