bug

noun

Definitions of bug

(colloquial) a small electronic device used to record conversations secretly

They recorded the conversation using a bug concealed in the light socket.