def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\gup.exe"),
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            event.deep_get("Image", default="").endswith("\\powershell.exe"),
                            event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                            event.deep_get("Image", default="").endswith("\\cscript.exe"),
                            event.deep_get("Image", default="").endswith("\\wscript.exe"),
                            event.deep_get("Image", default="").endswith("\\mshta.exe"),
                        ]
                    ),
                    any(
                        [
                            "bitsadmin" in event.deep_get("CommandLine", default=""),
                            "certutil" in event.deep_get("CommandLine", default=""),
                            "curl" in event.deep_get("CommandLine", default=""),
                            "finger" in event.deep_get("CommandLine", default=""),
                            "forfiles" in event.deep_get("CommandLine", default=""),
                            "regsvr32" in event.deep_get("CommandLine", default=""),
                            "rundll32" in event.deep_get("CommandLine", default=""),
                            "wget" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
