If you are attacked by soldiers, how do you stop from being defeated, if you have no defense stats? You would only defense against spies.
A pure spy cannot be attacked if they have no gold out. So bank your cash, and you can't be attacked.