You know the drill: you open your email client and there is it an email saying that you will be in trouble if you do not follow certain instructions in short time, no questions asked.

All it takes is a single click, and you're in trouble.

This kind of email has a very clear definition:

Phishing is a cybercrime in which a target or targets are contacted by email, telephone or text message by someone posing as a legitimate institution to lure individuals into providing sensitive data such as personally identifiable information, banking and credit card details, and passwords.

In this article, I'll explain what phishing is and how to recognize the signs that an email may not be legit. For that, we will learn to do the following:

  • Recognize some obvious flags of a phishing email
  • Use some command tools on Linux to carefully inspect suspicious links
  • Analyze the suspicious emails with several free online tools

All this while having some fun.

Example of a Phishing Email

Let me share a quite clever example email (some details have been changed to protect the innocent):

Phishing email pretending to be GoDaddy

Let me show you how you can quickly spot scammers, without using a single line of code

You will need the following to go through some of the steps of this tutorial:

  • A Linux installation, with curl installed.
  • A Web browser (Brave or Firefox are good choices)
  • Curiosity

Now let's move on and see what we've got in our mailbox...

Common Sense Phishing Red Flags

Right out of the box, this email violates two simple rules, despite having proper grammar and nice presentation:

First, of all, it forces you to act immediately to fix an issue (Urgent action required), no questions asked (Click the nice button).

To make it worse, there's no way to verify that the person contacting you really works for the company. Reputable companies ask you to log into their website and offer a case # so you can track the issue. Neither of those are here.

Second, despite their best efforts, scammers make qualitative mistakes. Do you see that customer # on the upper right part of the screenshot? I compared it to mine on the real website and guess what? It's a different number.

But where is the fun of analyzing this if we cannot do even a little bit of poking? Well, when I moved my mouse over the button image I could see the link and it was pointing to tiny URL (an URL shortening service):

So whoever is doing this is trying to conceal the real URL. No problem, copy the URL address (never click it), change the email part of the GET request to some garbage (? and then run it through curl. I got this:

<table width="75%" bgcolor="#FFFFFF" align="center" cellpadding="10">
                <h2>URL Terminated</h2>
                    The TinyURL (xszszasxdxdxdxdxdxdxdzs) you visited was used by its creator in violation of our terms of use.
                    TinyURL has a strict no abuse policy and we apologize for the intrusion this user has caused you.
                    Such violations of our terms of use include:
                    <li>Spam - Unsolicited Bulk E-mail</li>
                    <li>Fraud or Money Making scams</li>
                    <li>or any other use that is illegal.</li>

So the good people from Tiny URL noticed this too and terminated the URL. Nice work!


Let's use other tools to confirm what we know already.

Online Tools You Can Use to Analyze Suspicious URLs

Tiny URL was nice enough to tell us about the original URL:

If you go to the Virus Total website and search for the URL you will see that this was also reported here:


Interestingly enough, only a single vendor reported the URL as malicious. That will do it for me :-)

Also Abuse IP DB doesn't know anything about the offending website. However keep this tool around as it is known to reports multiple other actors.

There is anything else we can learn from the original message? Most email readers allow you to copy and paste the email headers. I'm sharing mine here (with a few changes):

Received: from (2603:10b6:208:1e8::11)
 by with HTTPS; Tue, 4 Oct 2022
 16:35:05 +0000
Received: from (2603:10b6:408:108::34)
 by (2603:10b6:208:1e8::11) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.31; Tue, 4 Oct
 2022 16:35:01 +0000
Received: from
 (2603:10b6:408:108:cafe::cc) by
 (2603:10b6:408:108::34) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24 via Frontend
 Transport; Tue, 4 Oct 2022 16:34:59 +0000
Authentication-Results: spf=softfail (sender IP is; dkim=none (message not signed)
 header.d=none;dmarc=fail action=oreject;compauth=fail
Received-SPF: SoftFail ( domain of transitioning discourages use of as permitted sender)
Received: from ( by ( with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.5676.17 via Frontend Transport; Tue, 4 Oct 2022 16:34:59 +0000
Received: from ([]:38823)
	by with esmtpsa  (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.95)
	(envelope-from <>)
	id 1ofksk-0005Zd-LV
	Tue, 04 Oct 2022 16:34:58 +0000

Using MXToolbox shows that 2 of the email addresses used in the chain are blacklisted, another red flag.

2 blocked emails from this list. Another read flag

I think that's good enough. Delete the email and move on with your life, and be sure a new email is coming your way (hopefully landing in the SPAM folder automatically).

What's Next?

There are many tools on the Internet you can use to identify phishing emails, but there is no substitute for common sense. It if looks too good to be true then it probably is.

As usual, do not click the link right away! Do a little investigating first, just to be safe.