OS X Lion: How to disable RPC?
Here are my recommended settings for locking down your Mac. I'm assuming you're running OS X Lion. If that's not the case, let me know and I'll try to adjust my answer for other versions of OS X.

Turn your Firewall on: System Preferences -> Security &amp; Privacy Tab Settings -> Firewall tab. Make sure it's on and that you click the lock in the lower left corner to prevent changes without an administrator's password.



Turn off all sharing services: System Preferences -> Sharing Settings -> Make sure all the stuff in that window is unchecked. Make sure the lock in the lower left corner is locked to prevent changes without an administrator's password.



Turn off Bonjour (mDNSResponder): For OS Lion you don't need to completely disable mDNSResponder (which is good because if you disable it completely you lose DNS in Snow Leopard and newer OS X). Instead you can follow these steps to disable just Bonjour features in mDNSResponder (Note: do this carefully as a malfunctioning mDNSResponder service can prevent a Mac from booting. Make sure you have a TimeMachine backup before making changes and that booting to your recovery partition works.):


Make a back up copy of the mDNSResponder.plist file as a precaution.
Open the mDNSResponder.plist file in Terminal using your preferred text editor. Here is a sample command:

sudo nano “/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist”

Add &lt;string&gt;-NoMulticastAdvertisements&lt;/string&gt; to the array in the ProgramArguments section. In other words:

&lt;key&gt;ProgramArguments&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;/usr/sbin/mDNSResponder&lt;/string&gt;
&lt;string&gt;-launchd&lt;/string&gt;
&lt;/array&gt;


becomes…

&lt;key&gt;ProgramArguments&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;/usr/sbin/mDNSResponder&lt;/string&gt;
&lt;string&gt;-launchd&lt;/string&gt;
&lt;string&gt;-NoMulticastAdvertisements&lt;/string&gt;
&lt;/array&gt;

Save the file.
Restart your Mac.


You may also want to look at locking down BlueTooth on the system (System Preferences -> BlueTooth Settings). Specifically you may want to uncheck 'Discoverable' so your BlueTooth chipset doesn't advertise itself to other devices nearby. If you're not using any BlueTooth devices consider turning it off altogether.