def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\chrome.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\discord.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\GitHubDesktop.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\keybase.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\msedge.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\msedgewebview2.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\msteams.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\slack.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\teams.exe"),
                ]
            ),
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            event.deep_get("Image", default="").endswith("\\cscript.exe"),
                            event.deep_get("Image", default="").endswith("\\mshta.exe"),
                            event.deep_get("Image", default="").endswith("\\powershell.exe"),
                            event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                            event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                            event.deep_get("Image", default="").endswith("\\whoami.exe"),
                            event.deep_get("Image", default="").endswith("\\wscript.exe"),
                        ]
                    ),
                    any(
                        [
                            ":\\ProgramData\\" in event.deep_get("Image", default=""),
                            ":\\Temp\\" in event.deep_get("Image", default=""),
                            "\\AppData\\Local\\Temp\\" in event.deep_get("Image", default=""),
                            "\\Users\\Public\\" in event.deep_get("Image", default=""),
                            "\\Windows\\Temp\\" in event.deep_get("Image", default=""),
                        ]
                    ),
                ]
            ),
            not all(
                [
                    event.deep_get("ParentImage", default="").endswith("\\Discord.exe"),
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    "\\NVSMI\\nvidia-smi.exe" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
