{
  "rule_id": "casa-unifi-iot-pico-bloqueios",
  "name": "UniFi: pico de bloqueios de um aparelho IoT",
  "description": "Mesmo aparelho IoT com 100+ bloqueios em 5 min (normal ~20 dos Tuya/Sonoff chamando a nuvem). Pode indicar firmware alterado, malware ou varredura.",
  "type": "threshold",
  "language": "kuery",
  "query": "cef.extensions.UNIFIsrcZone:\"IoT\" and event.action:\"blocked\"",
  "index": [
    "logs-cef.log-casa*"
  ],
  "severity": "medium",
  "risk_score": 47,
  "threshold": {
    "field": [
      "source.mac"
    ],
    "value": 100
  },
  "threat": [
    {
      "framework": "MITRE ATT&CK",
      "tactic": {
        "id": "TA0011",
        "name": "Command and Control",
        "reference": "https://attack.mitre.org/tactics/TA0011/"
      },
      "technique": [
        {
          "id": "T1071",
          "name": "Application Layer Protocol",
          "reference": "https://attack.mitre.org/techniques/T1071/",
          "subtechnique": []
        },
        {
          "id": "T1571",
          "name": "Non-Standard Port",
          "reference": "https://attack.mitre.org/techniques/T1571/",
          "subtechnique": []
        }
      ]
    }
  ],
  "tags": [
    "Casa",
    "UniFi",
    "Custom"
  ],
  "interval": "5m",
  "from": "now-6m",
  "max_signals": 100,
  "enabled": true,
  "version": 1
}
