In the Season 5 episode “I, Borg”, Picard directs his crew to come up with an "invasive program" to implant in their captured Borg drone "Hugh" in the hopes of annihilating the Collective.
PICARD: If we could get to the root command, we could introduce an invasive programming sequence through its biochip system and then return it to the hive.
LAFORGE: The Borg are so interconnected it would act like a virus.
PICARD: Which would infect the entire Collective. We could disable their neural network at a stroke.
CRUSHER: Infect it? You make it sound like a disease.
PICARD: Quite right, Doctor. If all goes well, a terminal one.
Geordi and Data later come up with such an invasive program that they expect to be a success.
PICARD: How can a geometric form disable a computer system?
DATA: The shape is a paradox, sir. It cannot exist in real space or time.
LAFORGE: When Hugh's imaging apparatus imprints this on his biochips, he'll try to analyse it.
DATA: He will be unsuccessful, and will store the shape in his memory banks. It will be shunted to a subroutine for further analysis.
LAFORGE: Then when the Borg download his memory, it'll be incorporated it into their network, then they'll try to analyse it.
DATA: It is designed so that each approach they take will spawn an anomalous solution. The anomalies are designed to interact with each other, linking together to form an endless and unsolvable puzzle.
PICARD: Quite original. How long before a total systems failure?
LAFORGE: Not until the shape has gone through several hundred computational cycles.
By the end of the episode, Picard decides that it is morally wrong to deploy this in their captured drone, and explores other options.
PICARD: To use him in this manner, we'd be no better than the enemy that we seek to destroy.
But with the continuing threat of the Borg (including over 11,000 killed or assimilated at the Battle of Wolf 359), I imagine that somebody else might be willing to unleash this "invasive program" that Picard refused to use.
Does this solution to try to annihilate the Borg Collective ever get attempted or revisited in any Star Trek media (including Expanded Universe)?
(To be clear, I'm not talking about whether "Hugh" ever reappeared, or if the effects of him being exposed to individuality were revisited, but rather if Geordi and Data's "invasive program" to shut down all Borg everywhere has itself made a reappearance. Did anybody try to insert this geometric form into a Borg again?)