def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\netsh.exe"),
                    event.deep_get("OriginalFileName", default="") == "netsh.exe",
                ]
            ),
            "advfirewall" in event.deep_get("CommandLine", default=""),
            "firewall" in event.deep_get("CommandLine", default=""),
            "set" in event.deep_get("CommandLine", default=""),
            "rule" in event.deep_get("CommandLine", default=""),
            "group=" in event.deep_get("CommandLine", default=""),
            "new" in event.deep_get("CommandLine", default=""),
            "enable=Yes" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
