With attacks on law firms and their clients on the rise, attorneys say lawsuits over cybersecurity are the next big litigation trend.

Two midsized companies have approached Shipman & Goodwin about the ever-looming problem in the past three weeks, according to Connecticut partner Mark Ostrowski. Both had been attacked. And dozens more have sought consultations in the last year after falling victim to data breaches.