The Changeling
Star Trek: The Original Series: Season 2, Episode 3
While investigating the mysterious extinction of four billion inhabitants of a solar system, the Enterprise encounters NOMAD - a computer space probe which has transformed itself into a relentless exterminator of `imperfect biological specimens'.