{
  "model_id": "SOC.026",
  "name": "Reverse Shell Detected",
  "description": "Process cmdline matches common reverse-shell patterns (bash -i \u003e\u0026 /dev/tcp, nc -e, ncat -l).",
  "threshold": 0.9,
  "evaluations": [
    {
      "name": "Proc",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "process.longlived",
      "weight": 2
    },
    {
      "name": "Cmdline",
      "type": "comparison",
      "left": "event.raw.cmdline",
      "operator": "LIKE",
      "right": "%bash -i%",
      "weight": 4
    },
    {
      "name": "OrShell",
      "type": "logical",
      "operator": "OR",
      "operands": [
        "Cmdline",
        "NcExec",
        "NcatExec"
      ],
      "weight": 5
    },
    {
      "name": "NcExec",
      "type": "comparison",
      "left": "event.actor.exe",
      "operator": "LIKE",
      "right": "%/nc",
      "weight": 4
    },
    {
      "name": "NcatExec",
      "type": "comparison",
      "left": "event.actor.exe",
      "operator": "LIKE",
      "right": "%/ncat",
      "weight": 4
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Reverse shell pattern detected."
    },
    {
      "type": "request_kill",
      "reason": "Kill the reverse-shell process."
    }
  ],
  "mitre_tactics": [
    "Execution"
  ],
  "mitre_techniques": [
    "T1059.004"
  ],
  "severity": "critical",
  "observables": [
    "event.actor.exe",
    "event.actor.pid",
    "event.actor.user"
  ]
}
