def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\netsh.exe"),
                    event.deep_get("OriginalFileName", default="") == "netsh.exe",
                ]
            ),
            any(
                [
                    all(
                        [
                            "interface" in event.deep_get("CommandLine", default=""),
                            "portproxy" in event.deep_get("CommandLine", default=""),
                            "add" in event.deep_get("CommandLine", default=""),
                            "v4tov4" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "i " in event.deep_get("CommandLine", default=""),
                            "p " in event.deep_get("CommandLine", default=""),
                            "a " in event.deep_get("CommandLine", default=""),
                            "v " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "connectp" in event.deep_get("CommandLine", default=""),
                            "listena" in event.deep_get("CommandLine", default=""),
                            "c=" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
