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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lookalike_radar-0.1.0.tar.gz.
File metadata
- Download URL: lookalike_radar-0.1.0.tar.gz
- Upload date:
- Size: 34.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac703e0e767984fac7084d6a6f063a17c77a0b26db19b9e76e0d9ce8c39af969
|
|
| MD5 |
a4799d1f0d9fde896946551300f568a8
|
|
| BLAKE2b-256 |
44cafbfdf820c0dd9e135a8b5bd4392eaa9d363633c135c4b3cf7299dca136f8
|
Provenance
The following attestation bundles were made for lookalike_radar-0.1.0.tar.gz:
Publisher:
release.yml on vinayvobbili/lookalike-radar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lookalike_radar-0.1.0.tar.gz -
Subject digest:
ac703e0e767984fac7084d6a6f063a17c77a0b26db19b9e76e0d9ce8c39af969 - Sigstore transparency entry: 2508082661
- Sigstore integration time:
-
Permalink:
vinayvobbili/lookalike-radar@7e3a4ec8a6312ad76033a82be3bd742e75707a3d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vinayvobbili
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7e3a4ec8a6312ad76033a82be3bd742e75707a3d -
Trigger Event:
push
-
Statement type:
File details
Details for the file lookalike_radar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lookalike_radar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1822e417eab74fe136635118566397048d91298fef50c27c1eea57dd56c589cc
|
|
| MD5 |
a79c0ad4368f2a9e40ed7790411fc662
|
|
| BLAKE2b-256 |
3431ff5789aac2e0d861d9524c1d30b74da1c1fb57ad4a576dc2c9c2c0541e21
|
Provenance
The following attestation bundles were made for lookalike_radar-0.1.0-py3-none-any.whl:
Publisher:
release.yml on vinayvobbili/lookalike-radar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lookalike_radar-0.1.0-py3-none-any.whl -
Subject digest:
1822e417eab74fe136635118566397048d91298fef50c27c1eea57dd56c589cc - Sigstore transparency entry: 2508082730
- Sigstore integration time:
-
Permalink:
vinayvobbili/lookalike-radar@7e3a4ec8a6312ad76033a82be3bd742e75707a3d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vinayvobbili
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7e3a4ec8a6312ad76033a82be3bd742e75707a3d -
Trigger Event:
push
-
Statement type: