Adolos
Small AI models that detect phishing web pages. They run on your own computer: pages are never sent anywhere.
pip install adolos
import adolos
with open("page.html", encoding="utf-8", errors="replace") as f:
html = f.read()
result = adolos.check("https://example.com/login", html)
print(result.level, result.probability) # e.g. "no_warning" 0.0003
The first call downloads the model from Hugging Face (9.7 MB for Small) and caches it.
Models
| Model | Parameters | Download (int8) | Phishing caught at 0.1 % false alarms* |
|---|---|---|---|
small (default) |
8.5M | 9.7 MB | 59.6 % |
base |
91.7M | 94 MB | 86.1 % |
* On the PhreshPhish v1.0.1 test set. Full results, benchmarks, credits and details are in the model cards: Adolos Small · Adolos Base.
Usage
Adolos scores pages you already have (from a crawler, email pipeline, proxy…). Pass the URL and the HTML:
from adolos import Detector
detector = Detector("base") # load once, reuse
result = detector.check(url, html)
result.probability # 0..1
result.level # "no_warning", "warning" or "block"
result.flagged # True for "warning" or "block"
Use the page's final URL, after redirects: the model reads it too. The HTML should be what the server sent; JavaScript is not run.
Levels
Each model has two thresholds, set on validation data:
| Level | Meaning |
|---|---|
block |
Probability above the block threshold (about 0.1 % false alarms) |
warning |
Probability above the warning threshold (about 1 % false alarms) |
no_warning |
Below both |
They're available as detector.block_threshold and detector.warning_threshold. You can also apply your own on result.probability.
Command line
adolos --html saved_page.html https://example.com/login
adolos --model base --json --html saved_page.html https://example.com/login
Options
Detector(
model="small", # "small" or "base"
precision="int8", # "int8" or "fp32"
revision=None, # Hugging Face commit; defaults to the one this version was tested with
cache_dir=None, # where to cache downloads
local_dir=None, # load the files from a folder instead of downloading
providers=None, # ONNX Runtime execution providers (default: CPU)
)
For research and debugging, detector.page_to_text(url, html) returns the exact text the model reads, and detector.score_text(text) scores it.
Limitations
- No detector catches everything. At 0.1 % false alarms, Base still misses about 14 % of phishing pages. Use Adolos as an extra layer, not instead of browser and email protections.
- JavaScript is not run. Pages that build their content with JavaScript are judged on the HTML the server sends.
- The code and models are provided as is, without warranty (see LICENSE).
License and credits
Code and models: Apache-2.0, by Rodrigo Simon (adolos.dev).
The models were trained on PhreshPhish v1.0.1 (Dalton et al., PhreshPhish: A Real-World, High-Quality, Large-Scale Phishing Website Dataset and Benchmark, arXiv:2507.10854), licensed under CC BY 4.0. The pages were converted to text and combined with Adolos's own data of legitimate sites. This package does not include the dataset or any page content. Adolos is not affiliated with the PhreshPhish authors.
Metadata
Release files for adolos 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 |
|---|---|---|---|---|
| adolos-0.1.0.tar.gz | 14.4 kB | Without provenance | Details for adolos-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adolos-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for adolos-0.1.0-py3-none-any.whl |
Total release size: 28.7 kB
Release files / adolos-0.1.0.tar.gz
| Download URL | adolos-0.1.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9b57f335b5ed2a3615fa180312e925a460d67b70edb8e9f2a1e1cf6c53aba50
|
|
BLAKE2b-256 checksum How to use checksums |
c7b90a4724ba676afebeea7710e42c7d01f5a999d71a173e79a257cff3eb2960
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / adolos-0.1.0-py3-none-any.whl
| Download URL | adolos-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16888cb84723f213d7cad629ef7bdc612c9432e4f7d45fca1a74020209ecc00a
|
|
BLAKE2b-256 checksum How to use checksums |
a712eee99b5cb825e2a464a3c0e0db0acc23c02c731b1ab1b844699943aafd18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for adolos 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.