{
  "model_id": "SOC.036",
  "name": "Systemd Unit With /tmp Exec",
  "description": "New systemd service whose ExecStart points at /tmp or /dev/shm.",
  "threshold": 0.85,
  "evaluations": [
    {
      "name": "UnitAdd",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "persistence.systemd_unit.added",
      "weight": 4
    },
    {
      "name": "TmpExec",
      "type": "comparison",
      "left": "event.raw.content",
      "operator": "LIKE",
      "right": "%ExecStart=%/tmp/%",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "UnitAdd",
        "TmpExec"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Systemd unit executing from /tmp — backdoor persistence."
    }
  ],
  "mitre_tactics": [
    "Persistence"
  ],
  "mitre_techniques": [
    "T1543.002"
  ],
  "severity": "critical",
  "observables": [
    "event.raw.path"
  ]
}
