Sophos¶
Overview¶
This Adapter allows you to connect to Sophos Central to fetch event logs.
Deployment Configurations¶
All adapters support the same client_options, which you should always specify if using the binary adapter or creating a webhook adapter. If you use any of the Adapter helpers in the web app, you will not need to specify these values.
client_options.identity.oid: the LimaCharlie Organization ID (OID) this adapter is used with.client_options.identity.installation_key: the LimaCharlie Installation Key this adapter should use to identify with LimaCharlie.client_options.platform: the type of data ingested through this adapter, liketext,json,gcp,carbon_black, etc.client_options.sensor_seed_key: an arbitrary name for this adapter which Sensor IDs (SID) are generated from, see below.
Adapter-specific Options¶
Adapter Type: sophos
tenantid: your Sophos Central tenant IDclientid: your Sophos Central client IDclientsecret: your Sophos Central client secreturl: your Sophos Central URL (ex:https://api-us01.central.sophos.com)
Creating Your Credentials and Getting Your Tenant ID¶
Sophos documentation - https://developer.sophos.com/getting-started-tenant
- Add a new credential in Sophos Central Settings → Credentials
- Get your client ID and client secret from the credentials you just created
-
Get your JWT -- be sure to replace the values with the client ID and secret from the last step
curl -XPOST -H "Content-Type:application/x-www-form-urlencoded" -d "grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=token" https://id.sophos.com/api/v2/oauth2/tokenResponse content -- grab the
access_tokenfrom the output: -
Get your tenant ID -- you will need the
access_token(JWT) from the last step.Response content -- grab the
id(tenant_id) anddataRegion(url) from the output. You will need these for your LimaCharlie Sophos adapter configuration. -
Now you have all the pieces for your adapter:
client_idclient_secrettenant_idurl
Infrastructure as Code Deployment¶
# For cloud sensor deployment, store credentials as hive secrets:
# clientid: "hive://secret/sophos-client-id"
# clientsecret: "hive://secret/sophos-client-secret"
# tenantid: "hive://secret/sophos-tenant-id"
sensor_type: "sophos"
sophos:
clientid: "hive://secret/sophos-client-id"
clientsecret: "hive://secret/sophos-client-secret"
tenantid: "hive://secret/sophos-tenant-id"
url: "https://api-us01.central.sophos.com"
client_options:
identity:
oid: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
installation_key: "YOUR_LC_INSTALLATION_KEY_SOPHOS"
hostname: "sophos-central-adapter"
platform: "json"
sensor_seed_key: "sophos-siem-sensor"
mapping:
sensor_hostname_path: "endpoint.hostname"
event_type_path: "type"
event_time_path: "raisedAt"
indexing: []
API Doc¶
See the official documentation.