def rule(event):
    if all(
        [
            "Set-Service " in event.deep_get("ScriptBlockText", default=""),
            "DCLCWPDTSD" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    "-SecurityDescriptorSddl " in event.deep_get("ScriptBlockText", default=""),
                    "-sd " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
