How do I integrate Sophos Central with my FortiSIEM? The manual says I need an API Key, but in Sophos, I only have a Client ID and Client Secret?
Get API Key from Headers (part between x-api-key: and Authorization Basic).
As you can see in the screenshot, only the Client ID and Secret ID appear, which is not the API Key.
try this command in order to the get the token/api key and see if it works
curl -XPOST -H "Content-Type:application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=<client-id>&client_secret=<client-secret>&scope=token" \
https://id.sophos.com/api/v2/oauth2/token
As you can see in the screenshot, only the Client ID and Secret ID appear, which is not the API Key.
Also struggling with this - it seems Sophos are no longer allowing you to create - API Tokens , and are now enforcing use of API Credentials with Client ID , Secret Key ,
I'm suspecting fortinet might need to review/update the Integration for Sophos Central API to cater for this change?
also need this working ASAP and ive tried different combinations but cannot get this working.
they no longer use API tokens in their system , u can obtain an "access token" once u authenticate using the Client Secret & Client ID but that access token just allows u to then interact with their API.
Hi @victorthai
FSM has been patched to support latest Sophos Central changes
You need to use the latest versions
v7.2.5 FortiSIEM works OK
v7.3.2 FortiSIEM works OK
Regards,
Created on ‎05-23-2025 11:50 PM Edited on ‎05-24-2025 12:16 AM
Hi can u show a working example that this worked for u?
right now the current documentation for v 7.3.2 is still outdated and pointing u to setting up API Tokens.
http://docs.fortinet.com/index.php/document/fortisiem/7.3.2/external-systems-configuration-guide/750...
i am running latest build of FortiSIEM upgraded it to - 7.3.2.0374
Whoami response: b'{"id":"8565f549-ed06-4164-90bf-b127a88c7661","idType":"tenant","apiHosts":{"global":"https://api.central.sophos.com","dataRegion":"https://api-eu01.central.sophos.com"}}'
URL: https://api-eu01.central.sophos.com/siem/v1/events?limit=1000&cursor=VjJfQ1VSU09SfDIwMjUtMDMtMTNUMTk6NDk6NTAuNjM5Wg==​
Created on ‎05-24-2025 01:04 AM Edited on ‎05-24-2025 01:06 AM
here is a sample CURL query that works to pull events from sophos API. the following works to show that u can do it , but within FortiSIEM i have no idea where the parameters need to be set as the documentation doesn't specify this.
We need x4 items
Obtain this by authenticating with your Client ID and Client Secret (from Sophos Central API credentials):
curl -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=YOUR_CLIENT_ID_HERE&client_secret=YOUR_CLIENT_SECRET_HERE&scope=token"
Response will include:
"access_token": "YOUR_ACCESS_TOKEN"
Once you have the token, use it to get your Tenant ID:
curl -X GET "https://api.central.sophos.com/whoami/v1" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE"
Response will include:
"id": "YOUR_TENANT_ID",
"apiHosts": {
"dataRegion": "https://api-eu01.central.sophos.com"
}
Now query for SIEM events using the Access Token, Tenant ID, and the correct regional endpoint:
curl -X GET "https://api-eu01.central.sophos.com/siem/v1/events?limit=200" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-H "X-Tenant-ID: YOUR_TENANT_ID_HERE" | \
jq -r '.items[] | [.type, .name, .severity, .location, .when] | @csv' > events.csv
Sample final output from Sophos API Events:
Event::Endpoint::UpdateSuccess Update succeeded low IGNATIUS-LAP 2025-05-23T08:06:54.083Z
Event::Endpoint::Device::AlertedOnly Peripheral allowed: SAMSUNG Mobile USB Modem low DESKTOP-QBECLHU 2025-05-23T08:07:48.596Z
Event::Endpoint::Device::AlertedOnly Peripheral allowed: Galaxy A06 low DESKTOP-QBECLHU 2025-05-23T08:07:48.605Z
Event::Endpoint::UpdateSuccess Update succeeded low NITS-NDEGE-VM 2025-05-23T08:09:58.298Z
Welcome to your new Fortinet Community!
You'll find your previous forum posts under "Forums"
User | Count |
---|---|
72 | |
25 | |
15 | |
10 | |
10 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.