def rule(event):
    if all(
        [
            "MSSQL" in event.deep_get("Provider_Name", default=""),
            event.deep_get("EventID", default="") == 33205,
            any(
                [
                    "statement:ALTER SERVER AUDIT" in event.deep_get("Data", default=""),
                    "statement:DROP SERVER AUDIT" in event.deep_get("Data", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
