{
  "model_id": "SOC.017",
  "name": "Host File Tampering - /etc/hosts",
  "description": "Modification of /etc/hosts — used for DNS hijacking, credential phishing via local redirects.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Write",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "file.critical.write",
      "weight": 4
    },
    {
      "name": "HostsFile",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "==",
      "right": "/etc/hosts",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Write",
        "HostsFile"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "/etc/hosts modified — verify the change is authorised."
    }
  ],
  "mitre_tactics": [
    "Reconnaissance"
  ],
  "mitre_techniques": [
    "T1565.002"
  ],
  "severity": "high",
  "observables": [
    "event.raw.path",
    "event.actor.user"
  ]
}
