agent provocateur

Definition
A person who surreptitiously acts to gain the confidence of someone, or organisation, they view as their adversary/ nemesis, and then to entice them to commit a rash act such to cause them to be exposed, or prosecuted for a crime, or suffer reputational damage.