fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.07k stars 426 forks source link

See if screenlock is enabled on Ubuntu Linux #22823

Open allenhouchins opened 2 weeks ago

allenhouchins commented 2 weeks ago

prospect-pingouin: Slack thread: https://fleetdm.slack.com/archives/C07GLME5P7C/p1728505255553249

noahtalerman commented 1 week ago

Problem

Admins need a way to query specific settings managed by gsettings on Ubuntu Linux hosts to ensure security and report on compliance.

From the org.gnome.desktop.screensaver schema:

From the org.gnome.desktop.session schema:

What have you tried?

These settings are stored in a database managed by gsettings and not available in plain text.

Potential solutions

Build a new table in osquery/fleetd that is populated by the results of the command gsettings list-keys org.gnome.desktop.session and gsettings list-keys org.gnome.desktop.screensaver

What is the expected workflow as a result of your proposal?

Admins can easily build queries and policies to check security and compliance related settings on their Ubuntu Linux hosts.

noahtalerman commented 2 days ago

Hey @allenhouchins I pulled this request off of feature fest b/c it doesn't meet the criteria for prioritization: https://github.com/fleetdm/fleet/pull/23184/files#diff-c99d12c3af50c0c2aca2b9ef7597c02ccfe87678291956ff0b2e83d63978ea38R370