My Comments on Malware and Spams in Email when I was a young student

avatar

Note

This is the ninth assignment from my Masters Advanced Network Security Course which has never been published anywhere and I, as the author and copyright holder, license this assignment customized CC-BY-SA where anyone can share, copy, republish, and sell on condition to state my name as the author and notify that the original and open version available here.

1. Email Overview

The protocol that is defined to exchange email over the Internet is simple mail transfer protocol (SMTP). SMTP is used to send email to another email server which is then received through the procedure of post office protocol version 3 (POP3) or another procedure instant message access protocol (IMAP). It can be illustrated in Figure 1 that the email was send via SMTP, then authentication is handled by POP3 or IMAP. The authentication alone is unencrypted, to encrypt is to be send over secure socket layer (SSL) for more secure communication [1].

Figure 1. Illustration of email exchange.png

Figure 1. Illustration of email exchange [1]

Another technology is the mailing list where the clients subscribes so they're included into the mailing list. Materials will be send to the subscriber within the mailing list. Security issues on email other than malware mostly dealt with spams.

2. Spam

People defined the term email spam as bulk email or unsolicited email. It's very subjective how each person defines a spam. An example of a common spam is an advertisement sent to a mailing list or lot's of email address, in an indiscriminate way. A light spam usually contains advertisement only but a severe spam may contain threats that could harm the user like malware. The subtopic belows are example of how spam may occur and what measure that had been taken. Most of the below materials are based on [2] and most definitions are based on [3] (by each key words).

2.1 Open Relay

Open relay is a configuration on the mail server to accept all incoming emails either by known users or anonymous users. This was used to be the default configuration of all mail servers but it became unpopular since it was abused by spammers and malwares, refer to small illustration on Figure 2. Most open relay's are closed, or put on blacklist.

Figure 2. Illustration of open relay abused.png

Figure 2. Illustration of open relay abused [2]

2.2 Impact of Spam

There many impacts of spams. It can be summarize in general as follows:

  • Very heavy unnecessary network since spams fills the traffic.
  • As a user it's a heavy burden in sorting the emails.
  • Mis-classify an email (a clean email may be treated as spam or vice versa).
  • Domain spoofed, your email domain might get registered as spam (blacklist).
  • Worst case could be hijacked or denial of service.

2.3 POP before SMTP / SMTP after POP

To cope with Figure 2, POP before SMTP is implemented with the concept of allowing email transmission if able to retrieve email. In short you be able to access and retrieve your email first, then you're able to send an email. But today people tends to use SMTP authentication instead. Figure 3 is a general illustration.

Figure 3. Using authentication for smtp.png

Figure 3. Using authentication for smtp [4]

Back then the POP before SMTP was implemented to cope with the open relay issue, still it's a method to allow email exchange from outside, spammers just need to find another way. (1) First they could gain control (spam bot) the user's PC that had authorization to the SMTP server through service attack worms (SAW) and mass mailing worms (MMS). (2) Second is a method called email error back scattering where on the envelop insert “reply-to: [email protected]” (if error will go to that email). This two are illustrated on Figure 4. How is it possible? It is because of direct SMTP.

Figure 4. Other round-ways for POP before SMTP.png

Figure 4. Other round-ways for POP before SMTP [2]

3. Anti Spam

To avoid spams the following are recommended, (note: there are more ways the below recommendation):

  1. Install email anti virus (AV) which could prevent hijacking and bot controlled.
  2. Use outbound port 25 blocking (OP25B) which rejects direct SMTP to port 25, instead allowing through authorized email server only (only the email server may use direct SMTP). On the other hand there is inbound port 25 blocking (IP25B) which means that it doesn't receive spam emails.
  3. Authentication which strengthens point 2. Use the SMTP authentication and over the SSL.
  4. There exist the sender policy framework (SPF) which registers the authorized email servers into the DNS server. When an email is received the server performs SPF which compares the sender's IP address, email server's IP address and domain. If it doesn't satisfy it will not receive.
  5. Another is domain key identified mail (DKIM) where a signature is added on the message header based on the secret key.
  6. Then there is Sender ID which uses SFP and caller ID advocated by Microsoft.

Reference

  1. http://www.ustudy.in/node/22
  2. http://md.kumamoto-u.ac.jp/mod/book/view.php?id=98629&chapterid=4984
  3. https://en.wikipedia.org/wiki/Spamming
  4. http://www.isaserver.org/articles-tutorials/articles/smtprelayinboundoutbound.html

Mirrors



0
0
0.000
1 comments
avatar

AFAIK; Spear phishing attacks are the ones which most of the AntiSpam products misses i.e. contributes to a False Negative. Cheers

0
0
0.000