def rule(event):
    if all(
        [
            "CurrentVersion\\Winlogon" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    "Set-ItemProperty" in event.deep_get("ScriptBlockText", default=""),
                    "New-Item" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
