def rule(event):
    if any(
        [
            all(
                [
                    " /lockscreenurl:" in event.deep_get("CommandLine", default=""),
                    not any(
                        [
                            ".jpg" in event.deep_get("CommandLine", default=""),
                            ".jpeg" in event.deep_get("CommandLine", default=""),
                            ".png" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    "reg delete" in event.deep_get("CommandLine", default=""),
                    "\\PersonalizationCSP" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
