DEV Community

krunal solanki
krunal solanki

Posted on

The sanctioned supplier changed its name. Not its email.

This year OFAC fined a 12-person freight forwarder in Los Angeles $175,015 over a single $5,950 machine.

The company, Pegasus Worldwide Logistics, imported a tablet-press machine from a Chinese supplier. The supplier was on OFAC's Specially Designated Nationals (SDN) list, but it was trading under a new name. Pegasus screened the new name, got no match, and went ahead.

The supplier's email address and phone number hadn't changed. Both were printed on its SDN entry.

OfacMatch finding a renamed company by the email address on its SDN entry

I build OfacMatch, an open-source OFAC screener. My last post was about fuzzy name matching. This one is about what name matching can't catch, and how I added screening by email, phone, website and crypto address in version 2.1.

What the SDN entry actually says

Here is the supplier's entry, from the public list (entry 41376):

YOULI TECHNOLOGY DEVELOPMENT CO., LTD.
Program: ILLICIT-DRUGS-EO14059
Website www.yolimachine.com; Email Address yk@yolimachine.com; Phone Number 8615815351839
Enter fullscreen mode Exit fullscreen mode

The new company name changes none of those lines. And Youli isn't unusual. In the SDN list of 23 November 2026 I counted:

Identifier in the remarks Count
Websites 1,306
Crypto addresses 1,075
Email addresses 370
Phone and fax numbers 185

Name-only screening ignores every one of them. The same lesson shows up in OFAC's Extreme Networks case: seven of nine orders carried the blocked company's email addresses.

Where the data lives

OFAC's SDN.CSV has no email or phone columns. The identifiers sit in the free-text remarks field, separated by semicolons:

Website www.bank-maskan.ir; Email Address info@inb.ps; Digital Currency Address - XBT 12aNKp2i...
Enter fullscreen mode Exit fullscreen mode

Two traps:

  1. Truncation. SDN.CSV cuts remarks at 1,000 characters. 36 entries hit that limit, and 33 of them carry identifiers. OFAC publishes the overflow in a separate file, SDN_COMMENTS.CSV. If you don't load it, you lose identifiers from the entries that have the most of them.
  2. Older formats. Phone numbers appear as Phone Number, Telephone and Fax, with country codes and no +.

The rules: exact, not fuzzy

For names, fuzzy matching is the whole job. For identifiers it's the wrong tool. Two email addresses are the same or they aren't, and "similar" phone numbers would bring back the false alerts fuzzy name matching works so hard to avoid.

So each identifier is normalized and compared exactly, with two looser levels where they make sense:

You give Normalized Matches
Email lower case, mailto: removed Exact: a listed email. Same domain: the domain of a listed website.
Website lower case; http(s)://, www., port and trailing / removed Exact page, or same domain (including subdomains)
Phone or fax digits only; (0) and a leading 00 removed; at least 7 digits Exact digits, or the same last 9 digits
Crypto address trimmed; 0x, bc1, ltc1 lower-cased, others case-sensitive Exact only

The "same domain" rule is what catches Youli: sales@yolimachine.com has the same domain as the listed website www.yolimachine.com. The "last 9 digits" rule matches 158 1535 1839 (typed the local way) against the listed 8615815351839.

Where "same domain" must not apply

This is the part that decides whether the feature is useful or noisy:

  • Never the domain of a listed email. A listed someone@gmail.com must not flag every Gmail user. Email domains are often webmail or ISP domains shared by millions, so a listed email only matches exactly.
  • Shared platforms. A listed facebook.com/somepage or t.me/channel matches only that page, never the platform. A listed name.wixsite.com never flags wixsite.com.
  • Pages on big institutions' sites. A listed university.edu/~someone doesn't flag the university.

Three more decisions:

  • An identifier match is a hit on its own, even when the name scores far below the threshold. That's the whole point: the name is what changed.
  • An identifier never clears a hit. A different email doesn't lower a strong name match.
  • Explain every hit: which identifier, which entry and how it matched, so a reviewer can check it in seconds.

Did it work?

On the real list:

  • Self-check: every one of the 2,936 listed identifiers, given as input, finds its own entry.
  • False alerts: 15,000 made-up emails, websites and phone numbers in common formats (5,000 of each) raised 0 alerts.
  • Speed: 2,000 lookups take about 3 ms, because each identifier type is a dictionary lookup built once when the list loads.

And the case that started it, with a made-up new company name:

Screen Result
Name only: Brand New Precision LLC Closest listed name scores 36.4 of 100. No alert.
Name + email: sales@yolimachine.com Alert: entry 41376, same domain as the listed website.

Try it

In the browser, no install: krunalsolanki.github.io/ofac-match. Open "More details" under the name box and add an email, phone or website. It runs in your browser, so nothing you screen leaves your device. CSV uploads accept Email, Phone and Website columns too.

.NET (dotnet add package OfacMatch):

var request = new ScreeningRequest("Brand New Precision LLC")
{
    Email = "sales@yolimachine.com",
};

var match = screener.Screen(request)[0];
Console.WriteLine(match.Explain());
Enter fullscreen mode Exit fullscreen mode
Identifier match; name score 36.4 via NameParts against Primary name "YOULI TECHNOLOGY DEVELOPMENT CO., LTD."
  Entry 41376: YOULI TECHNOLOGY DEVELOPMENT CO., LTD. (Entity; programs: ILLICIT-DRUGS-EO14059)
  Email sales@yolimachine.com has the same domain as listed Website www.yolimachine.com
Enter fullscreen mode Exit fullscreen mode

Python (pip install ofacmatch, against the self-hosted API in Docker):

from ofacmatch import Client

client = Client("http://localhost:8080")
result = client.screen("Brand New Precision LLC", email="sales@yolimachine.com")
match = result["matches"][0]
print(match["matchedBy"])                              # identifier
print(match["identifierMatches"][0]["description"])
Enter fullscreen mode Exit fullscreen mode

There's also an MCP server, so Claude and other AI assistants can screen identifiers with a screen_identifier tool.

Update for version 2.2: the same approach now covers the ID numbers OFAC lists: passport, national ID, tax ID and company registration numbers, vessel IMO and MMSI numbers, and SWIFT/BIC codes, 21,664 in all. A renamed ship keeps its IMO number, so IdNumber = "IMO 9187629" finds the listed vessel whatever it is called now. Every listed number finds its own entry, and 10,000 made-up numbers raised no alerts.

What it still doesn't do

  • Ownership. OFAC's 50 Percent Rule blocks companies owned by listed parties even when they aren't listed themselves. No list lookup catches that. OfacMatch now shows the "Linked To" relations OFAC publishes (9,315 of them), which can point a reviewer to related parties, but ownership has to be checked from company records.
  • Other lists. It checks the SDN list only, not OFAC's non-SDN lists or other countries' lists.
  • Decide for you. Every match is a potential match. A person reviews it.

If you build screening into onboarding, procurement or payments, the cheapest improvement may not be a better name matcher. It may be screening the email and phone number you already have.

Feedback and false alerts are very welcome, here or on GitHub.

Not legal advice. OfacMatch is free and open source (Apache-2.0).

Top comments (9)

Collapse
 
ontomato profile image
ontomato •

screening the email and phone is the right fix for a renamed supplier. i'd still do that lookup against the list as it stood on the shipment date, not only today's file. if you don't have a snapshot for that day, i'd stop rather than treat a pass on the current list as covering yesterday's order.

Collapse
 
krunal_solanki_f19a805b67 profile image
krunal solanki •

Thank you, that is a fair point, and I agree that stopping is better than assuming. A pass on today's list does not prove a pass on the shipment date, because an entry, or just an email address on it, can be removed between the two dates. OfacMatch can screen against any saved copy of OFAC's files (set OFACMATCH_DATA_DIR, or call SanctionsList.LoadFromDirectory), and each result carries that copy's fingerprint, so you can show which list was used. For dates without a saved copy, I keep a public record of SDN list changes, checked daily from 2 December and with OFAC's own dated changes back to September 2022. If no entry, name or identifier was removed between the shipment date and today, a pass today also holds for that day. If something was removed, you need the older list, and stopping is the right call. I can share the link to the change record if it would be useful.

Collapse
 
ontomato profile image
ontomato •

yeah, that removal check is the useful shortcut. i'd still want the fingerprint on the result even when the change record says nothing dropped, because a later audit has to reopen the exact list bytes, not only the conclusion.

the other thing i'd double-check is whether that record covers email and phone identifiers, not just names. a row can keep the same name and drop only the email you just started screening.

Thread Thread
 
krunal_solanki_f19a805b67 profile image
krunal solanki •

Both are good points. On the first, I agree. Every result carries the fingerprint whatever the change record says, but a fingerprint only lets an auditor reopen the exact list if someone kept the files. OfacMatch keeps only the latest copy, so a firm that needs this has to archive each copy it screened against, and the fingerprint then ties each result to the right archived copy. On the second, yes, the record tracks identifiers separately from names. If an entry keeps its name but loses an email address, phone number, website, crypto address or ID number, that is recorded as an identifier removed, with the old value. The full remarks text before and after is kept as well, so a change that is not recognised as an identifier still shows up.

Thread Thread
 
ontomato profile image
ontomato •

yeah, that's what actually makes the fingerprint usable. i'd keep the archive path or pointer on the result row too, so an auditor doesn't have to guess which folder held that hash.

if that file is gone, i'd treat the old screen as unverifiable rather than assume it still stands.

Thread Thread
 
krunal_solanki_f19a805b67 profile image
krunal solanki •

Agreed on both. One simple way to make the pointer reliable is to name each archived copy by its fingerprint, so the hash on the result row is also the address of the files, and nobody has to guess which folder held it. I have noted that for the tool. And yes, if the files are gone, the honest answer is that the old screen cannot be verified, not that it still stands. Thank you for the careful comments.

Thread Thread
 
ontomato profile image
ontomato •

naming the copy by the fingerprint is the clean version of that pointer, yeah. i'd still keep the original filename as a second field, because if someone later moves the archive the hash path breaks and you want to know what the file was called when you screened it.

and if a later check finds that path empty, i'd write unverifiable on the result rather than leaving the old pass looking current.

Thread Thread
 
krunal_solanki_f19a805b67 profile image
krunal solanki •

Both good points, thank you. Keeping the original file name next to the fingerprint costs nothing and saves a lot of guessing later, and marking the result as unverifiable is better than letting an old pass look current. I have added both to the plan for that feature.

Thread Thread
 
ontomato profile image
ontomato •

glad those are going into the plan. i'd still put a date on the unverifiable mark, so a later restore of the file doesn't quietly bring the old pass back without a new screen.