Strangely, there appears to be no single noun for this, yet it has been recognised for centuries, if not longer. In English, it is summed up by the well-known

>“If you give me six lines written by the hand of the most honest of men, I will find something in them which will hang him.” ― Cardinal Richelieu (1585–1642) - to which the challenge was "God save the King!" Richelieu replied: "How do you know the king need saving? What part do you play in the plot against his life?"

The overall action may be a show-trial as a result of a witch-hunt; the evidence may be fabricated or manipulated; the accused may be vilified before and during the trial, and selective quotes may taken out of context and deliberately misinterpreted.

But there is no word for the latter.