<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Who is trying to login to my OSX laptop?</title>
      <link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop/</link>
      <description>Comments on Ask MetaFilter post Who is trying to login to my OSX laptop?</description>
	  	  <pubDate>Wed, 27 Dec 2006 20:44:13 -0800</pubDate>
      <lastBuildDate>Wed, 27 Dec 2006 20:44:13 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Who is trying to login to my OSX laptop?</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop</link>	
  	<description>&lt;strong&gt;OSX Security:&lt;/strong&gt; I followed the instructions on &lt;a href=&quot;http://www.macosxhints.com/article.php?story=2006120918170984&quot;&gt;this MacOSXhints article&lt;/a&gt; to setup my shiny new MacBook Pro to take a picture using the built-in iSight whenever there&apos;s a failed authentication attempt.  I&apos;ve noticed that every night at 9:53, there are multiple failed login attempts, but it&apos;s while I&apos;m using the computer, so I end up with pictures of me. &lt;br /&gt;&lt;br /&gt; Take a gander at this log (&lt;strong&gt;/var/log/asl.log&lt;/strong&gt;).  The following repeats, substituting one of many usernames for &quot;webmaster&quot;:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
[Time 2006.12.28 02:53:50 UTC] [Facility authpriv] [Sender com.apple.SecurityServer] [PID -1] [Message authinternal failed to authenticate user webmaster.] [Level 3] [UID -2] [GID -2] [Host msca-cghota-mbp17]&lt;br&gt;
[Time 2006.12.28 02:53:50 UTC] [Facility authpriv] [Sender com.apple.SecurityServer] [PID -1] [Message Failed to authorize right system.login.tty by process /usr/sbin/sshd for authorization created by /usr/sbin/sshd.] [Level 5] [UID -2] [GID -2] [Host msca-cghota-mbp17]&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
At first I thought it was a network-based attack; however, tonight I did this while not joined to the network.  The accounts scanned include: admin, ftp, ftpuser, guestuser, root, test (x12), testuser (x2), user (x4), webadmin, and webmaster.&lt;br&gt;
&lt;br&gt;
What is going on!?  If nothing else, how can I get more information about tracking this down?  I&apos;m a switcher (an MCSE from the Windows world, actually), so I&apos;m a bit out of my depth.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.53913</guid>
  	<pubDate>Wed, 27 Dec 2006 19:41:16 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
	
	<category>osx</category>
	
	<category>security</category>
	
	<category>sshd</category>
	
	<category>apple</category>
	
	<category>securityserver</category>
	
	<category>login</category>
	
	<category>authpriv</category>
	
</item>
<item>
  	<title>By: tomierna</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812208</link>	
  	<description>Sounds like you may have a ssh brute-force trojan on another computer on your LAN.&lt;br&gt;
&lt;br&gt;
When you say you weren&apos;t joined to the network, was this due to you not being physically wired to an ethernet cable, or because Airport was off?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812208</guid>
  	<pubDate>Wed, 27 Dec 2006 20:44:13 -0800</pubDate>
  	<dc:creator>tomierna</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812231</link>	
  	<description>Both.  I turned airport off, and was not connected via a cable.&lt;br&gt;
&lt;br&gt;
Although, I turned off airport after the first one started (I noticed the green light on the iSight blinking).  But, they still kept coming.  Does this point to a trojan on my local system?&lt;br&gt;
&lt;br&gt;
Also, I know there probably is, but does a log for sshd exist, listing what incoming connections were made?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812231</guid>
  	<pubDate>Wed, 27 Dec 2006 21:41:46 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812232</link>	
  	<description>&lt;small&gt;Also, I clicked on your profile because I noticed a three-digit user ID, and noticed that we&apos;re physically about 2 miles apart, I think.  I&apos;m visiting my mom here in Tampa for the holidays.  Howdy!&lt;/small&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812232</guid>
  	<pubDate>Wed, 27 Dec 2006 21:43:50 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812243</link>	
  	<description>&lt;strong&gt;Update:&lt;/strong&gt; I followed the steps in another MacOSXhints article to &lt;a href=&quot;http://www.macosxhints.com/article.php?story=20051012162448301&quot;&gt;Enable logging of sshd to /var/log/system.log&lt;/a&gt; (why the heck apple would disable it in the first place is beyond me) and have verified that it&apos;s working (at least, I ssh&apos;d to localhost from the terminal, send a wrong, then the right password, and this is what I got:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Dec 28 00:58:16 msca-cghota-mbp17 sshd[5754]: error: PAM: Authentication failure for cghota from localhost&lt;br&gt;
Dec 28 00:58:23 msca-cghota-mbp17 sshd[5754]: Accepted keyboard-interactive/pam for cghota from ::1 port 60282 ssh2&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Kind of weird that it uses a named host for auth failure, but my IPv6 address (right?) for success.&lt;br&gt;
&lt;br&gt;
Anything else anyone can think of? Do I just wait till tomorrow night and see where the login attempts come from?&lt;br&gt;
&lt;br&gt;
Thanks!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812243</guid>
  	<pubDate>Wed, 27 Dec 2006 22:03:08 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>
<item>
  	<title>By: Kadin2048</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812246</link>	
  	<description>I think your best bet is going to be to wait and see where the attempts are coming from. If they&apos;re local and always occur at the exact same time -- down to the second -- then my guess is that it might be something more benign than a trojan; maybe some sort of daemon or cron job that&apos;s not doing what it&apos;s supposed to. But this is definitely interesting enough to warrant investigation. To the best of my knowledge, there are not any OS X trojans &amp;quot;in the wild&amp;quot; that do this sort of thing, though that doesn&apos;t mean it&apos;s impossible.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812246</guid>
  	<pubDate>Wed, 27 Dec 2006 22:07:57 -0800</pubDate>
  	<dc:creator>Kadin2048</dc:creator>
</item>
<item>
  	<title>By: yesno</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812249</link>	
  	<description>Same time every day?  Try running your cron tasks and see if anything pops up (sudo periodic daily).</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812249</guid>
  	<pubDate>Wed, 27 Dec 2006 22:12:36 -0800</pubDate>
  	<dc:creator>yesno</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812265</link>	
  	<description>&amp;quot;sudo periodic daily&amp;quot; did nothing (that I noticed), at least, it didn&apos;t start capturing pics.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812265</guid>
  	<pubDate>Wed, 27 Dec 2006 22:39:39 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>
<item>
  	<title>By: veedubya</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812323</link>	
  	<description>Have you rebooted the machine since you noticed this happening? If so, does it still happen at the same time?&lt;br&gt;
&lt;br&gt;
Basically, is the timing absolute, or relative to boot? If it&apos;s relative to boot time, my guess would be some sort of house-keeping task that&apos;s sitting in the background on the machine. It doesn&apos;t necessarily have to be a cron task, so yesno&apos;s suggestion may not work.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812323</guid>
  	<pubDate>Thu, 28 Dec 2006 02:13:09 -0800</pubDate>
  	<dc:creator>veedubya</dc:creator>
</item>
<item>
  	<title>By: tomierna</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812407</link>	
  	<description>&lt;small&gt;Waves hello at chota!&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
It certainly is puzzling that there is something attempting ssh logins without a network connection.&lt;br&gt;
&lt;br&gt;
Like others, I suspect something local to the machine, nefarious or otherwise.&lt;br&gt;
&lt;br&gt;
I&apos;m interested in hearing if it happens again.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812407</guid>
  	<pubDate>Thu, 28 Dec 2006 07:16:03 -0800</pubDate>
  	<dc:creator>tomierna</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812505</link>	
  	<description>I never thought about reboot times.  I&apos;m going to reboot now; 12:30 eastern.&lt;br&gt;
&lt;br&gt;
*crosses fingers*&lt;br&gt;
&lt;br&gt;
What&apos;s the quickest way to dump a list of every process running on the machine from the terminal?  I&apos;m thinking I&apos;ll disconnect from any network, then run &lt;strong&gt;sudo ps aux &amp;gt; ~/Desktop/procs.txt&lt;/strong&gt; as it&apos;s happening.  Sound good?  Should I enable &amp;quot;Secure keyboard entry&amp;quot; in Terminal?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812505</guid>
  	<pubDate>Thu, 28 Dec 2006 09:32:10 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>
<item>
  	<title>By: ikkyu2</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812578</link>	
  	<description>If you&apos;re trojaned, you might not want to run sudo.  Is there really any reason to run as the super user just to print out the list of processes, for instance?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812578</guid>
  	<pubDate>Thu, 28 Dec 2006 10:48:46 -0800</pubDate>
  	<dc:creator>ikkyu2</dc:creator>
</item>
<item>
  	<title>By: hattifattener</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812626</link>	
  	<description>&apos;ps&apos; will run fine without sudo. I usually use &apos;ps augxww&apos;:  &apos;a&apos; gets every user&apos;s processes; &apos;g&apos; and &apos;x&apos; include some daemons and normally-hidden processes; &apos;u&apos; includes some more columns of info, and &apos;ww&apos; means not to limit the output to 80 columns (which is handy since OS X has lots of long filenames).&lt;br&gt;
&lt;br&gt;
You could also try running &lt;a href=&quot;http://www.versiontracker.com/dyn/moreinfo/macosx/27858&quot;&gt;fseventer&lt;/a&gt; while the odd activity is taking place, which might point you towards particular files.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812626</guid>
  	<pubDate>Thu, 28 Dec 2006 11:49:47 -0800</pubDate>
  	<dc:creator>hattifattener</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812670</link>	
  	<description>I was thinking of running sudo for ps because, if I was writing a trojan, the first thing I would do would be to change my user&apos;s local path to point to patched versions of &amp;quot;which&amp;quot; and &amp;quot;ps&amp;quot;.  Or does it not work like that?&lt;br&gt;
&lt;br&gt;
thanks hattifattener, for the tips on the ps ww switch and fseventer; will definitely use those.&lt;br&gt;
&lt;br&gt;
Check back in about 6 hours for the a) startling conclusion, or b) continuing mystery!&lt;br&gt;
&lt;br&gt;
Thanks, everyone!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812670</guid>
  	<pubDate>Thu, 28 Dec 2006 13:11:32 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>
<item>
  	<title>By: scalefree</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#812707</link>	
  	<description>If you suspect a local compromise on a Mac, your first action should be to download &amp;amp; run both &lt;a href=&quot;http://www.chkrootkit.org/&quot;&gt;chrootkit&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://www.versiontracker.com/dyn/moreinfo/macosx/30622&quot;&gt;OSX Rootkit Hunter&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-812707</guid>
  	<pubDate>Thu, 28 Dec 2006 14:16:10 -0800</pubDate>
  	<dc:creator>scalefree</dc:creator>
</item>
<item>
  	<title>By: aneel</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#813939</link>	
  	<description>&lt;i&gt;I was thinking of running sudo for ps because, if I was writing a trojan, the first thing I would do would be to change my user&apos;s local path to point to patched versions of &amp;quot;which&amp;quot; and &amp;quot;ps&amp;quot;. Or does it not work like that?&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
sudo does a little checking for spoofing in the current directory (man sudo for details), but probably not enough. sudo -i  may get you closer to what you want.&lt;br&gt;
&lt;br&gt;
But if an attacker is going to trojan &amp;quot;ps&amp;quot;, why wouldn&apos;t they also trojan &amp;quot;sudo&amp;quot; to capture the password you enter and turn their compromise of your user account into a compromise of the root account?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-813939</guid>
  	<pubDate>Fri, 29 Dec 2006 19:02:21 -0800</pubDate>
  	<dc:creator>aneel</dc:creator>
</item>
<item>
  	<title>By: chota</title>
  	<link>http://ask.metafilter.com/53913/Who-is-trying-to-login-to-my-OSX-laptop#813942</link>	
  	<description>Okie dokie!&lt;br&gt;
&lt;br&gt;
Found out that, due to legacy settings on my mom&apos;s router, I was in the DMZ, and was the subject of a portscan.  They probably saw that ssh was open and tried it as a vector for attact.&lt;br&gt;
&lt;br&gt;
Script kiddies.  Bah, humbug!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.53913-813942</guid>
  	<pubDate>Fri, 29 Dec 2006 19:07:09 -0800</pubDate>
  	<dc:creator>chota</dc:creator>
</item>

    </channel>
</rss>
