A judge has cautioned two law firms running competing shareholder class actions over last October’s cyber attack on Medibank that they must keep their focus on the best interests of clients and group members, saying lawyers can lose sight of that duty when arguing for their case.