Before a writ of attachment may be executed, a bond on the part of the plaintiff in the sum of at least five hundred dollars executed by sufficient surety shall be delivered to the sheriff or constable, to the effect that if the defendant recover judgment the plaintiff shall pay all costs that may be awarded to the defendant and all damages which he may sustain by reason of the attachment. The affidavit of the surety annexed to the bond shall state that he is a resident of this state and worth double the sum specified in the bond in property above his debts and exclusive of property exempt from execution. No bond is necessary if the state or a political subdivision is the plaintiff.
SDCL 21-17A-7