Attendees walk past the logo of US multinational technology company Microsoft during the Web Summit in Lisbon on November 6, 2019. Europe's largest tech event Web Summit is held at Parque das Nacoes in Lisbon from November 4 to November 7.

Microsoft said on Monday it won a court order that allowed the tech giant to take control of 50 websites that a North Korea-linked hacking group was using to carry out cyberattacks.

The group called "Thallium," believed to be operating from North Korea, was using a technique known as spear phishing to trick its victims, Microsoft said in a blog post.

By gathering information about individuals through the public domain and social media, the hackers crafted personalized emails that looked credible. Those emails directed users to fraudulent websites where their account login details were compromised, which allowed the attackers to read emails, look at contact lists and access calendar appointments, according to Microsoft.