{
  "model_id": "SOC.005",
  "name": "Sudoers Tampering",
  "description": "Any write or modification to /etc/sudoers.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Mod",
      "type": "comparison",
      "left": "event.type",
      "operator": "IN",
      "right": [
        "identity.sudoers.modified",
        "file.critical.write"
      ],
      "weight": 4
    },
    {
      "name": "Path",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "LIKE",
      "right": "%sudoers%",
      "weight": 4
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "OR",
      "operands": [
        "Mod",
        "Path"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "/etc/sudoers modified — verify authorisation."
    }
  ],
  "mitre_tactics": [
    "Privilege Escalation",
    "Persistence"
  ],
  "mitre_techniques": [
    "T1548.003"
  ],
  "severity": "high",
  "observables": [
    "event.raw.path"
  ]
}
