The executable file was named .null and was at the root level of my home folder.
Open Terminal and type the following after the prompt:
cd ~ (that's a tilde, and then type Return)
ls -a (and then type Return)
To view the contents of your home folder. You should see a file called .null in the file list there.
To remove the .null executable file type the following:
To remove the .plist file, type the following:
Then type ls (and then type return)
You should see of list of your own LaunchAgent preference (.plist) files
There should be one there called null.plist
Type the following to first unload and then remove the null.plist file:
launchctl unload null.plist (and then type return)
rm null.plist (and then type return)
This should remove the offending files from your system.
This is not a new variant.
Your Mac connected to a server run by Kaspersky Labs, which was set up specifically to detect connections from infected hosts.
See this post for details and note the domain name:
You did the correct thing deleting the launchagent and code file. This is a variant of a new trojan that apparently started to appear around last week. The name various; .null and .resrv are just two.
While deleting the launchagent (don't forget to logout and back in) and code file is the main part of this what is unknown is what that code file is doing. Obviously it is trying to connect to a server somewhere. But what else is specifically unknown. So there is still the potential for other crap to be floating around your system.