{
  "model_id": "SOC.080",
  "name": "Encrypted Tunnel (stunnel/socat)",
  "description": "stunnel or socat with TLS options — wrapping arbitrary traffic in TLS to bypass inspection.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Tunnel",
      "type": "comparison",
      "left": "event.raw.comm",
      "operator": "IN",
      "right": [
        "stunnel",
        "socat"
      ],
      "weight": 4
    },
    {
      "name": "TLS",
      "type": "comparison",
      "left": "event.raw.cmdline",
      "operator": "LIKE",
      "right": "%ssl%",
      "weight": 4
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Tunnel",
        "TLS"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Encrypted tunnel established via {event.raw.comm}."
    }
  ],
  "mitre_tactics": [
    "Command and Control"
  ],
  "mitre_techniques": [
    "T1573",
    "T1105"
  ],
  "severity": "high",
  "observables": [
    "event.raw.cmdline"
  ]
}
