The story
From patent troll, which is derived from patent + troll (“in folklore, a grotesque humanoid creature living in caves or hills, or under bridges”), a reference to trolls in folktales who block the path of travellers or threaten to harm them unless some payment is made.
Etymology from Wiktionary, CC BY-SA 4.0.