Questar M-17

Questar M-17 was a dead star with negative star mass located on the edge of explored space. A spectral analysis of the star revealed imploded matter.

On stardate 5221.3, the USS Enterprise (NCC-1701) investigated the dead star while star charting. After becoming trapped in the star's hypergravity, and achieving orbit, the crew discovered an ancient unknown vessel in orbit of the star remnant.

A magnetic organism living inside the ancient ship returned to the Enterprise along with the away team and subsequently took control of that vessel. The Enterprise escaped, trapping the organism in Questar M-17's magnetic field. 

Questar M-17