There is no better tool invented than cautiousness and scepticism.
Why would you open an attachement not mentioned in the mail, or from an unknown source? Do you really expect something positive coming from doing so?
I am sorry to inform you, but no, sadly, no. You will only ever get in trouble again and again and again… until you finally realize that you had enough trouble and stop. Do not let that learning process last too long.
It is better to not have opened an attachment you should have than to have opened one you should not. In other words… Any unknown sender, and any friend who does not mention the attachment… For your own good…