Sophos XDR: How to Query to check the workstations have Sophos certificate installed ?

Overview

Sophos Extended Detection and Response (XDR) lets you investigate detected threats (“threat cases”) and search for new threats or security weaknesses. It also lets you monitor devices and fix issues remotely. Sophos XDR gives you access to both data stored in the cloud and directly on the device. Which means you always have the most up-to-date data possible.

The article guides us to use the Live Discover tool of Sophos CIXA with EDR to be able to query the entire system of workstations and servers to give information about which machines have installed the Sophos certificate. That helps to reduce the time for administrators having to go down to each machine to check

Diagram

How to configure

Step 1: Create Custom Query

  • Login to Sophos Central Admin -> Choose Threat Analysis Center -> Choose Live Discover -> Enable Designer mode -> Click Create new query
  • Enter name for query
  • In Category: Choose category which you want to add query
  • In Source: Choose Live Endpoint and choose OS (some queries will not support the OS you choose) -> Check more information in Sophos Community
  • In Show variable editor: Click Add variable
  • Enter variable with common_name and store_location: The value will be the Sophos certificate of your Sophos XGS and the LocalMachine if it’s a workgroup environment
  • In SQL: Enter query code

SELECT
common_name,
subject,
issuer,
ca,
self_signed,
not_valid_before,
not_valid_after,
signing_algorithm,
key_algorithm,
key_strength,
key_usage,
subject_key_id,
authority_key_id,
sha1,
path,
serial,
sid,
store_location,
store,
username,
store_id
FROM certificates
WHERE
common_name LIKE ‘$$common_name$$’
AND store_location LIKE ‘$$store_location$$’

  • Click Save

Step 2: Test Query

  • Choose Query which was created before
  • In Device selector: Choose computers you want to query
  • Click Run Query

Step 3: Check the result

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.