def rule(event):
    if all(
        [
            event.deep_get("Contents", default="").startswith("[ZoneTransfer]  ZoneId=3"),
            event.deep_get("TargetFilename", default="").endswith(":Zone.Identifier"),
            any(
                [
                    ".exe" in event.deep_get("TargetFilename", default=""),
                    ".scr" in event.deep_get("TargetFilename", default=""),
                    ".bat" in event.deep_get("TargetFilename", default=""),
                    ".cmd" in event.deep_get("TargetFilename", default=""),
                    ".docx" in event.deep_get("TargetFilename", default=""),
                    ".hta" in event.deep_get("TargetFilename", default=""),
                    ".jse" in event.deep_get("TargetFilename", default=""),
                    ".lnk" in event.deep_get("TargetFilename", default=""),
                    ".pptx" in event.deep_get("TargetFilename", default=""),
                    ".ps" in event.deep_get("TargetFilename", default=""),
                    ".reg" in event.deep_get("TargetFilename", default=""),
                    ".sct" in event.deep_get("TargetFilename", default=""),
                    ".vb" in event.deep_get("TargetFilename", default=""),
                    ".wsc" in event.deep_get("TargetFilename", default=""),
                    ".wsf" in event.deep_get("TargetFilename", default=""),
                    ".xlsx" in event.deep_get("TargetFilename", default=""),
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="").endswith("\\brave.exe"),
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
                        "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
                    ],
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
                        "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe",
                    ],
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
                        "C:\\Program Files\\Internet Explorer\\iexplore.exe",
                    ],
                    event.deep_get("Image", default="").endswith("\\maxthon.exe"),
                    any(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files (x86)\\Microsoft\\EdgeWebView\\Application\\"
                            ),
                            event.deep_get("Image", default="").endswith(
                                "\\WindowsApps\\MicrosoftEdge.exe"
                            ),
                            event.deep_get("Image", default="")
                            in [
                                "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
                                "C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe",
                            ],
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files (x86)\\Microsoft\\EdgeCore\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\Microsoft\\EdgeCore\\"
                                    ),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("\\msedge.exe"),
                                    event.deep_get("Image", default="").endswith(
                                        "\\msedgewebview2.exe"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith("\\opera.exe"),
                    event.deep_get("Image", default="").endswith("\\safari.exe"),
                    event.deep_get("Image", default="").endswith("\\seamonkey.exe"),
                    event.deep_get("Image", default="").endswith("\\vivaldi.exe"),
                    event.deep_get("Image", default="").endswith("\\whale.exe"),
                    all(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files\\WindowsApps\\Microsoft.ScreenSketch_"
                            ),
                            event.deep_get("Image", default="").endswith(
                                "\\SnippingTool\\SnippingTool.exe"
                            ),
                            event.deep_get("TargetFilename", default="").startswith("C:\\Users\\"),
                            "\\AppData\\Local\\Packages\\Microsoft.ScreenSketch_"
                            in event.deep_get("TargetFilename", default=""),
                            "\\TempState\\Screenshot "
                            in event.deep_get("TargetFilename", default=""),
                            event.deep_get("TargetFilename", default="").endswith(
                                ".png:Zone.Identifier"
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
