International Dairy Queen Inc. became the latest company to confirm a data breach, announcing Thursday the “Backoff” malware affected payment card information at 395 of its 4,500-plus U.S. locations.

The company said a third-party vendor’s compromised account credentials were used to access systems.

Dairy Queen was sold to Berkshire Hathaway...