def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\wuauclt.exe"),
                    event.deep_get("OriginalFileName", default="") == "wuauclt.exe",
                ]
            ),
            "UpdateDeploymentProvider" in event.deep_get("CommandLine", default=""),
            "RunHandlerComServer" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    " /UpdateDeploymentProvider UpdateDeploymentProvider.dll "
                    in event.deep_get("CommandLine", default=""),
                    " wuaueng.dll " in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            ":\\Windows\\UUS\\Packages\\Preview\\amd64\\updatedeploy.dll /ClassId"
                            in event.deep_get("CommandLine", default=""),
                            ":\\Windows\\UUS\\amd64\\UpdateDeploy.dll /ClassId"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            ":\\Windows\\WinSxS\\" in event.deep_get("CommandLine", default=""),
                            "\\UpdateDeploy.dll /ClassId "
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
