Skip to content

Device security

Device protection

  • The agent validates every payload again before applying it, independent of the server.
  • Generated configuration (sudoers, polkit rules, proxy, GRUB) only contains values checked against strict patterns; sudoers are additionally checked with visudo, sshd with sshd -t.
  • The desktop socket authorizes by peer credentials and active local session. A process of the same user in an SSH session (remote logind session or below the SSH service) may read status and catalog, gets no journal or agent log lines, and is refused every change: app install, removal and requests, recovery key escrow, SSO confirmation, reboot deferral and ending a remote support session. A process started through the user's systemd manager belongs to no session and is not told apart.
  • The SSO device flow starts only at the device: never from su or sudo, never with PAM_RHOST, a pseudo terminal or a remote parent session (Desktop login (PAM)).
  • Secrets on the device (device.pem, login configuration, state) are root only, 0600.
  • Custom compliance checks run no shell. A query check starts osqueryi with one read only SELECT over an allowlist of local tables (validated on server and agent, enforced again with --enable_tables and --disable_tables, no extensions, 30 seconds; only row counts and a bounded compared value go back to the server); file, sysctl, package and service tests are evaluated by the agent itself. Expressions are RE2 (linear time). See Custom checks: com.limdm.customchecks.

Known limitations of the agent

  • allow_scripts does not protect devices against administrators. It is a switch the device owner sets at enrollment, not a boundary against the console. An administrator who can deploy declarations can run code as root on every device in scope without it: packages from added repositories run maintainer scripts, com.limdm.artifacts installs uploaded packages, and com.limdm.sudo, com.limdm.localusers, com.limdm.ssh, com.limdm.login and com.limdm.polkit grant root access. allow_scripts only keeps com.limdm.scripts, the script command and file targets outside the plain text allowlist off a device. The controls against a single administrator are elsewhere: four eyes approval for these declaration types and for script, wipe and lost, signed commands and declarations the agent verifies against pinned keys, device scopes per role, and the hash chained audit log of every save, approval and command.
  • SSH sessions of a user who is also logged in locally. The desktop socket refuses app changes, key escrow, SSO confirmation, reboot deferral, ending remote support and journal lines from processes in an SSH or other remote session. A process the same user starts outside any session (systemd-run --user, under user@.service), or a descriptor passed on by a process that already exited, is not recognized as remote. The check keeps casual misuse out; it is no barrier against the user's own account.
  • Symlinks in managed file paths are refused on every device (no symlink is followed when root writes), including the usr-merge links /lib, /bin, /sbin; declare the real path.
  • polkit SSO on GNOME and KDE Plasma. The SSO device flow for polkit runs only inside a local logind session with a seat. On GNOME and Plasma the polkit helper runs outside the user's session (under user@.service or socket activated), so the device flow does not run there and pam_unix applies: SSO only accounts without a local password cannot answer polkit prompts. Login, lock screen and display managers are not affected.
  • OpenSSL 3. Devices without OpenSSL 3 (Ubuntu 20.04, Debian 11, RHEL 8 and its rebuilds) cannot install agents from 0.17 on, neither with the installers nor as an update of the package.