{
  "model_id": "SOC.025",
  "name": "Login After Long Inactivity",
  "description": "Successful login for a user account that has been inactive for an extended period — possible stale-account abuse.",
  "threshold": 0.5,
  "evaluations": [
    {
      "name": "Success",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "auth.ssh.success",
      "weight": 2
    },
    {
      "name": "Stale",
      "type": "comparison",
      "left": "event.raw.days_since_last_login",
      "operator": "\u003e",
      "right": 90,
      "weight": 4
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Success",
        "Stale"
      ],
      "weight": 4
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Login to stale account {event.actor.user} — last active \u003e90 days ago."
    }
  ],
  "mitre_tactics": [
    "Initial Access"
  ],
  "mitre_techniques": [
    "T1078"
  ],
  "severity": "medium",
  "observables": [
    "event.actor.user",
    "event.actor.ip"
  ]
}
