{
  "model_id": "SOC.079",
  "name": "DNS Tunneling Indicator",
  "description": "DNS query with unusually long labels or high-entropy subdomains — typical of DNS tunnel C2.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "DNS",
      "type": "comparison",
      "left": "event.raw.query_type",
      "operator": "==",
      "right": "A",
      "weight": 2
    },
    {
      "name": "LongLabel",
      "type": "comparison",
      "left": "event.raw.query",
      "operator": "LIKE",
      "right": "%.%.%.%.%.%.%.%.%",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "DNS",
        "LongLabel"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "DNS query with abnormally long label — possible DNS tunneling."
    }
  ],
  "mitre_tactics": [
    "Command and Control"
  ],
  "mitre_techniques": [
    "T1071.004",
    "T1132"
  ],
  "severity": "high",
  "observables": [
    "event.raw.query"
  ]
}
