Twitter said Friday it was hammered by a "sophisticated" cyber attack similar to those that recently hit major Western news outlets, and that the passwords of about 250,000 users were stolen.