/ Модель

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

Контекст
8 192 токена
Параметры
307 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
mmBERT-base
Библиотека
transformers
Опубликована
4 окт 2026

phishing-scam-detector-base

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

Многоязычный классификатор Horizon Labs для выявления фишинга, мошенничества и спама в письмах, SMS и сообщениях.

919скачиваний за 30 дней1лайквеса обновлены18 ноя 2026

Бенчмарки

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

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

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

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

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

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

Horizon-Labs/phishing-scam-detector-base — многоязычная модель классификации сообщений, разработанная Horizon Labs на основе mmBERT-base и дообученная для выявления мошенничества, фишинга и спама. Она присваивает тексту одну из трёх меток: fraud, spam или legitimate; оценки fraud и spam можно объединять для фильтрации нежелательных сообщений.

Модель предназначена для проверки электронных писем, SMS, сообщений в чатах и соцсетях, а также для фильтрации и модерации переписки и предварительной проверки сообщений агентами, работающими с почтой или чатами. Архитектура — ModernBERT-классификатор последовательностей, около 306,9 млн параметров, контекст до 8192 токенов. Доступны веса Safetensors и ONNX, включая квантованный ONNX-вариант для CPU и браузера. Карточка заявляет поддержку множества языков, включая русский.

В приведённых оценках модель показывает хорошие результаты на нескольких многоязычных наборах, но качество зависит от языка и порога: например, на португальской выборке смс-мошенничества при пороге 0,5 она пропускает многие сообщения. Возможны ложные срабатывания на настоящих автоматических уведомлениях. Модель анализирует только текст, поэтому не учитывает репутацию отправителя, ссылки, вложения и заголовки писем; её следует использовать как один из сигналов и настраивать порог на собственных данных. Лицензия — Apache-2.0.

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

  • фильтрация фишинговых писем
  • выявление мошеннических SMS и смс-мошенничества
  • отделение спама от обычных сообщений
  • модерация сообщений в чатах и соцсетях
  • предварительная проверка писем и чатов для AI-агентов

Ограничения

Модель видит только текст и не анализирует отправителя, ссылки, вложения или заголовки; возможны ложные срабатывания на настоящие автоматические уведомления. Качество различается по языкам и наборам данных: в частности, на португальской выборке смс-мошенничества при пороге 0,5 модель пропускает многие сообщения; порог следует подбирать для своих данных.

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

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

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

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

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

Открыть на Hugging Face

Phishing & Scam Detector (base, 307M): multilingual

Flags phishing, scams and spam in emails, SMS, chat and social-media messages in many languages. Three labels:

  • fraud: phishing (fake bank, delivery, account or tax messages with links), scams (prizes, investment and crypto schemes, fake jobs, "hi mum, new number", romance, advance fee), requests for passwords, one-time codes or payment details, malware lures;
  • spam: unwanted advertising and bulk marketing that is not trying to steal anything;
  • legitimate: everything else, including genuine notifications that look similar (real one-time codes, delivery updates, bank alerts).

Built on mmBERT-base, Apache-2.0, ONNX files for CPU and the browser (transformers.js) included. Useful for message filtering and moderation, and for AI agents that read email or chats (see also our prompt-injection guard for attacks on the agent itself).

  • Score: P(fraud) + P(spam) for "unwanted", or P(fraud) alone if marketing is acceptable. The default threshold is 0.5; raise it to cut false positives (see the false-positive rates below).
  • onnx/model_quantized.onnx (int8 embeddings, 641 MB) gives the same top label as fp32 for 99.8% of 520 benchmark texts.

Usage

from transformers import pipeline

clf = pipeline("text-classification", model="Horizon-Labs/phishing-scam-detector-base", top_k=None)
print(clf("Your parcel could not be delivered. Pay the 1.99 EUR customs fee within 24h: dhl-redelivery.example.com"))
# [[{'label': 'fraud', 'score': ...}, {'label': 'legitimate', 'score': ...}, {'label': 'spam', 'score': ...}]]

transformers.js:

import { pipeline } from "@huggingface/transformers";
const clf = await pipeline("text-classification", "Horizon-Labs/phishing-scam-detector-base", { dtype: "q8" });
console.log(await clf("Ihr Konto wurde gesperrt. Bestätigen Sie Ihre Daten: sparkasse-sicher.example.de", { top_k: null }));

Evaluation

Public spam / phishing / smishing test sets, used only for evaluation. Every model is scored the same way (code/): AUC of its "unwanted" probability (for this model P(fraud) + P(spam)), and F1 and false-positive rate at 0.5.

modellicencereal smishing, 3 languages: AUCF1 @ 0.5false-positive rate @ 0.5phishing & spam emails (English): AUCSMS spam (English): AUCSMS spam, 21 languages (machine-translated): AUCnote
this model (307M)Apache-2.00.9250.7680.1100.9780.9780.950multilingual
cybersectony/phishing-email-detection-distilbert_v2.4.1 (67M)Apache-2.00.6060.7150.8800.9990.7590.664English emails and URLs
ptouch/phishing-distilbert-cyber207 (67M)none given0.4850.6640.7380.9910.8920.720English
ealvaradob/bert-finetuned-phishing (110M)Apache-2.00.7970.7630.6721.0000.9990.965English emails, SMS, URLs, websites
mshenoda/roberta-spam (125M)MIT0.8030.8230.3320.9960.9990.974English spam messages
mrm8488/bert-tiny-finetuned-sms-spam-detection (4M)none given0.8340.7790.5410.4500.9940.964trained on the UCI SMS set (in-domain)
mrm8488/bert-tiny-finetuned-enron-spam-detection (4M)Apache-2.00.7350.7090.9590.9830.7350.785trained on Enron spam (in-domain)
Qwen/Qwen3.8-27B (teacher, prompted) (27B)Apache-2.00.9450.8780.1280.9960.9860.969our teacher, for reference
  • The table shows the released checkpoint. Two training seeds: real-smishing AUC 0.916 / 0.925, false-positive rate 0.122 / 0.110.
  • On real smishing in Bengali, Portuguese and Korean this model ranks messages much better (AUC) and flags far fewer normal messages than the English models (their false-positive rates there: 0.33-0.96). Its F1 at 0.5 is lower than roberta-spam's because it is conservative at 0.5: on the Portuguese set it catches only 32% of smishing messages at 0.5 (Bengali 95%, Korean 93%). Lower the threshold if missed scams cost more than false alarms.
  • On the classic English sets it is slightly behind models trained on them.
  • Machine-translated SMS by language (AUC): ar 0.952, bn 0.924, de 0.967, es 0.974, fr 0.975, hi 0.940, id 0.965, ja 0.949, jv 0.911, ko 0.937, mr 0.924, no 0.968, pa 0.881, pt 0.971, ru 0.958, sv 0.972, tr 0.962, uk 0.957, ur 0.947, zh 0.959.
  • The spam / fraud split comes from our teacher; the public sets only distinguish wanted from unwanted, so only that is measured.

Per set:

setAUCF1 @ 0.5false-positive raterecall
Bengali / Banglish / English SMS (smishing + promotions)0.9790.9460.1120.952
Mozambican Portuguese SMS and Facebook (smishing)0.8400.4500.0960.319
Korean SMS (smishing)0.9570.9090.1200.934
phishing vs safe emails (English)0.9780.9160.1120.943
Enron spam vs ham (English)0.9780.9340.0760.944
UCI SMS spam (English)0.9780.9000.0630.872

On a real Turkish inbox (third-party benchmark, checked November 2026)

SavienWalker/bulwark-bench-tr (CC-BY-4.0) holds real SMS and e-mail from one person's Turkish inbox, with personal data masked, plus hand-reviewed contrast pairs of fake and genuine messages. Its author built it while fine-tuning this model, and found that it flags about half of the genuine institutional messages (bank alerts, one-time codes, parcel tracking, e-invoices, subscription renewals). We reproduced that on the same data (ambiguous rows excluded, as the dataset recommends):

setgenuine / unwantedfalse alarms at 0.5 / 0.7 / 0.9 / 0.95unwanted caught at 0.5 / 0.7 / 0.9 / 0.95
real SMS, test half102 / 5253% / 37% / 15% / 9%100% / 96% / 71% / 25%
real SMS, development half91 / 6448% / 30% / 10% / 5%100% / 97% / 70% / 38%
real e-mail21 / 1748% / 29% / 14% / 5%94% / 82% / 53% / 29%
hard contrast set (synthetic, reviewed)37 / 6324% / 19% / 8% / 5%94% / 87% / 75% / 65%
  • The false alarms are ordinary automated notifications: they contain links (often shortened), masked card or tracking numbers, codes with "do not share", legal footers, and are usually written without Turkish letters (ı, ş, ğ). Our training messages had too few genuine notifications of this kind. Our teacher model does much better on the same SMS (false alarms 17%, unwanted caught 94%), so the gap is in the training data, not in the label definitions.
  • We tried to fix this with about 25,000 new synthetic genuine notifications and accent-free copies, but the retrained model was not better on this benchmark (false alarms 51% at 0.5), so it was not released. This repository still holds v1.0.
  • For Turkish SMS, use SavienWalker/bulwark-scam-detector, a fine-tune of this model on real Turkish institutional messages (14% false alarms on the test half, reported by its author). For other languages, expect more false alarms on genuine automated notifications than on the smishing sets above: raise the threshold (at 0.9 they fall to 15% on the test half, but only 71% of unwanted messages are caught) or allow-list known senders, and measure on your own traffic.
  • The benchmark is small (154 test messages) and from one inbox. Numbers: eval/bulwark_bench_tr.json; code: code/scam/build_bulwark_eval.py.

Training

  • Messages: 98,379 synthetic SMS, emails, chat, social-media and push messages in about 70 languages written by Qwen3.8-27B (Apache-2.0): per prompt 4 legitimate (half of them genuine notifications that resemble phishing), 2 spam and 4 fraud of one of 20 scam types (parcel fees, bank verification, tax refunds, prizes, fake jobs, crypto, romance, "new number", CEO fraud, fake login alerts, OTP theft, toll fines, ...). Plus 59,403 ordinary web snippets in 92 languages from FineWeb-2 / FineWeb (ODC-BY), so normal text stays normal. No test-set messages were used.
  • Labels: Qwen3.8-27B (prompted) scored every text as legitimate / spam / fraud; the model learns the teacher's probabilities (soft labels). Checkpoint chosen on held-out teacher-labelled data.
  • mmBERT-base, max length 384 tokens, learning rate 3e-5. Code: code/ in this repository.

Limitations

  • Not a complete security product: it sees only the text, not sender reputation, links, attachments or headers. Use it as one signal among others, and review decisions that matter.
  • False positives remain: about 11% of normal messages on the smishing test sets at 0.5, and about half of genuine automated notifications (bank, parcel, one-time codes) in a real Turkish inbox (see above). Tune the threshold on your own traffic.
  • Trained on synthetic messages: new scam scripts, very long emails (truncated at 384 tokens) and rare languages are weaker. The Portuguese smishing set is the hardest here (AUC 0.840; at 0.5 it misses most of those messages).

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

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

GPU в ailist

Универсальный рантайм · transformers · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertForSequenceClassification
Ревизия весов
c294bf1

0 моделей