How we took down dozens of scam domains impersonating Datalogz

How we found and took down 50+ scam domains impersonating Datalogz, using only free tools.

How we took down dozens of scam domains impersonating Datalogz

Over the past few weeks, someone has been using our name to scam job seekers. They registered lookalike domains, built copies of our website and sent out fake remote job offers pretending to be us. Since then, we have found and taken down over 50 of these domains, using only free tools and about 40 minutes of automated scanning a day. In this post, I'll walk through how we found the sites, how we got them taken down and what we learned along the way, so that other companies facing the same problem can do the same.

It all started at the beginning of November. We got messages on LinkedIn asking us if we were recruiting, because a few people were receiving fake remote job offers. These "offers" turned out to be a classic task scam. The victims contacted us asking to verify if these were real job offers, and we let them know that they weren't from us.

Finding them

At first, we were being told about these sites by victims directly. We quickly realized we needed to be hands-on and proactive in finding these sites so that people would not fall for them.

I started with the first thing that came to mind: a combination of GitHub Actions and dnstwist. dnstwist is a domain name permutation engine. It basically helps you find lookalikes of domains that people might be using to attack you or try to trick your own clients. This was the first tool I tried, and it caught the first batch. The first batch was name + word. So, for example: datalogzportal, datalogzsupport, datalogzplus.

After we took down the first batch, the operator caught on, so they adapted. The scanner, through one of our multiple techniques, started catching sites with our name in short form (dlogz, dtlgz, datalgz). dnstwist can't generate these short-form names, so I pivoted to writing our own generator. It did one-letter typos + short forms. This meant that we started catching far more of the names that the operator was creating and taking them down. We started doing a daily sweep of ~100 TLDs with ~130,000 names.

One mistake I made, and spent some time trying to solve, was relying on public DNS resolvers, which throttled us (this is also mentioned in dnstwist's README!). This caused my tool to mark the resulting errors as "registered". For example, on one run it reported 78,000 domains! To fix this, I queried each TLD's registry servers directly using zdns. zdns is advertised as a "high speed DNS resolver for performing large-scale DNS measurements". This helped solve the issue, but then, alas, came another one. Some TLDs (such as .ws) answer for ANY name. This meant that I had to adapt what I had written so that we test each TLD with a random name on every run to see the type of response. This was starting to become a bit tiring, so I did some digging.

Zone files

I found out that ICANN has something called CZDS. What is CZDS? Well, it's the Centralized Zone Data Service. From their site: "an online portal where any interested party can request access to the Zone Files provided by participating gTLDs". And a Zone File is: "... the mapping of domain names, associated name server names, and IP addresses for those name servers ... Each registry operator keeps its zone data in a text file called the Zone File which is updated once every 24 hours."

You need to create an account and apply for each zone, but they make this process incredibly easy and straightforward, so don't be afraid! I recommend applying as a company and stating that you need zone file access for brand protection and reporting phishing websites that impersonate your company.

Now we can search across 925+ zone files every single day without a single failure. The first run we ever did of this found a live scam site that none of my previous methods were able to find. I also decided to pair this with two new domain feeds, hagezi and smet.cz, which cover about 3,000,000 new domains a week. Why two feeds instead of one? Well, they're not the same dataset: each one had domains the other missed. We also fetch more than 30,000 homepages every day for suspected domains. There are some shared technical details across all of these scam sites, as they all seem to be from the same exact operator in our specific case, and using those we found six more sites the other checks missed. We also added urlscan.io as another source.

The infrastructure for this is a few scripts and scheduled jobs that run for about 40 minutes a day for free and have found us over 50 scam sites. For tracking, the new findings are posted as a comment on a GitHub issue.

Taking them down

The best approach I have found is to be as thorough as possible. What I recommend is to report them to:

  • The registrar (and the reseller, if any, because sometimes they are not the same; RDAP will show you both). It is also worth reporting to the registry itself if the registrar ignores you.
  • Cloudflare: some operators will be using it as a proxy to hide their origin.
  • Google Safe Browsing: this will make sure that Google Chrome marks them as phishing sites.
  • Microsoft SmartScreen: this will do the same but for Edge.
  • Netcraft: they have a free API with no captcha you can use to report sites. A lot of big providers rely on their data.

Some lessons from reporting these sites

You need to know the difference between the reseller and the registrar. Sometimes the resellers took 12 hours to act and ignored parked domains that were going to be used for scams but weren't live yet. When I contacted the registrar, they suspended the domains within 30-60 minutes. This only works when there's a registrar above the reseller; some domains were sold directly by the registrar.

Cloudflare will add a phishing warning on sites, which is very helpful for getting victims to notice the scam. Cloudflare does forward the report to the website owner, so whatever you write in the evidence box, the scammer reads. Keep it only to the evidence that the site is a scam. For example: it uses our name, or it asks victims for deposits. Do not add how you found the site because that will tell the operator what to change next time.

One small note: whenever you're emailing registrars, resellers or registries, make sure not to use the full domain and instead write, for example, example[.]com, as Gmail (and other mail providers) will block the outgoing mail containing the phishing domain.

How the operator adapted

I noticed that this person or group of people was proactive and attentive, so when they saw we'd taken down a batch, they would change things up. They started changing the spelling with every batch, then switched to unrelated names. After that, they added a fake "drag the slider" screen on the websites themselves before showing the phishing copy of our site. This was done so that automated scanners would say the site was safe, because all they could "see" was the slider screen. In those cases, I would appeal the decision and point the reviewers to other evidence, and the site would be reclassified as malicious.

After this, they started removing our name entirely from the page text. Now it was only shown in images, so that a text search would find nothing. We are still able to find these sites, report them and have them taken down. I won't go into how, and I have left out some crucial details on purpose: as we have seen, this adversary is very proactive.

Closing words

I have found out that there are some third-party services that you can outsource all of this to, but they usually charge between $20,000 and $80,000 a year. By comparison, all of the tools and methods I've used here are completely free and pretty easy to set up. All that is needed is a bit of time and technical knowledge.

I hope this blog post is helpful for any other company out there facing the same issue we did, and that the guidance here may help stop innocent people from falling into the hands of more scammers.

A note on the author: this work was led by one of our engineers. Given how closely the operator tracked every move we made, we've kept their name out of this post. Thank you for the late nights and the 130,000-name sweeps.