{
  "rule_id": "casa-unifi-iot-para-rede-interna",
  "name": "UniFi: IoT tentando acessar rede interna ou o gateway",
  "description": "Aparelho da VLAN IoT bloqueado tentando falar com a rede principal (Internal) ou com o próprio UDM (Gateway). Não deveria acontecer: possível movimento lateral/varredura a partir de aparelho comprometido.",
  "type": "query",
  "language": "kuery",
  "query": "cef.extensions.UNIFIsrcZone:\"IoT\" and cef.extensions.UNIFIdstZone:(\"Internal\" or \"Gateway\") and event.action:\"blocked\"",
  "index": [
    "logs-cef.log-casa*"
  ],
  "severity": "high",
  "risk_score": 73,
  "threat": [
    {
      "framework": "MITRE ATT&CK",
      "tactic": {
        "id": "TA0008",
        "name": "Lateral Movement",
        "reference": "https://attack.mitre.org/tactics/TA0008/"
      },
      "technique": [
        {
          "id": "T1210",
          "name": "Exploitation of Remote Services",
          "reference": "https://attack.mitre.org/techniques/T1210/",
          "subtechnique": []
        }
      ]
    },
    {
      "framework": "MITRE ATT&CK",
      "tactic": {
        "id": "TA0007",
        "name": "Discovery",
        "reference": "https://attack.mitre.org/tactics/TA0007/"
      },
      "technique": [
        {
          "id": "T1046",
          "name": "Network Service Discovery",
          "reference": "https://attack.mitre.org/techniques/T1046/",
          "subtechnique": []
        }
      ]
    }
  ],
  "tags": [
    "Casa",
    "UniFi",
    "Custom"
  ],
  "interval": "5m",
  "from": "now-6m",
  "max_signals": 100,
  "enabled": true,
  "version": 1
}
