Host agents: the security model

The feature was designed so that the new listener is as small a risk as possible. What follows is what Netlens does, and what it deliberately does not do.

Principle How it is done
Outbound only from the host Netlens never connects to a host, never answers with a command, setting or update. A compromised Netlens cannot use this channel to reach the hosts.
Off by default, licence-gated Nothing listens until an administrator switches it on (and has the Enterprise edition or trial). Switching it off closes both ports.
Identity from the certificate, never from the data Who sent a request is decided by the client certificate, looked up on every request (so revoking works on open connections too). The host name inside the data is ignored for an agent linked to one device.
No anonymous access to any parser The readings port requires a client certificate (mutual TLS, TLS 1.2 or newer). Without one the handshake fails and nothing is read.
Short-lived, per-host certificates A certificate made by Netlens is valid 30 days, belongs to one agent and can be revoked at once. The private key is made on the host and never exists on Netlens.
A dedicated CA The CA that signs agent certificates is used for nothing else (not for the SSH CA of the host probes). It signs only client-authentication certificates. Its key is stored encrypted like the other secrets.
One-time, short enrolment A token works once, ends after 24 hours, is stored only as a hash and is shown once. The enrolment port is open only during a window (5 to 240 minutes) that you start. Every refusal gets the same generic answer; attempts are rate limited.
The request cannot choose the certificate Netlens builds the certificate from the public key only. The subject, extensions and validity in the request are ignored. Only strong keys are accepted (EC P-256/384/521, Ed25519, RSA from 3072 bits).
Accept as little as possible JSON only (no protobuf or gRPC). Only a short allow-list of numeric metrics is used; everything else is ignored. Every label is limited to 40 safe characters; numbers must be plausible; timestamps must be within the last day or five minutes ahead.
Nothing the sender writes is stored or shown Names of hosts, devices, mounts and so on come from Netlens or from a strict alphabet. Free text from a sender never reaches the database, a screen, an alert or the AI, so it cannot be used to manipulate them.
Hard limits 1 MiB per request (also after decompression: a gzip bomb is refused), nesting depth, 2000 data points and 200 hosts per request, request rate per agent, 4 connections per agent and 64 in all, timeouts for slow clients.
Audit and events Switching on and off, enrolment windows, tokens, certificates issued/renewed/revoked and every refusal go to the audit log (and to your SIEM through log forwarding). Repeated refusals from one address are written once a minute so a flood cannot flood the log.
Can not be driven by an assistant The settings, tokens and certificates are for administrators on the local network only; an AI assistant token can never use them (it can read the status).
Keys stay out of reach The CA key and the server key are encrypted in the database and never returned by the API.

Threats considered

Threat Effect What limits it
Stolen client key false readings for that one host 30-day certificates, revoke at once, the key stays on the host with restricted rights
Leaked enrolment token an attacker enrols as that host works once, 24 h, window needed; the real host’s own enrolment then fails visibly and the agent shows “enrolled”
Compromised host false readings for itself only identity-bound, allow-list, limits; no way to other hosts or into Netlens
Compromised Netlens cannot push anything to the hosts there is no channel back
Anonymous probing or flooding tries to exhaust the listener mutual TLS before any parsing, connection caps, timeouts, separate ports so the web interface is not affected
Hostile or malformed data parser crash, memory use JSON only, size/depth/point limits, decompression cap, type-safe parsing, fuzz-tested
Prompt injection through data the AI is manipulated no free text from a sender is accepted at all
A proxy that terminates TLS the client certificate is lost do not put an HTTP proxy in front; use TCP passthrough (below)

What Netlens does not do (limits you should know)

  • A certificate from your own CA is not checked against a revocation list; revoke the agent in Netlens instead (the record is what is checked on each request).
  • A client that fails the TLS handshake (wrong CA, expired certificate) is rejected by the TLS layer and not logged one by one; a known agent that stops this way shows up as silent and, before that, as certificate ending.
  • Strict X.509 validation (X509_STRICT) is not enforced, so certificates from older enterprise CAs work.
  • The password-less private keys of the hosts are protected by file permissions only; use the rights shown in the examples.