IIRC, in "Ringworld" by Larry Niven, one of the characters dropped molecule-sized bugging devices to spy on someone.