Original issue date: June 22, 1992<BR>
Last revised: September 19, 1997<BR>
Attached copyright statement

<P>A complete revision history is at the end of this file.

<P>The Computer Emergency Response Team/Coordination Center (CERT/CC) has
received information regarding a series of significant intrusion
incidents on the Internet.  Systems administrators should be aware
that many systems on the Internet have been compromised due to this
activity.  To identify whether your systems have been affected by the
activity we recommend that all system administrators check for the
signs of intrusion detailed in this advisory.

<P>This advisory describes the activities that have been identified as
part of this particular incident.  This does not address the
possibility that systems may have been compromised due to other,
unrelated intrusion activity.

<P><HR>
<H2>I. Description</H2>


The intruders gain initial access to a host by discovering a
password for a user account on the system, exploiting a &quot;+&quot; in 
the &quot;/etc/hosts.equiv&quot; file, or any &quot;.rhosts&quot; files on the
system.  The intruder then connects to the system using rsh and
attempts to become root on the compromised system.  An alias of
&quot;decode&quot; may used to gain root privileges.

<H2>II. Impact</H2>


Having gained root access on a system, the intruders may make
unauthorized changes to system binaries that can capture account
information for both local and remote systems.  In addition, the
intruder adds &quot;+ +&quot; to any &quot;.rhosts&quot; files to which the intruder
has access.

<H2>III. Solution </H2>


<H3>A. Check your systems for signs of intrusion due to this incident.</H3>


<OL><LI> Check the login, telnet, and uucpd binaries (for example,

&quot;/bin/login&quot;, &quot;/usr/ucb/telnet&quot;, and &quot;/usr/etc/in.uucpd&quot; on
Sun systems) against copies from distribution media.  Note that
	   a check for creation or modification times and sizes is
not sufficient to assure that the files have not been modified.
	   The CERT/CC suggests that you compare the output of the
&quot;<I>sum(1)</I>&quot; or &quot;<I>cmp(1)</I>&quot; command on both the distribution and
installed versions of the binaries.

<LI><P>If the check from (A.1) indicates that your binaries have been

	   modified, check for the presence of a password
log file.  Since the name of the logfile is often changed,
	   the name of the file should be obtained using the
&quot;<I>strings(1)</I>&quot; command on the Trojan login, uucpd, or telnet
binary.  Examples of filenames used on other systems are:

<P>&quot;/usr/spool/. &quot; (dot space)<BR>
&quot;/var/spool/secretmail/.l&quot;<BR>
&quot;/var/spool/secretmail/.log&quot;<BR>
&quot;/var/spool/secretmail/.tty&quot;<BR>
&quot;/var/spool/secretmail/.lock&quot;<BR>
                               &quot;/usr/tmp/.log&quot;<BR>
&quot;/usr/spool/uucp/.sys&quot;<BR>
&quot;/usr/spool/uucppublic/.hushlogin&quot;<BR>
			       &quot;/usr/uucp/.sys&quot;<BR>
&quot;/mnt2/lost+found/.tmp/.log&quot;<BR>
&quot;/usr/spool/mqueue/.AFG001&quot;<BR>

<P>Verify that the contents of files found using the &quot;<I>strings(1)</I>&quot;
command do not contain valid username/password combinations.  

<LI><P>Check for the presence of &quot;+&quot; in the &quot;/etc/hosts.equiv&quot;
file.  

<P>NOTE that Sun Microsystems installs the SunOS
operating system with a default &quot;+&quot; in the /etc/hosts.equiv
	   file for easy network access.  This should be removed
unless required in your operating environment and protected
by a firewall network configuration.  Leaving the &quot;+&quot;
	   intact will allow any non-root user on the Internet to
login to the system without a password.

<LI><P>Check the home directory for each entry in the &quot;/etc/passwd&quot;
file for the presence of a &quot;.rhosts&quot; file containing
&quot;+ +&quot; (plus space plus).

<LI><P>Assure that your &quot;/etc/fstab&quot;, &quot;/etc/inetd.conf&quot;, and

&quot;/etc/exports&quot; files have not been modified.
</OL>

<H3>B. Take the following steps to secure your systems.</H3>



<OL><LI> Save copies of the identified files to removable media and 

remove any password log files as found in (A.2) above.

<P><LI> Replace any modified binaries with copies from


distribution media.

<LI><P>Remove the &quot;+&quot; entry from the &quot;/etc/hosts.equiv&quot;

file and the &quot;+ +&quot; (plus space plus) entry from any
&quot;.rhosts&quot; files.  

<LI><P>Change ownership of the &quot;/etc&quot; directory to userid &quot;root&quot;
if it is owned by &quot;bin&quot; (as distributed by Sun).

<LI><P>Change every password on the system and assure that the new 

passwords are robust using a package such as Crack or Cops
(available via anonymous ftp from cert.org).

<LI><P>Inspect and restore any changes made to your &quot;/etc/fstab&quot;,

&quot;/etc/exports&quot;, or &quot;/etc/inetd.conf&quot; files.  If any
modifications are found in these files, you will need to
	   unmount file systems and restart daemons once the files
	   have been restored.  Alternatively the system could be
rebooted.

<LI><P>Remove the &quot;decode&quot; alias from your global mail aliases
file (&quot;/etc/aliases&quot; on Sun systems, &quot;/usr/lib/aliases&quot; on
other UNIX systems).
</OL>

<P><HR>

<!--#include virtual="/include/footer_nocopyright.html" -->
<P>Copyright 1992 Carnegie Mellon University.</P>

<HR>

Revision History
<PRE>
September 19,1997  Attached copyright statement
</PRE>