/ Модель

Характеристики

Лицензия
MIT
Библиотека
keras
Опубликована
29 авг 2026

phishlens-mlp

Классификация таблицTable → label3 профессии

PhishLens MLP классифицирует строки URL по лексическим и структурным признакам, оценивая вероятность фишингового характера для офлайн-анализа.

15скачиваний за 30 дней0лайковвеса обновлены4 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

PhishLens MLP — компактная модель бинарной классификации, опубликованная frangelbarrera как ориентированная на развертывание версия проекта по обнаружению фишинговых URL. Она анализирует URL офлайн: получает 49 стандартизированных признаков строки, включая длины, пунктуацию, структуру хоста и поддоменов, признаки IP-адресов, punycode и подозрительные слова, а затем обрабатывает их многослойным перцептроном в Keras с архитектурой Dense(64) → Dense(32) → Dense(1) и сигмоидальным выходом. Модель предназначена для учебных и исследовательских экспериментов по защитной кибербезопасности, демонстрации инженерии признаков и сравнения с исходной CNN+LSTM-реализацией.

Модель выдает оценку риска по строке URL. В описанной проверке на отложенной выборке указаны accuracy 89,94% и ROC-AUC 0,965; эти результаты не гарантируют качество на новых данных. Модель не открывает URL, не проверяет DNS, содержимое страницы, перенаправления, сертификаты или внешнюю репутацию и может пропускать фишинг на легитимных доменах, если сама строка не содержит информативных признаков. Лицензия — MIT. README предостерегает от использования оценки как самостоятельного решения о блокировке или иных значимых решений.

Сценарии применения

  • оценка риска фишинга по строке URL
  • учебная демонстрация извлечения признаков из URL
  • сравнение MLP-классификатора с CNN+LSTM для обнаружения фишинга

Ограничения

Модель анализирует только строку URL и не проверяет сайт, DNS, перенаправления или репутационные источники; она может пропускать фишинговые страницы на легитимных доменах. Метрики на тестовой выборке не гарантируют качество в эксплуатации, где состав данных и распределение угроз могут отличаться.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

PhishLens MLP

PhishLens MLP is a compact binary classifier for identifying phishing-like URL strings from lexical and structural signals. It is the deployment-oriented model from the main branch of the phishing-detection-rnn-cnn project.

The model is designed for offline URL-string analysis. It does not browse to the submitted URL, resolve DNS, inspect page content, follow redirects, validate certificates, or query an external reputation service. The model output is a risk signal for research and defensive education, not a security verdict.

Try the interactive demo in the PhishLens Space.

Model summary

The classifier receives 49 deterministic features extracted from a URL string, standardizes them with the bundled StandardScaler, and applies a small multilayer perceptron:

49 standardized features → Dense(64, ReLU) → Dense(32, ReLU) → Dense(1, Sigmoid)

Dropout and L2 regularization are used during training. Inference uses the trained weights in my_model.keras and the fitted scaler in scaler.pkl.

Intended use

This model is intended for academic experimentation, defensive-security education, offline feature-engineering demonstrations, and reproducible comparison with the original CNN+LSTM thesis implementation. It can be used as one component in a larger analysis pipeline where predictions are reviewed alongside other signals.

Out-of-scope use

Do not use this model as an autonomous blocking, takedown, fraud, identity, employment, credit, or law-enforcement decision system. Do not open suspicious URLs to verify a prediction. The model cannot detect phishing pages hosted on legitimate domains when the URL string itself does not contain informative signals, and it cannot assess a website's live content or infrastructure.

Evaluation

The reported metrics were calculated on a held-out 20% test split with stratification and random_state=42. The decision threshold was tuned on the test evaluation procedure documented by the source project and is included in metrics.json.

MetricValue
Accuracy89.94%
ROC-AUC0.965
Average precision0.965
F1 score0.900
Brier score0.072
Decision threshold0.499

The confusion matrix is provided in metrics.json. These results should not be interpreted as production performance: dataset composition, sampling, label quality, temporal drift, and domain shift can materially affect outcomes.

Features

The 49 features describe URL shape and token patterns, including lengths, punctuation counts, digit ratios, hostname structure, subdomain depth, IP-address patterns, punycode, ports, URL shorteners, path extensions, suspicious terms, and top-level-domain indicators. The canonical order is stored in feature_names.json.

Five original dataset features were removed from the deployment-oriented branch because they require curated brand lists or live network context: random_domain, domain_in_brand, brand_in_subdomain, brand_in_path, and nb_external_redirection. This keeps training and inference consistent and avoids network requests.

Repository contents

FileDescription
my_model.kerasTrained Keras model weights and architecture metadata
scaler.pklStandardScaler fitted on the training features
feature_names.jsonCanonical feature order used by the model
metrics.jsonEvaluation metrics, threshold, curves, and confusion matrix
training_metadata.jsonTraining configuration, versions, architecture, and metrics digest
SHA256SUMSChecksums for the source artifacts
LICENSEMIT license

Reproducibility

The complete training and inference pipeline is maintained in the GitHub repository. The model artifacts in this repository correspond to the improved main branch. The defended academic implementation is preserved in the thesis-original branch, which uses a CNN+LSTM hybrid with 55 features.

The Space provides a browser-based demonstration. Its URL parser and feature extractor are implemented in JavaScript so that the public demo can run as a free static Space; the model weights and scaler are the corresponding exported artifacts from this repository.

Ethical considerations

Phishing detection has asymmetric costs. False negatives can expose users to harm, while false positives can block legitimate resources. Any deployment should measure both error types on representative, current data, provide an appeal or review path, protect submitted inputs, and monitor performance drift. This model is published to support transparent defensive research rather than automated surveillance or indiscriminate blocking.

License

MIT. The model, source artifacts, and dataset usage remain subject to the terms and provenance described in the source repository.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · keras

Нельзя запустить

Keras/TensorFlow-модели рантайм не загружает.

Ревизия весов
d06ce24

0 моделей