fleet/handbook/queries/get-installed-freebsd-software.md
Mike Thomas bb488607b4
Create get-authorized-keys (#658)
- Add "Get authorized keys" query to `handbook/queries`
- Edit "Get installed ___ software" queries for all platforms to prepare for adding software inventory to the host details API endpoint
2021-04-20 11:45:20 -07:00

960 B

Get installed FreeBSD software

Get all software installed on a FreeBSD computer, including browser plugins and installed packages.

This does not included other running processes in the processes table.

Support

FreeBSD

Query

SELECT
  name AS name,
  version AS version,
  'Browser plugin (Chrome)' AS type,
  'chrome_extensions' AS source
FROM chrome_extensions
UNION
SELECT
  name AS name,
  version AS version,
  'Browser plugin (Firefox)' AS type,
  'firefox_addons' AS source
FROM firefox_addons
UNION
SELECT
  name AS name,
  version AS version,
  'Package (Atom)' AS type,
  'atom_packages' AS source
FROM atom_packages
UNION
SELECT
  name AS name,
  version AS version,
  'Package (Python)' AS type,
  'python_packages' AS source
FROM python_packages
UNION
SELECT
  name AS name,
  version AS version,
  'Package (pkg)' AS type,
  'pkg_packages' AS source
FROM pkg_packages;

Purpose

Informational

Remediation

N/A