Work with the Sophos Central API — authenticate, resolve tenants/regions, manage endpoints (list, isolate, scan, tamper protection), triage alerts, pull SIEM events, run XDR/Live Discover queries, and manage firewalls. Use this skill whenever the user mentions Sophos, Sophos Central, Sophos endpoints/agents, Intercept X, Sophos alerts or SIEM export, Sophos firewall management via Central, or wants to automate/report on anything in their Sophos estate — even if they don't say "API". Also use it when writing scripts, integrations, or one-off queries against api.central.sophos.com or id.sophos.com.
Ships in sophos-central. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Automate and query Sophos Central: endpoint protection, alerts, SIEM events, XDR queries, and firewall management. All APIs are RESTful JSON over HTTPS.
Every Sophos Central session follows the same pattern. Do these in order:
POST https://id.sophos.com/api/v2/oauth2/token (form-encoded) with grant_type=client_credentials, client_id, client_secret, scope=token. Token lives ~1 hour.GET https://api.central.sophos.com/whoami/v1 with Authorization: Bearer <token>. Returns your id, idType (tenant, organization, or partner), and apiHosts. For tenants, apiHosts.dataRegion is the regional base URL (e.g. https://api-us01.central.sophos.com) — all tenant API calls go there.Authorization: Bearer <token> plus X-Tenant-ID: <tenantId> to {dataRegion}/endpoint/v1/..., {dataRegion}/common/v1/..., etc.Partners/organizations: whoami returns idType: partner or organization. Use X-Partner-ID / X-Organization-ID against the global host to enumerate tenants (GET https://api.central.sophos.com/partner/v1/tenants?pageTotal=true), then call each tenant's own apiHost with X-Tenant-ID. Details in references/auth.md.
SOPHOS_CLIENT_ID, SOPHOS_CLIENT_SECRET) or a secrets manager. Never hardcode them in scripts, never echo the secret or token to output, and never commit them.scripts/sophos_client.py is a self-contained Python client (stdlib + requests) that handles auth, whoami, region resolution, tenant headers, pagination, and 429 retry. Use it instead of re-writing boilerplate:
export SOPHOS_CLIENT_ID=... SOPHOS_CLIENT_SECRET=...
python scripts/sophos_client.py whoami
python scripts/sophos_client.py get /endpoint/v1/endpoints --params healthStatus=bad
python scripts/sophos_client.py get-all /endpoint/v1/endpoints # auto-paginate
python scripts/sophos_client.py post /endpoint/v1/endpoints/{id}/scans --json '{}'
python scripts/sophos_client.py siem-events --since 12h # SIEM export
It can also be imported (from sophos_client import SophosClient) when building larger scripts for the user.
| Task | API base path | Reference file |
|---|---|---|
| Auth, whoami, partner/org tenant enumeration | id.sophos.com, /whoami/v1, /partner/v1, /organization/v1 | references/auth.md |
| Endpoints: list/search, isolate, scan, tamper protection, delete, groups, allowed/blocked items, exclusions | /endpoint/v1 | references/endpoint-api.md |
| Alerts (list, search, take actions), directory users/groups, admins, roles | /common/v1 | references/common-api.md |
| SIEM event/alert export, XDR Data Lake queries, Live Discover (EDR queries on live devices) | /siem/v1, /xdr-query/v1, /live-discover/v1 | references/siem-xdr.md |
| Firewalls managed by Central: inventory, groups, firmware, actions | /firewall/v1 | references/firewall-api.md |
Read the relevant reference file before writing calls — they contain the exact endpoints, filters, action enums, and pagination style for each API.
items + pages. Two styles: by-offset (?page=2&pageSize=50, add pageTotal=true to get counts) and by-key (?pageFromKey=<nextKey>, follow pages.nextKey until absent). Default page size 50. The SIEM API uses its own cursor/has_more scheme.?fields=id,hostname,health to trim payloads.429, honor Retry-After and back off exponentially. Batch/sleep when iterating many tenants.error, message, correlationId — surface correlationId when reporting failures, Sophos support asks for it.2026-07-14T00:00:00.000Z).Isolation, endpoint deletion, tamper-protection changes, alert actions, and firewall changes affect production security posture. Before executing:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/sophos-central:sophos-centralfrom sophos-central
npx claudepluginhub mbadali25/useful-claude-add-ons --plugin sophos-central