{
  "model_id": "SOC.092",
  "name": "High CPU Sustained Anomaly",
  "description": "CPU usage sustained above 90% for multiple consecutive metric reports — miner or runaway process.",
  "threshold": 0.7,
  "evaluations": [
    {
      "name": "Metric",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "host.metric",
      "weight": 2
    },
    {
      "name": "HighCPU",
      "type": "comparison",
      "left": "event.raw.cpu_user_pct",
      "operator": "\u003e",
      "right": 90,
      "weight": 4
    },
    {
      "name": "Count",
      "type": "aggregation",
      "aggregation": "COUNT",
      "field": "event.host.hostname",
      "weight": 3
    },
    {
      "name": "Sustained",
      "type": "comparison",
      "left": "@Count",
      "operator": "\u003e=",
      "right": 3,
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "HighCPU",
        "Sustained"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Sustained CPU \u003e90% on {event.host.hostname} — possible miner."
    }
  ],
  "mitre_tactics": [
    "Impact"
  ],
  "mitre_techniques": [
    "T1496"
  ],
  "severity": "medium",
  "observables": [
    "event.host.hostname"
  ]
}
