def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\userinit.exe"),
            not any(
                [
                    "\\netlogon\\" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\explorer.exe"),
                            event.deep_get("OriginalFileName", default="") == "explorer.exe",
                            event.deep_get("CommandLine", default="")
                            == "C:\\Windows\\Explorer.EXE",
                        ]
                    ),
                    event.deep_get("Image", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
