{
  "model_id": "SOC.035",
  "name": "Cron Entry With /tmp Path",
  "description": "Cron job referencing files in /tmp, /var/tmp, or /dev/shm — almost always malicious.",
  "threshold": 0.85,
  "evaluations": [
    {
      "name": "CronAdd",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "persistence.cron.added",
      "weight": 4
    },
    {
      "name": "TmpRef",
      "type": "comparison",
      "left": "event.raw.content",
      "operator": "LIKE",
      "right": "%/tmp/%",
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "CronAdd",
        "TmpRef"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Cron job references /tmp — likely malicious persistence."
    }
  ],
  "mitre_tactics": [
    "Persistence"
  ],
  "mitre_techniques": [
    "T1053.003"
  ],
  "severity": "critical",
  "observables": [
    "event.raw.path"
  ]
}
