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

The suit, filed in federal court in Maryland on behalf of attorneys Harry Bell and Ed Claffy, alleges Bethesda-based Marriott’s failure to invest sufficient resources in security programs allowed 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.