You might have come across the term double agent; this is a spy working for the two sides. There is a triple agent also. Similar to the double, this individual might “willingly or unwillingly” conceal vital information from a couple of intelligence services due to being encouraged by a third service.