I am trying to secure a Mac after discovering that network links are being established to some unwanted internet sites.
Using 'lsof -i' (list open 'files', internet) I have seen that launchd, ntpd, firefox, dropbox and other processes are either 'LISTENING' or have 'ESTABLISHED' links to a site or sites which I suspect have to do with spyware. I have been trying to find startup files and preference lists that initiate thise links but can't find them. I could easily reinstall the OS and restore data from a backup but I'd prefer to know how to fix this as I have six Macs to look after.
Thanks...
lsofwill report which of your computer's IP addresses the program is listening on (or "*", meaning all ports). This can be a bit confusing, sincelsoftries to display names rather than numeric IP address, and it can give misleading results if (for example) you have a lot of names mapped to 127.0.0.1 in /etc/hosts. Trylsof -i -nto get raw IPs instead. – Gordon Davisson Sep 22 '09 at 17:36