Files
riposte-marketplace/integrations/sophos-central/mappers/list_alerts.yaml
T
f3nris f6b8c84285 feat(edr): OCSF mappers + ingestion for 6 EDR integrations
Every EDR (category: endpoint) integration is now audited for an OCSF mapper.
Six had a fetch command but no mapper — add a bundled OCSF mapper for each,
wire the fetch command as an ingestion source (ingest: results_path/dedup_key
[/incremental_field]) and add the top-level ingestion block. Field mappings
were derived from each vendor's fetch output and cross-referenced against the
demisto/content reference for that vendor.

- carbon-black-cloud: search_alerts (results_path results, dedup id) — 35 fields
- cisco-secure-endpoint: list_events (data, id) — 21 fields
- cybereason: query_malops (malops, guid, incr start_time) — 6 fields
- sophos-central: list_alerts (items, id) — 14 fields
- trend-vision-one: list_alerts (items, id, incr start_datetime) — 19 fields
- withsecure: list_incidents (items, incidentId) — 7 fields

Validated: every manifest passes ParseManifest+ValidateManifest and every mapper
passes ParseMapperFile with all JSONata source_path/field expressions compiling.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-15 22:37:07 +02:00

33 lines
2.6 KiB
YAML

name: "Sophos Central Alerts → OCSF"
description: "Maps a Sophos Central alert (GET /common/v1/alerts, results_path = items) to OCSF Detection Finding fields. Sophos severity is a string enum (high/medium/low); managedAgent is the affected endpoint."
field_mappings:
title: "description"
description: "description"
# Sophos severity enum → 1-5 incident scale. Right-associative chaining, no parentheses;
# the last band uses a literal else so 'low' and anything unknown land on 2.
severity: "severity = 'high' ? 4 : severity = 'medium' ? 3 : 2"
# Product that raised the alert (e.g. endpoint, server, mobile).
source: "product"
# results_path = items; source_path is JSONata over ONE alert object using RAW field names.
# Fields absent from a given alert return nothing and are skipped.
ocsf:
# ── Finding ───────────────────────────────────────────────────────
- { source_path: "id", ocsf_field: "finding_info.uid" }
- { source_path: "description", ocsf_field: "finding_info.title" }
- { source_path: "groupKey", ocsf_field: "finding_info.desc" }
- { source_path: "raisedAt", ocsf_field: "finding_info.created_time" }
- { source_path: "type", ocsf_field: "finding_info.analytic.type" }
- { source_path: "severity", ocsf_field: "severity" }
# ── Alert classification ──────────────────────────────────────────
- { source_path: "category", ocsf_field: "rule.category" }
- { source_path: "type", ocsf_field: "rule.name" }
# ── Affected endpoint (managedAgent) ──────────────────────────────
- { source_path: "managedAgent.name", ocsf_field: "src_endpoint.hostname" }
- { source_path: "managedAgent.id", ocsf_field: "device.uid" }
- { source_path: "managedAgent.type", ocsf_field: "device.type" }
# ── Referenced person ─────────────────────────────────────────────
- { source_path: "person.name", ocsf_field: "user.name" }
# ── Provenance ────────────────────────────────────────────────────
- { source_path: "product", ocsf_field: "metadata.product.name" }
- { source_path: "tenant.id", ocsf_field: "metadata.tenant_uid" }