{
  "model_id": "SOC.049",
  "name": "Capabilities Set On Binary",
  "description": "setcap used to grant capabilities (CAP_SYS_ADMIN, CAP_NET_RAW, etc.) to a binary — alternative to SUID for privesc.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Setcap",
      "type": "comparison",
      "left": "event.raw.comm",
      "operator": "==",
      "right": "setcap",
      "weight": 4
    },
    {
      "name": "CapSysAdmin",
      "type": "comparison",
      "left": "event.raw.cmdline",
      "operator": "LIKE",
      "right": "%cap_sys_admin%",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Setcap",
        "CapSysAdmin"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "setcap granting CAP_SYS_ADMIN — investigate."
    }
  ],
  "mitre_tactics": [
    "Privilege Escalation"
  ],
  "mitre_techniques": [
    "T1548"
  ],
  "severity": "high",
  "observables": [
    "event.raw.cmdline"
  ]
}
