{
  "model_id": "SOC.007",
  "name": "UID 0 Escalation",
  "description": "New user with UID 0 outside the legitimate root account.",
  "threshold": 0.9,
  "evaluations": [
    {
      "name": "UID0",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "identity.user.uid0",
      "weight": 5
    },
    {
      "name": "NotRoot",
      "type": "comparison",
      "left": "event.actor.user",
      "operator": "!=",
      "right": "root",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "UID0",
        "NotRoot"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Backdoor account {event.actor.user} has UID 0."
    },
    {
      "type": "request_kill",
      "reason": "Investigate rogue UID 0."
    }
  ],
  "mitre_tactics": [
    "Persistence",
    "Privilege Escalation"
  ],
  "mitre_techniques": [
    "T1136",
    "T1078",
    "T1548"
  ],
  "severity": "critical",
  "observables": [
    "event.actor.user"
  ]
}
