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:
2026-07-15 22:37:07 +02:00
parent 5ee7352652
commit f6b8c84285
12 changed files with 242 additions and 6 deletions
+9 -1
View File
@@ -70,13 +70,16 @@ commands:
outputs_schema: { properties: {} }
- id: list_incidents
name: withsecure-list-incidents
description: "List incidents (detections)."
description: "List incidents (detections). Used for ingestion: results path = items."
risk: read
inputs_schema:
properties:
limit: { type: number, description: "Max incidents (default 50)" }
required: []
outputs_schema: { properties: {} }
ingest:
results_path: items
dedup_key: incidentId
- id: test_connection
name: withsecure-test-connection
@@ -86,3 +89,8 @@ commands:
properties: {}
required: []
outputs_schema: { properties: {} }
ingestion:
command: list_incidents
mapper: list_incidents
default_incident_type: "WithSecure Elements Incident"
@@ -0,0 +1,19 @@
name: "WithSecure Elements Incidents → OCSF"
description: "Maps a WithSecure Elements incident (Broad Context Detection / BCD) from GET /incidents/v1/incidents (results_path = items) to OCSF finding fields. Field paths validated against the WithSecure Connect Elements API OpenAPI spec (connect.withsecure.com/specs/elements). The incidents list object carries only incident-level metadata — device / user / process / file / MITRE fields live on the separate /incidents/v1/detections endpoint and are not present here."
field_mappings:
title: "name"
severity: "severity = 'critical' ? 5 : (severity = 'high' ? 4 : (severity = 'medium' ? 3 : (severity = 'low' ? 2 : 1)))"
description: "$join(categories, ', ')"
# results_path = items; source_path is JSONata over ONE incident (BCD) object.
# Paths absent from a given incident are skipped at ingestion, so extra entries are safe.
ocsf:
# ── Finding identity ──────────────────────────────────────────────
- { source_path: "incidentId", ocsf_field: "finding_info.uid" }
- { source_path: "name", ocsf_field: "finding_info.title" }
# ── Timestamps ────────────────────────────────────────────────────
- { source_path: "createdTimestamp", ocsf_field: "finding_info.created_time" }
- { source_path: "updatedTimestamp", ocsf_field: "finding_info.modified_time" }
# ── State ─────────────────────────────────────────────────────────
- { source_path: "severity", ocsf_field: "severity" }
- { source_path: "status", ocsf_field: "status" }
- { source_path: "resolution", ocsf_field: "finding_info.desc" }