{
  "model_id": "SOC.008",
  "name": "Suspicious Binary In Tmp",
  "description": "Executable file written under /tmp, /var/tmp, or /dev/shm.",
  "threshold": 0.75,
  "evaluations": [
    {
      "name": "Write",
      "type": "comparison",
      "left": "event.type",
      "operator": "IN",
      "right": [
        "file.critical.write",
        "file.write"
      ],
      "weight": 3
    },
    {
      "name": "Location",
      "type": "logical",
      "operator": "OR",
      "operands": [
        "Tmp",
        "VarTmp",
        "DevShm"
      ],
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Write",
        "Location"
      ],
      "weight": 5
    },
    {
      "name": "Tmp",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "LIKE",
      "right": "/tmp/%",
      "weight": 4
    },
    {
      "name": "VarTmp",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "LIKE",
      "right": "/var/tmp/%",
      "weight": 4
    },
    {
      "name": "DevShm",
      "type": "comparison",
      "left": "event.raw.path",
      "operator": "LIKE",
      "right": "/dev/shm/%",
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "File in temp dir: {event.raw.path}."
    },
    {
      "type": "request_quarantine",
      "reason": "Quarantine suspicious file."
    }
  ],
  "mitre_tactics": [
    "Execution",
    "Defense Evasion"
  ],
  "mitre_techniques": [
    "T1105",
    "T1059"
  ],
  "severity": "high",
  "observables": [
    "event.raw.path"
  ]
}
