I have finally found a solution to the recently discovered vulnerability with Mac OS X.
Just to remind you – the vulnerability is that a virus, masquerading as a normal document, can execute commands (run shell scripts) using your terminal application.
The solution consists of a shell script called A Bit More Secure Terminal (abmst) that you can download [here](http://www.ugsoft.de/intl/abmst/demo/addr-mac.html)

1. Download and install abmst.
2. Launch your Terminal utility and open “Preferences…” under the Terminal menu.
3. Select the radio button next to “Execute this command (specify complete path):”
4. Enter exactly the following underneath this line (the space is important):
/usr/local/bin/abmst-en /usr/bin/login

Now whenever something tries to run a shell script in your terminal abmst will ask you if you really want to run the command and give you the option not to. I have tested this and it works well.