# IIJ: IIJ: one compromised MailSaaS server exposed up to 309,342 ISP mail credentials across 13 providers

> **Safety notice:** Read-only configuration inspection; prints password scheme prefixes only, never password values.

- **Incident date:** Nov 19–26, 2026
- **Disclosed:** Nov 30, 2026
- **Source disclosure:** https://www.iij.ad.jp/news/pressrelease/2026/1130.html

## Reproduction lab
Audits mail server authentication databases for plaintext or unsalted password schemes and flags multi-tenant mail hosts serving more than one downstream ISP directory.

```bash
# Print distinct password scheme prefixes (e.g. {ARGON2ID}, {PLAIN}, {MD5}) without outputting secrets
grep -oE '^[^:]+:\{[A-Z0-9-]+\}' /etc/dovecot/users 2>/dev/null | cut -d: -f2 | sort | uniq -c || echo "Check mail auth store schema"
```

## Policies and detection rules

### `dovecot-argon2id-auth.yaml`
Hardening checklist for multi-tenant ISP mail servers to replace plaintext or legacy hashes with Argon2id and enforce per-tenant authentication isolation. Limits step 2.

```yaml
mail_auth_hardening:
  password_scheme: ARGON2ID
  allow_plaintext_storage: false
  legacy_cleartext_mechanisms:
    - disable_cram_md5
    - disable_digest_md5
  tenant_isolation:
    shared_auth_host_max_tenants: 1
    dedicated_db_credentials_per_isp: true
  abuse_detection:
    alert_on_mass_mailbox_auth_from_new_asn: true
    auto_throttle_outbound_smtp_per_mailbox: 100/hour
```

### `hunt-isp-mail-credential-abuse.sh`
Log query helper for partner ISPs to spot compromised mailboxes authenticating from unusual source IPs or sending sudden outbound bursts since November 19, 2026.

```sh
# Inspect IMAP/SMTP auth logs for mailboxes accessed from 3+ distinct IPs in a single day
grep -E "imap-login|smtpd.*sasl_username" /var/log/mail.log \
  | awk '{for(i=1;i<=NF;i++){if($i~/user=|sasl_username=/) u=$i; if($i~/rip=|client=/) ip=$i} if(u&&ip) print u, ip}' \
  | sort -u | awk '{c[$1]++} END {for (u in c) if (c[u]>=3) print c[u], u}' | sort -nr | head -n 50
```

## Indicators of compromise
- **url:** `https://www.iij.ad.jp/news/pressrelease/2026/1130.html` (Official IIJ November 30, 2026 disclosure detailing the compromised MailSaaS Solution for ISPs server and 13 affected partner operators.)
- **log:** `Suspicious mail usage records reported by a partner ISP on Nov 19, 2026` (Partner ISPs using IIJ MailSaaS should audit IMAP, POP3, and SMTP login logs prior to Nov 26 for foreign-ASN logins and outbound spam bursts, and force password resets for affected accounts.)
