NICER Protocol Deep Dive: Internet Exposure of IMAP and POP

NICER Protocol Deep Dive: Internet Exposure of IMAP and POP

Welcome to the NICER Protocol Deep Dive blog series! When we started researching what all was out on the internet way back in January, we had no idea we’d end up with a hefty, 137-page tome of a research report. The sheer length of such a thing might put off folks who might otherwise learn a thing or two about the nature of internet exposure, so we figured, why not break up all the protocol studies into their own reports?

So, here we are! What follows is taken directly from our National / Industry / Cloud Exposure Report (NICER), so if you don’t want to wait around for the next installment, you can cheat and read ahead!

[Research] Read the full NICER report today

Get Started

IMAP (143/993) and POP (110/995)

Hey, only 55% of email is technically considered spam!

WHAT IT IS: Internet Message Access Protocol, a stateful protocol nearly always used to read and send email, and Post Office Protocol, which operates essentially like a bulk download protocol for mail.

HOW MANY: 4,045,472 nodes running cleartext IMAP instances on TCP/143 and 3,848,675 nodes running ciphertext IMAPS. 4,331,314 nodes running cleartext POP and 3,714,171 nodes running ciphertext POPS.
3,240,919 75%) have Recog fingerprints (nine total service families)

VULNERABILITIES: Lack of two-factor authentication (2FA) in virtually all implementations can turn IMAP and POP into a serious password liability against focused attacks.

ADVICE: Ensure that IMAP and POP accounts are configured with an app-specific password. Consider dropping POP service entirely.

ALTERNATIVES: Whenever possible, prefer IMAPS, with its SSL wrapping, over IMAP.

GETTING: Better! Between 4% and 11% fewer mail client services are exposed than in 2019.

Discovery details

SMTP handles mail inbound to organizations, while POP and IMAP handle the action of individual users collecting that mail to read and reply to. As with SMTP, we’ve broken down the prevalence of cleartext versus encrypted versions of these services in the charts and tables below, both overall and by country and cloud.

NICER Protocol Deep Dive: Internet Exposure of IMAP and POP

Country IMAP (143) IMAPS (993) POP3 (110) POP3S (995)
United States 1,402,707 1,376,546 1,427,119 1,347,756
Germany 386,092 376,780 367,597 336,128
Japan 310,159 279,196 396,123 309,619
Poland 286,820 278,183 286,957 272,185
France 251,024 238,042 244,940 221,815
Canada 149,171 145,738 150,229 139,814
United Kingdom 142,433 134,132 141,653 122,933
Netherlands 138,202 134,078 138,549 130,015
Russia 116,758 108,308 119,790 102,058
Turkey 65,526 55,545 69,857 54,418

NICER Protocol Deep Dive: Internet Exposure of IMAP and POP

Provider IMAP (143) IMAPS (993) POP3 (110) POP3S (995)
OVHcloud 293,785 279,854 290,942 268,917
DigitalOcean 52,410 53,909 49,531 47,715
Google 48,863 51,040 48,793 50,133
Amazon 33,859 33,934 38,619 28,002
Scaleway 17,062 15,632 14,117 13,187
QuadraNet 9,763 9,744 10,115 9,495
Microsoft 5,797 5,201 8,474 4,810
Rackspace 3,418 2,812 3,391 2,564
Alibaba 2,000 1,399 3,355 1,248
Oracle 342 361 327 283

While there are fewer choices in the end-user-accessible mail protocols, we were able to fingerprint IMAP servers by vendor:

IMAP/POP Family Count
Dovecot 3,068,391
Courier MTA 103,604
Exchange Server 37,448
Cyrus MTA 12,671
Qpopper 9,809
Bigfoot Email Tools 6,153
Lotus Domino 1,102
CCProxy 896
E-mail Services 845

With that said, we have very little telemetry on a per-version basis. IMAP and POP don’t tend to reveal this information in a pre-authenticated way, and we don’t have any good tricks in Recog to suss out versions with any sort of accuracy.

NEVER MISS A BLOG

Get the latest stories, expertise, and news about security today.

Subscribe

Attacker’s view

The charts below graph our honeypot connections to IMAP and POP, and while the spikes may, at first, seem like outliers, in fact, IMAP and POP probing seems to always be pretty spikey. For reasons unknown, these scans have a “high seasonality” in statistical parlance—they tend to come in bursts, rather than the usual constancy that we see in other protocol scans.

NICER Protocol Deep Dive: Internet Exposure of IMAP and POP

Over the course of the measured period, we saw about 7,500 unique usernames being tested for IMAP and POP.  The top 20 usernames tested are:

  1. admin
  2. test
  3. webmaster
  4. backup
  5. info
  6. marketing
  7. contact
  8. support
  9. office
  10. sales
  11. postmaster
  12. mail
  13. abuse
  14. service
  15. spam
  16. master
  17. helpdesk
  18. mailing
  19. newsletter
  20. recruit

Each of these were tried between 4,000 and 8,000 times. Interestingly, on most runs, each user name is tried precisely once, but sometimes, attackers try one username with 500 to 1,000 passwords in a given attempt.

NICER Protocol Deep Dive: Internet Exposure of IMAP and POP

Our advice

IT and IT security teams should routinely review the costs involved in running their own on-premises mail infrastructure, in terms of not just money, but time and expertise. If at all possible, they should see about moving off to a professionally maintained email provider, like Outlook 365 or Google G Suite (which offer TLS-backed client mail services by default), and reap the benefits of uptime assurance and spam-scrubbing being Someone Else’s Problem.

Cloud providers should, similarly, steer people away from maintaining their own email infrastructure, and gently encourage customers to investigate the sane and stable alternatives. At the very least, cloud provider documentation should clearly explain the differences between POP and IMAP and why you might not need one or the other, then guide customers toward TLS-wrapped client mail services.

Government cybersecurity agencies should advocate for strong encryption alternatives to the cleartext IMAP and POP protocols, and educate the public on the fact that POP and IMAP are often convenient backdoors to password testing, since they are rarely secured with multi-factor authentication.

[Research] Read the full NICER report today

Get Started

If you like the site, please consider joining the telegram channel or supporting us on Patreon using the button below.

Patreon

Original Source