Anti-phishing: how to determine whether a subdomain is legit.

Anti-phishing: how to determine whether a subdomain is legit.

Today I received an email from AT&T informing me of a large balance due, along with a link to view and pay the bill:

After clicking on the “View my bill” link, I come to a page that does not look like a typical AT&T landing page:

No alt text provided for this image

In addition to having no brand consistency with the rest of the AT&T site, three things strike me as odd:

  • Awkward copy: “If this won’t work, call 800.288.2020 for help” (if this won't work, or doesn’t work? And if this is 2FA, why wouldn’t it 'work'?);
  • No navigation, header or footer on the page, i.e. nothing to indicate this page is part of the larger AT&T site;
  • A weird subdomain in the URL field: “cprodmasx.att.com”. Never seen that one before; most big corporation subdomains are intuitive: business.att.com; wireless.att.com; forums.att.com, etc.
No alt text provided for this image

So, what to do at this point?

Well, I know that if the subdomain is legit, i.e. actually registered to AT&T and not some guy named Vadzim in Belarus, then I probably have nothing to worry about.

But how do you tell whether a subdomain is legit? One way is through DNS enumeration, a fancy term for locating all the DNS servers, and corresponding records, of an organization. This is public information maintained by the central WhoIs registry and you’ve probably seen it if you’ve ever tried to register a domain that was already taken.

No alt text provided for this image

Kali Linux makes this super simple through a tool called DNSRecon, which you can access through the command line. Typing the simple command “dnsrecon -d att.com” (the "-d" stands for "domain") returns all subdomains for att.com.

No alt text provided for this image

This returns a long list of 94 records in which “cprodmasx” may be hidden:

No alt text provided for this image

Of course, no one wants to sift through a list of 94 records to find one specific subdomain. So we can modify that query and use the 'grep' command to grab the specific text string of interest, in this case "cprodmasx":

No alt text provided for this image

And voila! within 10 seconds we have a positive match for text string, which is indeed part of a subdomain, and we also get its IP address:

No alt text provided for this image

This whole process took less than a minute, significantly less time than had we searched through the full list of 94 records manually. Had the command not found the string “cprodmasx” within the att.com DNS info, it would have returned nothing.

The fact that it returned the specific subdomain we were looking for, along with its IP address, means the subdomain is legit.

This is good news. The bad news is that I have a legitimately large AT&T bill I still need to pay.

Note: If you don’t have Kali Linux on your computer — and chances are, unless you’re a programmer, network security analyst, or Internet-obsessed nerd like me, you probably don’t — there are a number of Web-hosted services, like Censys and ImmuniWeb, that make subdomain lookups easy.

The advantage of knowing how to do it yourself, of course, is that you don’t have to rely on the trustworthiness of a 3rd party to determine the legitimacy of other, 1st-party data.

要查看或添加评论,请登录

Joshua Engroff的更多文章

  • How to use a trained neural network to perform style transfer on a photo.

    How to use a trained neural network to perform style transfer on a photo.

    When people talk about 'AI' they're often talking about 'automation' or, more specifically, automation enabled through…

  • What Do We Talk about When We Talk About AI?

    What Do We Talk about When We Talk About AI?

    Try this experiment: the next time you are at a dinner party, drop the term ‘AI’ into the conversation and see what…

  • Emotional Intelligence in Deep Learning

    Emotional Intelligence in Deep Learning

    In the 2016 film Arrival, based on Ted Chiang’s excellent Story of Your Life, Amy Adams’ character gives a summary…

  • Voices of AI: Five People You Should Know

    Voices of AI: Five People You Should Know

    Often the best way to learn about a new field—especially one that is both complex and noisy, like AI – is to watch…

    1 条评论
  • Great Artists Steal: The Promise Of Creative AI

    Great Artists Steal: The Promise Of Creative AI

    The AI as Poet One particularly arresting moment in William Gibson’s cyberpunk classic, Neuromancer, occurs toward the…

    2 条评论
  • Radical Transparency

    Radical Transparency

    “Trump seems to have not yet developed a theory of mind. Other people are black boxes that supply either affirmation or…

    2 条评论
  • On Sarin and Cyberwar

    On Sarin and Cyberwar

    The horror that unfolded Tuesday after the Assad regime dropped nerve gas on the city of Khan Sheikhun, Syria, was like…

  • VR: The Ultimate Empathy Machine?

    VR: The Ultimate Empathy Machine?

    "In real life, I was nothing but an antisocial hermit…A pale-skinned pop culture-obsessed geek…Just another sad, lost…

    1 条评论
  • Highways Jammed with Broken Heroes

    Highways Jammed with Broken Heroes

    The American romance with the automobile is the stuff of legend. Seldom has a product of mechanical engineering been as…

    1 条评论
  • To Zero and Back Again: The Coming Revolution In AI

    To Zero and Back Again: The Coming Revolution In AI

    “Perhaps the most important consequence of the Internet, at least from a business perspective, [is] the reduction of…

    2 条评论

社区洞察

其他会员也浏览了