fleetdm / fleet

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

Create a new Linux table for snap_packages #22658

Open allenhouchins opened 2 weeks ago

allenhouchins commented 2 weeks ago

noahtalerman commented 5 days ago

Problem

Apps installed via the Ubuntu Software app store do not appear to be easily queryable. They do not show up in the deb_packages table since they are containerized apps and installed at /snap/ in the filesystem.

What have you tried?

I searched osquery and found this feature request: https://github.com/osquery/osquery/issues/6091

Potential solutions

Create a new table called snap_packages that contains the output of the command snap list --all

I've created a workaround for now: https://github.com/allenhouchins/fleet-stuff/tree/main/linux-mdm-snap-packages

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

A queryable table with results similar to this: Name Version Rev Tracking Publisher Notes
core 16-2.51.1 11060 latest/stable canonical✓ -
core18 20210722 2128 latest/stable canonical✓ base
my-snap 1.0.0 22 latest/stable mypublisher disabled