From 72cfdac634bbcc04362694e3dba2c140c550431b Mon Sep 17 00:00:00 2001 From: Juan Fernandez Date: Wed, 12 Oct 2022 14:27:07 -0400 Subject: [PATCH] Only ingest installed deb_packages (#8160) Only ingest deb_packages with status = 'install ok installed' --- changes/bug-7804-uninstalled-software-appears-on-software-page | 1 + server/service/osquery_utils/queries.go | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/bug-7804-uninstalled-software-appears-on-software-page diff --git a/changes/bug-7804-uninstalled-software-appears-on-software-page b/changes/bug-7804-uninstalled-software-appears-on-software-page new file mode 100644 index 0000000000..4d6b2ac876 --- /dev/null +++ b/changes/bug-7804-uninstalled-software-appears-on-software-page @@ -0,0 +1 @@ +* Only ingest DEB packages with the proper status. \ No newline at end of file diff --git a/server/service/osquery_utils/queries.go b/server/service/osquery_utils/queries.go index 155fae598a..f6f2fc2c74 100644 --- a/server/service/osquery_utils/queries.go +++ b/server/service/osquery_utils/queries.go @@ -634,6 +634,7 @@ SELECT '' AS vendor, '' AS arch FROM deb_packages +WHERE status = 'install ok installed' UNION SELECT package AS name,