This question already has an answer here:
I probably read this before 2000 in an anthology work. I frequently read books like "Best SF of yyyy".
The style of the writing is like that of the SF Golden Age.
Humanity developed interstellar FTL drives and is out exploring the Universe. The Human ship discovers a inhabitable world with ancient ruins. The Human ship lands and the crew begin exploring the ruins.
One member of the crew stumbles into an ancient trap that eviscerates and kills him. It replaces his innards with machine controlled (I don't recall whether it's biological or mechanical) fake. It also infects at least this crewman and maybe the entire crew with a plague designed to kill the entire Human species.
As the Human ship departs the planet, the machine expresses satisfaction with finally getting revenge on Humanity, the species that eliminated its master's species. Apparently short-sighted Humanity has completely forgotten the ancient conflict.