Sophos Endpoints
All Sophos endpoints require Clerk authentication. Analytics endpoints require
the analytics:dashboards:read permission; integration endpoints require
integrations:read or integrations:write.
All analytics endpoints return 400 {"success": false, "error": "Sophos integration is not configured"}
until the integration is configured.
The Sophos integration exists only in backend/ (Docker Compose, the public /
on-prem server, Render, Fly.io). GET /api/capabilities reports
sophos: true there and sophos: false on Vercel, where backend-serverless/
mounts no Sophos routes.
Analytics Endpoints
Base path: /api/analytics/sophos
The alert, trend and correlation endpoints run the
CrowdStrike analytics queries against the
achilles-sophos index. All vendors share the same normalized alert document
shape, and the Sophos enrichment pass writes f0rtika.sophos_detected /
_stage_detected / _stage_prevented / _prevented on result documents with the same rules, so
parameters and response shapes match. Only the differences are listed here.
| Difference from CrowdStrike | Detail |
|---|---|
| Posture score | /correlation/scores carries the Achilles average of the Sophos Health Check scores in ztaScore (the field name is kept for compatibility). |
| Record-type filter | GET /alerts also accepts sourceType. |
| Techniques | Come only from XDR detections; rows without XDR have mitre_techniques: []. |
| Evidence flags | Technique coverage reads f0rtika.sophos_*. |
| Posture endpoints | /posture/health-check, /posture/endpoint-health, /posture/policies, /posture/exclusion-gaps are Sophos-only. |
Alerts
GET /api/analytics/sophos/alerts/summary
GET /api/analytics/sophos/alerts
GET /api/analytics/sophos/alerts/trend
Same parameters and shapes as the
CrowdStrike alert endpoints, including the
from / to window, the
source and severity feed filters and the
counts object. Severities are normalized to critical, high, medium,
low, informational (the raw Sophos value is kept in severity_raw).
| Query param | Description |
|---|---|
sourceType | alert (Common Alert), xdr_detection or siem_event. Any other value is ignored. |
sourceType narrows every count in counts; /alerts/summary and
/alerts/trend don't take it. A siem_event row is a SIEM event that matched
no Common Alert and no XDR detection; a matched one is folded into that row
(stored in the merged_siem_event_ids field of the achilles-sophos doc), as described in
One row per Sophos detection.
counts.byPrevention (prevented / detected_only / kill_failed) is built
from the prevention_action recorded from Sophos' own response: a successful
file remedy → quarantined, process remedy → process_killed, a block with no
remedy items (AMSI, blocklist, prevented exploit, legacy cleanup) → blocked;
a failed cleanup → kill_failed (detection only). XDR detections carry one only
when Sophos reports its own response through XDR:
<threat>: File activity blocked (<path>) → blocked,
Cleanup succeeded: File cleanup result: Success (<path>) → quarantined. XDR detections are re-read for 30 minutes after a
poll, because Sophos completes their entities (such as the process that wrote a
blocked file) a few minutes after creating them. A cleanup or action more than 15 minutes after the detection
is ignored.
Technique Coverage and Cross-Correlation
GET /api/analytics/sophos/correlation/scores
GET /api/analytics/sophos/correlation/techniques
GET /api/analytics/sophos/correlation/detection-rate
GET /api/analytics/sophos/correlation/technique-coverage
GET /api/analytics/sophos/correlation/alerts-for-test
POST /api/analytics/sophos/correlation/alerts-for-tests
Same execution set, evidence rule and response shapes as the
CrowdStrike Technique Coverage (default
window: last 30 days) and the
SentinelOne cross-correlation endpoints.
The host scope is the stored Sophos endpoint list (scope.source: "inventory"), falling back to hosts that raised a Sophos alert in the last 90
days.
/correlation/alerts-for-test requires techniques and timestamp (400
otherwise); windowMinutes (default 30), hostname, binaryName and
bundleName are optional. POST /correlation/alerts-for-tests answers many executions in one request (same body, limits and response as the Defender batch endpoint). /correlation/scores points are
{ date, defenseScore, ztaScore } with ztaScore the day's last Health Check
headline, null on days without one.
Posture
GET /api/analytics/sophos/posture/health-check?days=<n>
GET /api/analytics/sophos/posture/endpoint-health
GET /api/analytics/sophos/posture/policies
GET /api/analytics/sophos/posture/exclusion-gaps?from=<iso>&to=<iso>
These endpoints read the local snapshots in achilles-sophos; they never call
Sophos. The posture pass writes them after a sync, at most every 6 hours, with
read-only requests. When Elasticsearch isn't configured or the pass hasn't run
they return empty results.
/posture/health-check(daysdefault 30, clamped to 1-365):{ latest, trend }.latestholds theheadline(the Achilles average of Sophos Health Check scores), thecategories(protection, policy, exclusions, tamper protection asprotection,policy,exclusions,tamper_protection, each with itsscoreandcomputer/server/globalsplit) anditems, the flagged counts from Sophos (counts, not device names).trendis[ { date, score } ], oldest first, and starts with 30 days imported from Sophos' history at the first sync./posture/endpoint-health:{ total, notSeen7d, outOfDate, tamperOff, isolated, healthBad, healthSuspicious, xdrInstalled }./posture/policies:{ items: [ { id, name, type, enabled, appliesTo, deviations: [ { key, value, recommended } ] } ] }./posture/exclusion-gaps:{ critical, gaps, notes }.criticalentries havekind(certificate_allow,folder_exclusion,agent_process_exclusion),valueanddetail.gapsare unprotected tests on hosts whose path an exclusion or allowed item covers (hostname,path,lastRunAt,exclusion,testUuid).from/toare optional.
Integration Endpoints
Base path: /api/integrations/sophos
Configuration
GET /api/integrations/sophos
POST /api/integrations/sophos
DELETE /api/integrations/sophos
POST /api/integrations/sophos/test
-
GET /sophos(integrations:read): masked settings. The secret is never returned, onlyclient_secret_set. Returnsconfigured,env_configured,client_id,label,permission_mode,poll_interval_minutes,detection_backfill_days,tenant_id,data_region,capabilities,last_auth_ok_at,auto_resolve_modeandsync_gap. -
POST /sophos(integrations:write): save settings (partial update).client_idandclient_secretare required on the first save, and a changedclient_idrequires itsclient_secret(400otherwise). Refused with400while the credentials come fromSOPHOS_*environment variables. A background sync starts after saving; changing the client ID clears the checkpoints. Savingpermission_mode: "read_only"turns anenabledauto-resolve mode intodisabled(dry_runis kept). The response includeselasticsearch: the Elasticsearch readiness of the key, checked (and the index created) before responding. -
DELETE /sophos(integrations:write): remove the stored settings. Refused with400for env-configured credentials. Data in Elasticsearch is kept. -
POST /sophos/test(integrations:write): signs in with the body'sclient_id/client_secret(the stored secret is only used with the stored client ID), identifies the tenant, rejects partner and organization credentials, and probes each capability once. A test of the stored credentials saves the tenant, region and capabilities it found. Always HTTP 200:{ "success": true, "region": "eu01", "tenantId": "<tenant-id>","capabilities": { "alerts": "available", "siem": "available","health_check": "available", "xdr_graphql": "forbidden", "xdr_rest": "unknown" } }or
{ "success": false, "error": "..." }. A capability isavailable,forbidden(the role is too low),not_licensed(Sophos said so explicitly) orunknown.
POST /sophos body (every field optional on an edit):
{
"client_id": "<client-id>",
"client_secret": "<client-secret>",
"label": "Production tenant",
"permission_mode": "read_only", // or "response"
"poll_interval_minutes": 5, // 1-1440
"detection_backfill_days": 30 // 1-90
}
| Field | Validation |
|---|---|
client_id | 8-200 characters |
client_secret | 8-4096 characters |
label | Up to 120 characters |
permission_mode | read_only or response |
Schema failures return 400 with error and details. Auto-resolve is not
part of this body; use its own route.
With REQUIRE_ORG_ISOLATION=true, POST, DELETE, /test, /sync and
PUT /auto-resolve/mode return 403 (the Sophos configuration is
deployment-wide); use the SOPHOS_* environment variables.
Sync
POST /api/integrations/sophos/sync
GET /api/integrations/sophos/sync/status
-
POST /sophos/sync(integrations:write): start a manual sync. Body{ "reset": true }(optional) clears the checkpoints first, so the initial backfill runs again (403withREQUIRE_ORG_ISOLATION=true). Returns202at once and runs in the background:{ "success": true, "data": { "started": true, "inProgress": true } }If a sync is already running nothing new starts and
resetisn't applied:202with{ "started": false, "inProgress": true }.400when not configured. -
GET /sophos/sync/status(integrations:read):Field Description inProgressA sync is running lastAttemptAtStart time of the last sync lastSiemSync,lastAlertSync,lastDetectionSyncCheckpoint per source syncGap{ from, to }when SIEM events were missed (Sophos keeps 24 h), elsenulllastError{ stage, message, at }of the last failure, ornulllastSyncResultThe last run's per-source counts plus the enrichment and auto-resolve pass results The in-memory status resets on restart; checkpoints and the gap are filled from the persisted settings.
Auto-Resolve
GET /api/integrations/sophos/auto-resolve/status
PUT /api/integrations/sophos/auto-resolve/mode
GET /api/integrations/sophos/auto-resolve/receipts?limit=<n>&offset=<n>
/auto-resolve/status(integrations:read):{ success, data: { mode, permission_mode, counts, dry_run_counts, lastAutoResolve } }.countsare real resolutions (f0rtika.auto_resolved: true) perlast24h/last7d/last30d;dry_run_countsare dry-run receipts, counted separately.lastAutoResolveis the last pass result ornull./auto-resolve/mode(integrations:write): body{ "mode": "disabled" | "dry_run" | "enabled" }; returns{ success, data: { mode } }.400when not configured, or forenabledunless the integration is in Response mode./auto-resolve/receipts(integrations:read):{ success, data: { items, total, limit, offset } }, newest first, including dry-run receipts.limitdefaults to 20 (1-100). Each item hasalert_id,alert_title,severity,source_type,achilles_test_uuid,auto_resolved_at,auto_resolve_dry_run_at,auto_resolve_modeandauto_resolve_error(not_found,not_actionable,invalid_idornull). An Elasticsearch failure other than a missing index returns502.
There are no routes to isolate, scan, clean or allow-list on demand. The only
writes to Sophos come from the opt-in auto-resolve pass, which requires
Response mode: POST /common/v1/alerts/{id}/actions with acknowledge, and the
GraphQL detectionUpdateResolutionInfo mutation with TRUE_POSITIVE_BENIGN. In
read-only mode the API client refuses everything else before it is sent.
See Sophos Auto-Resolve for the feature walkthrough.