Original publication date: April 26, 1999

<hr size=2 noshade align=left>
This document provides a general overview of email spoofing and the problems that can result from it. It includes information that will help you respond to such activity. 
<p>


<dl>
I. <a href="#I">Description</a><br>
</dl>
<dl>
II. <a href="#II">Technical Issues</a><br>
</dl>
<dl>
III.  <a href="#III">What You Can Do</a><br>
  <OL TYPE="A">
	<li><a href="#III.A">Reaction</a></li>
	<li><a href="#III.B">Prevention (Deterrence)</a></li>
  </ol>
</dl>
<dl>
IV.  <a href="#IV">Additional Security Measures That You Can Take</a>
</dl>
<p>
<hr size=2 noshade align=left>

<a name="I"></a>
<h3>I. Description</h3>
Email spoofing may occur in different forms, but all have a similar result: a user receives email that appears to have originated from one source when it actually was sent from another source. Email spoofing is often an attempt to trick the user into making a damaging statement or releasing sensitive information (such as passwords). 
<p>Examples of spoofed email that could affect the security of your site include:
<ul>
	<li>email claiming to be from a system administrator requesting users to change their passwords to a specified string and threatening to suspend their account if they do not do this</li>
	<li>email claiming to be from a person in authority requesting users to send them a copy of a password file or other sensitive information</li>
</ul>
If, after investigating the activity, you find that there is more to the incident than spoofed email (such as a compromise at your site or another site), please refer to <a href="#IV">Section IV</a> below.

<a name="II"></a>
<h3>II. Technical Issues</h3>
<ul>
	<li>If you provide email services to your user community, your users are vulnerable to spoofed or forged email.</li>
	<li>It is easy to spoof email because SMTP (Simple Mail Transfer Protocol) lacks authentication. If a site has configured the mail server to allow connections to the SMTP port, anyone can connect to the SMTP port of a site and (in accordance with that protocol) issue commands that will send email that appears to be from the address of the individual's choice; this can be a valid email address or a fictitious address that is correctly formatted.</li>
	<li>In addition to connecting to the SMTP port of a site, a user can send spoofed email via other protocols (for instance, by modifying their web browser interface).</li>
</ul>
<a name="III"></a>
<h3>III. What You Can Do</h3>
<ol type="A">
  <a name="III.A"></a>
  <h4><li>Reaction</li></h4>
	<ol type="1">
		<li>You may be alerted to spoofed email attempts by reports from your users or by investigating bounced email error messages.</li>
		<li>Following relevant policies and procedures of your organization, review all information (such as mail headers and system log files) related to the spoofed email.
			<p>Examine tcp_wrapper, ident, and sendmail logs to obtain information on the origin of the spoofed email.
			<p>The header of the email message often contains a complete history of the "hops" the message has taken to reach its destination.  Information in the headers (such as the "Received:" and "Message-ID" information), in conjunction with your mail delivery logs, should help you to determine how the email reached your system.
			<p>If your mail reader does not allow you to review these headers, check the ASCII file that contains the original message.
			<p><i>NOTE:  Some of the header information may be spoofed; and if the abuser connected directly to the SMTP port on your system, it may not be possible for you to identify the source of the activity.</i>
		</li>
		<li>Follow up with other sites involved in this activity, if you can identify the sites. Contact them to alert them to the activity and help them determine the source of the original email.
			<p>We would appreciate a cc to "cert@cert.org" on your messages; this facilitates our work on incidents and helps us relate ongoing intruder activities.
			<p>If you have a CERT# reference for this incident, please include it in the subject line of all messages related to this incident. (NOTE: This reference number will be assigned by the CERT/CC, so if you do not have a reference number, one will be assigned once we receive the incident report.)  
			<p>To find site contact information, please refer to
			<p><dl><dd><a href="http://www.cert.org/tech_tips/finding_site_contacts.html">http://www.cert.org/tech_tips/finding_site_contacts.html</a></dd></dl>
			<p>You may also want to contact the postmaster at sites that may be involved. Send email to
			<p>postmaster@[host.]site.domain (for example, postmaster@cert.org)
			<p>Please include a copy of this document in your message to sites.
		</li>
		<li>To provide as much information as possible to help trace this type of activity, you can increase the level of logging for your mailer delivery daemon. 

			
		</li>
		<li>Realize that in some cases, you may not be able to identify the origin of the spoofed email.</li>
	</ol>
  <a name="III.B"></a>
  <h4><li>Prevention (Deterrence)</li></h4>
	<ol type="1">
		<li>Use cryptographic signatures (e.g., PGP "Pretty Good Privacy" or other encryption technologies) to exchange authenticated email messages. Authenticated email provides a mechanism for ensuring that messages are from whom they appear to be, as well as ensuring that the message has not been altered in transit.  Similarly, sites may wish to consider enabling SSL/TLS in their mail transfer software.  Using certificates in this manner increases the amount of authentication performed when sending mail.</li>
		<li>Configure your mail delivery daemon to prevent someone from directly connecting to your SMTP port to send spoofed email to other sites.</li>
		<li>Ensure that your mail delivery daemon allows logging and is configured to provide sufficient logging to assist you in tracking the origin of spoofed email.</li>
		<li>Consider a single point of entry for email to your site. You can implement this by configuring your firewall so that SMTP connections from outside your firewall must go through a central mail hub. This will provide you with centralized logging, which may assist in detecting the origin of mail spoofing attempts to your site.</li>
		<li>Educate your users about your site's policies and procedures in order to prevent them from being "social engineered," or tricked, into disclosing sensitive information (such as passwords). Have your users report any such activities to the appropriate system administrator(s) as soon as possible. See also CERT advisory CA-1991-04, available from
			<p><dl><dd><a href="http://www.cert.org/advisories/CA-1991-04.social.engineering.html">http://www.cert.org/advisories/CA-1991-04.social.engineering.html</a></dd></dl>
		</li>
	</ol>
</ol>
<a name="IV"></a>
<h3>IV. Additional Security Measures That You Can Take</h3>
<ol type="A">
        <li>If you have questions concerning legal issues, we encourage you to work with your legal counsel.
                <p>U.S. sites interested in an investigation of this activity can contact the Federal Bureau of Investigation (FBI).  Information about how the FBI investigates computer crimes can be found here</p>
<p><dl><dd><a href="http://www.cert.org/tech_tips/FBI_investigates_crime.html">http://www.cert.org/tech_tips/FBI_investigates_crime.html</a></dd></dl></p>

<p>For information on finding and contacting your local FBI field office, see</p>

<p><dl><dd><a href="http://www.fbi.gov/contact/fo/fo.htm">http://www.fbi.gov/contact/fo/fo.htm</a></dd></dl></p>

                <p>Non-U.S. sites may want to discuss the activity with their local law enforcement agency to determine the appropriate steps for pursuing an investigation.</p>
        </li>
        <li>For general security information, please see
                <p><dl><dd><a href="http://www.cert.org/">http://www.cert.org/</a></dl></p>
        </li>
<!--
        <li>To report an incident, please complete and return
                <p><dl><dd><a href="http://www.cert.org/reporting/incident_form.txt">http://www.cert.org/reporting/incident_form.txt</a></dl></p>
        <p>Or use the web-based Incident Reporting Form at</p>
                <p><dl><dd><a href="https://irf.cc.cert.org">https://irf.cc.cert.org</a></dl></p>
        </li>
-->
</ol>


<p><!--#include virtual="/include/footer_nocopyright.html" --></p>
<p>Copyright 2001, 2002 Carnegie Mellon University</p>

<hr noshade width=100%>

<table>
<a name="history"></a>

<tr>
<td>
<font size=3 face="Verdana">
Revision History
</td>
</tr>

<tr>
<td valign=top width=30%>
<font size=2 face="Verdana">
Apr 26, 1999<br>
Mar 20, 2000<br>
Sep 04, 2002<br>
</td>
<td valign=top width=70%>
<font size=2 face="Verdana">
Converted to new web format<br>
Updated links<br>
Minor updates<br>
</td>
</tr>
</small>
</table>