Twitter Inc. has notified some users that their accounts may have been hacked by state-sponsored actors, as the company works to investigate the attack.

"We believe that these actors (possibly associated with a government) may have been trying to obtain information such as e-mail addresses, IP addresses, and/or phone numbers," Twitter wrote in an e-mail sent on Friday.

Tech companies have been stepping up their efforts to deal with hacking threats. Facebook introduced a new system of notifying people of suspected attacks in October, and Google has issued security warnings in the past.

Twitter didn’t say in the message what countries may have been behind the latest attempts to access the accounts, some of which were owned by users involved in security and free speech.

"There are a fair number of countries not fond of journalists, dissidents, free speech in general," said Steve Bellovin, a computer-science professor at Columbia University. "I suspect they’re looking for direct message traffic within Twitter."

Nu Wexler, a spokesman for San Francisco-based Twitter, didn’t immediately respond to a request for comment.

The e-mail from Twitter included links to the Tor Project and an Electronic Frontier Foundation website on safety when using social networks. Runa Sandvik, a privacy researcher, said that the e-mail didn’t offer users much information to effectively protect themselves.

"It doesn’t say what I should do next––should I change my password? My e-mail address?" Sandvik said. "I’m hoping that Twitter is spending the resources that it needs to actually look into this and figure out what happens."