06 · Safety · Open weights

Phishing, scam or spam, from one email or SMS.

cbx-phishing-detector-68M

Legitimate, spam or phishing/scam for one English email or SMS. Phishing covers credential lures, fake invoices and deliveries, and advance-fee, prize and investment scams.

Real inputs it was built for.

Open any example in the Playground to see the live output.

Mailbox phishing

Subject: Your mailbox is almost full Dear user, your mailbox has reached 98% of its quota. Incoming messages will be rejected after 24 hours. Verify your account now to keep receiving mail: http://mail-quota-update.example-portal.com/verify

Run it

Delivery scam SMS

Your parcel could not be delivered. Pay the $1.99 redelivery fee within 12 hours: https://parcel-redeliver.example.top/pay

Run it

Promo spam

Subject: 40% off all garden furniture this weekend Spring sale! Save 40% on chairs, tables and parasols until Sunday. Free delivery on orders over $99. Shop now at gardenhouse-deals.example.com. Unsubscribe here.

Run it

Work email

Subject: Re: Thursday planning meeting Hi Priya, thanks for sending the draft. Can we move the meeting to 3 pm? I'll bring the budget numbers. Best, Tom

Run it

Personal SMS

Hey, are we still on for dinner tonight? I can pick you up at 7.

Run it

Benchmark

Measured against the alternative.

0.00

Phishing recall at the 2% false-alarm setting — 6,349 real emails and SMS

Full results ↗
  • cbx-phishing-detector-68M0.87
  • cbx-phishing-detector-17M0.75
  • phishing-email-detection-distilbert0.42

From the model card

An English phishing and spam detector for email and SMS. Give it one message (subject and body, or an SMS) and it returns one label: legitimate, spam (unwanted bulk or promotional mail that does not try to deceive) or phishing_scam (a message that tries to trick the reader into giving up credentials, money or personal data, including advance-fee and prize scams). The phishing threshold is set for a chosen false-alarm rate: by default at most about 2% of legitimate messages are flagged as phishing, with 1% and 3% settings included.

It has 68.1M parameters: the Ettin encoder 68m fine-tuned on real and generated English email and SMS. Other sizes: 17M. On a CPU (8 threads, fp32) one short text (63 tokens) takes about 20 ms and a full 512-token text about 105 ms.

Licence: Apache License, Version 2.0. Read Intended use and disclaimer before using it.

Model

68M

Licence

Apache 2.0

Fine-tuned from

jhu-clsp/ettin-encoder-68m

Read the full model card ↗

Full results. Every number, from the card.

Real messages: 6,349 real messages never used in training or for any choice: Enron mail (legitimate), the SpamAssassin public corpus (legitimate, spam and phishing), Jose Nazario's phishing corpus (2025 and any campaign touching 2025) and the UCI SMS Spam Collection test split. Macro F1 is the mean F1 over the 3 labels, at the default 2% setting.

Generated hard cases: 600 generated messages written to be hard (legitimate security notices, refund and delivery mails, and well-written phishing), held out from training.

ModelReal messages (macro F1)Generated hard cases (macro F1)
this model (68M)0.8191.000
17M (same family)0.7850.999

Operating points (Real messages). Each point is a threshold rule tuned on validation to keep the stated false-positive rate. Each cell: recall / precision of the target label, then the false-positive rate measured on this test set:

Model1%2%3%
this model (68M)0.83 / 0.87 / 1.6%0.87 / 0.84 / 2.5%0.89 / 0.80 / 3.5%
17M (same family)0.69 / 0.91 / 0.8%0.75 / 0.85 / 1.8%0.78 / 0.81 / 2.8%
cybersectony/phishing-email-detection-distilbert_v2.4.1 (2 classes, no spam)0.30 / 0.42 / 0.9%0.42 / 0.47 / 1.6%0.54 / 0.50 / 2.9%

Recall and precision are for phishing_scam against everything else (spam counts as not phishing); the last number is the share of legitimate messages labelled phishing_scam. The thresholds were set on a separate validation set of real messages (other Enron and SpamAssassin mailboxes, Nazario and UCI rows), so the measured rate on this test set can land a little above or below the target. cybersectony was scored by us on the same test set, with its phishing threshold tuned on the same validation set in the same way; it has no spam class, and it may have seen older Nazario phishing in its own training.

By channel (this model, accuracy): email 0.89 (5839 texts), SMS 0.97 (510 texts)

Know its limits. Before you ship it.

Limitations

  • Newsletters. Newsletters and mailing-list digests the reader signed up for are often labelled spam; from the text alone they look like unsolicited bulk mail. Spam recall on the real test set is lower than phishing recall for this reason.
  • Not a complete defence. At the default setting this model catches 87% of the real test phishing, so some phishing gets through, and some legitimate mail is flagged. Use it alongside sender authentication (SPF, DKIM, DMARC), link and attachment scanning and user reporting.
  • Text only. It does not see headers, sender reputation, the real link targets, attachments or images; a phishing message that is only an image or an attachment will not be caught.
  • English only, and mostly business and consumer mail. Expect lower accuracy on other languages, on very short or very long messages, and on new phishing styles.
  • Old test mail. Part of the real test set (Enron, SpamAssassin) is from the early 2000s; the phishing test set is from 2025.

Training data

What it learned from.

About 50,000 messages. Real: the UCI SMS Spam Collection train split (labels from the dataset, with phishing among the spam relabelled by Claude Haiku 5.5 under our label guide). Generated: English emails, SMS and chat messages for all three labels, written by LLMs from scenario lists, from outlines of real email, and (for phishing) as variants of Jose Nazario's phishing emails, then kept only when a second LLM, not told the intended label, agreed with it. No Nazario email itself is in the training set; Nazario rows are used for validation, testing and as seeds for the generated variants. Enron and SpamAssassin text is never used for training; only short outlines (message type and length, extracted on our own machines) from the non-test Enron mailboxes guided some generated emails. Thresholds were tuned on the real validation set.

DatasetLanguagesLicenceUsed for
SMS Spam Collection, Almeida and Gómez Hidalgo (UCI Machine Learning Repository)enCC BY 4.0training and testing
Phishing corpus, Jose NazarioenCC BY 4.0validation, testing, and seeds for generated phishing variants (not training)
Enron Email Dataset (CMU)enno licence stated; testing only, not redistributedtesting
Enron Email Dataset (CMU), separate mailboxesenno licence stated; not redistributedvalidation (threshold tuning); outlines (message type and length only) for generated email
SpamAssassin public corpus (Apache SpamAssassin project)ennot stated; testing only, not redistributedtesting
SpamAssassin public corpus, separate mailboxesennot stated; validation only, not redistributedvalidation (threshold tuning), not training

2 sizes. Smaller is faster, larger is more accurate.

Run it on your own data. In the CobuildX Console.

Sign in to the console to call this model live, compare sizes and create an API key.