def rule(event):
    if all(
        [
            event.deep_get("CommandLine", default="").endswith("svchost.exe"),
            event.deep_get("Image", default="").endswith("\\svchost.exe"),
            not any(
                [
                    any(
                        [
                            event.deep_get("ParentImage", default="").endswith("\\rpcnet.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\rpcnetp.exe"),
                        ]
                    ),
                    event.deep_get("CommandLine", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
