Future archaeologists have traveled to a remote asteroid to investigate an alien artifact found within it, a computing device of some kind. They bring it to life and begin extracting its data and programs for their research.
A debate breaks out about the substantial virus risk known to be associated with these "found" computing devices. They decide to cut and run, but not before the artifact has regained its ancient sentient awareness, unbeknownst to the crew.
They wipe and rebuild their onboard computers as quickly and thoroughly as they can.
But as they are rocketing away, the artifact scans their ship and finds a neglected peripheral on its surface.
A software vulnerability is found! It makes its move.