How do companies detect lookalike domains?#
Companies detect lookalike domains by combining proactive permutation generation with feed-based matching. They generate likely typos, homoglyphs, and top-level domain swaps from protected brands, then compare registrations, zone files, Certificate Transparency logs, and RDAP data. DNS, mail, hosting, and web-content enrichment identifies active, higher-risk matches.
Domain monitoring is the practice of continuously tracking domains that may impersonate or attack an organization. It watches new domain registrations, Domain Name System (DNS) configuration changes, Transport Layer Security (TLS) certificate issuance, and web content. It is the primary way to detect domain-based phishing, typosquatting, and brand impersonation. It is also a core part of any domain protection strategy.
Defensive registration prevents abuse by owning domains in advance. Monitoring works differently. It detects abuse after a domain is registered but (ideally) before it reaches victims. For most organizations, monitoring covers far more ground than registration alone. The space of possible lookalike domains is effectively infinite.
Detection approaches#
Domain monitoring uses two complementary approaches to surface threats. The most effective programs combine both.
Proactive permutation detection starts from a protected domain and generates every plausible variant an attacker might register. Variants include character omissions, transpositions, adjacent-key substitutions, homoglyph replacements, TLD swaps, hyphenation, and combosquatting patterns. The resulting permutation set is then checked against live DNS to find which variants are registered. This is the primary method for detecting typosquatted domains. It does not depend on a name appearing in any external feed. It finds predictable lookalikes directly by querying the DNS for each candidate.
Feed-based matching takes the opposite direction. Instead of starting from a seed and checking outward, it ingests streams of newly observed domain names from registration feeds, certificate logs, and DNS data. It then scores each incoming name against the protected brand using string similarity and keyword matching. This approach catches registrations that fall outside the permutation set, such as creative keyword combinations or impersonation patterns that a fixed permutation engine would not generate.
Neither approach alone provides complete coverage. Permutation detection is thorough for predictable variants but cannot anticipate every creative abuse. Feed-based matching covers a broader namespace but depends on the coverage and latency of its upstream data sources. Layering both provides the strongest detection posture.
Data sources#
Several data feeds support the detection pipeline, each with distinct strengths and coverage gaps.
- Newly registered domain (NRD) feeds are daily or near-real-time lists of domains registered across major TLDs. These are the most direct signal for feed-based detection of lookalike registrations. Feeds vary in coverage, latency, and cost. Some cover only legacy gTLDs while others include new gTLDs and select ccTLDs.
- Zone files. Top-level domain (TLD) zone file access, available through ICANN's Centralized Zone Data Service for generic TLDs, provides authoritative records of which domains exist under a given TLD. Zone file diffs can reveal new registrations, but access is not universal. Many country-code TLDs do not publish zone files.
- Certificate Transparency (CT) logs are public, append-only records of every TLS certificate issued by participating certificate authorities. A certificate issued for
y0urbank-login.comis a strong signal even before the domain resolves to active content. CT monitoring is especially valuable for this reason. Attackers who plan to serve HTTPS phishing pages typically obtain a certificate early in the attack chain, often before the site is live. - Passive DNS is historical DNS resolution data collected from recursive resolvers, useful for tracking when a domain changes its hosting, mail configuration, or name servers. It also helps identify shared infrastructure. Multiple phishing domains pointing to the same IP often indicate a coordinated campaign.
No single source covers the full namespace. NRD feeds may miss certain TLDs. CT logs only capture domains that obtain certificates. Passive DNS depends on resolver visibility. Combining multiple sources reduces blind spots.
Domain protection
Detect adversary infrastructure while it is being staged.
Have I Been Squatted helps security teams detect lookalike domains, certificate and DNS changes, and staging infrastructure, investigate the evidence, and coordinate takedowns.
The monitoring pipeline#
A typical monitoring pipeline follows four stages:
- Ingest. Collect data from NRD feeds, CT logs, zone files, and passive DNS on a continuous basis. Latency matters. A phishing domain can be weaponized within hours of registration, so near-real-time ingestion is preferable to daily batch processing.
- Match. Compare incoming domains against typosquatting permutations of protected brand assets using string similarity, edit distance, homoglyph tables, and keyword matching. The permutation set should be precomputed and updated whenever brand assets change.
- Enrich and score. Resolve DNS records to determine whether the domain is active and whether MX records suggest email intent. Pull WHOIS data for creation date and registrar context. Check TLS certificate issuance as a signal of intent to serve HTTPS content. Capture HTTP banners and screenshots to reveal what the domain actually serves. Assign a composite risk score based on these factors, weighting similarity to the brand, TLD reputation, and hosting infrastructure overlap with known-bad campaigns.
- Triage. Surface high-scoring domains to analysts with enough context (DNS records, WHOIS data, screenshots, content analysis) to support a disposition decision quickly. Low-scoring domains enter a watch list for re-evaluation if their posture changes.
The match and score stages are where most tuning happens. Overly broad matching produces noise. Overly narrow matching misses creative abuse.
False positive management#
False positives are unavoidable, especially for brands with short or common names. A company named "Arc" will match thousands of legitimate domains. Strategies for managing noise include:
- Multiple signals improve precision. Similarity alone is rarely sufficient. Combining it with hosting indicators, content analysis, or certificate signals dramatically reduces noise.
- Allowlists for known-good registrants and domains reduce recurring false positives.
- TLD-specific thresholds reflect realistic risk. A match in
.comtypically warrants more attention than one in a niche ccTLD. - Temporal signals matter. A domain registered yesterday is more suspicious than one registered five years ago.
- False positive rate is worth tracking as a metric. If analysts routinely dismiss the majority of alerts, the detection logic needs tightening. Acceptable thresholds vary by brand commonality and program maturity.
Integration with incident response#
Monitoring detections should feed directly into existing security and legal workflows rather than existing as isolated alerts.
High-confidence phishing domains go to security operations for internal blocking (DNS sinkholes, firewall rules, proxy blocklists). They also go to legal or a managed provider for takedown. Lower-confidence alerts enter an analyst triage queue. API integrations with security information and event management (SIEM) platforms, ticketing systems, and firewall management tools reduce manual copying of data between systems.
The most effective programs also feed monitoring intelligence back into brand protection workflows. They track which registrars host the most abuse, which TLDs are repeatedly targeted, and whether takedown actions work. This feedback loop improves both detection accuracy and enforcement strategy over time.
Tooling#
For teams that build their own stack, Have I Been Squatted's twistrs library can cover permutation generation and basic DNS resolution checks. Permutation generation is only one stage of the pipeline. A production monitoring system also needs NRD feed ingestion, CT log watchers, enrichment (WHOIS, HTTP content, screenshots), scoring logic, alert routing, and an interface for analyst triage. Building and maintaining that infrastructure in-house takes substantial, ongoing engineering effort.
Managed solutions handle pipeline maintenance and enrichment. Have I Been Squatted generates permutations from each monitored seed, checks registrations across TLDs, enriches matches with DNS, RDAP, HTTP, and certificate data, scores candidates, and surfaces prioritized alerts. It also lets teams automate the abuse response with fully managed takedowns. This closes the loop from detection to resolution without custom pipeline engineering.
Typosquatting detection tools compared
covers both routes, from open-source libraries to managed services.