def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\scrcons.exe"),
            any(
                [
                    event.deep_get("Image", default="").endswith("\\svchost.exe"),
                    event.deep_get("Image", default="").endswith("\\dllhost.exe"),
                    event.deep_get("Image", default="").endswith("\\powershell.exe"),
                    event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                    event.deep_get("Image", default="").endswith("\\wscript.exe"),
                    event.deep_get("Image", default="").endswith("\\cscript.exe"),
                    event.deep_get("Image", default="").endswith("\\schtasks.exe"),
                    event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
                    event.deep_get("Image", default="").endswith("\\mshta.exe"),
                    event.deep_get("Image", default="").endswith("\\rundll32.exe"),
                    event.deep_get("Image", default="").endswith("\\msiexec.exe"),
                    event.deep_get("Image", default="").endswith("\\msbuild.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
