Another technique is to infiltrate the opposition's operations and position a paid informant there.
Candidates and incumbents who benefit from opposition research often choose to remain uninformed about their campaign's operations and tactics, to insure plausible deniability should criminal charges be brought against researchers.