BRUSSELS — International Business Machines Corp. Chief Executive Ginni Rometty attacked big internet platforms for mishandling customers’ data and endorsed some European Union efforts to police the web, the latest technology chief to call out fellow companies in the debate over privacy regulation.

Rometty’s comments in the EU’s capital sought to distinguish IBM IBM, +0.72% , which serves business customers, from mass-market tech companies such as Facebook Inc. FB, +2.12% and Alphabet Inc.’s GOOGL, +1.13% GOOG, +1.16% Google, which have drawn attacks over data-handling from politicians and regulators worldwide.