{
  "model_id": "SOC.002",
  "name": "SSH Brute Force On Root",
  "description": "Five or more failed SSH logins targeting root within 10 minutes.",
  "threshold": 0.9,
  "evaluations": [
    {
      "name": "Failed",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "auth.ssh.failed",
      "weight": 3
    },
    {
      "name": "Root",
      "type": "comparison",
      "left": "event.actor.user",
      "operator": "==",
      "right": "root",
      "weight": 5
    },
    {
      "name": "Count",
      "type": "aggregation",
      "aggregation": "COUNT",
      "field": "event.actor.ip",
      "weight": 4
    },
    {
      "name": "Five",
      "type": "comparison",
      "left": "@Count",
      "operator": "\u003e=",
      "right": 5,
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Failed",
        "Root",
        "Five"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Brute-force on root from {event.actor.ip}."
    },
    {
      "type": "request_block_ip",
      "reason": "Block source IP."
    }
  ],
  "mitre_tactics": [
    "Credential Access"
  ],
  "mitre_techniques": [
    "T1110"
  ],
  "severity": "high",
  "observables": [
    "event.actor.ip"
  ]
}
