The Evilginx Threat: Protecting Your Credentials with Phishing Resistant MFA

Reading Time: 6 minutes


In this blog post, I demonstrate how to use an Adversary in The Middle (AiTM) phishing attack to capture a user’s session token utilising a tool called Evilginx. There are several methods to protect against such attacks and I will be concentrating on phishing resistant MFA.


IMPORTANT DISCLAIMER:
The user accounts involved are demo user’s. The information provided in this blog post is intended for educational and demonstration purposes only. Evilginx is a powerful tool that can be used to steal session tokens, which can lead to unauthorised access to user accounts. This tool should only be used for legitimate penetration testing on systems where you have explicit permission to do so. Unauthorised use of Evilginx or any similar tool is illegal and unethical, and can result in severe legal consequences. Always ensure you have proper authorisation before conducting any security testing.


What is Evilginx?
Evilginx is an advanced phishing framework that provides a way to bypass multi-factor authentication (MFA) protections by capturing session tokens. It operates as an Adversary-in-The-Middle (AiTM) proxy, intercepting communication between a victim and a legitimate service to steal authentication credentials and session tokens. Unlike traditional phishing attacks that trick user’s into divulging their passwords, Evilginx focuses on obtaining credentials and session tokens, enabling attackers to login without entering user credentials. This makes it a powerful tool for penetration testers and security researchers who need to assess the resilience of their systems against such sophisticated attacks, however, it can also be used by bad actors.

Here’s how it works in few steps:

  1. Attackers create fake login pages that look almost identical to legitimate ones, such as login pages for Microsoft, Google, Facebook and more.

  2. When user’s enter their credentials, Evilginx captures them and forwards them to the real site, making it seem like a normal login process.

  3. It can also intercept multi-factor authentication (MFA) codes, allowing attackers to gain unauthorised access.

This makes Evilginx particularly dangerous because of its capabilities to bypass security measures like MFA.

To protect yourself, always verify the URL of the login page, use phishing resistant MFA, and be cautious of unexpected login requests.

Let’s dig deeper and understand the process via the diagram below

How does Adversary-in-The-Middle (AiTM) take place using Evilginx

Click the image below to enlarge


Now, let’s see the process in action

Note: I’ve already installed and configured the Evilginx application.

Let’s explore how Evilginx can capture a user’s session token and gain access to data.

  1. I launch Evilginx on my server


2. I type:

lures create microsoft365
lures get-url 0

Click image to enlarge


3. I copy the fake url as shown in the image above. A malicious actor typically requires the user to click on this URL, often distributed through a phishing email.

For demonstration purposes, we’ll assume that the a real user has clicked the malicious link received through a phishing email.

I launch a browser and manually enter the URL of the fake login page.

Enlarge the image below.

Question: Can you spot anything suspicious in the image below?


In case you didn’t spot the suspicious detail, take a closer look at the website address, the letter ‘o’ in ‘micros’ has been replaced with a zero.

Bad actors often use cloned login pages that can appear convincing and legitimate. This highlights the importance of continuously educating ourselves and others about the risks of phishing attacks.

⚠️ WARNING: Please do not attempt to access the fake URL shown above on your own device.

4. Now, let’s assume the user proceeds to log in. For this demo, I’ll be using a test account:

  • Demo Account: [email protected]
  • This account is protected with multi-factor authentication (MFA) using the Microsoft Authenticator app. However, it’s important to note that I am not using phishing-resistant MFA.

I proceed to log in via the fake login page. Meanwhile, the Evilginx application is actively listening and capturing authentication logs in the background.


5. I click Next and am prompted to enter my password to authenticate with Microsoft Entra ID.


6. I enter my username and password, then click Sign in. I complete the MFA challenge via my Authenticator app when prompted. As mentioned earlier, this account does not currently use phishing-resistant MFA.

After logging in, I am briefly signed in before being automatically logged out. However, by this point, the Evilginx tool has already captured the necessary authentication information.


7. Let’s take a look at what Evilginx has captured.


8. At this point, I have successfully captured the user’s credentials, including the username and password, through the fake login page.


Evilginx has now captured the user’s session, including the MFA acceptance, a critical point in demonstrating how traditional MFA can be bypassed in such attacks. Let’s dig a little deeper.

9. I run the sessions command and can see that the username, password, and session token have all been successfully captured.


10. I type sessions 13 and press Enter to inspect the captured session in more detail.

11. The session token is now visible, this includes the full session data that Evilginx has intercepted, allowing an attacker to potentially hijack the authenticated session without needing the user’s credentials or MFA prompt again.


12. Next, I prepare to replay the stolen session token. I highlight and copy the token from the Evilginx output.

13. I’ve downloaded Firefox and installed a cookie editor extension to assist with injecting the session token.

14. I launch Firefox and navigate to https://office.com.


15. I click the Sign in button on office.com and am redirected to the official Microsoft login page.

16. I clear all existing cookies using the cookie editor extension.


17. Inside the cookie editor, I click the Import option and paste the stolen session cookie. I then click Import again.


18. The session cookie has now been loaded


19. I refresh the page, and I now have access.


20. I have access to the user’s apps.


21. I have access to the user’s data


22. I have access to the user’s mailbox



Phishing resistant MFA


Now, i’ll go through the same process again, but this time I’ve enabled phishing resistant MFA for the account [email protected]. I’ve used a passkey. If you’d like to learn more, check out this blog post: Part 1 – What is a FIDO2 key and How to Set One Up for Emergency Access in Entra ID | Cloud Build

  1. I return to the fake login page. I type my username and click Next, but instead of entering a password, I select the option: Use your face, fingerprint, PIN, or security key instead, as shown in the image below.


2. I’m prompted to use a security key, but this prompt is for the fake domain (login.micr0soft.com). My passkey is registered to the legitimate domain (login.microsoft.com), so authentication fails. As a result, Evilginx is unable to capture the session token.


No sessions saved by the Evilginx app

I hope this post was useful. Thanks for reading and see you at the next one.

From Nerves to Confidence: My Transformation Journey

Reading Time: 7 minutes


Why am I sharing my story? Over the years, I’ve had a few people reach out to me, whether via a message through my blog or in private during my training sessions, asking about my experiences with nervousness. Another reason for posting is that I hope sharing my experience motivates you and helps build your confidence, even if it’s just a tiny amount at a time.

I’ve worked in Tech for about 20 years, and for a part of my career, I struggled with intense nervousness, especially if I did not know the people in a group session. The thought of unmuting myself to ask a question in a large group, whether virtually or in person, would send my heartbeat racing. Turning on the webcam was an even bigger challenge, and raising my hand to ask questions in an audience was out of the question. I would often resort to typing my questions in chat or approaching presenters privately during breaks to ask questions.

I always had a passion for sharing knowledge, and supporting work colleagues that I was familiar with over a Teams session or face-to-face workshops wasn’t a problem, as long as the group was familiar to me. Working with customers over the phone or meeting them in person at their office would not be an issue, yes, nerve racking, but I would slowly get over it and control my nerves as it involved meeting one or a few people, not a large group.

During the Covid pandemic, whilst most of the world was locked down, I started to interact more online, over Teams and Zoom. In particular, I discovered an awesome tech community outside of work, on the social media platform, Twitter, which was rebranded to X not too long ago. I had a passion for sharing knowledge and was already sharing knowledge via my tech blog since 2008. I had an interest in Microsoft technologies, particularly Microsoft Azure, Microsoft 365 and wanted to learn more. It took me some time to locate people I wanted to follow on Twitter. I would check tweets, and based on how helpful and kind the individuals were, I clicked the follow button. I started to read tweets and learn more about this amazing, helpful community growing on Twitter. I eventually started to post more on Twitter and interact by sharing my blog posts and any useful updates about new features introduced by Microsoft. It took time before I located and connected to people who had a passion for sharing knowledge about Microsoft Azure.

I then had a lightbulb moment: how could I help people get started with Microsoft Azure and connect them with these awesome and helpful individuals? I decided to launch a website where I would reach out to people from the Tech community who had a passion for Azure. I communicated with individuals via private messages on Twitter, politely asking if they were willing to provide a written interview. I would create the questions, and they would respond in writing and return the completed document to me.

That’s how AzureCrazy.com was launched, and it was amazing to see people wanting to help by sharing their experiences. One of the questions I included in each interview was, “Do you still get nervous when presenting in front of an audience?” The response was consistently yes. I realised that the answers were not only helping visitors to the site, but also boosting my confidence and that it was ok to be nervous. Please do check out the website and read the amazing interviews. I’m sure it will help.

Apart from noticing the interaction within the tech community and the amount of knowledge being shared, the Covid pandemic accelerated the need for sharing knowledge via virtual events. I found a number of monthly tech virtual groups which I joined. Most of these free virtual groups can be found posted on Twitter (X) and LinkedIn. The presenters are kind, and most will allow you to present a topic of your choice, whether you’re new and looking for support to improve your presentation skills, an occasional presenter or want to join to learn. In these sessions, I started to interact over chat and sometimes came off mute to say hello, as at this point, I had started to know some of the founders of these groups through interacting with them over Twitter.

My confidence was building, thanks to this awesome tech community.

The above virtual sessions sparked another lightbulb moment: we could benefit from having a virtual group in our local/surrounding area. Our new virtual group would allow people, whether new to presenting or experienced presenters, to share a tech topic of their choice. We would also host online video podcasts, inviting people from the tech community for tech chats.

I reached out to individuals from the tech community who had a passion for sharing knowledge, who I now call good friends, to see if they would be interested in setting up a new virtual group. After a few weeks of planning, The Bradford Cloud User Group was launched. This tech group aimed to host at least one virtual session per month, open to everyone worldwide to join for free and learn and share tech knowledge. I started to host some of the sessions with my webcam on, a nervous moment in front of a group of people, but I began to learn how to control my nerves. I was only presenting for a very short time and then handing over to the speakers to deliver their sessions so it wasn’t too bad but I was starting to feel more confident.

At my job, I started to become comfortable turning on my webcam, coming off mute, and conducting workshops for larger groups of people. My heartbeat would still race, but I was becoming a little more comfortable and began to control my nerves. This newfound confidence gave me the courage to apply for a more customer facing role as a Solutions Architect, where I would interact with larger groups of people in workshops.

Outside of work and back in the tech community, I was invited to have a one on one live interview to discuss my journey in Tech, blogging, sharing knowledge and more, and I agreed. I knew the presenter from our interactions on Twitter, and he had previously provided me with an Azure Crazy interview. Also, the interview was not difficult and it was a topic I was very comfortable talking about. Thanks to the presenter, who made me feel really comfortable.

As the monthly virtual sessions, blog posts, and AzureCrazy.com interviews continued, Covid restrictions started to reduce, and in-person events were returning. I decided to attend an in-person tech event and finally got to meet people I had been interacting with on Twitter and in virtual sessions for the first time. We also later set up a couple of in-person Bradford Cloud User Group events.

I joined Microsoft as an Azure Technical Trainer
My role: to deliver technical training to Microsoft customers virtually from around the world!

Webcam on! Off mute! Delivering training to groups of 10 – 300 people from around the world, and people I don’t know! This was a role I would never have dreamed of applying for previously. However, the first hurdle was to overcome the barrier to apply for a job at Microsoft. For years, I held myself back, thinking I wasn’t good enough to work for Microsoft. Encouragement from my family and an individual from the tech community who was also a Microsoft employee made a huge difference. He believed in me and confidently referred me for the role, boosting my confidence immensely. What could be the worst that would happen? I wouldn’t be successful, but it would be a great experience interviewing for a role at Microsoft and would help boost my confidence. After three virtual interviews over Teams, I received the news that I was successful!

Another nervous moment was joining and starting my first day at Microsoft. From day 1, I very quickly found that I was joining an amazing and supportive team. Again, it was the right people who made me feel comfortable, along with the Microsoft culture promoting a growth mindset and the idea that we don’t know everything. It’s okay to say, “I don’t know the answer, but will find out” or “I don’t know, but I would love to learn.”

Today, I enjoy providing training to thousands of Microsoft Enterprise customers virtually from around the world. My team, including my Managers at Microsoft support and continue to motivate me, helping boost my confidence, which has encouraged me to always ask questions if I am not sure about something. I am able to confidently and proudly say, “I don’t know, but will find out.” This gives me the opportunity to learn, expand my knowledge and grow daily.

Do I still get nervous? Yes, of course. That will never disappear. I am always nervous, especially every Monday morning before my training delivery commences, but I eventually control my nerves. It’s okay to be nervous, and a colleague on my team who has been a trainer for a long time said a few words that have stuck with me.

When I asked him if he still gets nervous after so many years as a trainer, he said,

“I still feel those little butterfly nerves every Monday morning – I always tell myself… the day I stop feeling those, is the day I stop being a trainer. But so far it didn’t happen”

Final Words

  • Being nervous is ok, it shows you’re passionate and want to deliver the best you can.
  • Help others by sharing your knowledge.
  • Don’t belittle people or put them down with words such as “as if you did not know that” or “are you stupid“. It can lower one’s confidence and even question their career choice, leading to stress and anxiety. Please help them by teaching them and answering their questions respectfully.
  • Promote within your team that questions may be off topic, but there are no stupid questions and people should be comfortable asking even if they think the question may seem basic. This will help in boosting confidence.
  • If you wish to present in front of a group, start off by picking a topic you are very comfortable with, such as sharing your journey about how you started working in tech. Present in front of one person, a friend, a colleague, a family member and ask them to provide you with feedback. You could present in front of a mirror or join free virtual groups who will support you. Get in touch and we would love for you to present virtually at our Bradford Cloud User Group.
  • Promote a growth mindset culture in your organisation. We’re always learning.
  • Surround yourself with positive and supportive people who uplift and encourage you.
  • Believe in yourself and take it a tiny step at a time.
  • Maintain a positive attitude and focus on the good things in your life. Positive thinking can enhance your overall well being and drive.
  • Remember, you are good enough and you can do this! Reach out to friends, family, and colleagues and share what you’re feeling.
  • Don’t be afraid to step out of your comfort zone. Taking risks can lead to unexpected opportunities and growth.
  • Share your experience, for example, let people know that you may come across as very confident when presenting, but you do get nervous.
  • Understand that progress takes time. Patience and persistence are key to achieving long term success.
  • Acknowledge and reward yourself for small achievements along the way. Every step forward is progress.
  • Break down larger tasks into manageable goals. Achieving smaller milestones can boost your confidence and motivation.
  • View failures as learning opportunities. Each setback is a step towards growth and improvement.
  • Always be open to learning new things. Curiosity can drive motivation and lead to personal and professional development.

I hope this post motivates you and helps build your confidence. Please feel free to reach out if I can be of any help.

If you have a story to share which could help boost motivation for others, please post in the comments section below. Your story may inspire others.

Thank you 🙂

Part 4 – Free Version of Microsoft Copilot

Reading Time: 5 minutes


Thank you for continuing to stay with me on this journey learning Microsoft 365 Copilot. However, I want to go off track a little before I move back into Copilot in Microsoft 365 applications in the next post. Did you know there is a free version of Copilot available?

It’s important to note that the free version is different from the one integrated into Microsoft 365 applications, which offers additional paid features tailored for productivity tools for organisations. I’ll cover Copilot integrated into Microsoft 365 Apps such as Word, Excel, PowerPoint, Outlook, Teams and so on, later in the blog series.

There is a free version of Microsoft Copilot available through the Copilot website at copilot.microsoft.com, and the mobile app, which you can download from the Apple App Store for iOS devices and Google Play for Android devices. You can also access Copilot from bing.com and clicking on Copilot as shown in the image below.

This free version can help you with tasks like searching the web, creating content, generating images, and answering complex questions. It’s not like your usual search engine; Copilot is a generative AI engine that can search the web and generate unique content while having a conversation with you along the way. You can also speak to Copilot, and it will respond to you like a human.

Limitations
The free version of Copilot has certain limitations, including restricted usage of voice and image scanning features due to daily usage limits being applied. For more extensive capabilities, consider upgrading to the Copilot Pro version. Copilot Pro is designed for individual users, offering advanced AI features and priority access to the latest models, enhancing productivity in Microsoft 365 apps like Word and Excel.

Update
Copilot and Designer in Microsoft 365 Personal and Family
Microsoft 365 Personal and Family subscribers will receive a monthly allotment of AI credits to use Copilot in Word, Excel, PowerPoint, Outlook, OneNote, and Designer. The credits will also apply to apps like Paint, Photos, and Notepad on Windows. Those who frequently use Copilot can upgrade to Copilot Pro, without worrying about usage limits, Learn more about AI credits. 
Source: Copilot and Designer in Microsoft 365 Personal and Family

On the other hand, Microsoft 365 Copilot is designed for businesses. Like Copilot Pro, it also works well with Microsoft 365 apps like Teams, Outlook, and SharePoint. However, it helps teams work together easily, communicate better, and keep data secure, making it perfect for boosting productivity and efficiency in the workplace. Microsoft 365 Copilot uses Microsoft Graph under the hood to connect and use your organisation’s data instead of focusing on one user only. It is Microsoft 365 Copilot I will be focusing on in the next posts.


Let’s explore the free version. Access copilot.microsoft.com. For a better experience, it’s worth logging in with your personal email address as additional features become available, such as the voice features and more.

Note:
While the interaction with Copilot feels like a real conversation, it’s important to remember that Copilot is an AI (Artificial Intelligence) designed to simulate human like dialogue. It can understand and respond to your queries, provide information, and assist with tasks, but it doesn’t have feelings or consciousness.


Use Copilot to analyse images

  1. Click the + icon as shown in the image below. Upload a picture, and Copilot will describe what’s in the picture. You can also perform these actions in the mobile version of Microsoft Copilot.


Communicate with Copilot via chat

2. Communicate with Copilot via chat. Type a message and explore. Maybe start with a prompt such as “Hello Copilot, what are you able to do for me?” as shown in the image below.

Look at the response from Copilot below, it seems like you are talking to a human, but you are not. 🙂

The better question is what can’t I do! Well, mostly. Need advice, facts, or a touch of entertainment? I’m your buddy. Want to dive into the latest tech trends or get creative with some writing? I’ve got you covered. Curious about cooking recipes or fun facts? Just say the word. What’s the vibe today?


Let’s input a prompt. If you missed my previous post about prompts, click the following link, Part 3 – How to write Microsoft Copilot Prompts | Cloud Build

Prompt:
Please write me a speech to prepare for an event where I will be presenting a topic about the benefits of drinking water to children so make it sound casual and youthful.

Response from Copilot below.

We can ask Copilot to amend the text by inputting another prompt, for example, make the text longer and add a joke. Or you may wish to copy the text and amend parts yourself. That’s fine. You can use Copilot’s version of the response as a draft and work on it as you wish.


Ask Copilot to create you an image

3. Copilot is capable of generating unique images. Let’s give it a try.

Create me an image of a happy cat riding a bike whilst on the moon.



Communicate with Copilot via voice

4. Maybe you don’t fancy having a text chat with Copilot but a conversation over voice. Click the Microphone icon as shown in the image below, and you can have a voice conversation with Copilot.


Have a go and let me know what you think in the comments box below! I’m excited to hear your thoughts on this free version of Copilot.

That’s it for now. Stay tuned for more.