def rule(event):
    if all(
        [
            event.deep_get("TargetObject", default="").endswith(
                "\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Shell"
            ),
            "-nop -w h" in event.deep_get("Details", default=""),
            "$env" in event.deep_get("Details", default=""),
            "explorer.exe" in event.deep_get("Details", default=""),
            "Start-Process" in event.deep_get("Details", default=""),
        ]
    ):
        return True
    return False
