What we learned aggregating 70,000 official scam warnings from 9 financial regulators
Financial regulators publish lists of websites that offer investments without authorisation: fake brokers, crypto "exchanges" that never let you withdraw, clones of real firms. The lists are public and updated often. The
Financial regulators publish lists of websites that offer investments without authorisation: fake brokers, crypto "exchanges" that never let you withdraw, clones of real firms. The lists are public and updated often. The problem is that each regulator publishes its own list, in its own format and language, so a person who wants to check one site has to know which of a dozen pages to search.
We built Udak, a free checker that puts these lists in one search box. This post is about the boring parts that turned out to matter: formats, domains, failures and the temptation to generate too many pages.
The sources
| Regulator | Country | What we get |
|---|---|---|
| CNMV | Spain | Paginated HTML search: its own warnings, plus warnings from foreign regulators that the CNMV republishes |
| FSMA | Belgium | HTML list of firms operating unlawfully |
| AMF | France | Paginated blacklists |
| FMA | Austria | Paginated warning pages |
| KNF | Poland | HTML table where the website is buried in free text |
| ASIC | Australia | A JSON file with a websites field (the easiest one) |
| SFC | Hong Kong | HTML alert list |
| JFSA | Japan | HTML list of unregistered firms |
| ESMA | EU | CSV files of the interim MiCA register |
Some regulators do not let scripts download their lists at all. We skip those rather than work around them, and we read robots.txt before every source.
Lesson 1: the domain is the key, and it is never clean
People type https://www.Example-Trade.com/login?ref=ad. Regulators write example-trade.com, www.example-trade.com/en, or "operates the website example-trade[.]com and others". So every source goes through the same normalisation:
def norm(s):
s = s.strip().lower()
s = re.sub(r"^[a-z]+://", "", s)
s = s.split("/")[0].split("?")[0].split(":")[0]
return re.sub(r"^www\.", "", s).rstrip(".")
For free text (KNF, some CNMV entries) we extract every token that looks like a domain, drop subdomains when the parent is also listed, and keep the original text next to it. When checking, we also try the parent domains: app.example-trade.com matches a warning about example-trade.com.
Lesson 2: keep the source, the date and nothing else
Every record keeps the regulator, the date of the warning and a link to the regulator's own page. We never write "this is a scam" in our own words: the page says that a named authority warned about this domain on this date, and links to it. A warning is not a court ruling, and the absence of a warning does not make a site safe. Both sentences are on every result.
One extra rule came from domains that use a famous brand name, like <brand>invest.com. The warning is about the domain, not about the brand, so those pages say so explicitly.
Lesson 3: a source failing must not erase it
Regulator websites change layout without notice. If a parser suddenly returns zero rows, the naive pipeline publishes a list without that regulator. Two guards:
- If a source fails, we keep its previous records and mark it as stale.
- If the merged file shrinks by more than 10 %, we restore the previous version and log why.
Updates run every day: a quick pass over the newest pages of each source, and a full pass every three days.
Lesson 4: your background job may be silently killed
Our update ran from a 15-minute systemd timer as a background process (nohup ... &). It never logged anything, and nothing failed loudly. It turned out that when a Type=oneshot service finishes, systemd stops every process left in its control group, including our "background" job, about 90 seconds after it started. The lists stood still for six days before we noticed the date on the page.
The fix was to start the job as its own transient unit:
systemd-run --collect --unit="scams-update-$(date +%F)" \
-p WorkingDirectory=/opt/app -p RuntimeMaxSec=6h \
/usr/bin/flock -n /opt/app/logs/.update.lock python update.py
and to add a health check that raises an alert when the list file is older than 48 hours.
Lesson 5: "no warning found" is not an answer
Most people do not check known scams. They check a real broker or exchange they are about to use, and "no warning found" tells them very little. The EU now publishes a register of crypto-asset service providers authorised under MiCA, as a CSV with each firm's website. If a domain is in it, the checker says which authority authorised the firm and when, and reminds the user that clones copy real names on different domains.
The same ESMA register has a second file with entities providing crypto services without authorisation, which became one more warning source.
Lesson 6: don't publish a page for every row
With about 16,000 domains and 20 languages, it is easy to generate 330,000 pages. Most would be the same template with two lines of data, which is exactly what search engines treat as low-quality mass content. We keep every page available to people, but only open a small, growing set to indexing: pages with their own facts (several regulators, dates, related domains, user complaints) first.
What's next
More regulators, if their lists can be downloaded, and registers of authorised investment firms, so the checker can answer "this broker is licensed" for more than crypto.
The checker is free, with no signup and no ads: udak.eu/scams. If you know a regulator list we should add, or find a wrong entry, tell us in the comments.
This article was drafted with the help of an AI assistant and reviewed by the Udak team.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.