CASPER, Wyo. (AP) — A federal audit shows that nearly $400,000 worth of grants meant to protect Wyoming from terrorist attacks were improperly overseen by the state's Office of Homeland Security.

The audit by the Department of Homeland Security's Office of the Inspector General examined grant management from 2010 to 2012 and found that the state office wasn't properly holding law enforcement and other agencies to account for how they spent federal grants.

The improper spending totaled $393,752 out of the $15 million in Homeland Security grants distributed in Wyoming from 2010 to 2012 as part of a federal initiative to beef up local communities' emergency preparedness after 9/11.

Such spending in the state peaked in 2010 at $6.61 million but slid to $2.8 million in 2012.