{
  "model_id": "SOC.032",
  "name": "Suspicious Interpreter Spawn",
  "description": "Perl, Ruby, or Lua interpreter spawned by a non-developer user — often used by malware for cross-platform payloads.",
  "threshold": 0.6,
  "evaluations": [
    {
      "name": "Interp",
      "type": "comparison",
      "left": "event.raw.comm",
      "operator": "IN",
      "right": [
        "perl",
        "ruby",
        "lua",
        "php"
      ],
      "weight": 4
    },
    {
      "name": "DashE",
      "type": "comparison",
      "left": "event.raw.cmdline",
      "operator": "LIKE",
      "right": "%-e%",
      "weight": 3
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Interp",
        "DashE"
      ],
      "weight": 4
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Suspicious interpreter spawn: {event.raw.comm} -e."
    }
  ],
  "mitre_tactics": [
    "Execution"
  ],
  "mitre_techniques": [
    "T1059"
  ],
  "severity": "medium",
  "observables": [
    "event.actor.exe",
    "event.actor.user"
  ]
}
