def rule(event):
    if all(
        [
            any(
                [
                    all(
                        [
                            "\\Windows\\" in event.deep_get("Image", default=""),
                            any(
                                [
                                    "\\..\\Windows\\" in event.deep_get("CommandLine", default=""),
                                    "\\..\\System32\\" in event.deep_get("CommandLine", default=""),
                                    "\\..\\..\\" in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                        ]
                    ),
                    ".exe\\..\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
            not any(
                [
                    "\\Google\\Drive\\googledrivesync.exe\\..\\"
                    in event.deep_get("CommandLine", default=""),
                    "\\Citrix\\Virtual Smart Card\\Citrix.Authentication.VirtualSmartcard.Launcher.exe\\..\\"
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
