def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\gpg.exe"),
                            event.deep_get("Image", default="").endswith("\\gpg2.exe"),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="") == "gpg.exe",
                    event.deep_get("Description", default="") == "GnuPG’s OpenPGP tool",
                ]
            ),
            not any(
                [
                    ":\\Program Files (x86)\\GNU\\GnuPG\\bin\\"
                    in event.deep_get("Image", default=""),
                    ":\\Program Files (x86)\\GnuPG VS-Desktop\\"
                    in event.deep_get("Image", default=""),
                    ":\\Program Files (x86)\\GnuPG\\bin\\" in event.deep_get("Image", default=""),
                    ":\\Program Files (x86)\\Gpg4win\\bin\\" in event.deep_get("Image", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
