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>
This commit is contained in:
@@ -67,13 +67,16 @@ commands:
|
||||
outputs_schema: { properties: {} }
|
||||
- id: list_alerts
|
||||
name: sophos-list-alerts
|
||||
description: "List alerts."
|
||||
description: "List alerts. Used for ingestion: results path = items."
|
||||
risk: read
|
||||
inputs_schema:
|
||||
properties:
|
||||
limit: { type: number, description: "Max alerts (default 50)" }
|
||||
required: []
|
||||
outputs_schema: { properties: {} }
|
||||
ingest:
|
||||
results_path: items
|
||||
dedup_key: id
|
||||
|
||||
- id: test_connection
|
||||
name: sophos-test-connection
|
||||
@@ -83,3 +86,8 @@ commands:
|
||||
properties: {}
|
||||
required: []
|
||||
outputs_schema: { properties: {} }
|
||||
|
||||
ingestion:
|
||||
command: list_alerts
|
||||
mapper: list_alerts
|
||||
default_incident_type: "Sophos Central Alert"
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user