Hi d3a7hr0w,
Sadly, you have a spy residing in your settlement opening your gates up for the foe! Try to install spy of your own to route them out, or install a governor which has traits that provide public security bonuses. Hope this helps, good luck, cheers!