Wednesday, November 19, 2008

If you think SPAM are affecting only inbound...think again!

Outbound SPAM has been affecting companies and organization for years. But solutions available in the industries offer mainly solution for inbound SPAM. Not to say that inbound SPAM protection are no longer needed. What I am trying to say here is that it is time for the Email security provider to do a lot more for SPAM going outbound.

We all know that inbound SPAM come mainly from SPAMMERS harvesting email addresses for sales product marketeers and of course BotNets! But what about outbound SPAM?

Outbound SPAM are normally sent by;

1) ISP' MTA
2) Compromised Computers in your network
3) Unsecured Mail server being used as relay

Now that we have identified the common source of outbound spam but what is the impact on YOU? if the compromised computer or mail server happen to be in your network? Or the ISP'MTA sending out SPAM is the ISP that you are using?

The consequences of sending out SPAM is as disastrous or worse then receiving SPAM. Why? Let me list out some reasons for you.

Result of sending out SPAM:

1) Domain/IP reputation affected
2) Domain/IP blacklisted resulting in email not being delived
3) Lawsuit
4) Network bandwidth affected
5) Decrease in work efficiency
6) And many more!

Let me elaborate more on the above in my next post...

Tuesday, May 20, 2008

DKIM SIMPLIFIED ( Part 2 – Technical View)

DKIM SIMPLIFIED ( Part 2 – Technical View)

What I will be writing here is to explain DKIM in the most simplified technical way. I won’t be explaining on encryption algorithm but I will be telling you what algorithm is used, etc. Ready? Let’s roll!

Key function of DKIM.

The different of DKIM compare to many other authentication method is that it is using public key cryptography. According to my research, at the present only RSA algorithm is defined. Below is a diagram of the process overview.


1) 1) The domain with DKIM implemented published a public key in its DNS record.

2) 2) The sending Mail server digitally signed the out-going mail message. Lots of work happened here. Let’s look into it a little bit more in details.

- 1) The signature is protected by conformance the body of the message to a specification to prevent transmission modification then hased using default SHA-256.

- 2) The signer chooses the message header fields to be included in the signature.

- 3) A new header called “DKIM-Signature” is created. This header contain information of the specification the body message is conformance to, the message header field choosen by the signer, name of the signing domain, the body hash, and a selector . (Selector enable a domain to have multiple keys to be use for authentication.)

- The header fields being signed and the DKIM-Signature field itself are then canonicalized and hashed.

- An RSA signature is computed on that hash, and the signature is inserted back into the DKIM-Signature field.

- The full DKIM-Signature field is then added to the header of the message, and the modified message is sent.

3) The verifier gets the public key from the alleged signer using a DNS lookup based on the domain and selector name in the DKIM-Signature header field, and uses that to verify that the signature in the message is legitimate.

4) If the authentication is successful, the MTA deliver the message to the end user mailbox.

Isn’t it nice to know that there is such a simple and cool technology around?

DKIM SIMPLIFIED Part 1 of 2

DKIM SIMPLIFIED ( Part 1 – Introduction/Functional understanding)

Hope you guys have a good understanding on the video posted previously. I am also hoping that I had understanding it well so as not to mess it up on a summary write up here. I will do a summary with Introduction, the functional & technical overview.

Introduction

Domain Key Indentified Mail (DKIM) is a signature/cryptography based authentication technology based on Yahoo!s DomanKeys e-mail authentication technology and Cisco’ Identified Mail. DKIM provide recipient of mail a better way of checking the authenticity of the source of the mail. Beside DKIM, there are also Sender Policy Framework (SPF), Sender ID, etc. But SPF and SenderID are path based and DKIM is the main cryptography based authentication method. DKIM used private and public key for verification which is the key different to the other technology. With the usage of private key, it is not possible for spammer or unauthorized personnel to steal the identity of a particular domain. It is important to know that DKIM work on the domain portion and doesn’t verify on who is sending the mail behind the domain.

Functional Overview

It is relatively simple to understand how DKIM work. Taking the below example;
John sent Mary a mail. In the mail, he attached a public key. When Mary received the mail, she would use the public key to verify against the private key. Since it is a private key, only John has it and only if the two key matches each other, then it is proven that the mail had indeed been sent by John. If during transition, the mail has been tamper or if the public key do not match the private key the receiving MTA checking for DKIM signature will discard the mail.

The benefit of deploying DKIM is huge and one important reason that explains the rapid increase of use in DKIM is that it is free! With the increasing number of organizations and companies using DKIM, user are able to see less spam in their inbox as these would be drop before being process by the mail server. These also help improve the performance of the mail server and network traffic. With DKIM, spammer would have a hard time spoofing the identity of a sender domain and the integrity of the mail received is also maintained.

(End Part 1 of 2)