Usernames and passwords for more than 100 email accounts of various embassies and governments worldwide have been posted online.

Computer Sweden has verified the posted information and spoken to the person who posted them.

The posted information includes names of the embassies and governments, addresses of email servers, usernames and passwords. Using the information, anyone can access the accounts that have been compromised.

Among the organisations on the list are the foreign ministry of Iran, the Kazakh and Indian embassies in the United States, as well as the Russian embassy in Sweden.

Freelance security consultant Dan Egerstad posted the information. He spoke openly about the leak when Computer Sweden contacted him.

“I did an experiment and came across the information by accident,” he said. Egerstad says he never used the information to log in to any of the compromised accounts in order not to break any laws.

Computer Sweden confirmed that the login details for at least one of the accounts is correct. Egerstad forwarded an email sent on 20 August by an employee at the Swedish royal court to the Russian embassy. The person who sent the email, in which she declines an invitation to the Russian embassy, has confirmed that she sent the email.

“Yes, that is right. We did decline the invitation. As far as I can remember I did send the email,” she said.

Computer Sweden has not been able to confirm the authenticity of any of the other information that has been posted.

“When something like this happens you usually contact people and ask them to fix it. But in this case it felt too big for that, calling to other countries,” Egerstad said.

Of the compromised accounts, 10 belong to the Kazakh embassy in Russia. Around 40 belong to Uzbeki embassies and consulates around the world. Login details for email accounts at the UK visa office in Nepal were also posted. Login details for the foreign ministry of Iran, the Kazakh and Indian embassies in the US, and the Russian embassy in Sweden were also posted.

“I hope this makes them take action. Hopefully, faster than ever before, and I hope they become a bit more aware of security issues,” Dan Egerstad says.

The Russian embassy confirmed the leaks and says that logins have now been changed. The Indian embassy declined to confirm the information or comment.