SAN FRANCISCO — Anthem Inc. has agreed to pay $115 million to settle claims related to the massive 2015 cyberattack that affected 78.8 million customers. If approved by U.S. District Judge Lucy Koh of the Northern District of California, the deal would be the largest data breach settlement in history.

As part of the deal, Anthem has agreed to provide two years of credit monitoring and identity protection services to those affected. The deal also creates a $15 million fund to pay out-of-pocket costs for class members stemming from the cyberattack.

Plaintiffs lawyers, led by Eve Cervantez of Altshuler Berzon and Andrew Friedman of Cohen Milstein, will seek up to 33 percent of the settlement funds under the deal, or nearly $38 million, plus up to $3 million in expenses.