def rule(event):
    if all(
        [
            "\\svchost.exe" in event.deep_get("ParentCommandLine", default=""),
            "termsvcs" in event.deep_get("ParentCommandLine", default=""),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\rdpclip.exe"),
                            event.deep_get("Image", default="").endswith(
                                ":\\Windows\\System32\\csrss.exe"
                            ),
                            event.deep_get("Image", default="").endswith(
                                ":\\Windows\\System32\\wininit.exe"
                            ),
                            event.deep_get("Image", default="").endswith(
                                ":\\Windows\\System32\\winlogon.exe"
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
