{
  "model_id": "SOC.081",
  "name": "Beaconing Pattern Detected",
  "description": "Regular periodic outbound connections to the same destination — C2 beaconing.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Conn",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "network.connection.established",
      "weight": 2
    },
    {
      "name": "ConnCount",
      "type": "aggregation",
      "aggregation": "COUNT",
      "field": "event.raw.remote_ip",
      "weight": 3
    },
    {
      "name": "Regular",
      "type": "comparison",
      "left": "@ConnCount",
      "operator": "\u003e=",
      "right": 20,
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Conn",
        "Regular"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Beaconing pattern to {event.raw.remote_ip} — possible C2."
    }
  ],
  "mitre_tactics": [
    "Command and Control"
  ],
  "mitre_techniques": [
    "T1071",
    "T1571"
  ],
  "severity": "high",
  "observables": [
    "event.raw.remote_ip"
  ]
}
