Nearly 143 million Americans had their personal information exposed in a recent data breach at the credit reporting agency Equifax. On Tuesday, the Massachusetts Attorney General filed notice that she will sue the company over its failure to protect consumers.

Social Security numbers, birth dates and address histories were among the data stolen by hackers last week.

Attorney General Maura Healey says nearly 3 million Massachusetts residents were among the victims, and that it's particularly worrisome because of how much data credit reporting agencies amass on people.

"The amount of information they have on all of us is staggering," Healey said. "And for them to fail to take adequate steps to safeguard that kind of data and that kind of information is an egregious failure, and that's why I'm acting immediately."

Healey will allege in the lawsuit that Equifax did not maintain safeguards needed to protect data in violation of Massachusetts consumer protection and data privacy laws.