The first lawsuit filed over Marriott International Inc.’s data breach comes just hours after the hotel chain’s announcement Friday of the hack—and two lawyers are the plaintiffs.

The suit, filed in federal court in Maryland by attorneys Harry Bell and Ed Claffy, alleges that Marriott’s failure to invest sufficient resources in security programs caused the cyberattack, which compromised the personal information of 500 million guests of its Starwood properties, such as the W Hotel and Westin Hotels & Resorts, beginning in 2014. Morgan & Morgan filed the class action on behalf of the two lawyers and a nationwide class of Marriott consumers.