Sophos Central connector
The Sophos Central connector connects Kibana to Sophos Central. Use it to manage alerts, isolate and scan endpoints, maintain IOC block and allow lists, control tamper protection, and query XDR detections.
This connector is currently available in Agent Builder only. Workflow support is planned for a future release. Actions marked (API only) aren't available to agents yet. You can run them with the Run a connector API.
You can create connectors in Stack Management → Connectors.
The credential is created by a Sophos Central Super Admin. No scope or role selection is required during creation. The resulting credential inherits full API access from the creating admin's role.
- Sign in to Sophos Central Admin.
- Go to My Products → General Settings → API Credentials Management, or Global Settings → API Credentials in some console versions.
- Select Add Credential, enter a name, and select Add.
- Copy the Client ID and Client Secret.
Sophos Central connectors have the following configuration properties:
- Authentication
- Uses OAuth 2.0 Client Credentials. Provide the Client ID and Client Secret obtained from My Products → General Settings → API Credentials Management in Sophos Central. The credential must be created by a Super Admin and must be a tenant-level credential. Partner or organization credentials are rejected.
Connector networking configuration
If you are using the xpack.actions.allowedHosts setting, add all three Sophos hosts: id.sophos.com (OAuth token endpoint), api.central.sophos.com (global API / whoami), and the regional data-center host returned by whoami (for example api-us03.central.sophos.com).
You can test connectors when you create or edit the connector in Kibana. The test verifies connectivity by calling the Sophos Central whoami endpoint and confirming the tenant ID and regional data center.
The Sophos Central connector exposes the following actions:
listAlerts- List Sophos Central tenant alerts with optional filters for severity, product, category, and date range. Returns a cursor-paginated list. Pass
pageFromKeyfrompages.nextKeyto retrieve subsequent pages. getAlert- Retrieve a single Sophos Central alert by UUID. Returns severity, category, managed agent (the affected endpoint), and allowed actions.
actOnAlert- Apply a lifecycle action to a single alert. Check the alert's
allowedActionsfield first (fromgetAlert) to confirm the action is available. Available actions:acknowledge,cleanPua,cleanVirus,clearThreat,clearHmpa,sendMsgPua,sendMsgThreat. TheauthPuaaction is excluded because it authorizes a potentially unwanted application, which relaxes tenant protection. actOnAlertsBulk- Apply a single lifecycle action to multiple alerts. The connector iterates over each alert ID in turn and returns, per alert, the lifecycle
status(requested,started, orcompleted) and the optional outcomeresult(for examplesuccess,notNeeded, oralreadyDone) from Sophos.resultis optional and may be absent on any row. Usestatusto identify pending actions, not the absence ofresult. A failed request producesstatus: failedwith anerrorstring instead of aresult.acceptedCountis the number of HTTP 2xx responses; it does not mean every alert was remediated. A batch can havefailureCount: 0while actions are still pending or completed without remediation (status: completed,result: notNeeded).completedwithresult: successmeans the requested action was carried out by Sophos; it does not mean the threat was eliminated. For example,acknowledgeandsendMsgThreatcan return both values without removing the threat. Partial failures are returned alongside successes; a non-zerofailureCountdoes not throw. Rate limit: 100 calls/min. listEndpoints- List Sophos Central endpoints with optional filters for health status, isolation state, and tamper protection. Returns a cursor-paginated list. Pass
pageFromKeyfrompages.nextKeyto retrieve subsequent pages. getEndpoint- Retrieve a single endpoint by UUID. Returns type, hostname, health status, network isolation state, tamper protection state, and last-seen timestamp.
isolateEndpoint- Put one or more endpoints into network isolation. The endpoint retains connectivity to Sophos Central but is blocked from all other network traffic. Accepts 1 to 500 endpoint UUIDs.
deisolateEndpoint(API only)-
Remove one or more endpoints from network isolation, restoring normal network connectivity. Accepts 1 to 500 endpoint UUIDs.
An analyst must invoke this action directly via the Kibana connector execution API after confirming the threat is remediated. Use
POST /api/actions/connector/<id>/_executefor the default space, orPOST /s/<space_id>/api/actions/connector/<id>/_executefor a non-default space. Kibana does not prompt for or verify that approval. The caller is responsible for obtaining it before invoking the action. scanEndpoint- Trigger an on-demand malware scan on one or more endpoints. The scan runs asynchronously. The response contains per-endpoint results: accepted endpoint IDs and any per-endpoint errors. There is no single scan identifier. Accepts 1 to 500 endpoint UUIDs.
getTamperProtection- Read the tamper protection status for an endpoint. Returns only the
enabledflag, and never the tamper protection passwords. A disabled state is a risk signal. updateTamperProtection(API only)- Enable or disable tamper protection for an endpoint. Optionally regenerate the recovery password. Only use after analyst approval.
listBlockedItems- List the items on the tenant's global blocked list. Returns a page-numbered list. Increment
pageuntilpage > pages.totalto retrieve all pages. addBlockedItem- Add a SHA-256 file hash to the tenant's global blocked list. A comment is required. If the hash is already blocked the action returns a soft success.
addAllowedItem(API only)- Add an item to the tenant's global allowed list. Supported types:
path,sha256,certificateSigner,posixPath. A comment is required. Only use after analyst approval; adding an allowed item relaxes protection across the tenant. deleteBlockedItem(API only)- Remove a blocked item from the tenant's global blocked list by its item ID. Deletion is permanent.
listDetections- Query XDR detections (requires XDR license). On the first call the connector submits the query via
POST /detections/v1/queries/detections, polls until it completes (up to 90 seconds), and returns the first page of results along withrunId. If the 90-second poll budget expires before the run completes, the connector returns{ runId, state: "pending" }instead of results. Pass thatrunIdback to resume polling and retrieve results once the run finishes. To fetch subsequent pages, pass the samerunIdwith the desiredpagenumber and the samepageSizeused on the first call. The connector checks the run is complete before fetching results. Using a differentpageSizeon a continuation call changes the server's page boundaries and may cause rows to be skipped or duplicated.