{
  "model_id": "SOC.099",
  "name": "Nmap Installed",
  "description": "Network scanning tool (nmap, masscan, hydra, sqlmap) installed — legitimate on admin boxes, suspicious on production servers.",
  "threshold": 0.5,
  "evaluations": [
    {
      "name": "Installed",
      "type": "comparison",
      "left": "event.type",
      "operator": "==",
      "right": "package.installed",
      "weight": 3
    },
    {
      "name": "Tool",
      "type": "comparison",
      "left": "event.raw.name",
      "operator": "IN",
      "right": [
        "nmap",
        "masscan",
        "hydra",
        "sqlmap",
        "metasploit",
        "john",
        "hashcat",
        "aircrack-ng"
      ],
      "weight": 5
    },
    {
      "name": "Logic",
      "type": "logical",
      "operator": "AND",
      "operands": [
        "Installed",
        "Tool"
      ],
      "weight": 5
    }
  ],
  "actions": [
    {
      "type": "emit_alert",
      "reason": "Security tool installed: {event.raw.name} — verify authorisation."
    }
  ],
  "mitre_tactics": [
    "Reconnaissance",
    "Discovery"
  ],
  "mitre_techniques": [
    "T1046",
    "T1110"
  ],
  "severity": "medium",
  "observables": [
    "event.raw.name"
  ]
}
