In the definition that says the ultimate source of government power is the people. You seem to agree that this is a reasonable definition of democracy. This means that they are a legitimate target when it comes to espionage or terrorism, yes. If you don't like it, move to a dictatorship.