def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\RuntimeBroker.exe"),
                    event.deep_get("Image", default="").endswith("\\outlook.exe"),
                    event.deep_get("Image", default="").endswith("\\thunderbird.exe"),
                    event.deep_get("Image", default="").endswith("\\brave.exe"),
                    event.deep_get("Image", default="").endswith("\\chrome.exe"),
                    event.deep_get("Image", default="").endswith("\\firefox.exe"),
                    event.deep_get("Image", default="").endswith("\\iexplore.exe"),
                    event.deep_get("Image", default="").endswith("\\maxthon.exe"),
                    event.deep_get("Image", default="").endswith("\\MicrosoftEdge.exe"),
                    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"),
                ]
            ),
            any(
                [
                    any(
                        [
                            event.deep_get("TargetFilename", default="").endswith(".docm"),
                            event.deep_get("TargetFilename", default="").endswith(".dotm"),
                            event.deep_get("TargetFilename", default="").endswith(".xlsm"),
                            event.deep_get("TargetFilename", default="").endswith(".xltm"),
                            event.deep_get("TargetFilename", default="").endswith(".potm"),
                            event.deep_get("TargetFilename", default="").endswith(".pptm"),
                        ]
                    ),
                    any(
                        [
                            ".docm:Zone" in event.deep_get("TargetFilename", default=""),
                            ".dotm:Zone" in event.deep_get("TargetFilename", default=""),
                            ".xlsm:Zone" in event.deep_get("TargetFilename", default=""),
                            ".xltm:Zone" in event.deep_get("TargetFilename", default=""),
                            ".potm:Zone" in event.deep_get("TargetFilename", default=""),
                            ".pptm:Zone" in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
