In the UK, there was an informant for MI5 in the IRA for years codenamed Steaknife. It turned out he was the head of IRA internal security, it was his job to hunt moles. He was the perfect agent. I seem to remember a story of a mafia don who turned out to be an informant, which seems wild to me.
These days it looks to me like Extinction Rebellion (XR) are being run by spies, since all their activities are so counter-productive in terms of making people hate environmentalism.
XR seem to be trying to distance themselves, but it's too late, I don't think most people distinguish between them.
Anything to antagonize working class people.
slip the feds a little juice tidbit here or there and he gets to run his empire a few months longer. repeat over and over until the feds get smart.
I mean, it's not as though other mafiosi turn informant because they yearn for justice...
At the same time you also tend to be a higher value target for external actors compared to young, new, members of an organisation. So in the young end of it you'd prefer infiltration to recruiting informants, in part because young informants also tend to be less reliable than old, for the reasons above. If it's your agent loyalty isn't as brittle as when you've convinced someone to become a traitor.
When news of government or other external actors having gained access breaks, you typically don't want your infiltrators to become known if you can avoid it. It's different in some settings, antifascists commonly do the opposite and try to protect their informants so they can keep working if they move on to another far right group, while their infiltrators sometimes go public with what they've done.
There's also "Jimmy the Weasel" Fratianno who turned FBI informant. In Ovid Demaris' book "The Last Mafioso: The Treacherous World of Jimmy Fratianno", he quotes Jimmy even laughs about being one, taking money from FBI and still running his rackets for a time.