Skip to main content

Sophos EDR

Sophos Intercept X with EDR is the endpoint detection and response tier of Sophos Central, the cloud console that manages Sophos endpoint, server and firewall products. Fluency polls Sophos Central's public API for the detections and events it records (malware, behavioural and exploit detections, web and application control, peripherals, tamper protection and policy changes) and lands them in the data lake, where they take part in correlation, retention and reporting alongside identity, mail and network data.

Authentication is OAuth2 client credentials: an API credential created in Sophos Central (a "service principal", in Sophos's terminology) yields a Client ID and a Client Secret, and nothing is installed on the endpoints. The credential resolves to one tenant and that tenant's data region on its own, so unlike most integrations in this category there is no region or URL to get wrong, but it has to be created in the right console; see Before you begin.

The setup has two halves:

  1. In Sophos Central Admin: as a Super Admin, under Global Settings → Access Control → API Credentials, add a credential with the Service Principal ReadOnly role, and copy its Client ID and its Client Secret, which is shown once.
  2. In Fluency: install the Sophos EDR application template and paste those two values into its form.

What arrives​

StreamWhat it holdsLands in
EventsEvery endpoint event Sophos Central records: malware, PUA, behavioural and exploit detections, IPS hits, web and application control, peripheral and data-loss events, firewall, isolation and policy activity.The data lake
Alerts (SIEM API)The subset Sophos raised for an administrator to act on, with the remediation Central offers for each.The data lake
Alerts (Common API)The console's own Alerts queue: severity, category, the product that raised it, and the agent and person it belongs to.The data lake

Sophos's SIEM API serves only the last 24 hours, so the first collection reaches back hours rather than weeks, and a stop in collection longer than a day leaves a gap that cannot be backfilled. The credential's role decides what it can read: Service Principal ReadOnly reaches all three streams, and Forensics reaches none of them (step 2).

Endpoints, record contents and how far back each stream reaches are in Reference.

Before you begin​

A Super Admin sign-in to Sophos Central Admin. Sophos requires the Super Admin role to open API Credentials at all: "You must be a Super Admin to manage and add API credentials." It has to be Sophos Central Admin (central.sophos.com), not Sophos Central Partner or Enterprise: their credentials authenticate but resolve to no tenant, and the Sophos EDR form has no field to name one (which console). An MSP that manages several tenants needs one credential and one installed application per tenant.

Outbound HTTPS to Sophos. Three hosts are involved: id.sophos.com for the token, api.central.sophos.com for the tenant lookup, and then the tenant's regional host, one of Sophos's regional api-XXnn.central.sophos.com names. The third is not known until the lookup runs, so an egress allowlist either has to cover *.central.sophos.com or name the one host the verification calls print.

Part 1: Sophos Central​

1. Open the API Credentials page​

Sign in to Sophos Central Admin at central.sophos.com as a Super Admin. Click the Global Settings icon, go to Access Control, and click API Credentials. Sophos notes that "the first time you click API Credentials Management you must read and accept the terms and conditions of use."

Sophos Central Global Settings page, Administration column listing Directory service, Role Management, API Token Management, API Credentials Management, Federated Sign-in and Registered Firewall Appliances

The capture shows an earlier Sophos Central layout, in which the page was Global Settings → Administration → API Credentials Management and the account menu ran down the left rather than along the top. The dialogs themselves are unchanged, and the field names below are the current ones.

Not API Token Management

The entry directly above, API Token Management, manages Sophos's retired legacy SIEM token: a URL plus two headers, which the Sophos EDR template does not accept. If an administrator hands you a URL and a pair of headers rather than a Client ID and a Client Secret, they have been to the wrong page (legacy tokens).

2. Add the credential​

Click Add Credential. Give it a name that says what it is for (the credential list is the only record of who issued it) and a description.

In Role, choose Service Principal ReadOnly: it reaches every stream and can change nothing. The two that look tempting are traps in opposite directions: Super Admin grants write access this integration never uses, and Forensics reaches none of the feeds (the roles).

Sophos Central Add credential dialog with Credential name, Description and a Role dropdown set to Service Principal ReadOnly, above notes stating that a Client ID and Client Secret will be generated and that credentials will expire in 36 months

Note the second line under Notes: "Credentials will expire in 36 months." That is a hard, non-renewable clock (Maintenance).

Click Add.

3. Copy the Client ID and the Client Secret​

Sophos generates both values and opens the credential's summary page.

Shown once

The secret is displayed once, behind a Show Client Secret link, and only on this screen. There is no reveal, no reset and no support path: a lost secret means deleting the credential and issuing a new one. Click Show Client Secret, then Copy, and put it somewhere safe before you navigate away.

Sophos Central API credential summary showing Name, Created on, Expires on three years later, Last used, a redacted Client ID, the notice that the Client Secret cannot be shown again, and a Role of Service Principal ReadOnly

Come back to the credential later and the summary says so in as many words: "For security purposes, the Client Secret cannot be shown again. If need be, you may create a new API credential." The Client ID stays visible on this page indefinitely and has its own Copy button, so only the secret is time-critical.

ValueWhere it came from
Client IDThe Client ID row of the API credential summary. A UUID. Re-readable at any time.
Client SecretRevealed once by Show Client Secret on the summary page, immediately after Add.
Optional: verify the credential before you leave Sophos Central

Three calls confirm the credential works, tell you whether it was created in the right console, and prove the streams answer, before any of it becomes a Fluency problem.

CLIENT_ID='<the Client ID>'
CLIENT_SECRET='<the Client Secret>'

# 1. Exchange the credential for a one-hour bearer token.
JWT=$(curl -s -X POST https://id.sophos.com/api/v2/oauth2/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&scope=token" \
| sed -n 's/.*"access_token"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')

# 2. Ask Sophos who this credential is and where its data lives.
curl -s -H "Authorization: Bearer $JWT" https://api.central.sophos.com/whoami/v1

A credential created in the right place answers like this:

{
"id": "7e29b4c2-e68a-4617-bfe1-844666b5300f",
"idType": "tenant",
"apiHosts": {
"global": "https://api.central.sophos.com",
"dataRegion": "https://api-us03.central.sophos.com"
}
}

"idType": "tenant" and the presence of dataRegion are the two things to look for. Take those values and read one page of events:

TENANT='<the id from whoami>'
REGION='<the dataRegion from whoami>'

curl -s -w '\n%{http_code}\n' \
-H "Authorization: Bearer $JWT" \
-H "X-Tenant-ID: $TENANT" \
"$REGION/siem/v1/events?limit=200"
ResponseWhat it means
200 with an items arrayThe credential works and the stream answers. Done.
200 with "items": []Also success: the tenant raised no endpoint events in the last 24 hours, normal on a quiet estate (the 24-hour window). Generate a test detection to be certain.
401 and "message": "Client ID is invalid." from step 1Sophos does not recognise the Client ID: usually a copy error, or a credential past its 36-month expiry and removed. Re-read it (step 3).
401 from step 1 with any other messageThe Client Secret is wrong. It cannot be re-read, so if it was not captured, delete the credential and issue a new one.
"idType": "partner" or "organization", and no dataRegionCreated in Sophos Central Partner or Enterprise, which cannot be used here; create a tenant credential in Sophos Central Admin (which console).
401 on step 3 with a token that worked on step 2The token expired; they last one hour. Re-run step 1.
403Authenticated, but the role does not cover this API: the credential's Role row should read Service Principal ReadOnly, not Active Directory Sync or Firewall.
429Rate limited, per credential, per account and per source IP (rate limits). Wait and retry.
Connection refused or a timeoutEgress is blocked to id.sophos.com, api.central.sophos.com or the dataRegion host.

To generate a detection on demand, download the EICAR test file onto a protected endpoint, or use Sophos's own test procedure. It appears in the console within a minute or two and in the API on the next poll.

Part 2: Fluency​

Install the Application​

In the navigation rail, open Applications and click Install Application, then choose Sophos EDR from the Endpoint Management category of the Application Catalog.

ParameterNotes
Client IDThe UUID from step 3.
Client SecretThe value revealed once by Show Client Secret. Masked once the application is installed.

Unlike most templates, Sophos EDR takes no datalake or datalake index name parameter: the destination is fixed by the template rather than chosen on the form, so there is nothing here to collide with another application. To see where the data actually lands, open the installed application's details and read its Actions list, which records every object the install created.

Install Sophos EDR form with the Application section&#39;s Instance name and Display name fields, and the Configuration section&#39;s Client ID and Client Secret fields, above Cancel, Dry run and Install Application

Click Dry run first to have the platform check the credential before anything is installed, then click Install Application. The Applications page opens with the notice Default is launching., and the new application is listed with a green Running badge once the pipeline is up.

Confirm it is running​

The application is listed on Applications as Sophos EDR, with the display name you gave it beneath it. A healthy application's badge reads Running in green; anything else means the pipeline did not start. Click its row to open the application details page, whose summary carries the status and the traffic in and out.

Two things to check in the first hour, in this order:

  1. The credential exchange succeeded. This is the only step that can fail silently: a bad Client ID or Secret produces an application that is up and collecting nothing. The verification calls rule it out.
  1. Records are landing. Search the data lake for the source on Datalake Search. Confirm data is arriving covers the general procedure.

Expect the first collection to reach back hours rather than days: the API serves a 24-hour tail, and a quiet estate may legitimately produce nothing at all on day one. For certainty rather than patience, trigger a test detection as described in the verification calls.

Once Sophos events, or your test detection, are in the data lake, setup is complete.

Maintenance​

Sophos issues API credentials with a 36-month lifetime that cannot be renewed or extended; the credential's summary page shows the date in its Expires on row. Sophos sends no alert, removes the expired credential, and collection stops with 401 and "message": "Client ID is invalid." while the Fluency application gives no sign of it (Sophos's wording). Put the Expires on date in whatever calendar the team actually reads, and treat the rollover as a rotation. Rotate promptly rather than carefully: the API serves a 24-hour tail, so a rotation that drags past a day loses the gap permanently.

Rotating the credential​

Template parameters are read-only after install, so changing a credential means uninstalling and reinstalling:

  1. Create a new credential in Sophos Central under a name that distinguishes it from the old one, with the Service Principal ReadOnly role. Copy the new Client ID and Client Secret.
  2. Uninstall the existing Sophos EDR application in Fluency. To uninstall, click Uninstall at the top right of the application's details page (v1: the red Uninstall button at the foot of its details panel on Platform → Applications).
  3. Install Sophos EDR again with the new values.
  4. Once data is arriving, delete the old credential in Sophos Central: select it in API Credentials and click Delete.

Removing the integration​

Uninstall the Sophos EDR application in Fluency first, with the Uninstall button at the top right of its details page (v1: the red Uninstall button at the foot of its details panel on Platform → Applications), then delete the credential in Sophos Central. Deleting the credential first leaves an application that can no longer authenticate, failing on every poll until someone removes it.

Troubleshooting​

SymptomLikely causeFix
Application installs, badge reads Running, no data ever arrivesClient ID or Client Secret mistyped, or the secret was never capturedRun the verification calls; a 401 at the token step confirms it. The secret cannot be re-read, so reissue the credential and reinstall.
Same symptom, but the credential authenticates fine by handThe credential was created in Sophos Central Partner or Enterprise/whoami/v1 returns "idType": "partner" or "organization" and no dataRegion. Create a tenant credential in Sophos Central Admin and reinstall (which console).
Worked for years, then stopped with no change on either sideThe credential hit its 36-month expiry and was removed401 with "message": "Client ID is invalid.". Issue a new credential and reinstall (Maintenance).
403 on every callThe role is Active Directory Sync or Firewall, which reach nothing elseReissue with Service Principal ReadOnly.
Detections appear in the Sophos console but not in FluencyCollection has been down longer than a dayThe SIEM API serves only the last 24 hours, while the console keeps 90 days: the gap in the data lake is permanent (the 24-hour window). Restore collection and treat the older records as console-only.
Nothing arrives, and nothing is wrongA quiet estate genuinely raised no events in the last 24 hoursDownload the EICAR test file on a protected endpoint and check again after a poll.
429 in bursts, especially in an MSP environmentThe account-level quota is sharedSophos's limits apply per credential, per account and per source IP, so Sophos's own siem.py script, another SIEM and Fluency polling one tenant compete. Retire the duplicate collectors (rate limits).
Endpoints stopped reporting, but other endpoints still arriveThe Sophos agent was removed or the device is offlineA Sophos-side gap, not an integration fault: check Devices in Sophos Central for last-seen times before investigating the pipeline.
Credential exists in Sophos but Fluency shows an auth error, and the ID looks rightThe values were transposed: Client ID into the secret field and backCompare shapes: the Client ID is a UUID and the secret is not.

Reference​

The API behind each stream, what its records hold and how far back Sophos serves it, for searches and detection rules written against this source, and the reasoning the steps above link to.

Streams and endpoints

An API credential inherits its permissions from the role you assign it. Service Principal ReadOnly, the role this guide uses, can read the account and change nothing, so what it reaches is the ceiling of what this integration can collect:

StreamEndpointContentsHow far back the API serves
EventsGET /siem/v1/eventsEvery endpoint event Sophos Central records: malware and PUA detections, behavioural and AMSI detections, IPS hits, web and application control blocks, peripheral and data-loss events, firewall, updating, isolation and policy activity. Each record carries the host name, the user, the threat name, a group such as MALWARE, WEB or RUNTIME_DETECTIONS, and, for core detections, the SHA-256 of the file involved and what the agent did about it.24 hours
Alerts (SIEM API)GET /siem/v1/alertsThe subset Sophos raised for an administrator to act on, in the same record shape as events, with the remediation Central offers for each.24 hours
Alerts (Common API)GET /common/v1/alertsThe console's own Alerts queue in the newer object shape: severity of high, medium or low, a category, the product that raised it, the managed agent and person it belongs to, and the allowedActions an administrator could take.As far back as Sophos Central keeps alerts: 90 days

The template decides which of these it polls; the form does not. Sophos EDR takes two parameters and neither of them selects a stream. To see what your installation actually created, open the installed application's details and read its Actions list, which records every object the install made.

The SIEM API serves the last 24 hours

/siem/v1/events and /siem/v1/alerts are a tail, not an archive. Sophos states the constraint plainly in its own reference implementation: "A maximum of 24 hours of historical data can be retrieved." Ask for from_date older than that and you get the last 24 hours instead: no error, just less data than you asked for.

Two consequences worth planning for. The first collection reaches back hours, not weeks, so an empty first day is normal rather than a fault. And if collection stops for longer than a day (an expired credential, a paused application, an outage), the gap cannot be backfilled. Sophos Central still holds those records for 90 days and the console will show them to you; the API will not hand them back.

Sophos Central applies "a 90 day retention period for time series data such as events, alerts and audit logs", but the SIEM API only serves the most recent 24 hours of that. The two numbers answer different questions: 90 days is how long you can look something up in the console, 24 hours is how much a collector can recover after an outage.

Which console's credential works

The Sophos EDR form has two fields, and neither of them names a tenant, so the credential has to be one that resolves to a single tenant on its own. Sophos issues three kinds:

ConsoleWhat /whoami/v1 returnsUsable here
Sophos Central Admin (central.sophos.com)"idType": "tenant", with a dataRegionYes
Sophos Central Partner"idType": "partner", no dataRegionNo
Sophos Central Enterprise"idType": "organization", no dataRegionNo

A partner or organization credential authenticates perfectly well and then has nowhere to point: a partner is not a place data lives, so Sophos returns no data region for it, and the caller is expected to list tenants first and pick one. The verification calls surface exactly this, in one call, before it becomes a Fluency problem.

Tenant and region discovery. GET https://api.central.sophos.com/whoami/v1 is the one Sophos API that needs no multi-tenancy header. It returns the principal's id, its idType (tenant, partner or organization) and its apiHosts. Tenant principals get a dataRegion; partner and organization principals do not, because they have to enumerate tenants first: GET /partner/v1/tenants with X-Partner-ID, or GET /organization/v1/tenants with X-Organization-ID.

Service principal roles

Sophos offers several service principal roles, and only one of them is right for a collector:

RoleWhat it can do
Service Principal ReadOnly"View all information in the account but can't add, modify, or remove information. They can't run Live Discover queries."
Service Principal Super AdminAll API operations, full create/read/update/delete, plus queries.
Service Principal ManagementView and manage admins, roles, endpoints and security policies; cannot run queries.
Service Principal ForensicsCreate, view, run and delete Live Discover queries.
Service Principal Active Directory SyncActive Directory synchronisation only.
Service Principal FirewallFirewall management only.

ReadOnly reaches every stream in What arrives and cannot isolate an endpoint, change a policy or delete an admin if the credential leaks. Super Admin grants write access this integration never uses, and Forensics grants Live Discover but not the alert and event feeds.

Sophos's help text spells the role Service Principal Read-Only; the dropdown in the console spells it Service Principal ReadOnly. Same role.

The legacy API token

API Token Management, directly above API Credentials, manages the legacy SIEM API token: an API Access URL of https://api1.central.sophos.com/gateway plus two headers, x-api-key and Authorization: Basic <base64>. Sophos issued these before API credentials. It is a different credential shape, and the Sophos EDR template does not accept it.

It is also on its way out. The page carries Sophos's own retirement banner: existing tokens keep working until they expire, no new ones can be created, and their lifetimes cannot be extended.

Sophos Central API Token Management page showing a banner reading Legacy API Token Management is being retired; existing tokens will continue to work until expiry however new tokens cannot be added from this page, and existing token lifetimes cannot be extended

Authentication, regional hosts and errors

Authentication. OAuth2 client credentials against Sophos ID:

POST https://id.sophos.com/api/v2/oauth2/token
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&client_id=<id>&client_secret=<secret>&scope=token

The response carries access_token (a JWT), expires_in: 3600 and a refresh_token. The JWT goes in Authorization: Bearer <jwt> on every subsequent call.

Regional hosts. All data-bearing APIs are regional:

Data geographyRegionAPI host
United StatesUS (West)https://api-us01.central.sophos.com
United StatesUS (East)https://api-us03.central.sophos.com
EUIrelandhttps://api-eu01.central.sophos.com
EUGermanyhttps://api-eu02.central.sophos.com
CanadaCanadahttps://api-ca01.central.sophos.com
AustraliaAustraliahttps://api-au01.central.sophos.com
JapanJapanhttps://api-jp01.central.sophos.com
BrazilBrazilhttps://api-br01.central.sophos.com
IndiaIndiahttps://api-in01.central.sophos.com

Tenant calls carry X-Tenant-ID: <uuid> alongside the bearer token.

Error object. Failures return JSON with error (a camelCase identifier), and optionally message, code, correlationId, requestId and createdAt. The correlationId is what Sophos support will ask for.

Paging and severity scales

Paging. The two APIs page differently. /siem/v1/events and /siem/v1/alerts use an opaque cursor: limit defaults to 200 and caps at 1000, the response carries next_cursor, and passing it back as cursor fetches the next slice. A cursor older than 24 hours is silently reset to the 24-hour window. /common/v1/alerts uses Sophos's key-based paging instead: pageSize defaults to 50, pageFromKey takes the previous response's nextKey, and a page holds at most 100 alerts.

Severity scales differ between the two. SIEM events grade NONE, LOW, MEDIUM, HIGH, CRITICAL; Common API alerts grade only high, medium, low. Anything normalising both onto one scale has to reconcile that.

Rate limits

Sophos publishes four, and they apply across all its APIs:

WindowMaximumStatus
1 second10 callsRecommended
1 minute100 callsEnforced, with bursts to 300
1 hour1,000 callsRecommended
1 day200,000 callsEnforced

The first three apply separately and equally to each set of credentials, each account and each originating IP, so splitting traffic across several credentials from the same account does not buy headroom. The daily quota applies per account and per credential set but not per IP. Exceeding any of them returns 429 with a standard error object; Sophos asks for exponential backoff with jitter.

Credential expiry, in Sophos's words

You won't receive an alert when an API credential expires. When it expires, you can no longer use it to authenticate with Sophos APIs, and it's automatically removed from Sophos Central. To restore access, you must create a new API credential.

Three years is long enough that nobody will remember, and the failure is quiet in both directions: no warning from Sophos, and a Fluency application whose card gives no sign of it. Because expiry removes the credential, the symptom is 401 with "message": "Client ID is invalid.", an ID Sophos genuinely no longer knows.

Sophos documentation

Fluency

Other integrations