Chapter 0 · Read first · 10 minutes
The study plan
SSRD runs from Oct 19 to Nov 15 at about 10 hours a week. Learning can't take a whole week of that, so this plan gives each idea one evening, just before the week that needs it.
The SPEC lists the week 1 "learning evenings": CT and static CT, favicon mmh3, TLSH, urlscan syntax, precision and base rates, and Phillips & Wilder. Each one has a chapter here. Two more chapters (safe fetching and the VCU memo) cover things you are already doing or will do soon. Every chapter ends with questions. A chapter is done when you can answer them without looking.
| When | Read | Time | Done when you can… |
|---|---|---|---|
| Sun Oct 18 | 1 · The respawn problem and 4 · Fetching safely | 75 min | Explain to a friend what the fetcher on your box does, what it refuses to do, and why. It is already running, so this goes first. |
| Mon Oct 19 | 2 · Certificate transparency | 45 min | Draw a checkpoint, a full tile and a partial tile, and say why the tailer waits for the tile to fill. |
| Tue Oct 20 | 3 · Names and the filter | 45 min | Turn a punycode name into its registrable label, and explain why recall and pass rate are the two numbers that matter. |
| Wed Oct 21 | 5 · Fingerprints, sections 5.1 to 5.3 | 45 min | Say why a SHA-256 of the page fails, what normalization removes, and what a TLSH distance of 70 means (and doesn't). |
| Thu Oct 22 | 5 · Fingerprints, 5.4 to 5.7, plus Phillips & Wilder | 60 min | Compute a Jaccard by hand, explain why MinHash estimates it, and recompute a favicon hash with the Shodan recipe. |
| Fri Oct 23 | 7 · Sources and the rules | 30 min | Write three urlscan searches from memory and say why SSRD never submits a scan. |
| Sat Oct 24 | 8 · Measuring honestly, 8.1 to 8.3 | 60 min | Show with numbers why a 1% false-positive rate can still mean poor precision, and compute a Wilson interval. |
| Week 2 · Oct 26 | 6 · Kits and the alert rule and Appendix A | 60 min | Decide whether the code's alert rule should match the SPEC exactly (Appendix A, item 1). |
| Week 3 · Nov 2 | 8 · Measuring honestly, 8.4 to 8.7 | 45 min | Brief the second labeler, keep the threshold sweep separate from the evaluation set, and compute kappa. |
| Week 4 · Nov 9 | 9 · Writing for the VCU | 30 min | Write a lead with a confidence label and "matches kit X" wording before you draft the memo. |
The book follows the pipeline, one chapter per stage
Chapter 1 · Sun Oct 18 · 30 minutes
If they rebuild, would anyone see it?
On Oct 14 2026 the Brooklyn DA's Virtual Currency Unit said it had disrupted 241 domains and 112 cloud servers of a crypto investment scam aimed at Russian speakers. Its release also said "new scam websites popped up quickly." SSRD turns that sentence into a question you can measure: how fast do new sites that match the same kit appear, and can a passive observer see them?
- What you'll learn
- The victim funnel, where SSRD can and can't see it, and what a "kit" is.
- Why it matters
- Every limitation in the memo traces back to this chapter: cloaking, the CT-only view, a thin seed set.
- In the repo
SPEC.mdGoal,docs/research.md"The VCU case" and "Prior art".
1.1 The funnel, and the one step SSRD can see
The release describes a five-step funnel. Russian-language Facebook ads lead to a phone "advisor". The advisor steers the victim to a fake trading platform. When the victim tries to withdraw, they are charged "fees". Later comes a "recovery" scam that promises to get the money back. The sites referenced US agencies and Elon Musk to look legitimate.
SSRD only sees the funnel where a new website gets a public certificate
1.2 A kit is software, not people
Fake investment sites are rarely built one by one. Operators reuse a kit: the same templates, scripts, icons and copy, re-skinned with a new brand name for each domain. The brand changes, but much of the software underneath stays the same. That reuse is the whole bet. If the software survives a rename, a fingerprint of it can link a brand-new domain to sites already known to be scams.
This is also why SSRD's language rules exist. A shared kit shows the same software. Kits are sold and copied, so it doesn't show the same operator. That is why the project always says "matches kit X" and never "operated by". The memo calls its findings "investigative leads, not attribution".
1.3 What already exists, and what is new
Most of SSRD's parts have been done before. Knowing the prior art keeps the claim honest:
- phishing_catcher scores CT names by keywords. That is SSRD's first filter (chapter 3).
- dnstwist compares pages with TLSH (
--lsh tlsh), SSRD's content signal (chapter 5). - Phillips & Wilder 2020 clustered crypto-scam pages from urlscan snapshots with TF-IDF and DBSCAN, after normalizing the HTML. This is the published baseline. Read its method section on Oct 22.
- Commercial tools (urlscan Pro "Similar Pages", Validin, DomainTools, Silent Push) already pivot on page structure and favicons.
The likely new part is narrow: a respawn metric (time from a dated takedown to the first matching new domain), and an open, auditable precision number for one network that law enforcement cares about. Using the Bank of Russia (CBR) blacklist as a near-daily ground-truth stream may also be new. The research pass found no published use of it, but that is unverified.
1.4 Three facts that shape every later chapter
- Cloaking is the default. Investment-scam sites often show a harmless "white page" to visitors who don't look like victims. Infoblox and Confiant counted about 15.5k investment-scam domains doing this through Keitaro. So "decoy" is its own outcome, reported next to precision (chapters 4 and 8).
- The takedown hit the backend. Live respawns from Oct 19 to Nov 15 may be rare. The CBR forward check and the seed backtest exist so a precision number can exist even if few new sites appear (chapter 8).
- The KCDA seed set is thin. Only 13 seeds, and the pre-seizure pages recovered from the Wayback Machine are generic WordPress + Elementor sites. Asset hashes can't separate them from ordinary Elementor sites. The page copy can, which is why the copy fingerprint exists (chapter 5.6).
Check yourself
A site matches kit-01-KCDA. Can the memo say the same people run it as the seized sites?
Name two funnel steps SSRD can never observe, and one consequence for the memo.
What is the one-sentence claim SSRD can honestly make if it works?
Chapter 2 · Mon Oct 19 · 45 minutes
How a public log tells you a domain was born
Before a browser trusts a certificate, the certificate has to appear in a public, append-only log. Scam operators need HTTPS for their platform to look real. So nearly every new scam domain announces itself in a certificate transparency (CT) log, usually minutes before the site goes live.
- What you'll learn
- Merkle-tree logs, checkpoints, tiles, names tiles, precertificates and the tailer's algorithm.
- Why it matters
- Time to flag starts at the CT timestamp, and ingest bandwidth decides whether the box can keep up.
- In the repo
src/ssrd/ct.py:Tailer.poll_log,tile_path,handle_entry.
2.1 Why the logs exist
CT was built so that anyone can spot a certificate a CA should never have issued. Certificate authorities submit each certificate to several logs, and browsers require proof of logging (signed certificate timestamps, SCTs). To put those proofs inside the certificate itself, the CA first logs a precertificate, a copy marked unusable, and only then issues the real one. The precertificate is why the log entry arrives seconds after issuance, and often before the site is serving anything.
SSRD uses the logs for a job they weren't designed for: a near-real-time feed of newly certified names. Anyone can read them, and the CA logs certificates for every domain it issues to, so a scam domain on a CA that logs (all public CAs do) can't avoid appearing.
2.2 Merkle trees, checkpoints and tiles
A log is a Merkle tree. Each entry is a leaf. Each parent node is the hash of its two children, so the single root hash commits to every entry below it. Change one old entry and the root changes, so a log can't quietly rewrite history. The log publishes a signed checkpoint: its name, the tree size and the root hash.
Older logs answered queries through an API (get-entries), which was expensive to run. Static CT logs (Sunlight is the main implementation) publish the tree as plain files instead, cut into tiles of 256 entries. A full tile never changes, so it can be cached forever. Let's Encrypt now runs only these tiled logs, so an old-API reader misses every Let's Encrypt certificate.
The tailer reads only full tiles. The partial one waits until it fills Illustration
2.3 Names tiles: the reason this runs on home Wi-Fi
A normal data tile carries whole certificates. Some static-CT logs also serve a compact names tile: one JSON line per entry, with just the DNS names, the subject common name and a timestamp. This is an extra endpoint, not part of the core spec. On Oct 17 the Let's Encrypt Sycamore and Willow logs and Geomys Tuscolo served it. Google's and IPng's logs did not.
Back-of-envelope: is the bandwidth affordable?
- Measured: about 76 KB per 256-entry names tile, about 6× smaller than a data tile. That is about 0.3 KB per entry.
- Measured: about 25 entries a second per Let's Encrypt log.
- 25 × 0.3 KB ≈ 7.5 KB/s per log ≈ 650 MB/day per log. Two LE logs plus Tuscolo come to a few GB a day at most.
- The alternative, certstream-server-go reading every log, was estimated at about 14.5 Mbit/s (≈ 4.7 TB/month; likely, not measured). That is why SSRD has its own tailer.
2.4 The tailer, step by step
GET <log>/checkpoint. The second line is the tree size.- First run only: start at the current head, rounded down to a tile boundary. The tailer never backfills further back than where it first started.
- While the next tile is full: fetch
/tile/names/<path>. The path encodes the tile number in groups of three digits, so tile 1234067 isx001/x234/067. - For each entry, collect its names (SANs plus the common name), reduce each to its registrable domain (chapter 3), skip names already in the seen-set and run the filter.
- Save the new position in
ct_stateafter every tile, so a sleeping box resumes where it stopped. - On HTTP 429, back off 30 s and try the next log. Count bytes, entries, names and filter passes for
metrics.jsonl.
Two details are easy to miss. Wildcard names (*.example.com) lose the *., so SSRD sees the registrable domain but not the subdomains the site will use. And about 1 in 1,000 registrable names is kept unfiltered as a background sample, picked by crc32(name) % 1000 == 0. These are the negatives that trained the name classifier. Because the choice is a hash and not a random draw, a given name is always in or always out of the sample, whichever log it came from and however often the tailer restarts.
The first fetch waits 20 minutes after the log entry, because precertificates arrive before sites do
expired and counted, never dropped silently. Because of the deliberate 20-minute delay, the time-to-flag floor is about 20 minutes.Check yourself
Why does a Merkle root stop a log from rewriting an old entry?
What would break if the tailer read the partial tile 2 in Fig 2.1 and moved on?
A scam site uses a wildcard certificate made months ago. Does SSRD see its new subdomain?
Why use a hash for the 1-in-1,000 background sample instead of random()?
x001/x234/067 path encoding) · Sunlight · Let's Encrypt CT logsChapter 3 · Tue Oct 20 · 45 minutes
Which new names are worth a visit?
The logs carry over a thousand new registrable names a minute. The fetcher manages about four. The name filter decides which ones get a visit, so it sets both SSRD's workload and the share of scam sites it could ever catch.
- What you'll learn
- Public suffixes, eTLD+1, punycode, keyword matching and a character n-gram classifier.
- Why it matters
- A site the filter drops is never fetched, so filter recall caps everything after it.
- In the repo
names.py(registrable,keyword_matches,passes) andname_model.py.
3.1 The part of a name an operator chooses
The operator chooses one part of a hostname: the label just left of the public suffix. Everything left of that is subdomains they can make up for free. Everything right is a suffix anyone can register under. The Public Suffix List (PSL) says where the suffix ends. It isn't always the last dot: co.uk is a suffix, and so are private suffixes such as vercel.app, where every customer gets their own name.
Keywords are matched only against the registrable label Illustration
assets., learn.) turned out to be mostly noise, so only the registrable label is matched. Private suffixes count as public, so my-site.vercel.app is its own registrable domain.3.2 Punycode: what xn-- means
DNS only carries ASCII. Internationalized names are stored in punycode, ASCII starting with xn--. xn--e1afmkfd.xn--p1ai is пример.рф, and инвест-капитал becomes xn----8sbafpqeomm1aunf. A keyword such as инвест can only match after decoding, so names.to_unicode decodes each label first. The SPEC also says to judge language from the page, not the domain, because CBR seeds are mostly English-named .com sites. Only 102 of the 2,601 from 2026 are .ru.
3.3 The keyword filter, and why it wasn't enough
The first filter was a keyword list in four groups in config/ssrd.toml: investment terms in English, transliterated and Cyrillic Russian, recovery terms, and bait (regulators and brands such as nydfs, musk, gazprom). Terms of four or more letters match anywhere in the label. Shorter ones, and a list of boundary_terms, must stand alone between separators or digits, so fx matches fx-pro but not effect. Infrastructure suffixes such as amazonaws.com are skipped.
Then it was measured. Of 5,020 CBR-listed domains from 2026, the keyword list passed 1,650 (33%). Most scam names are invented brands that contain no investment word at all. That finding is what led to a model.
3.4 A character n-gram classifier
The model doesn't look for words. It looks at how a name is spelled. Wrap the label in start and end markers and cut it into every 2-, 3-, 4- and 5-character piece. For fx-bot, the 2-grams are ^f fx x- -b bo ot t$ and the 3-grams are ^fx fx- x-b -bo bot ot$. Each piece is hashed into one of 220 buckets (the "hashing trick", so there's no vocabulary to store), and the counts are scaled to length 1. A logistic regression learns one weight per bucket. The score is 1 / (1 + e−z), where z is the bias plus the weighted sum.
Positives are CBR-listed labels. Negatives are the CT background sample from chapter 2. Training needs scikit-learn, but scoring is a few lines of pure Python with mmh3, so the ingest container stays small.
The split is by time, not at random
The model trains on CBR names listed before 2026-07-01 and is tested on names listed after. A random split would let near-duplicate names from the same campaign sit on both sides and inflate the score. A temporal split asks the question SSRD actually faces: does what we learned from past scams catch future ones?
At ≥ 0.93 the model catches more future scam names than keywords (0.55 vs 0.44) and passes 40% fewer names
| Filter | Recall (future CBR) | Pass rate (background) | Read as |
|---|---|---|---|
| Keyword list | 0.44 | 1.19% | Misses invented brand names |
| Model ≥ 0.90 | 0.61 | 1.17% | Best recall, over capacity |
| Model ≥ 0.93 (live) | 0.55 | 0.71% | Live. Still about 30% over fetch capacity |
Two numbers matter here, and precision isn't one of them. Recall is coverage: the share of real scam names that get a visit. Pass rate is workload: the share of all names sent to the fetcher. The filter doesn't have to be precise, because fingerprinting decides later. It has to keep enough scams in while fitting the fetcher's capacity.
One caution about the 0.55
The 0.93 threshold was picked by looking at this same test table, so 0.55 is a slightly optimistic estimate of recall on truly new names. It isn't wrong, but it isn't clean either. The clean check is the next monthly retrain: score names CBR lists after Oct 17 with the frozen threshold, and report that number too. Chapter 8.5 has the general rule.
A priority score orders the queue when it backs up: points for the model score above 0.9, one per keyword group, two more for bait terms, and one for a TLD common in the seeds (online, live, pro, top and so on).
Check yourself
What is the registrable domain of login.secure.trade-elon.online, and which groups match?
trade-elon.online. trade matches (investment). elon is a boundary term, and it stands between a hyphen and the end of the label, so bait matches too. That gives a high priority.Why is precision the wrong number to optimize for this filter?
Why hash n-grams into buckets instead of keeping a vocabulary?
A friend says "just split the CBR names randomly into train and test." What goes wrong?
brandx-pro, brandx-trade) land on both sides, so the test measures memory, not generalization. The temporal split asks whether the past predicts the future.Chapter 4 · Sun Oct 18 · 45 minutes · read this first, it's already running
How to visit a scam site from your own box
The fetcher downloads pages that criminals control, from the machine you use every day, on your home network. Each rule in this chapter answers one specific way that could hurt you. If you know which rule answers which threat, you can explain the design to an advisor, and you'll notice if a change would quietly weaken it.
- What you'll learn
- SSRF, DNS rebinding, IP pinning, an egress firewall, container hardening, response limits, pacing and cloaking.
- Why it matters
- Hard rules 1 to 3, 6 and 7 live here.
tests/test_safety.pymust keep passing. - In the repo
safety.py,fetch.py(SafeFetcher.get,Visitor),docker/egress.nft,SAFETY.md.
4.1 What could actually go wrong
| Threat | What it looks like | Answered by |
|---|---|---|
| SSRF: being steered at your own network | A scam domain resolves to your router, the Docker host (172.17.0.1), your tailnet (100.64/10) or a metadata address (169.254.169.254). | Layer 1 IP guard + layer 2 firewall (4.2, 4.3) |
| DNS rebinding | The name looks public when you check it, then points somewhere private when you connect. | Resolve once, pin the IP, recheck on every redirect (4.2) |
| Malicious content | Exploits aimed at browsers, JS engines or image decoders. | No browser, no JS, images never decoded, raw HTML never opened (4.4) |
| Tarpits and huge bodies | A server drips one byte a second, or sends 5 GB. | 20 s total cap per body, abort over 2 MB (4.5) |
| Wrong network | The laptop is on campus, where the UMich network policy applies. | Egress ASN check refuses to start (4.4) |
| Looking like an attacker | Bursts, many IPs, evading blocks. | 20 requests/min, one UA, no proxies, blocks recorded and not retried (4.6) |
4.2 Layer 1: resolve it yourself, then pin it
A naive fetcher checks the IP, then hands the hostname to an HTTP library, which resolves it again. If an attacker controls the DNS, the second answer can differ. That gap between the check and the use is what DNS rebinding exploits.
Rebinding works when the check and the connection resolve separately. Pinning makes them use one answer Illustration
Host header and TLS SNI still carry the hostname, so virtual hosting and certificates work as normal.4.3 Layer 2: a firewall that doesn't trust layer 1
Layer 1 is Python code, and code has bugs. A library might follow a redirect on its own, or a future edit might bypass resolve_public. So the fetcher container installs docker/egress.nft in its own network namespace before Python starts. The default policy is drop. It allows DNS only to 1.1.1.1 and 8.8.8.8, and TCP 80/443 only to addresses outside the blocked set. The blocked set is 10/8, 172.16/12, 192.168/16, 100.64/10, 169.254/16, 127/8, the documentation and benchmark ranges, multicast and reserved. All IPv6 is dropped. Either layer alone would stop the router request in Fig 4.1, so both would have to fail together.
Both guards must fail before a request reaches your LAN
setpriv before ssrd runs. ssrd safety-check re-tests all of this from inside the container.4.4 The container and the egress check
- Non-root, read-only root filesystem,
tmpfs /tmpwith noexec. Even a parser bug can't drop a persistent file or run a downloaded binary. cap_drop: ALL.NET_ADMINexists only for the entrypoint to install the firewall, and is dropped before Python starts. A compromised process can't change the firewall.- Only
./datais mounted. No$HOME, no Docker socket, so nothing to steal or escalate through. - Public resolvers, never the LAN router, so a scam name can't be resolved by your router's view of the network.
- Egress ASN check. Before fetching, the container asks Cloudflare which IP its DNS query came from (a CHAOS-class TXT lookup of
whoami.cloudflare), maps it to an ASN with Team Cymru, and refuses unless the ASN is inallowed_egress_asns(only AS22768, your building's ISP). On campus (AS36375) the fetcher won't start.
4.5 Limits on every response
Connect within 5 s, read within 10 s, and finish the whole body within 20 s. The last limit stops slow-drip tarpits that keep a read timeout alive forever. Bodies are streamed and aborted past 2 MB. The Content-Type must be on an allowlist (HTML, CSS, JS, icon images). At most 3 redirects, http/https only. Binaries are never saved, only their hash and size, and images are never decoded: the favicon is hashed as raw bytes. In passive_visit mode, the favicon and up to 5 same-origin, non-library JS/CSS files are fetched only if the homepage already has ≥ 3 investment terms.
4.6 Pacing: a pacer, not a bucket
SAFETY.md says "token bucket", but fetch.RateLimiter is actually a pacer. Every request, from either worker, waits until next_ok, then pushes next_ok 3 seconds later (60 / 20). A token bucket would let up to its capacity go out at once after a quiet spell. The pacer never bursts. That is stricter than the rule requires, which is fine, but the docs should name it correctly (Appendix A).
At 20 requests a minute the pacer starts one request every 3 s. A bucket could fire five at once Illustration
4.7 Outcomes, and why cloaking is a result, not a failure
Each capture is classified by fingerprint.classify as content, parked, blank, blocked (401/403/406/429/451/503), error or seized. Parked, blank and error pages get retries at +2 h and +24 h. When you review, a page that shows harmless content to SSRD but matches a scam's infrastructure is labeled decoy-cloaked.
Hard rule 3 says a block is recorded, never worked around: no proxies, no rotating IPs, no retry from another network, no headless browser. Evading blocks is also where legal risk rises (chapter 7). One method note: your building's residential IP probably sees less cloaking than a datacenter IP would, because cloakers filter datacenters. So SSRD's decoy share isn't comparable to datacenter-based studies. Say so in the README.
4.8 Evidence you could hand to someone
Raw bytes are stored gzip-compressed as data/captures/<sha256>.gz (mode 0600), so the file name proves the content. Each visit appends one JSON line to data/manifest/YYYY-MM-DD.jsonl: requested and final URL, redirect chain, fetch time, CT time, resolved IP, ASN, request and response headers, certificate SHA-256, body SHA-256, outcome and the tool's git commit. Each day's file gets a SHA-256 in hashes.txt. Past lines are never rewritten. If the VCU ever relies on a lead, this is what shows what you saw, when, and with which version of the code.
Check yourself
A scam domain has two A records: 198.51.100.20 and 192.168.1.1. What does SSRD do?
resolve_public rejects any name with any non-global answer, because mixing public and private answers is a rebinding trick. (Both addresses are blocked by the firewall too: the first is a documentation range.)Why keep the nftables firewall if resolve_public already refuses private IPs?
A site returns 403 to SSRD. Should you retry from your phone's hotspot?
Why is the 20 s total cap needed when there's already a 10 s read timeout?
Chapter 5 · Wed Oct 21 and Thu Oct 22 · 45 + 60 minutes
Hashes that survive a rename
A kit is re-skinned for every domain: new brand, new prices, new dates. A fingerprint has to stay the same through those changes and still differ between unrelated sites. Each signal in this chapter is a different guess about what an operator won't bother to change.
- What you'll learn
- Normalization, TLSH, shingles and Jaccard, MinHash, copy containment, favicon mmh3, asset hashes and the common-value denylist.
- Why it matters
- Every alert is a claim that two pages share these values. You must be able to say what each value means.
- In the repo
fingerprint.py(pure: bytes in, features out),score.compare,config/ssrd.toml [score].
5.1 Why SHA-256 of the page doesn't work
A cryptographic hash is built so that changing one byte changes the whole hash. That makes it perfect for proving a file is unchanged, which is how SSRD names its captures. It is useless for "these two pages are nearly the same", because two copies of a kit differ in the brand, a price ticker and a nonce. SSRD needs two kinds of hash: exact hashes for parts the operator doesn't touch (icons, JS and CSS files, chat-widget snippets), and similarity hashes for parts they edit lightly (the HTML and the copy).
5.2 Normalize first
Before any similarity hash, normalize_html lowercases the page and replaces the parts that change on every load. Here is its real output on a toy fragment:
Normalization deletes what changes per page, so the template is what gets compared Illustration
<div class="Price" data-nonce="9f86d081884c7d659a2feaa0c55ad015">BTC 67,214.50 · 2026-10-17</div> <img src="data:image/png;base64,iVBORw0KGgo…">
↓ normalize_html: hex runs ≥ 16 → H · base64-like runs ≥ 40 → B · every digit run → 0 · whitespace collapsed
<div class="price" data-nonce="H">btc 0,0.0 · 0-0-0</div> <img src="data:image/png;base0,B">
5.3 TLSH: a fuzzy hash with a distance
TLSH (Trend Micro's locality-sensitive hash) slides a 5-byte window over the input, counts byte triplets into 128 buckets, and records each bucket as one of four levels relative to the quartiles of all the counts. Add a short header (a checksum, the length and quartile ratios) and you get a hash of about 70 hex characters. Two hashes give a distance: 0 means near-identical, and it grows as the byte statistics drift apart. There's no fixed maximum: the distance can run well past 300.
- Input must be at least 50 bytes, and some low-variety inputs return no hash (
TNULL). That's whytlsh_hashcan returnNone. - Published cutoffs come from executables, not web pages. The config's
tlsh_max_distance = 70is a placeholder. The SPEC says to sweep 30 to 150 on your own labeled pages in week 3. - TLSH sees bytes, not structure. Two pages from one WordPress theme can be close even with different owners. That's one reason a single content signal never alerts on its own.
5.4 Shingles and Jaccard similarity
The structural signal ignores text and attributes. It walks the HTML and lists tag names in document order: html head meta title … body div nav a …. Then it takes every run of k = 5 consecutive tags, called a shingle. A page becomes a set of shingles, and two sets are compared by Jaccard similarity: shared shingles ÷ all distinct shingles, |A ∩ B| ÷ |A ∪ B|. 1 means the same set; 0 means nothing in common. Try it: change a tag in page B and watch which shingles stop matching.
One changed tag breaks up to k shingles, so bigger k is stricter Illustration
Page A's shingles (shared ones highlighted)
script tag and uses h2 instead of h1. With k = 1 they look almost identical, because a single tag name says little. With k = 5 each change knocks out several shingles. SSRD uses k = 5 (shingle_k) and a placeholder threshold of 0.80 (jaccard_min).5.5 MinHash: estimating Jaccard without the sets
Comparing a new page against every kit member means comparing many sets. MinHash compresses each set into a short signature. Pick a random hash function, hash every shingle, and keep only the smallest value. For two sets, the minimum is the same exactly when the shingle with the smallest hash in A ∪ B is in both sets. That happens with probability |A ∩ B| ÷ |A ∪ B|, which is the Jaccard. Repeat with 128 hash functions (minhash_perm) and count agreements. The fraction that agree is your estimate.
How noisy is 128?
Each agreement is a coin flip with probability J, so the estimate's standard error is √(J(1 − J) / 128). At J = 0.80 that's about 0.035. A pair whose true Jaccard is 0.78 will show ≥ 0.80 roughly 3 times in 10 (normal approximation). A hard cut-off at 0.80 is noisy for pairs close to it. That's fine when another family has to agree too, and one more reason never to alert on one signal.
5.6 The copy fingerprint: what separated the KCDA pages
The KCDA pages recovered from the Wayback Machine are WordPress + Elementor (Hello theme) behind Cloudflare. Their tag structure, paths and scripts are shared with thousands of ordinary Elementor sites. Once an Elementor background sample was added, they correctly stopped forming a kit on assets. What their builders reused was the sales copy.
copy_shingles takes the visible text, drops words that come from the domain's own brand (the label split on hyphens and digits, words of four or more letters), forms word 5-grams, hashes them with mmh3, and keeps the smallest 4,000 (a bottom-k sample, which estimates overlap consistently). Two pages are compared by containment: shared ÷ the smaller set. Containment, not Jaccard, because a long page containing a short page's whole copy is still a match.
KCDA page pairs share 71 to 99 copy 5-grams. Seed-vs-background pairs never share more than 15
copy_min_containment = 0.10. Background means 142 random urlscan scans plus 90 Elementor sites. Only the 99th percentile and the maximum of the background pairs were recorded, so the gray band spans 0 to the maximum. With this signal, kit-01-KCDA forms. Notice that the medium threshold (12) sits below the background maximum (15): a background pair can earn a medium copy signal.5.7 Exact hashes: favicons, assets and inline scripts
Favicon mmh3. SSRD uses the Shodan recipe so its numbers match other tools: base64-encode the raw icon bytes with a newline every 76 characters (Python's base64.encodebytes), then take MurmurHash3 32-bit, signed. A different encoding of the same icon gives a different number, which makes pivots in Shodan or elsewhere silently fail. Default and CDN icons get zero weight through the denylist.
Try it in uv run python
import base64, mmh3; mmh3.hash(base64.encodebytes(b"\x00\x00\x01\x00toy-icon-bytes")) → -1857383559. Then try base64.b64encode (no newlines) on the same bytes and see the number change.
Assets. SHA-256 of same-origin JS and CSS files, skipping common libraries matched by library_asset_pattern (jQuery, Bootstrap, GSAP, analytics and so on). Free urlscan accounts return 404 on response bodies, so seed favicons can't come from urlscan. Asset SHA-256s from its result JSON still work.
Inline scripts over 200 characters are hashed with whitespace-only normalization. On Oct 17 they had been hashed after full normalization. That turned every chat-widget snippet's account number into 0, so all sites using the same widget got one hash, and kit-01 chained unrelated sites together. Account IDs are exactly what should survive, so now only whitespace is collapsed.
5.8 Page features, and values too common to mean anything
Family C reads the page: a normalized title (≥ 8 characters), Telegram and WhatsApp IDs, crypto-address patterns, response header order and the CMS generator. Contact IDs and addresses are private linking evidence. Hard rule 5: never interact with them.
A value seen on many unrelated sites (the default WordPress favicon, a popular theme's path, "Home") would link everything to everything. score.common_values counts how many distinct background and live hosts carry each value. Above max(3, 2% of hosts) it gets zero weight. Seed pages are deliberately left out of that count. Otherwise a large, genuine kit would denylist its own shared assets.
| Family | Signal | Fires when | Strength |
|---|---|---|---|
| A content | tlsh | distance ≤ 70 (placeholder) | strong |
| A content | tag_jaccard | MinHash estimate ≥ 0.80 (placeholder) | strong |
| A content | copy | ≥ 30 shared and containment ≥ 0.10 · or ≥ 12 shared | strong · medium |
| B assets | favicon_mmh3 | equal, not common | strong |
| B assets | asset_sha256 · inline_script | any shared hash, not common | strong |
| B assets | asset_paths | ≥ 2 shared paths and ≥ 50% overlap | medium |
| C page | telegram · whatsapp · crypto_addresses | any shared value | strong |
| C page | title | equal normalized title, ≥ 8 chars | medium |
| C page | header_order · generator | identical | weak |
| D infra | asn · ns | identical | weak |
Check yourself
Compute the Jaccard of {a, b, c, d} and {b, c, d, e, f}.
Why does the copy signal use containment instead of Jaccard?
Why are seed pages excluded when building the common-value denylist?
Your favicon hash doesn't match the number in a Shodan search for the same icon. First thing to check?
encodebytes (newlines every 76 chars plus a trailing newline), not b64encode. And signed 32-bit output.A TLSH distance of 70 between two pages. What can you say?
Chapter 6 · Week 2, Mon Oct 26 · 45 minutes
When is a match a match?
Any one signal from chapter 5 can be shared by accident: a theme, a widget, a hosting company. SSRD's answer is to require agreement between different kinds of evidence. Two signals that tend to fail together don't count as two.
- What you'll learn
- Signal families, the alert rule (as specified and as coded), union-find clustering, chaining and the backtest.
- Why it matters
- False positives go to investigators. The alert rule is the main thing standing between a lookalike site and a wrong lead.
- In the repo
score.decide,score.strong_families,kits.cluster,evaluate.backtest.
6.1 Why "different families"
TLSH and tag-Jaccard both measure the HTML template. If two unrelated shops use the same WordPress theme, both fire together. Counting them as two independent confirmations would be double-counting one fact. So signals are grouped by what they measure: A content, B assets, C page features, D infrastructure. The SPEC rule is: alert only on ≥ 2 strong signals from different families among A/B/C; D only adds weight. Infrastructure is weak because the VCU release says the network used "Eastern European and American" hosts. Sharing Cloudflare or a big host's ASN means almost nothing.
6.2 The rule in the code is a little wider
score.decide alerts when there are strong signals in ≥ 2 of A/B/C, or strong signals in exactly one of A/B/C plus ≥ 2 other signals of any strength and any family, D included. The second clause isn't in the SPEC. It means one strong signal plus a shared ASN and shared nameservers alerts. Pick signals below to compare the two rules.
Pick the signals two pages share, and compare the code's verdict with the SPEC's
score.decide and the SPEC sentence above, run in your browser. Score is the sum of strengths (strong 3, medium 2, weak 1) and only ranks matches; it doesn't decide them. Try "tlsh + asn + ns": the code alerts, the SPEC doesn't. Whether to close that gap is your call (Appendix A, item 1). CLAUDE.md says never to replace the two-family rule with a single-signal shortcut.6.3 From pairs to kits: union-find
A kit is built from seed pages, not defined by hand. kits.cluster compares every pair of seed pages on different registrable domains. When a pair is linked, their groups merge. Groups are tracked with a disjoint-set union (union-find): each page points to a parent, find follows pointers to a group's root (halving the path as it goes, so later lookups are fast), and union joins two roots. After all pairs, each root is one candidate kit. Groups spanning ≥ 2 registrable domains become kits, named kit-NN, plus -KCDA if any member is a KCDA seed. Kits whose median page has fewer than 3 investment terms are marked excluded-non-investment and never alert. That catches parking and hosting templates.
Single linkage chains: one weak bridge can merge two unrelated kits Illustration
len(strong_families(sig)) ≥ 2), not the alert rule. The fix followed the kit-01 chaining seen on Oct 17 (chapter 5.7).6.4 What the library looks like now
The first library (Oct 17) clustered 212 seed pages on 128 domains into 12 kits holding 72 member pages. The largest held 30 pages on 16 domains, all with the same title about "sustainable wealth through oil, real estate, and agriculture". After the copy fingerprint and the chaining fix, the library holds 22 multi-domain kits, including kit-01-KCDA, plus 138 single-site references (ref-<domain>): investment-content seed domains that didn't cluster, so a live page can still match one known listed site. A reference match is weaker evidence than a kit match and is labeled separately. Most kits are general CBR-listed investment kits, not the KCDA network. The README and memo must keep the two apart.
6.5 The backtest: does the library recognize its own kits?
evaluate.backtest holds out about 20% of kit-member pages (page ID mod 5 = 0), re-clusters the rest, and checks whether each held-out page alerts against a group whose majority kit is the page's original kit. The history is a lesson in itself. It went 14 of 17, then 27 of 31 (87%) after the copy fingerprint. Then one 87-page "kit" turned out to be chaining: 4.8% pair density, held together by one inline-script hash (chapter 5.7). After the fix, the honest result is 13 of 19 (68%, 95% CI 46–85%). The 87% was inflated, because held-out pages were easy to "re-identify" inside one giant chained group.
What the backtest does and doesn't show
- It shows the rule and thresholds recognize known kits from a partial library. It does not measure precision on live CT traffic, where most candidates aren't in any kit.
- Only pages that joined a kit in the full library are held out. Seed pages the rule never linked to anything are never tested, so 68% is recognition given a page is linkable. The held-out pages are excluded from re-clustering, but the common-value denylist is shared. Report it as recognition, beside live precision.
- n = 19 is small, hence the wide interval, which reaches below the 60% target. Chapter 8.3 shows why.
Check yourself
A candidate shares TLSH distance 40 and tag-Jaccard 0.91 with a kit member, and nothing else. Alert?
Favicon + Telegram handle shared. Alert?
Why is clustering stricter than alerting?
What does the 68% backtest let you claim in the memo?
Why did the inflated 87% look so good?
Chapter 7 · Fri Oct 23 · 30 minutes
Where the known scams come from, and the lines you don't cross
The kit library is only as good as its seeds, and every seed source comes with rules: terms of service, quotas, and legal lines about what a private researcher may do. This chapter covers both, because most of the ways SSRD could go wrong legally run through these sources.
- What you'll learn
- CBR, KCDA, DFPI and urlscan: what each gives you, its limits, and the legal and ethical boundaries.
- Why it matters
- Hard rules 4 to 6 and the data-handling rules. A mistake here can publish a domain or make you a government agent.
- In the repo
seeds.py,urlscan.py,wayback.py,docs/research.md"Seed sources" and "Legal".
7.1 The seed sources
| Source | Gives you | Watch out for |
|---|---|---|
| Bank of Russia (CBR) blacklist JSON | 27,474 entries, 24,665 with a site, newest dated 2026-10-16, about 270–470 new entries a month. The main seed source and a ground-truth stream for the forward check (chapter 8.6). | The Site field needs cleaning (Telegram links, comma-separated lists, mail. hosts). Mostly English-named .com forex sites. In the memo they are "listed by CBR": indicators, not court findings. |
| KCDA seized set | 13 seeds: domains showing the KCDA seizure banner (title "This Website Has Been Seized", #KCDA, NS at Shadowserver), plus VCU releases. | urlscan saw these only after seizure, so fingerprints come from Wayback pre-seizure copies (7 recovered). Seized and sinkholed pages are excluded from fingerprints and from live scoring. |
| DFPI Crypto Scam Tracker | A small US pig-butchering set. | No export, so collected by hand. |
| Chainabuse | Spot checks. | Free tier is 10 calls a month. Researcher access has been requested. |
| Dropped. | The RED list has no URLs. CryptoScamDB is stale. ScamSniffer and MetaMask lists cover wallet drainers, not investment sites. |
One check you can run: the README counts 52,897 CBR domains, while the research notes count 24,665 entries with a site. The likely reason is that one entry can list several sites, and the cleaner splits them. Confirm that in seeds.py before the README quotes either number.
7.2 urlscan: search and fetch, never submit
urlscan.io is a public archive of browser scans other people submitted. SSRD uses it for history: what a seed domain looked like before it was seized or went dark. The free tier allowed 1,000 searches, 10,000 result fetches and some scans per day; the real limits come from GET /user/quotas/. Search sees only public scans, and anonymous result fetches return 403, so the API key in data/.env is required. The searches SSRD actually runs look like this:
urlscan search syntax (Elasticsearch query strings)
page.title:"This Website Has Been Seized": every scan with that page title (finds seizure banners, many of them not KCDA).hash:<sha256>: every scan where some response body had this SHA-256. This is how you pivot from one known script or banner to other domains.page.domain:"example.com": the history of one seed domain.- Also free:
page.asn,ip. Pro only: similar-page search,text.content,dom.hash. There's no mmh3 favicon hash and no TLSH, so SSRD computes those itself.
Hard rule 4 says never write code that submits a scan, in any visibility. A public or unlisted scan publishes the domain, and might warn the operator or expose an investigation. A private scan is urlscan's browser actively visiting the site with JS on, which goes beyond the passive-visit rule. A test enforces that the client has no submission code path. The ToS also say personal, non-commercial use and no "systematic retrieval" without permission. So: email urlscan about the research use before bulk pulls, keep to min_interval_seconds = 2.0, back off on 429, and cache every response locally.
7.3 The legal and ethical lines
| You may | You never | Why |
|---|---|---|
| Make unauthenticated GETs of public pages, at a polite rate | Log in, submit forms, run JS, or get around a block | Legal risk for public GETs is low (Van Buren, hiQ, the DOJ's 2022 CFAA charging policy). It rises when you circumvent barriers. |
| Record crypto addresses and chat handles as private evidence | Message, pay, look up or "test" them | Hard rule 5. Contact could tip off operators, harm victims or make you part of the case. |
| Use HTTP(S), DNS, RDAP/WHOIS | Port-scan or probe services | Hard rule 6. Your ISP's policy, and scanning looks like an attack. |
| Run the tool on your own initiative and send findings privately | Take collection instructions from the VCU | Once law enforcement directs your collection, it may count as state action, with Fourth Amendment limits, and you may become a witness. Stay independent and keep append-only logs. |
| Publish code, methods and aggregate metrics | Publish flagged domains, seeds, captures or labels | Everything under data/ stays private and off third-party services. |
The research notes also suggest an optional 30-minute check with UMich OGC or a faculty advisor before launch. It's cheap. Doing it after fetching has started is still worthwhile.
Check yourself
Why is even a private urlscan scan off-limits?
The VCU replies "great, can you watch for domains with this Telegram handle?" What do you do?
Write the search that finds other domains serving a script whose SHA-256 you know.
hash:<the sha256>. Then fetch each result's JSON, cache it, and compute features from the stored DOM. Don't visit the domains from the host.Chapter 8 · Sat Oct 24 (8.1–8.3) and week 3, Mon Nov 2 (8.4–8.8) · 60 + 45 minutes
How sure are you, really?
The SPEC promises "honest numbers". That means three habits. Say what the denominator is. Show how uncertain a number is. Never let the data you tuned on also grade you. This chapter is the toolkit for each.
- What you'll learn
- Precision under low base rates, Wilson intervals, Cohen's kappa, leakage, external confirmation, and median and p90.
- Why it matters
- These are the four headline metrics in the README and the memo. A skeptical analyst will check every one.
- In the repo
evaluate.py:wilson,precision,kappa,backtest,time_to_flag,cbr_forward.
8.1 Precision, and why the base rate decides it
Precision is the share of alerts that are real: true alerts ÷ all alerts. It's the headline because every false alert costs an investigator time. Recall is the share of real kit sites that alert. The trap is the base rate. If only 1 in 100 fetched pages is a kit site, even a rare false positive happens to the 99 others, so false alerts can outnumber real ones.
110 alerts from 10,000 fetched pages, and 55% of them are real
Illustration8.2 Six labels, and why decoys don't count as wins
Each alert gets one label in ssrd review: scam-kit, not-scam, decoy-cloaked, parked, error or unsure. Precision is scam-kit ÷ all labeled alerts. A decoy might well be a scam, but you didn't see the scam, so it counts as not confirmed, and the decoy share is reported beside precision. Label from the sanitized text, the matched signals and the nearest kit member. Write down your rules for each label before you start, so the second labeler gets the same instructions.
8.3 Intervals: why 13 of 19 isn't simply "68%"
A proportion from a small sample is uncertain. The textbook interval p ± 1.96·√(p(1 − p)/n) (the Wald interval) misbehaves when n is small or p is near 0 or 1. It can run past 100%, and its real coverage falls well short of 95%. The Wilson interval fixes this by solving for the range of true proportions that would make your result unsurprising. It's what evaluate.wilson computes:
centre = (p + z²/2n) / (1 + z²/n) and half = z·√(p(1−p)/n + z²/4n²) / (1 + z²/n), with z = 1.96.
Try your own counts: Wald vs Wilson
After the chaining fix the honest backtest is 13 of 19 (68%), and its interval reaches below the 60% target
8.4 Kappa: do two people agree beyond luck?
If you label your own alerts, a skeptic can say the precision is circular. The SPEC answer: a second labeler independently labels 50 of the same items, and you report Cohen's kappa, κ = (po − pe) ÷ (1 − pe). po is how often you agree. pe is how often you'd agree by chance, given how often each of you uses each label.
84% raw agreement is only κ = 0.63 once chance agreement is removed Illustration
| Labeler 2: scam-kit | Labeler 2: other | Total | |
|---|---|---|---|
| Labeler 1: scam-kit | 30 | 5 | 35 |
| Labeler 1: other | 3 | 12 | 15 |
| Total | 33 | 17 | 50 |
po = (30 + 12) / 50 = 0.84 · pe = (35·33 + 15·17) / 50² = 0.564 · κ = (0.84 − 0.564) / (1 − 0.564) = 0.63
evaluate.kappa uses all six labels. Common rules of thumb call 0.61–0.80 "substantial", but those bands are a convention, not a test. Report κ, po and n, and list the disagreements, because they show where your label rules are unclear.8.5 Never let the tuning data grade you
The thresholds marked "placeholder" (TLSH 70, Jaccard 0.80, copy 30) get chosen in week 3 by sweeping values on labeled data. Whatever data you sweep on, you'll fit, including its noise. So the precision you report must come from different alerts, labeled after the threshold was frozen. CLAUDE.md puts it as a rule: never tune thresholds on the evaluation set.
Three datasets, three jobs, and the threshold freezes between the first two
8.6 Confirmation you didn't produce: the CBR forward check
evaluate.cbr_forward counts SSRD candidates that CBR lists on or after the day SSRD first saw them, and how many of those SSRD alerted on. It's independent of your labels, so it answers the circularity objection from a different direction. It confirms "a regulator later listed this domain", not "this matches kit X", and CBR's listing delay is unknown, so a short run will undercount.
8.7 Time to flag: median and p90, not the mean
Time to flag runs from the CT timestamp to the first alert. A few sites flagged only on the +24 h retry would drag a mean far from the typical case. So report the median (half the alerts were faster) and p90 (90% were faster). Count only box uptime, and report gaps.
Retries make a long tail: median 27.5 min, p90 121 min Illustration
8.8 What the README will report
| Metric | Definition | Target | Now (Oct 17) |
|---|---|---|---|
| Precision | scam-kit ÷ labeled alerts above threshold, Wilson 95% CI, n ≥ 50, decoys not confirmed | ≥ 70% | not yet measured |
| Backtest catch rate | held-out seeds matched to the correct kit | ≥ 60% | 68% (13/19, CI 46–85%); earlier 87% was inflated |
| Time to flag | CT entry → alert, median and p90 | < 30 min if live at first fetch | not yet measured |
| Weekly volume | new confirmed matches per week, KCDA vs CBR | report as found | not yet measured |
| Also | decoy share, kappa, CBR forward confirmations, filter recall and pass rate | — | filter: 0.55 recall at 0.71% |
Check yourself
Base rate 2%, recall 50%, false-positive rate 1%, 10,000 pages. Precision?
Why does a decoy count against precision even if it's probably a scam?
You swept TLSH on the week 3 labels and then reported precision on those same labels. What's wrong, and how do you fix it?
Two labelers agree 90% of the time but κ = 0.2. How?
Chapter 9 · Week 4, Mon Nov 9 · 30 minutes
Writing a lead an investigator can use
The memo goes to a prosecutor who leads the unit and a senior analyst. They're busy, they'll check your claims, and anything they act on may one day be read aloud in court. Two pages have to tell them what you found, how sure you are, and what you can't see.
- What you'll learn
- Conclusion-first structure, confidence labels, wording that never overclaims, and the process rules around sending.
- Why it matters
- It's the project's deliverable. An overclaim here undoes the care taken everywhere else.
- In the repo
SPEC.md"VCU memo", CLAUDE.md "Language in code, docs, and output".
9.1 Conclusion first
Put the answer in the first three lines: how many new domains matched which kits, over what window, at what precision with its interval. Everything after supports that paragraph. A reader who stops after it should still have the result and its main limit. This is Barbara Minto's pyramid principle: the governing thought, then the reasons, then the evidence.
9.2 Every claim carries a label
| Label | Means | Example |
|---|---|---|
| confirmed | Directly observed and re-checkable from your evidence. | "Domain A served a page whose copy shares 84 5-grams with kit-01-KCDA seed pages (capture SHA-256 in the appendix)." |
| likely | Supported indirectly, or by a small sample. | "Kit-03-KCDA probably reflects one site builder's template; 3 recovered pages agree." |
| speculative | Plausible, not tested. Include it only if it's useful and plainly marked. | "The quiet period after Oct 9 may reflect the backend takedown rather than less activity." |
9.3 Words to swap
| Don't write | Write |
|---|---|
| "operated by the same group", "belongs to the network" | "matches kit X on favicon and copy signals" |
| "a scam site" | "a site matching kit X; listed by CBR on [date]" (where true) |
| "the criminals rebuilt within days" | "N new domains matching kit X appeared in CT within D days of the Oct ~7 action" |
| "proves", "clearly shows" | "is consistent with", plus the confidence label |
| "SSRD detects the network's sites" | "SSRD flags newly certified domains whose pages match recovered kit pages" |
| "87% accurate" | "re-identified 13 of 19 held-out seed pages (68%, 95% CI 46–85%)" |
9.4 A two-page skeleton
- Summary. The result with numbers and intervals, the window, and "investigative leads, not attribution".
- What the kits share. One sentence per kit, the signals that define it, KCDA kits separate from general CBR kits.
- What appeared, and when. New matches since the takedown, time from takedown to first match, and the time-to-flag median and p90.
- Method in five lines. CT → filter → passive visit → fingerprints → two-family rule → human review, with a link to the public repo.
- Leads. A table with the domain (defanged), kit, signals matched, confidence label and capture hash. Private, never in the repo.
- Limitations. Cloaking and the decoy share, filter recall (0.55 on future CBR names), wildcard certs, a CT-only view of a funnel that starts with Facebook ads, a thin KCDA seed set, and box downtime.
9.5 Process rules
- Nothing is sent until Rahil approves the final text. Drafts, renders and this book are not approval.
- Find the intake channel through the DA's office main line. Don't guess email addresses.
- Send findings; don't offer to collect on request (chapter 7.3).
- No operator names, no victim data, no addresses or handles in the body. Linking evidence stays in the private appendix.
Check yourself
Rewrite: "These 14 sites are run by the same scammers the VCU took down."
Where does the decoy share go, and why?
Appendix A · Week 2 · decisions for you
Where the code and the docs disagree
While writing this book, every claim was checked against src/ssrd/ as it stood on Oct 17, including uncommitted changes in the working tree. These are the gaps found. None was changed. Each one is your call.
| # | What the docs say | What the code does | Why it matters / options |
|---|---|---|---|
| 1 | Alert only on ≥ 2 strong signals from different families among A/B/C. D only adds weight. (SPEC R6, architecture.md) | score.decide also alerts on 1 strong family + ≥ 2 other signals of any strength or family, so strong tlsh + asn + ns alerts. | That's close to the "single-signal shortcut" CLAUDE.md forbids. Options: drop the second clause; or count only A/B/C medium signals; or keep it and document it in the SPEC with a reason. Then add a test for "strong + D + D → no alert" or the opposite. Try it in Fig 6.1. |
| 2 | "a global token bucket at 20 requests/min" (SAFETY.md fetch rule 6) | fetch.RateLimiter is a fixed-interval pacer: one request per 3 s, no bursts. | The behavior is stricter than described, which is safe. Fix the wording so the docs match. |
| 3 | Thresholds come from sweeps on labeled data (SPEC R6). | tlsh_max_distance = 70, jaccard_min = 0.80 and copy_min_shared = 30 are marked placeholders. | Expected at this stage. The week 3 sweep must use the tuning labels only (Fig 8.5). |
| 4 | Name filter: recall 0.55 at 0.71% (README, config) | The 0.93 threshold was chosen from the same test table it's reported on. | Slightly optimistic. Re-measure on CBR names listed after Oct 17 with the threshold frozen, and report both. |
| 5 | A medium copy signal needs ≥ 12 shared 5-grams. | Seed-vs-background pairs reached a maximum of 15 shared (research.md). | A background pair can earn a medium copy signal. Combined with item 1, medium signals can help trigger an alert. Consider raising it above the background maximum in the sweep. |
| 6 | README: 52,897 CBR domains. research.md: 24,665 entries with a site. | Not checked here. | Probably entries vs split-out domains. Confirm in seeds.py and use one clearly defined number. |
| 7 | The fetcher handles the filter's output. | Measured: about 325 candidates/h against about 250 visits/h (README, Oct 17). | About 75 candidates an hour can't be visited in time. The priority queue serves the highest model scores first, and the rest expire, counted. Report the expired share next to time to flag and recall, because it lowers effective recall below 0.55. |
Appendix B · reference
Glossary
- ASN
- Autonomous System Number: the ID of a network operator on the internet. Your building's ISP is AS22768. Used for the egress check, and as a weak (D) signal.
- Base rate
- How common the thing you're looking for is in the population you test. It sets how far false positives drag precision down.
- Checkpoint
- A CT log's signed statement of its current size and root hash.
- Cloaking / decoy
- Showing a harmless page to visitors who don't look like victims. Labeled
decoy-cloaked; never evaded. - Containment
- Shared items ÷ the size of the smaller set. Used for the copy fingerprint.
- CT (certificate transparency)
- Public, append-only logs of TLS certificates. SSRD's source of newly certified names.
- DNS rebinding
- Making a name resolve to a public address when it's checked and a private one when it's used.
- eTLD+1 / registrable domain
- The public suffix plus one label, such as
quantum-invest.co.uk. The unit SSRD dedupes and visits. - Family (A/B/C/D)
- A group of signals that measure the same kind of thing: content, assets, page features, infrastructure.
- Jaccard similarity
- |A ∩ B| ÷ |A ∪ B| for two sets.
- Kappa (Cohen's κ)
- Agreement between two labelers beyond what chance alone would give.
- Kit
- Reused scam-site software (templates, scripts, copy). A kit match means the same software, never the same people.
- MinHash
- A short signature whose agreement rate estimates Jaccard similarity.
- mmh3
- MurmurHash3, a fast non-cryptographic hash. Used for favicons (Shodan recipe), n-gram buckets and copy shingles.
- Names tile
- A compact JSONL tile listing just the DNS names of 256 log entries. A non-core extension some static-CT logs serve.
- p90
- The value 90% of observations fall at or below.
- Pass rate
- The share of all new names the filter sends to the fetch queue. A measure of workload.
- Precertificate
- A logged copy of a certificate, made before issuance so proofs can be embedded. It's why CT entries can come before the site.
- Precision / recall
- Precision: the share of alerts that are real. Recall: the share of real cases that alert.
- PSL
- Public Suffix List: where registrable names begin, including private suffixes such as
vercel.app. - Punycode (
xn--) - The ASCII encoding of internationalized domain labels.
- Shingle
- A run of k consecutive items (tags or words) used to compare documents as sets.
- SSRF
- Server-side request forgery: tricking a fetcher into requesting internal addresses.
- Static CT / tiles
- Logs published as cacheable files in 256-entry tiles instead of an API.
- TLSH
- Trend Micro locality-sensitive hash. Similar inputs give hashes with a small distance.
- Union-find
- A data structure that tracks which items are in the same group as links are added.
- Wilson interval
- A confidence interval for a proportion that behaves well at small n and near 0% or 100%.