Skip to content

Security: GitTimeraider/Looking-Glass

Security

docs/security.md

Security notes

← Back to the README

How logins, secrets and the AI analyst are protected, and how to run Looking Glass safely.

Security notes

  • Login = password (scrypt-hashed) + mandatory TOTP or passkey; failed logins are rate limited per IP and logged. Password changes and resets invalidate all other sessions.
  • Put Looking Glass on your LAN / management network; don't expose port 8080 to the internet (use a VPN or a reverse proxy with TLS if you need remote access).
  • The setup code and the reset code only appear in the container log, so setting up a fresh instance or resetting a login requires access to the Docker host. Until the wizard is finished, only the wizard is served.
  • No passwords or API keys need to be in environment variables (which anyone who can run docker inspect can read). The database connection is stored encrypted in /data/database.conf (mode 0600). The key is in the same folder, because the app must be able to start on its own. So the encryption protects copies of that one file, not someone who can read the whole data folder; that folder is readable only by the container user. The bundled PostgreSQL reads its password from secrets/db_password only when the database is first created.
  • Integration credentials are stored encrypted in the database with a key kept only in the data volume, are never returned by the UI/API, and are not readable by the AI analyst's SQL tool. The environment holds no API keys.
  • Audit log (Admin › Audit log): every login (also failed ones), log-out, reset and change made in the web UI, with user, address and result; settings are logged by name only, never their values. Kept for a year.
  • A backup file (Settings › Data & detection › Backup) contains the encryption key, so it opens every stored credential: making one needs your password, it is recorded in the audit log, the file is deleted from the server after the download (or after an hour), and you should keep it as safe as your passwords.
  • Blocking never blocks the address you are using, OPNsense itself or the Never block list, blocks internal addresses only by hand after a warning, and only fills an alias - your firewall rules decide what it does.
  • Set Settings › Ingestion & network › Syslog allowed senders to your OPNsense IP so nobody else can inject log lines.
  • The AI's SQL tool runs inside read-only transactions with a statement timeout and only accepts SELECT.
  • Settings › AI analyst › Privacy mode keeps your local addresses, MAC addresses and names away from the AI provider (it sees consistent pseudonyms) - see AI privacy mode. For no data leaving your network at all, use a local model (Ollama, LM Studio).

There aren't any published security advisories