def rule(event):
    if all(
        [
            any(
                [
                    all(
                        [
                            any(
                                [
                                    event.deep_get("TargetFilename", default="").endswith(".exe"),
                                    event.deep_get("TargetFilename", default="").endswith(".iso"),
                                    event.deep_get("TargetFilename", default="").endswith(".rar"),
                                    event.deep_get("TargetFilename", default="").endswith(".svg"),
                                    event.deep_get("TargetFilename", default="").endswith(".zip"),
                                ]
                            ),
                            any(
                                [
                                    ".doc." in event.deep_get("TargetFilename", default=""),
                                    ".docx." in event.deep_get("TargetFilename", default=""),
                                    ".gif." in event.deep_get("TargetFilename", default=""),
                                    ".jpeg." in event.deep_get("TargetFilename", default=""),
                                    ".jpg." in event.deep_get("TargetFilename", default=""),
                                    ".mp3." in event.deep_get("TargetFilename", default=""),
                                    ".mp4." in event.deep_get("TargetFilename", default=""),
                                    ".pdf." in event.deep_get("TargetFilename", default=""),
                                    ".png." in event.deep_get("TargetFilename", default=""),
                                    ".ppt." in event.deep_get("TargetFilename", default=""),
                                    ".pptx." in event.deep_get("TargetFilename", default=""),
                                    ".rtf." in event.deep_get("TargetFilename", default=""),
                                    ".svg." in event.deep_get("TargetFilename", default=""),
                                    ".txt." in event.deep_get("TargetFilename", default=""),
                                    ".xls." in event.deep_get("TargetFilename", default=""),
                                    ".xlsx." in event.deep_get("TargetFilename", default=""),
                                ]
                            ),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("TargetFilename", default="").endswith(".rar.exe"),
                            event.deep_get("TargetFilename", default="").endswith(".zip.exe"),
                        ]
                    ),
                ]
            ),
            not event.deep_get("TargetFilename", default="").startswith("/usr/share/icons/"),
        ]
    ):
        return True
    return False
