lookalike-radar
Discover and score brand-impersonation domains — lookalikes, typosquats, and combosquats — then dedup and track analyst triage over time.
Most typosquat tooling stops at "a similar domain exists." The interesting
question is "is this lookalike a live phishing kit, or just a parked typo?"
lookalike-radar is built around that question: it discovers candidate
impersonation domains from several sources, scores how weaponized each one is,
and keeps a durable ledger so a domain is triaged once, not every run.
It is vendor-neutral by design. The engine ships no API keys and hardwires no threat-intel vendor or messaging platform. Enrichment providers and notification sinks are pluggable Protocols — you bring VirusTotal / Recorded Future / Shodan / your own feed, and Webex / Slack / a webhook / a log line.
Install
pip install lookalike-radar # core: model + ledger + protocols (stdlib only)
pip install "lookalike-radar[all]" # + optional DNS / HTTP / WHOIS extras used by discovery & scoring
Quick start
from lookalike_radar import Finding, Ledger, ConsoleSink, Source
ledger = Ledger("findings.db")
# A discovery source hands you candidate domains; record them.
ledger.upsert(Finding(domain="examp1e.com", brand="example", source=Source.PERMUTATION))
ledger.upsert(Finding(domain="example-login.com", brand="example", source=Source.CERT_TRANSPARENCY))
# Re-running is safe: the ledger dedups by domain and preserves analyst triage.
ledger.set_status("examp1e.com", "monitoring", notes="parked, watching")
ConsoleSink().emit(ledger.all())
Discovery
Two kinds of source feed the ledger:
from lookalike_radar import generate_permutations, run_discovery, Ledger
# Generative: algorithmic typo/combosquat candidates (pure, no network).
candidates = generate_permutations("example.com", include_combosquats=True)
# Observational: hosts actually seen in CT logs, urlscan, and OpenPhish.
ledger = Ledger("findings.db")
ledger.upsert_many(run_discovery("example", exclude_domains=["example.com"],
urlscan_api_key="...")) # key optional
Permutations guess what an attacker might register (resolve them before
trusting one); the observational sources report FQDNs that already exist —
including combosquats and wildcard-cloaked subdomain abuse under a legitimate
apex that permutations and CT sweeps both miss. Every source is best-effort: one
being slow or down narrows a run's coverage, it never aborts the scan. Networked
sources need the [http] extra.
Scoring
The headline question — is this lookalike a live phishing kit, or a parked typo? — is answered by collecting hard signals (page live, login/password form, brand-on-page, MX/SPF/DMARC mail capability, parked-page detection, does it resolve) and running them through a scorer:
from lookalike_radar import Ledger, RulesScorer, LLMScorer, score_finding
ledger = Ledger("findings.db")
# Default: deterministic, zero-dependency P1-P4 verdict — no LLM, no key.
for f in ledger.all():
ledger.upsert(score_finding(f))
# Or bring your own model — any callable (system, facts) -> JSON string.
def my_llm(system, facts):
return call_your_model(system=system, user=facts) # OpenAI, Anthropic, local, ...
score_finding(f, scorer=LLMScorer(my_llm)) # falls back to rules if the model errors
Tiers: P1 live/weaponized (working credential clone), P2 strong
impersonation — a mail-capable combosquat is at least P2 because it can phish by
email today regardless of its web page, P3 suspicious but not weaponized,
P4 benign/dormant. Signal collection needs the dns and http extras.
Enrichment providers
Fold your own threat-intel into the verdict without writing a class:
from lookalike_radar import CallableProvider, score_finding
vt = CallableProvider("virustotal", lambda d: my_vt_lookup(d))
score_finding(f, providers=[vt]) # signals land under signals["providers"], visible to an LLMScorer
Providers are best-effort: one that raises is skipped, never fatal.
Command line
lookalike-radar permute example.com --combosquats
lookalike-radar scan example --apex example.com --score --limit 20
lookalike-radar score examp1e.com --brand example
lookalike-radar list --status new
scan and score need the network extras; permute and list are offline.
Add --json to any command for machine-readable output.
Concepts
- Finding — one suspicious domain and everything known about it: the brand it impersonates, its discovery source, a weaponization verdict, and infrastructure pivots (registrar, registrant org, IPs, nameservers) for campaign clustering.
- Risk tier — the weaponization verdict.
P1live/weaponized,P2strong impersonation (a mail-capable combosquat is at least P2 — it can phish by email today regardless of its web page),P3suspicious but not weaponized,P4benign. - Ledger — a SQLite store that dedups by domain and remembers triage across runs. Re-discovery advances what's freshly observed but never downgrades an analyst's disposition.
- Providers — pluggable enrichment (
enrich(domain) -> signals). - Sinks — pluggable delivery (
emit(findings)); ships console + JSONL.
Status
Beta. The full pipeline is in place: data core (findings, ledger, providers, sinks), discovery (permutations, certificate transparency, urlscan/OpenPhish), and weaponization scoring (rules-based default + bring-your-own-LLM). Enrichment provider adapters and packaging polish are next.
License
MIT
Metadata
Release files for lookalike-radar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lookalike_radar-0.1.0.tar.gz | 34.7 kB | With provenance | Details for lookalike_radar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lookalike_radar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lookalike_radar-0.1.0-py3-none-any.whl |
Total release size: 70.2 kB
Release files / lookalike_radar-0.1.0.tar.gz
| Download URL | lookalike_radar-0.1.0.tar.gz |
|---|---|
| Size | 34.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac703e0e767984fac7084d6a6f063a17c77a0b26db19b9e76e0d9ce8c39af969
|
|
BLAKE2b-256 checksum How to use checksums |
44cafbfdf820c0dd9e135a8b5bd4392eaa9d363633c135c4b3cf7299dca136f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logRelease files / lookalike_radar-0.1.0-py3-none-any.whl
| Download URL | lookalike_radar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 35.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1822e417eab74fe136635118566397048d91298fef50c27c1eea57dd56c589cc
|
|
BLAKE2b-256 checksum How to use checksums |
3431ff5789aac2e0d861d9524c1d30b74da1c1fb57ad4a576dc2c9c2c0541e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logSecurity for lookalike-radar 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lookalike_radar-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.