Spy

A spy, agent or informant is a person engaged in espionage, obtaining information that is considered secret or confidential.