{
  "model_id": "SOC.006",
  "name": "Shadow File Tampering",
  "description": "Any write to /etc/shadow.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Mod",
      "type": "comparison",
      "left": "event.type",
      "operator": "IN",
      "right": [
        "identity.shadow.modified",
        "file.critical.write"
      ],
      "weight": 4
    },
    {
      "name": "Path",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "==",
      "right": "/etc/shadow",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "OR",
      "operands": [
        "Mod",
        "Path"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "/etc/shadow modified — possible credential theft."
    }
  ],
  "mitre_tactics": [
    "Credential Access",
    "Defense Evasion"
  ],
  "mitre_techniques": [
    "T1003.008"
  ],
  "severity": "high",
  "observables": [
    "event.raw.path"
  ]
}
