Agent Spoofing - Mismatched Agent IDedit

Detects events which have a mismatch on the expected event agent ID. The status "agent_id_mismatch" occurs when the expected agent ID associated with the API key does not match the actual agent ID in an event. This could indicate attempts to spoof events in order to masquerade actual activity to evade detection.

Rule type: query

Rule indices:

  • logs-*
  • metrics-*
  • traces-*

Severity: high

Risk score: 73

Runs every: 5 minutes

Searches indices from: now-9m (Date Math format, see also Additional look-back time)

Maximum alerts per execution: 100

Tags:

  • Elastic
  • Threat Detection
  • Defense Evasion

Version: 1

Added (Elastic Stack release): 7.14.0

Rule authors: Elastic

Rule license: Elastic License v2

Potential false positivesedit

This is meant to run only on datasources using agents v7.14+ since versions prior to that will be missing the necessary field, resulting in false positives.

Rule queryedit

event.agent_id_status:agent_id_mismatch

Threat mappingedit

Framework: MITRE ATT&CKTM