Description
What happens
canonical_to_ecs maps a handful of top-level ECS fields and then nests the whole canonical event under a vendor key:
"agentmetry": canonical,The ECS threat.* fieldset is never populated. A credential read that mitre.py correctly classified as T1552.001 arrives in Elasticsearch as:
agentmetry.tool.mitre.technique_id = "T1552.001"
and threat.technique.id is absent.
Splunk and CloudEvents have the same shape. canonical_to_hec_event nests the event under "event" and promotes only action_type, action_outcome, correlation_id and actor_id into indexed fields. No technique among them.
The single exception is Chronicle, which puts detection.technique_ids into security_result.category_details. That is a free-form string list, not a technique field, and it only fires on action.type == "detection", so ordinary enriched tool calls carry nothing.
Why it matters
The point of mapping ATT&CK at all is that a SOC already speaks it. They do, but they speak it through threat.technique.id. That is the field ATT&CK Navigator coverage layers read, that prebuilt detection content joins on, and that every "techniques observed this week" dashboard aggregates.
A customer installs Agentmetry, forwards into their existing Elastic, opens the ATT&CK dashboard they already had, and sees nothing from us. The mapping work is done and correct. It is landing in a namespace nobody queries by default.
This makes the integration look shallower than it is, and it is the cheapest credibility fix available before the pilot.
Proposed change
In canonical_to_ecs, when tool.mitre is present, populate:
threat.framework = "MITRE ATT&CK"
threat.tactic.id = tool.mitre.tactic_id
threat.tactic.name = tool.mitre.tactic
threat.technique.id = tool.mitre.technique_id
threat.technique.name = tool.mitre.technique
Keep agentmetry.* exactly as it is. Nothing that queries the vendor path today should break.
Omit the whole block when there is no mapping. get_mitre_mapping returns None rather than guessing, and the adapter must not invent a value to make the document look complete. An absent threat.technique.id is the correct representation of "we did not classify this."
Set threat.framework explicitly rather than leaving it implied. ECS provides that field precisely because the fieldset is not reserved to one taxonomy, and naming it is what keeps a future second framework from silently polluting the same aggregation.
Consider the same promotion for Splunk indexed fields and for Chronicle outside the detection path, but ECS is where the payoff is concentrated.
Scope
adapters/ecs.py is not one of the ruleset fingerprint inputs in dogfood.py (detection/rules.py, detection/traits.py, detection/engine.py, audit/mitre.py, plus the detection manifest). This change does not move the fingerprint and does not restart the dogfood clock.
Not in scope
Do not route MITRE ATLAS techniques into threat.*. Those fields are ATT&CK-typed in practice, and an AML.T**** value in threat.technique.id would corrupt customer aggregations that do not filter on threat.framework. Agent-directed taxonomy is tracked separately.
Activity
blitzcrieg1 commentedon Aug 21, 2026
Agent-directed taxonomy is now tracked in #47. Land this one first: it is unblocked, it does not touch the dogfood fingerprint, and it establishes that
threat.*carries ATT&CK only, which is the constraint #47 depends on.