Security

Phishing

Phishing is a deception technique in which an attacker poses as a trusted person or organisation through fake emails, messages, calls or websites so that the victim hands over credentials or data.

In this post

Phishing is a scam in which the attacker poses as a trusted person or organisation, such as a bank, a company or a co-worker, so that the victim hands over passwords, personal data or money, or opens a harmful file. It is carried out through fake emails, messages, calls or websites. The word sounds just like fishing, and it refers to the bait that is cast into the sea in the hope that someone will bite.

It is the most widespread form of attack in the world. It does not require forcing any lock or finding any technical flaw. It only takes convincing a person to do something they should not. And it works, because it appeals to very human emotions and habits such as fear, curiosity, haste or the wish to help. The annual reports of security companies rank it, year after year, among the main causes of breaches.

Phishing is a fisherman who casts you bait wearing the face of someone you trust. If you bite, he walks away with your data.

What is phishing?

Every phishing attack is built from the same three basic ingredients. A false identity, which imitates a well-known person or organisation. A pretext, which explains why you are being contacted and creates urgency, such as a blocked account, a pending payment or a parcel held at customs. And a request, which may be clicking a link, opening an attachment, entering a password or transferring money. When all three fit together, it is hard to resist.

The scale of phishing is enormous all over the world. The Anti-Phishing Working Group, APWG, which brings together companies and organisations, records around one million attacks every quarter, and the most affected sectors are financial services, webmail and cloud applications. The most impersonated brands are the ones everybody uses, such as Microsoft, Google, Apple, banks, delivery companies and payment platforms.

Types of phishing

Phishing has many faces, but all its types share the same structure. They pose as someone trustworthy, create a reason to act quickly and ask for a specific action, and recognising that pattern is more useful than memorising every variant.

Which phishing variants exist by channel and aim

Mass phishing

Mass phishing sends the same message to thousands of people in the hope that a few will bite. It usually imitates banks, parcel companies or subscription services, with generic notices about a delivery on hold or a blocked account, and it makes up for its low success rate with volume.

Spear phishing and whaling

Spear phishing targets a specific person or company with real data that makes it believable, such as the name of a supplier or an ongoing project. Whaling is its version aimed at executives, and it usually imitates court summonses, audits or board matters.

Business email compromise

Business email compromise, or BEC, uses real stolen or spoofed accounts to request payments or changes of bank account details. It is the type of phishing that moves the most money, because a single invoice with a changed account number can mean hundreds of thousands of euros.

Smishing, vishing and quishing

Phishing also arrives through channels other than email. Smishing uses text messages, vishing uses phone calls, sometimes with cloned voices, and quishing uses QR codes placed on posters, parking meters or emails, which slip past filters because the link is inside an image.

Clone phishing, angler phishing and callback phishing

There are also more specific and less well-known phishing variants. Clone phishing copies a legitimate email the victim has already received and swaps the link or the attachment. Angler phishing poses as a brand’s customer service account on social media. And callback phishing asks the victim to call a phone number, where a fake technician completes the scam.

Artificial intelligence and email scams

Artificial intelligence has completely changed the phishing landscape in a few years. Fraudulent messages used to give themselves away through spelling mistakes and clumsy translations. Today language models write flawless text in any language and adapt it to the victim’s style, and cases of voice cloning and fake videos used to deceive employees and order transfers have already been documented. This makes some classic advice obsolete. An email without mistakes is not necessarily legitimate. Verification has to rely on context and channel, for example by confirming an unusual request through another route, with a call to a known number, and on company procedures, which must not allow controls to be skipped just because someone appears to have authority.

What a well-crafted scam looks like

Urgency and fear

Almost all messages of this kind create time pressure. Your account will be closed in twenty-four hours, there is an unauthorised charge, your parcel will be returned if you do not confirm. The urgency is meant to stop people from pausing to check. When a request arrives with haste and a threat, the best reaction is the opposite. Stop, breathe and verify through another channel, because serious organisations do not behave like that. Scammers also take advantage of moments in the calendar. Tax season, the sales, Black Friday, the holidays or any news event generate waves of emails with related pretexts. During the pandemic, thousands of messages appeared about vaccines, grants and tests. Criminals follow the news so that their bait is more believable and harder to tell apart from genuine communication.

The link in the message appears to lead to the legitimate website, but it leads to a copy. The address may be very similar, with one letter changed or a different domain from the one expected. The page imitates the real design and asks for credentials, which the attacker captures. Attachments, for their part, may contain harmful programs that activate when opened. A seemingly harmless document can be the first step of an intrusion.

A very useful habit is to never click links in unexpected messages to access important services. It is better to type the known address into the browser, or use the official app. And with attachments, be wary of any you were not expecting, even if the sender seems familiar, since their account may be compromised. When in doubt, asking the person through another channel is enough.

Impersonating people

An especially damaging variant is the one that impersonates executives, suppliers or colleagues to request transfers or data. It is known as CEO fraud or fake invoice fraud, and it has caused losses of millions.

The message appears to come from the boss, with a tone of confidentiality and urgency, and asks for a payment to a new account. Payment verification procedures are the best defence.

The rule for not falling for phishing is simple. Large payments or changes of bank account are always confirmed through a different channel, with a call to a known phone number, never to one that appears in the message itself. And organisations should require that no large payment is made on the order of a single person. These rules protect you even when the scam has been very well prepared, because they force a second check.

Phishing kits and attacks that bypass the second factor

Running a campaign no longer requires knowing how to program. On forums and messaging channels people sell phishing kits, packages with ready-to-install copies of the login pages of well-known banks and services, and complete phishing-as-a-service subscriptions that include email sending and a panel to collect the stolen data.

The most advanced phishing kits act as intermediaries. They place a proxy between the victim and the real website, so the person sees the genuine page, enters their password and their verification code, and the attacker keeps the cookie of the session that has already been opened. This technique, called adversary in the middle, bypasses one-time codes and mobile push notifications, and it was popularised by tools such as Evilginx.

Spoofed websites and fraudulent emails

Websites can suffer from phishing in several different ways. They can be spoofed, when criminals create copies to deceive their customers. They can be used as hosting, when a compromised website serves fake pages of other brands. And their administrators can be the target, with messages that imitate the hosting provider, the domain registrar or the website or shop platform itself to steal the panel passwords.

To protect customers, it is wise to always use email addresses on your own domain, configure the email authentication mechanisms that make spoofing harder, which are explained in the next section, and communicate clearly which messages you send and which you do not. A shop that explains it will never ask for a password by email reduces the number of victims. And notices to customers after an incident must be written carefully so they do not look like a scam.

To protect administrators, the second factor is essential, because a captured password is not enough. So is short and frequent training. Real examples of fake emails, where to check the real address of a link, what to do when in doubt. An environment where asking questions is normal and flagging a suspicious email is met with thanks greatly reduces the chances of a scam succeeding.

Technical defences against phishing

The first technical barrier against phishing is email itself. SPF, DKIM and DMARC records let a domain declare which servers may send on its behalf and sign its messages, so that providers reject forgeries. Since 2024, Google and Yahoo have required these mechanisms from anyone who sends large volumes of email.

How SPF, DKIM and DMARC stop a fake email

Email filters analyse links and attachments, often by opening them in an isolated environment, and browsers check lists of known fraudulent websites before loading them. None of these layers is perfect, but together they stop the vast majority of attempts.

The strongest defence for accounts is phishing-resistant authentication. Security keys and passkeys based on the FIDO2 standard check the domain of the website before responding, so a physical key will not hand over its secret to a fake website even if it looks identical. On top of that come training with regular simulations and a simple button that lets any employee report a suspicious email. Applying these measures properly is part of the job of an IT security expert with experience on real websites.

If you have taken the bait, and how to spot a suspicious message

What to do if you have already taken the bait

If you have already fallen for phishing, speed matters. The first thing to do is change the password of the affected account from a trusted device, along with that of any other service where the same one was used, and turn on two-step verification. If card details were given, you need to warn the bank so it can block the card. If the scam happened at work, it must be reported immediately to the security manager, without fear of a reprimand. In Spain, INCIBE’s 017 helpline offers free and confidential help, and the fraud can be reported to the National Police or the Civil Guard.

Hiding the mistake is the worst thing you can do, because every hour gives the attacker more of an advantage. Sensible organisations encourage people to speak up and treat the incident as a chance to learn. Afterwards, it is worth checking whether forwarding rules have been created in the email account, whether there are unknown open sessions and whether the computer is clean.

How to tell whether a message is suspicious

When faced with a message you suspect is phishing, ask yourself four questions. Was I expecting it? Is there haste or a threat? Is it asking for something that a serious organisation would not request this way? Does the real address of the sender and of the link match that of the organisation? If any answer raises doubts, do not act from the message itself. Go to the official website by typing its address, or call a phone number you know. It is a one-minute pause that prevents most scams.

Look at the technical details that are easy to see. Hover over a link to see its destination, without clicking it. Check the sender’s domain, not just the name that is displayed. Be wary of generic greetings and unexpected attachments, especially compressed files or documents that ask you to enable content. Email filters catch many of them, but not all, and the last barrier is you.

If in doubt, forward the message to the security department or to the organisation being impersonated and then delete it. A timely warning also protects colleagues who may have received the same email.

The origin of phishing in early online services

Phishing was born on America Online, the large US internet provider of the 1990s. In 1995, a program called AOHell automated the sending of messages in which a fake employee asked for the user’s password or card. The word first appears in January 1996 in a Usenet newsgroup, and its initial ph comes from phreaking, the manipulation of telephone networks.

In the 2000s the target shifted to banks and services such as PayPal, with mass emails that led to copies of their websites, and in 2003 companies and banks founded the APWG to fight it. The following decade brought targeted attacks. In 2016, an email imitating a Google security alert allowed a Russian group to break into the account of John Podesta, Hillary Clinton’s campaign chairman, and leak his messages.

An email with a recruitment plan that compromised a security company

In March 2011, the security company RSA, famous for its SecurID authentication devices, discovered that it had been attacked. The attack began with two emails sent to small groups of employees, with the subject line 2011 Recruitment Plan, and an attached spreadsheet. It looked like a human resources document. At least one employee opened it, even retrieving it from the junk mail folder.

The spreadsheet contained a hidden object that exploited a then-unknown flaw in Flash, a very widespread component at the time. When it was opened, a remote access program called Poison Ivy was installed on the computer, giving the attackers a way in. From there, they moved through the network until they reached systems holding information about the company’s authentication products.

RSA publicly acknowledged the theft of data related to its devices, and offered to replace them for its customers. Weeks later, the defence contractor Lockheed Martin suffered an attack that was linked to the stolen information. For a company dedicated to protecting others, the breach was an enormous blow to its reputation, and it showed that not even specialists are safe from a well-crafted email.

The case of that email with a spreadsheet became a textbook example. A targeted email, with a believable pretext, a seemingly harmless attachment and an unknown flaw, was enough to break into one of the most important security companies in the world. The lesson is that no amount of training makes a person infallible, which is why defence must include technical layers that limit the damage of a wrong click, such as network isolation and monitoring for unusual activity.

Frequently asked questions

Frequently asked questions about Phishing

What is phishing?

It is a scam in which the attacker poses as a trusted person or organisation, such as a bank, a company or a colleague, through fake emails, messages or websites, so that the victim hands over passwords, personal data or money, or opens a harmful file.

Where does the word phishing come from?

It is pronounced like fishing. It is spelled with ph because of an old tradition in hacker culture. The image is that of casting bait into a sea of users to see who takes the hook.

How do I recognise a phishing email?

There are clues such as unjustified urgency, senders that do not match, links whose real destination is not what it seems, requests for data that a serious organisation would never make by email, writing errors and unexpected attachments. When in doubt, contact the organisation through a channel you know.

What is spear phishing compared with phishing?

It is a version aimed at a specific person or organisation, with personalised messages that use real information about the victim. It is far more convincing and effective than mass emails. It is used in attacks against companies, executives and public bodies.

What types of phishing exist?

Mass phishing sends the same message to thousands of people. Spear phishing targets a specific person or company with real data. Whaling goes after executives. Through other channels there is smishing, by text message, vishing, by phone call, and quishing, through QR codes.

How has phishing changed with artificial intelligence?

Fraudulent messages used to give themselves away through spelling mistakes and clumsy translations. Today language models write flawless text in any language and adapt it to the victim's style, and cases of voice cloning and fake videos have been documented. That is why verification has to rely on context and on checking the request through another channel.

Can phishing be avoided completely?

Not completely, because it relies on deceiving people. But it can be greatly reduced with training, email filters, a second authentication factor and a culture that encourages people to report suspicious emails without fear. What matters is that a single wrong click does not have catastrophic consequences.

What should I do if I have fallen for phishing?

Alert your security manager or your provider immediately, change the affected password from another device, turn on the second factor, review the account's recent logins and, if money is involved, contact your bank. Acting quickly greatly limits the damage.

I train and advise on phishing risks

I can help you identify and prevent phishing attempts aimed at your business, while also strengthening the technical security of your website.

About the author

Javier Afán

WordPress developer specialised in security, WooCommerce, and hacked website recovery.

I work on WordPress from a technical angle focused on security, architecture, and the decisions that really affect a project's continuity.