honey trap
The use of a romantic or a sexual relationship to entice a person into revealing secret information.
“Some girl had made a fool of him,” said Connie with great contempt. “The Dutch set him a honey trap, my dear, and he barged in with his eyes wide shut.”