def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\vsls-agent.exe"),
            "--agentExtensionPath" in event.deep_get("CommandLine", default=""),
            not "Microsoft.VisualStudio.LiveShare.Agent."
            in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
