Who was the mole? Might be as simple as someone getting some money from a sponsor in Qatar and paying somebody off in Mossad.
https://www.allsides.com/news/2023-10-12-1322/politics-biden-s-suspended-iran-special-envoy-once-pushed-engagement-hamas