{
  "model_id": "SOC.021",
  "name": "SSH At Unusual Hour",
  "description": "SSH login between 01:00-05:00 local time — outside typical admin windows.",
  "threshold": 0.5,
  "evaluations": [
    {
      "name": "Success",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "auth.ssh.success",
      "weight": 2
    },
    {
      "name": "OffHours",
      "type": "comparison",
      "left": "event.time",
      "operator": "LIKE",
      "right": "T0[1-4]:%",
      "weight": 4
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Success",
        "OffHours"
      ],
      "weight": 3
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "SSH login during off-hours — verify with the user."
    }
  ],
  "mitre_tactics": [
    "Initial Access"
  ],
  "mitre_techniques": [
    "T1078"
  ],
  "severity": "low",
  "observables": [
    "event.actor.user",
    "event.actor.ip"
  ]
}
