def rule(event):
    if all(
        [
            "Set-NetFirewallProfile " in event.deep_get("ScriptBlockText", default=""),
            " -Enabled " in event.deep_get("ScriptBlockText", default=""),
            " False" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    " -All " in event.deep_get("ScriptBlockText", default=""),
                    "Public" in event.deep_get("ScriptBlockText", default=""),
                    "Domain" in event.deep_get("ScriptBlockText", default=""),
                    "Private" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
