{
  "model_id": "SOC.046",
  "name": "New SUID Binary Created",
  "description": "A new SUID binary appeared on the filesystem — classic privilege escalation vector.",
  "threshold": 0.8,
  "evaluations": [
    {
      "name": "SUID",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "file.create",
      "weight": 3
    },
    {
      "name": "SUIDBit",
      "type": "comparison",
      "left": "event.raw.mode",
      "operator": "LIKE",
      "right": "%4%",
      "weight": 5
    },
    {
      "name": "OrLocation",
      "type": "logical",
      "operator": "OR",
      "operands": [
        "InTmp",
        "InHome"
      ],
      "weight": 4
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "SUID",
        "SUIDBit",
        "OrLocation"
      ],
      "weight": 5
    },
    {
      "name": "InTmp",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "LIKE",
      "right": "/tmp/%",
      "weight": 4
    },
    {
      "name": "InHome",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "LIKE",
      "right": "/home/%",
      "weight": 3
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "New SUID binary in user-writable location — privesc indicator."
    }
  ],
  "mitre_tactics": [
    "Privilege Escalation"
  ],
  "mitre_techniques": [
    "T1548.001"
  ],
  "severity": "critical",
  "observables": [
    "event.raw.path"
  ]
}
