{
  "$id": "https://schemas.sand.binaryedge.io/minion/modules/exchange-owa",
  "title": "Exchange OWA Module Output Body",
  "type": "object",
  "properties": {
    "ecp_enabled": {
      "type": "boolean"
    },
    "evidence": {
      "oneOf": [
        {
          "type": "object",
          "patternProperties": {
            ".*": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "ews_enabled": {
      "type": "boolean"
    },
    "iocs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "remote_powershell": {
      "type": "boolean"
    },
    "remote_powershell_tls": {
      "type": "boolean"
    },
    "rpc_enabled": {
      "type": "boolean"
    },
    "server_names": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "version": {
      "$ref": "#/$defs/version"
    },
    "vulnerabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "disposition": {
      "$comment": "on-premise or cloud",
      "type": "string",
      "enum": [
        "on-premise",
        "cloud"
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "version": {
      "type": "object",
      "properties": {
        "build_name": {
          "type": "string"
        },
        "build_version": {
          "type": "string"
        },
        "release_date": {
          "$comment": "Should be blank or YYYY-MM-DD.",
          "type": "string",
          "pattern": "^|[0-9]{4}-[0-9]{2}-[0-9]{2}$"
        },
        "release_days": {
          "type": "integer"
        }
      },
      "required": [
        "build_name",
        "build_version"
      ],
      "additionalProperties": false
    }
  }
}
