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("Product", default="") == "GNU Privacy Guard (GnuPG)",
                    event.deep_get("Description", default="") == "GnuPG’s OpenPGP tool",
                ]
            ),
            "-passphrase" in event.deep_get("CommandLine", default=""),
            any(
                [
                    ":\\PerfLogs\\" in event.deep_get("CommandLine", default=""),
                    ":\\Temp\\" in event.deep_get("CommandLine", default=""),
                    ":\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                    ":\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Roaming\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
