TheMailer: The AI Phishing Kit That Rewrites Its Own Emails Until They Beat Your Spam Filter
Varonis Threat Labs describes TheMailer, a self-hosted phishing kit sold on a cybercrime network since March. Its 'Inbox Loop' sends test emails, checks whether they hit spam, and has an LLM rewrite them until they get through. Capability is documented; success rates and victim counts are not. Here is what to change in your defences.
Executive summary. Varonis Threat Labs has documented TheMailer, a commercial, self-hosted phishing kit advertised on a cybercrime network since March 2026, with one-time licences reported at $3,000 to $6,000. What sets it apart is the "Inbox Loop": it sends test emails, checks whether they landed in spam, and has an LLM rewrite the message and try again until it gets through. It connects to commercial models (Claude, ChatGPT, Grok, Gemini, Mistral and DeepSeek) using the operator's own API keys, personalises content for each mail provider, and offers a "Remove AI patterns" option to strip tell-tale phrasing. Coverage is careful on one point and so are we: the research documents what the tool can do, not how well it works; there is no independently measured success rate and no verified victim count. The defensive takeaway is still clear. If the wording of a phishing email can be iterated until a content filter stops objecting, then content filtering alone is the weakest part of your stack, and the controls that matter are the ones that do not depend on how convincing the message is.
What it is
| Field | Detail |
|---|---|
| Tool | TheMailer, a self-hosted phishing kit |
| Sold | Cybercrime network, since March 2026; reported $3,000 to $6,000 one-time licence |
| AI use | Operator's own API keys for Claude, ChatGPT, Grok, Gemini, Mistral, DeepSeek |
| Key feature | Inbox Loop: test, check spam placement, rewrite, retest |
| Other features | Per-provider personalisation; "Remove AI patterns" option |
| What is unproven | Effectiveness and victim numbers (not independently measured) |
| Source | Varonis Threat Labs research |
How it works
Operator supplies an LLM API key and a lure
│
▼
Test email sent to seed mailboxes (per mail provider)
│
▼
Kit checks: did it land in the inbox or in spam?
│ │
inbox spam
│ ▼
│ LLM rewrites the message, "removes AI patterns"
│ │
▼ └──► retest
Send to the real target listThe significance is automation of the tuning. Phishing crews have always tested and tweaked their mail by hand; this closes the loop with software and makes each campaign distinct, which weakens signature and near-duplicate detection. It also lowers the skill needed to write fluent, locally appropriate lures.
Why it needs industry attention
For years defenders taught users to spot bad grammar and odd phrasing. That advice is now obsolete: language models produce fluent, tailored text, and a loop can optimise it against your actual filter's behaviour. The attacker's costs fall while the quality rises. What does not change is what the email must ultimately do: get someone to a credential page, an approval prompt, a payment change or an attachment. The controls placed at that moment keep working regardless of prose quality. For the credential-theft end of the chain see our piece on AiTM phishing and session-token theft.
What to do
- Enforce email authentication. SPF, DKIM and DMARC at
p=rejectfor your own domains stops attackers spoofing you, and DMARC alignment checks on inbound mail help against lookalikes. - Monitor lookalike domains of your brand and your suppliers, and register obvious variants.
- Analyse links at click time, across the whole redirect chain, not only when mail is delivered. Many lures turn malicious after delivery.
- Deploy phishing-resistant MFA (FIDO2 security keys or passkeys) for admins and finance, so a stolen password or relayed code is not enough. Number-matching push is a floor, not a ceiling.
- Conditional access: require compliant devices and block sign-ins from unfamiliar locations and legacy protocols.
- Process controls for money and access: call-back verification for payment-detail changes, and a rule that no one resets MFA or grants access from an email request.
- Make reporting effortless. A one-click report phishing button and a fast, friendly response matter more now that filters miss more.
- Retrain the lesson: from "spot the typos" to "never sign in from a link in an email; go to the site yourself."
How to detect it
- Many near-identical messages with subtly different wording from the same infrastructure or sending pattern; cluster by sender, URL and header traits rather than text.
- Mail from newly registered or lookalike domains that pass SPF/DKIM for their own domain but fail alignment with the brand they imitate.
- Sign-ins shortly after a click: a user opening a link then a new-location or new-device login for the same account.
- Seed-style behaviour: bursts of similar test messages to a small set of mailboxes at a provider.
- Reports from users that read as fluent and personalised, which used to be rare in phishing.
Conclusion
TheMailer is a capability story, not yet an impact story, and Varonis is clear about that. But it shows where the economics are heading: content-based filtering will keep losing ground, so put your investment into identity (phishing-resistant MFA), authentication (DMARC), click-time analysis and human process, all of which hold when the email is perfectly written.
Do this now: check your DMARC policy is enforcing, roll phishing-resistant MFA to admins and finance first, confirm your mail security rewrites and re-scans links at click time, and update awareness training away from "spot the typos".
Related: OAuth consent phishing in Entra ID, how a pentest framework was abused with AI, and the Learn track on web application pentesting.
Sources: Varonis Threat Labs, Dark Reading, Brandefense, AegisAI. Publication dates and some details varied between outlets; Varonis's post is the primary source.
Related research
Phishing Rides a Real Outage: Fake Microsoft 365 Service-Health Notices Threaten to Delete Your Held Mail
After a genuine Microsoft 365 disruption on 12 November, Microsoft Threat Intelligence saw a high-volume phishing campaign posing as service-health notices that cited the real incident and warned held mail would be deleted within 24 hours. Microsoft says the outage was not an attack and its products block the campaign. Here are the tells and how to hunt for it.
SignDrop: An Unpatched Windows Zero-Day That Turns a Security Feature Into SYSTEM
SignDrop is a public proof-of-concept for an unpatched local privilege-escalation flaw in the Windows CLFS driver. It turns Microsoft's own October-2025 log-authentication hardening against itself: an attacker attaches an empty container to a log, CLFS signs it anyway, and a SYSTEM-created file is redirected via symbolic links — reaching SYSTEM from a standard account. No patch or CVE yet.
EggStreme: A Fileless APT Framework, Rebuilt the Moment It Was Exposed
A China-nexus APT runs EggStreme almost entirely in memory: a signed app sideloads a malicious DLL, each stage decrypts the next in RAM, and a 58-command backdoor and keylogger leave almost nothing on disk. When Bitdefender exposed it, the operators rebuilt it within days. Here's how it works and how to catch fileless tradecraft.