Security notes

  • Access token required (cookie HttpOnly, SameSite=Strict, Secure behind HTTPS)
  • Login rate limit: 5 wrong attempts a minute per client address and 20 per quarter hour per user name. Behind a reverse proxy set NETLENS_TRUSTED_PROXIES, otherwise all visitors share the proxy’s address
  • The API documentation pages and the version number are hidden from visitors who are not logged in; HSTS is sent over HTTPS
  • No TLS built in — put behind a reverse proxy with HTTPS
  • X-Forwarded-Proto must be set
  • WebSocket upgrade must be forwarded
  • Runs as non-root with file capabilities on nmap
  • Only NET_RAW and NET_ADMIN capabilities
  • Host networking
  • Read-only root filesystem
  • Security headers and CSP
  • If you do open it to the internet: HTTPS through the proxy, a long random access token and passwords, NETLENS_TRUSTED_PROXIES set, the terminal left on its default (direct local connections only), and ideally an extra layer in front (an access list or VPN in the proxy, or an authenticating proxy)
  • Scanning only private ranges
  • Treat the token like a root password because the terminal can reach devices