paint-brush
What is URL Masking and How Does It Work?by@kalilinux
3,067 reads
3,067 reads

What is URL Masking and How Does It Work?

by Kali Linux TutorialsSeptember 17th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Social engineering is a technique where attackers trick a user to steal his data or plant something malicious in the victim’s system. In some recent years hacking onto other's accounts has become very tough. Here we are going to talk about phishing, but wait, almost everyone knows about it. People should always check the links they receive from mail or SMS to see if they are from the original website or not, because phishing links look suspicious and most internet users are scared to open untrusted links. Hackers are smart enough to trick your mind. Here is a description of the URL Masking technology.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - What is URL Masking and How Does It Work?
Kali Linux Tutorials HackerNoon profile picture


In recent years, hacking onto other user accounts has become increasingly challenging. No one can easily hack onto our social media or bank accounts because day-by-day, computer security is getting more secure. Encryption is getting stronger and more security measures are being put into place; so the job of hackers is getting tough. Here social engineering steps in. Social engineering is a technique where attackers trick a user to steal his data or plant something malicious in the victim’s system.


In today’s life, everything is digital; we have another life on the internet. But what if we got hacked by some bad guy? Here we are going to talk about phishing. But wait, most people already know basic information about phishing; people check the link they get from mail or SMS to see if they are from an original website or not because phishing links look suspicious and most internet users are scared to open untrusted links. This will not work here. Hackers are smart enough to trick your mind. Here comes the URL Masking technology.


Koushik Pal, a security researcher talked about it in public and introduced URL masking technology. He says,


URL can be Masked easily, a phishing link can look exactly like a legit URL by a simple browser trick.


To make his concept clear he made a bash script named “MaskPhish“, which became very popular in the social engineering category. MaskPhish can change any URL to another link. Attackers can use it to trick people, but on the GitHub page it’s mentioned that it is for educational purposes only.


This article is for educational purpose only, and we are trying to save people by education. If anyone misuses this information then only he will be responsible for this.


How MaskPhish Works


It works using a browser redirection technique. If a URL contains ‘@’ then the browser skips everything before ‘@‘. To make things clear you can type this URL on your browser and check what’s happening ‘https://[email protected]’ this link will not lead you to facebook.com this will lead you to hackernoon.com. This is the basic idea of the MaskPhish tool.


MaskPhish uses some more advanced things like shortening the URL and pushes some social engineering keywords inside it, and we can see this in the following screenshot:


The ngrok.io is hidden by google.com \\ Image from GitHub

This is seriously harmful for everyone. A perfect Google.com URL isn’t really Google.com. What could be more dangerous than this? What if we didn’t notice the URL after opening the link in our browser? We would get trapped.


How to Avoid MaskPhish Attacks

  • Don’t open any URL received from mail or SMS or on any other social media.
  • A link that looks perfect, may be a phishing link.
  • We should always double-check links when the webpage prompts for a login.
  • Never trust anyone.


That’s all for today, we hope you liked this, stay safe and secure. Please don’t click on any link received from messages.