Legacy (novel)
You may be looking for the TNG episode  or the 2006 video game Star Trek: Legacy.
Spock faces a deadly foe from his past!

Legacy is a Pocket TOS novel – #56 in the numbered series – written by Michael Jan Friedman. Published by Pocket Books, it was first released in .

Summary 
From the book jacket
A routine survey of the planet Alpha Octavius Four turns disastrous as Spock is attacked and poisoned by a huge creature and Kirk's landing party is trapped underground by a violent earthquake. As Spock fights for his life in sickbay, Scotty organizes a search for Kirk and his men. However, rescue efforts must cease when the  is called away to the Beta Cabrini system where a mining colony is under heavy attack.

At Beta Cabrini, the USS Enterprise faces off against a Marauder named Dreen – a man that Spock had watched his former captain Christopher Pike defeat years before. Fighting the effects of the poison, Spock struggles to his feet and takes command of the ship. Soon, Spock and Dreen are locked into a deadly game of cat and mouse – a game driven by mad revenge that can have only one survivor!

Characters 
 James T. Kirk
 Spock
 Montgomery Scott

References 
 References needed

External links 
 
 

de:Späte Rache
Novels