For Muslims, it is haram and forbidden to commit espionage against a non-Muslim country in favor of a Muslim country while having an alliance with them, such as working for the Goverment Police. idrisss