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
+10 -1
View File
@@ -64,7 +64,7 @@ commands:
outputs_schema: { properties: {} }
- id: list_alerts
name: tmv1-list-alerts
description: "List Workbench alerts in a time window."
description: "List Workbench alerts in a time window. Used for ingestion: results path = items."
risk: read
inputs_schema:
properties:
@@ -73,6 +73,10 @@ commands:
top: { type: number, description: "Max alerts (default 50)" }
required: []
outputs_schema: { properties: {} }
ingest:
results_path: items
dedup_key: id
incremental_field: start_datetime
- id: get_alert
name: tmv1-get-alert
description: "Get a single Workbench alert by ID."
@@ -110,3 +114,8 @@ commands:
properties: {}
required: []
outputs_schema: { properties: {} }
ingestion:
command: list_alerts
mapper: list_alerts
default_incident_type: "Trend Vision One Alert"
@@ -0,0 +1,35 @@
name: "Trend Micro Vision One Workbench Alerts → OCSF"
description: "Maps a Vision One Workbench alert (GET /v3.0/workbench/alerts, results_path = items) to OCSF finding fields. Field names verified against the v3.0 Workbench alert schema (demisto/content TrendMicroVisionOneV3 + trendmicro/tm-v1-api-cookbook). Vision One severity is a string (critical/high/medium/low/info); impactScope entities are typed (host/account/emailAddress/…) — first host → src_endpoint, first account → user."
field_mappings:
title: "model"
severity: "severity = 'critical' ? 5 : (severity = 'high' ? 4 : (severity = 'medium' ? 3 : (severity = 'low' ? 2 : 1)))"
description: "description"
# results_path = items; source_path is JSONata over ONE alert object.
# Paths absent from a given alert are skipped at ingestion, so extra entries are safe.
ocsf:
# ── Finding / analytic ────────────────────────────────────────────
- { source_path: "id", ocsf_field: "finding_info.uid" }
- { source_path: "model", ocsf_field: "finding_info.title" }
- { source_path: "description", ocsf_field: "finding_info.desc" }
- { source_path: "createdDateTime", ocsf_field: "finding_info.created_time" }
- { source_path: "updatedDateTime", ocsf_field: "finding_info.modified_time" }
- { source_path: "workbenchLink", ocsf_field: "finding_info.src_url" }
- { source_path: "score", ocsf_field: "confidence_score" }
- { source_path: "investigationStatus", ocsf_field: "status" }
# ── Detection model as the rule ───────────────────────────────────
- { source_path: "model", ocsf_field: "rule.name" }
- { source_path: "modelId", ocsf_field: "rule.uid" }
# ── MITRE ATT&CK (nested under matchedRules[].matchedFilters[]) ────
- { source_path: "matchedRules[0].matchedFilters[0].mitreTechniqueIds[0]", ocsf_field: "attacks.technique.uid" }
# ── Impacted host — first 'host' entity → src_endpoint / device ────
- { source_path: "impactScope.entities[entityType='host'][0].entityValue.name", ocsf_field: "src_endpoint.hostname" }
- { source_path: "impactScope.entities[entityType='host'][0].entityValue.ips[0]", ocsf_field: "src_endpoint.ip" }
- { source_path: "impactScope.entities[entityType='host'][0].entityValue.guid", ocsf_field: "device.uid" }
# ── Impacted account — first 'account' entity → user ──────────────
- { source_path: "impactScope.entities[entityType='account'][0].entityValue", ocsf_field: "user.name" }
# ── IOC / observable (first indicator) ────────────────────────────
- { source_path: "indicators[0].value", ocsf_field: "observables.value" }
- { source_path: "indicators[0].type", ocsf_field: "observables.type" }
- { source_path: "indicators[0].field", ocsf_field: "observables.name" }
# ── Product provenance ────────────────────────────────────────────
- { source_path: "alertProvider", ocsf_field: "metadata.product.name" }