How to catch a spy