A spy who pretends to work for one side, when they are actually working for or passing information to the other.